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