HBASE-13122 Improve efficiency for return codes of some filters (Shuaifeng Zhou)
This commit is contained in:
parent
4fb6f91cba
commit
7b5c9eabac
|
@ -133,7 +133,7 @@ public class ColumnRangeFilter extends FilterBase {
|
|||
}
|
||||
|
||||
if (!this.minColumnInclusive && cmpMin == 0) {
|
||||
return ReturnCode.SKIP;
|
||||
return ReturnCode.NEXT_COL;
|
||||
}
|
||||
|
||||
if (this.maxColumn == null) {
|
||||
|
|
|
@ -65,7 +65,7 @@ public class FamilyFilter extends CompareFilter {
|
|||
if (familyLength > 0) {
|
||||
if (doCompare(this.compareOp, this.comparator, v.getFamilyArray(),
|
||||
v.getFamilyOffset(), familyLength)) {
|
||||
return ReturnCode.SKIP;
|
||||
return ReturnCode.NEXT_ROW;
|
||||
}
|
||||
}
|
||||
return ReturnCode.INCLUDE;
|
||||
|
|
Loading…
Reference in New Issue