private static boolean isLlapCacheEnabled(Configuration conf, boolean isPlanCache, boolean llapCacheAlwaysEnabled) {
    return (llapCacheAlwaysEnabled ||
        (HiveConf.getBoolVar(conf, HiveConf.ConfVars.LLAP_OBJECT_CACHE_ENABLED) && !isPlanCache));
  }
Returns the appropriate cache
@param conf
@param queryId
@param isPlanCache
@param llapCacheAlwaysEnabled  Whether to always return LLAP cache regardless
       of config settings disabling LLAP cache. Valid only if running LLAP.
@return
ql/src/java/org/apache/hadoop/hive/ql/exec/ObjectCacheFactory.java