HBASE-2346 Usage of FilterList slows down scans
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@932183 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e48a8ab0fc
commit
beefa3b7b3
|
@ -266,6 +266,7 @@ Release 0.21.0 - Unreleased
|
|||
HBASE-2410 spurious warnings from util.Sleeper
|
||||
HBASE-2335 mapred package docs don't say zookeeper jar is a dependent
|
||||
HBASE-2417 HCM.locateRootRegion fails hard on "Connection refused"
|
||||
HBASE-2346 Usage of FilterList slows down scans
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1760 Cleanup TODOs in HTable
|
||||
|
|
|
@ -49,6 +49,7 @@ public class FilterList implements Filter {
|
|||
MUST_PASS_ONE
|
||||
}
|
||||
|
||||
private static final Configuration conf = HBaseConfiguration.create();
|
||||
private Operator operator = Operator.MUST_PASS_ALL;
|
||||
private List<Filter> filters = new ArrayList<Filter>();
|
||||
|
||||
|
@ -203,7 +204,6 @@ public class FilterList implements Filter {
|
|||
}
|
||||
|
||||
public void readFields(final DataInput in) throws IOException {
|
||||
Configuration conf = HBaseConfiguration.create();
|
||||
byte opByte = in.readByte();
|
||||
operator = Operator.values()[opByte];
|
||||
int size = in.readInt();
|
||||
|
@ -217,7 +217,6 @@ public class FilterList implements Filter {
|
|||
}
|
||||
|
||||
public void write(final DataOutput out) throws IOException {
|
||||
Configuration conf = HBaseConfiguration.create();
|
||||
out.writeByte(operator.ordinal());
|
||||
out.writeInt(filters.size());
|
||||
for (Filter filter : filters) {
|
||||
|
|
Loading…
Reference in New Issue