HBASE-13122 Improve efficiency for return codes of some filters (Shuaifeng)
This commit is contained in:
parent
b4367732c8
commit
8449251fb6
|
@ -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) {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue