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

This commit is contained in:
tedyu 2015-03-05 18:42:22 -08:00
parent b4367732c8
commit 8449251fb6
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) { if (!this.minColumnInclusive && cmpMin == 0) {
return ReturnCode.SKIP; return ReturnCode.NEXT_COL;
} }
if (this.maxColumn == null) { if (this.maxColumn == null) {

View File

@ -65,7 +65,7 @@ public class FamilyFilter extends CompareFilter {
if (familyLength > 0) { if (familyLength > 0) {
if (doCompare(this.compareOp, this.comparator, v.getFamilyArray(), if (doCompare(this.compareOp, this.comparator, v.getFamilyArray(),
v.getFamilyOffset(), familyLength)) { v.getFamilyOffset(), familyLength)) {
return ReturnCode.SKIP; return ReturnCode.NEXT_ROW;
} }
} }
return ReturnCode.INCLUDE; return ReturnCode.INCLUDE;