public Scan setCaching(int caching) {
    this.caching = caching;
    return this;
  }
Set the number of rows for caching that will be passed to scanners. If not set, the
Configuration setting {@link HConstants#HBASE_CLIENT_SCANNER_CACHING} will apply. Higher
caching values will enable faster scanners but will use more memory.
@param caching the number of rows for caching
hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java