public void checkOnlyMemStore() {
    memOnly = true;
    filesOnly = false;
  }
StoreFiles will not be scanned. Only MemStore will be scanned.
hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/InternalScan.java