From 992856c11dbe6551807931c6a5a31efacb9ec80b Mon Sep 17 00:00:00 2001 From: tedyu Date: Tue, 22 Sep 2015 10:00:11 -0700 Subject: [PATCH] HBASE-14397 Revert pending review comments --- .../java/org/apache/hadoop/hbase/filter/PrefixFilter.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PrefixFilter.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PrefixFilter.java index 8afe9c9a44e..8030ff60caf 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PrefixFilter.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/filter/PrefixFilter.java @@ -38,11 +38,9 @@ import java.util.ArrayList; @InterfaceAudience.Public @InterfaceStability.Stable public class PrefixFilter extends FilterBase { - public static final int MAX_SKIPPED_COMPARE_ROW_NUM = 100; protected byte [] prefix = null; protected boolean passedPrefix = false; protected boolean filterRow = true; - protected int skippedCompareRows = 0; public PrefixFilter(final byte [] prefix) { this.prefix = prefix; @@ -55,12 +53,8 @@ public class PrefixFilter extends FilterBase { public boolean filterRowKey(byte[] buffer, int offset, int length) { if (buffer == null || this.prefix == null) return true; - if (length < prefix.length && skippedCompareRows < MAX_SKIPPED_COMPARE_ROW_NUM) { - ++skippedCompareRows; + if (length < prefix.length) return true; - } - skippedCompareRows = 0; - // if they are equal, return false => pass row // else return true, filter row // if we are passed the prefix, set flag