HBASE-16970 Clarify misleading Scan.java comment about caching

Signed-off-by: Yu Li <liyu@apache.org>
This commit is contained in:
Jim Kleckner 2016-11-01 17:31:23 +08:00 committed by Yu Li
parent 26cbe44337
commit 681b7da196
1 changed files with 3 additions and 2 deletions

View File

@ -127,8 +127,9 @@ public class Scan extends Query {
// scan.setAttribute(Scan.SCAN_ATTRIBUTES_TABLE_NAME, Bytes.toBytes(tableName))
static public final String SCAN_ATTRIBUTES_TABLE_NAME = "scan.attributes.table.name";
/*
* -1 means no caching
/**
* -1 means no caching specified and the value of {@link HConstants#HBASE_CLIENT_SCANNER_CACHING}
* (default to {@link HConstants#DEFAULT_HBASE_CLIENT_SCANNER_CACHING}) will be used
*/
private int caching = -1;
private long maxResultSize = -1;