public void setScan(Scan scan, boolean reversed, boolean mobScanRaw) {
    scan.setReversed(reversed);
    scan.readVersions(4);
    if (mobScanRaw) {
      scan.setAttribute(MobConstants.MOB_SCAN_RAW, Bytes.toBytes(Boolean.TRUE));
    }
  }
Set the scan attribute
@param reversed   if true, scan will be backward order
@param mobScanRaw if true, scan will get the mob reference
hbase-server/src/test/java/org/apache/hadoop/hbase/mob/TestMobStoreScanner.java