public static void throwIfCacheOnlyRead(boolean isCacheOnlyRead) throws IOException {
    if (isCacheOnlyRead) {
      throw new IOException("LLAP cache miss happened while reading. Aborting query as cache only reading is set. " +
          "Set " + HiveConf.ConfVars.LLAP_IO_CACHE_ONLY.varname + " to false and repeat query if this was unintended.");
    }
  }
Returns MapWork based what is serialized in the JobConf instance provided.
@param job
@return the MapWork instance. Might be null if missing.
ql/src/java/org/apache/hadoop/hive/llap/LlapHiveUtils.java