Skip to content

Commit 3c95190

Browse files
committed
doc
1 parent ab29265 commit 3c95190

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

hbase-client/src/main/java/org/apache/hadoop/hbase/client/ReversedScannerCallable.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,10 @@ public void prepare(boolean reload) throws IOException {
116116
}
117117

118118
/**
119-
* Get the corresponding regions for an arbitrary range of keys.
119+
* Get the last region before the endkey, which will be used to execute the reverse scan
120120
* @param startKey Starting row in range, inclusive
121121
* @param endKey Ending row in range, exclusive
122-
* @return A list of HRegionLocation corresponding to the regions that contain
123-
* the specified range
122+
* @return the last location, and the rowKey used to find it
124123
*/
125124
private Pair<HRegionLocation, byte[]> locateLastRegionInRange(byte[] startKey, byte[] endKey) throws IOException {
126125
final boolean endKeyIsEndOfTable = Bytes.equals(endKey,

0 commit comments

Comments
 (0)