HBASE-13122 Improve efficiency for return codes of some filters (Shuaifeng Zhou)

This commit is contained in:
tedyu 2015-03-02 07:47:33 -08:00
parent 4fb6f91cba
commit 7b5c9eabac
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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;