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:01 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 8116a8b52 -> bd4c6694f


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/bd4c6694
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/bd4c6694
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/bd4c6694

Branch: refs/heads/branch-1
Commit: bd4c6694f220cba725df7257d00b6339e1bd1cc0
Parents: 8116a8b
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Mar 5 18:41:52 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Mar 5 18:41:52 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/bd4c6694/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 fb627fd..9e6c90f 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/bd4c6694/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 c7b0b66..2f40302 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