Skip to content

Commit ba21710

Browse files
committed
HBASE-28621 Fixed comment: use before/after
For reverse scans, smaller/bigger is not accurate. Use before/after instead.
1 parent 1aa84f5 commit ba21710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PrefixFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ public boolean filterRowKey(Cell firstRowCell) {
7676
if (filterAllRemaining()) {
7777
return true;
7878
}
79-
// if the cell is smaller => return false so that getNextCellHint() is invoked.
79+
// if the cell is before => return false so that getNextCellHint() is invoked.
8080
// if they are equal, return false => pass row
81-
// if the cell is bigger => return true, filter row
81+
// if the cell is after => return true, filter row
8282
// if we are passed the prefix, set flag
8383
int cmp;
8484
if (firstRowCell instanceof ByteBufferExtendedCell) {

0 commit comments

Comments
 (0)