hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13122 Improve efficiency for return codes of some filters (Shuaifeng)
Date Fri, 06 Mar 2015 02:42:29 GMT
Repository: hbase
Updated Branches:
  refs/heads/master b4367732c -> 8449251fb


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


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/8449251f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/8449251f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/8449251f

Branch: refs/heads/master
Commit: 8449251fb647a93c3c6f66295a5bfd770f1031d3
Parents: b436773
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Mar 5 18:42:22 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Mar 5 18:42:22 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/filter/ColumnRangeFilter.java     | 2 +-
 .../src/main/java/org/apache/hadoop/hbase/filter/FamilyFilter.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/8449251f/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnRangeFilter.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnRangeFilter.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnRangeFilter.java
index 9963af6..d8ea094 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnRangeFilter.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/ColumnRangeFilter.java
@@ -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) {

http://git-wip-us.apache.org/repos/asf/hbase/blob/8449251f/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FamilyFilter.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FamilyFilter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FamilyFilter.java
index e289026..e79a4d5 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FamilyFilter.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/FamilyFilter.java
@@ -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;


Mime
View raw message