diff --git a/src/main/java/org/apache/hadoop/hbase/client/Scan.java b/src/main/java/org/apache/hadoop/hbase/client/Scan.java index dfec113da95..d402ad6ed90 100644 --- a/src/main/java/org/apache/hadoop/hbase/client/Scan.java +++ b/src/main/java/org/apache/hadoop/hbase/client/Scan.java @@ -49,6 +49,8 @@ import java.util.TreeSet; * To scan everything for each row, instantiate a Scan object. *
* To modify scanner caching for just this scan, use {@link #setCaching(int) setCaching}. + * If caching is NOT set, we will use the caching value of the hosting + * {@link HTable}. See {@link HTable#setScannerCaching(int)}. *
* To further define the scope of what to get when scanning, perform additional * methods as outlined below. @@ -82,6 +84,9 @@ public class Scan implements Writable { private byte [] stopRow = HConstants.EMPTY_END_ROW; private int maxVersions = 1; private int batch = -1; + /* + * -1 means no caching + */ private int caching = -1; private boolean cacheBlocks = true; private Filter filter = null;