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:
parent
c92c02b5fc
commit
a65c38840f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
@ -179,6 +183,11 @@ class StoreScanner implements KeyValueScanner, InternalScanner, ChangedReadersOb
|
|||
}
|
||||
}
|
||||
|
||||
if (matcher.filterEntireRow()) {
|
||||
// nuke all results, and then return.
|
||||
results.clear();
|
||||
}
|
||||
|
||||
if (!results.isEmpty()) {
|
||||
// copy jazz
|
||||
outResult.addAll(results);
|
||||
|
|
Loading…
Reference in New Issue