public static void setCacheMobBlocks(Scan scan, boolean cacheBlocks) {
    scan.setAttribute(MobConstants.MOB_CACHE_BLOCKS, Bytes.toBytes(cacheBlocks));
  }
Sets the attribute of caching blocks in the scan.
@param scan        The current scan.
@param cacheBlocks True, set the attribute of caching blocks into the scan, the scanner with
                   this scan caches blocks. False, the scanner doesn't cache blocks for this
                   scan.
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java