HBASE-6132 ColumnCountGetFilter & PageFilter not working with FilterList (Anoop)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1444962 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-02-11 21:04:10 +00:00
parent 538abfe0d8
commit 27bc815ed5
2 changed files with 2 additions and 7 deletions

View File

@ -263,12 +263,11 @@ public class FilterList extends Filter {
public boolean filterRow() {
for (Filter filter : filters) {
if (operator == Operator.MUST_PASS_ALL) {
if (filter.filterAllRemaining() || filter.filterRow()) {
if (filter.filterRow()) {
return true;
}
} else if (operator == Operator.MUST_PASS_ONE) {
if (!filter.filterAllRemaining()
&& !filter.filterRow()) {
if (!filter.filterRow()) {
return false;
}
}

View File

@ -140,7 +140,6 @@ public class TestFilterList {
/* We should filter any row */
rowkey = Bytes.toBytes("z");
assertTrue(filterMPONE.filterRowKey(rowkey, 0, rowkey.length));
assertTrue(filterMPONE.filterRow());
assertTrue(filterMPONE.filterAllRemaining());
}
@ -191,9 +190,6 @@ public class TestFilterList {
// Should fail here; row should be filtered out.
KeyValue kv = new KeyValue(rowkey, rowkey, rowkey, rowkey);
assertTrue(Filter.ReturnCode.NEXT_ROW == filterMPALL.filterKeyValue(kv));
// Both filters in Set should be satisfied by now
assertTrue(filterMPALL.filterRow());
}
/**