HBASE-1580 Store scanner does not consult filter.filterRow at end of scan

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@788581 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-06-26 05:26:18 +00:00
parent c92c02b5fc
commit a65c38840f
2 changed files with 12 additions and 1 deletions

View File

@ -230,6 +230,8 @@ Release 0.20.0 - Unreleased
HBASE-1566 using Scan(startRow,stopRow) will cause you to iterate the
entire table
HBASE-1560 TIF can't seem to find one region
HBASE-1580 Store scanner does not consult filter.filterRow at end of scan
(Clint Morgan via Stack)
IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -152,6 +152,10 @@ class StoreScanner implements KeyValueScanner, InternalScanner, ChangedReadersOb
return true;
case DONE_SCAN:
if (matcher.filterEntireRow()) {
// nuke all results, and then return.
results.clear();
}
close();
// copy jazz
@ -178,7 +182,12 @@ class StoreScanner implements KeyValueScanner, InternalScanner, ChangedReadersOb
throw new RuntimeException("UNEXPECTED");
}
}
if (matcher.filterEntireRow()) {
// nuke all results, and then return.
results.clear();
}
if (!results.isEmpty()) {
// copy jazz
outResult.addAll(results);