public static boolean isCacheMobBlocks(Scan scan) {
    byte[] cache = scan.getAttribute(MobConstants.MOB_CACHE_BLOCKS);
    try {
      return cache != null && Bytes.toBoolean(cache);
    } catch (IllegalArgumentException e) {
      return false;
    }
  }
Indicates whether the scan contains the information of caching blocks. The information is set
in the attribute "hbase.mob.cache.blocks" of scan.
@param scan The current scan.
@return True when the Scan attribute specifies to cache the MOB blocks.
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java