hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdcry...@apache.org
Subject svn commit: r932183 - in /hadoop/hbase/trunk: CHANGES.txt core/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java
Date Fri, 09 Apr 2010 00:11:18 GMT
Author: jdcryans
Date: Fri Apr  9 00:11:18 2010
New Revision: 932183

URL: http://svn.apache.org/viewvc?rev=932183&view=rev
Log:
HBASE-2346  Usage of FilterList slows down scans

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=932183&r1=932182&r2=932183&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Fri Apr  9 00:11:18 2010
@@ -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

Modified: hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java?rev=932183&r1=932182&r2=932183&view=diff
==============================================================================
--- hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java (original)
+++ hadoop/hbase/trunk/core/src/main/java/org/apache/hadoop/hbase/filter/FilterList.java Fri
Apr  9 00:11:18 2010
@@ -49,6 +49,7 @@ public class FilterList implements Filte
     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 Filte
   }
 
   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 Filte
   }
 
   public void write(final DataOutput out) throws IOException {
-    Configuration conf = HBaseConfiguration.create();
     out.writeByte(operator.ordinal());
     out.writeInt(filters.size());
     for (Filter filter : filters) {



Mime
View raw message