diff --git hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java index 0c5565b..3e85388 100644 --- hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java +++ hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java @@ -305,8 +305,10 @@ public class Scan extends OperationWithAttributes { /** * Set the start row of the scan. - * @param startRow row to start scan on (inclusive) - * Note: In order to make startRow exclusive add a trailing 0 byte + *

+ * If the specified row does not exist, the Scanner will start from the + * next closest row after the specified row. + * @param startRow row to start scanner at or after * @return this */ public Scan setStartRow(byte [] startRow) { @@ -315,9 +317,11 @@ public class Scan extends OperationWithAttributes { } /** - * Set the stop row. + * Set the stop row of the scan. + *

+ * The scan will include rows that are lexicographically less than + * the provided stopRow. * @param stopRow row to end at (exclusive) - * Note: In order to make stopRow inclusive add a trailing 0 byte * @return this */ public Scan setStopRow(byte [] stopRow) {