hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r787910 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java src/test/org/apache/hadoop/hbase/io/TestHbaseObjectWritable.java
Date Wed, 24 Jun 2009 05:34:27 GMT
Author: stack
Date: Wed Jun 24 05:34:26 2009
New Revision: 787910

URL: http://svn.apache.org/viewvc?rev=787910&view=rev
Log:
HBASE-1567 cant serialize new filters

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/io/TestHbaseObjectWritable.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=787910&r1=787909&r2=787910&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Wed Jun 24 05:34:26 2009
@@ -220,6 +220,7 @@
                filterSaysStop() - could result in NPE or excessive scanning
    HBASE-1564  in UI make host addresses all look the same -- not IP sometimes
                and host at others
+   HBASE-1567  cant serialize new filters
 
   IMPROVEMENTS
    HBASE-1089  Add count of regions on filesystem to master UI; add percentage

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java?rev=787910&r1=787909&r2=787910&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java Wed Jun
24 05:34:26 2009
@@ -46,6 +46,11 @@
 import org.apache.hadoop.hbase.client.Scan;
 import org.apache.hadoop.hbase.filter.RowFilterInterface;
 import org.apache.hadoop.hbase.filter.RowFilterSet;
+import org.apache.hadoop.hbase.filter.RowWhileMatchFilter;
+import org.apache.hadoop.hbase.filter.RowPrefixFilter;
+import org.apache.hadoop.hbase.filter.PageFilter;
+import org.apache.hadoop.hbase.filter.RowInclusiveStopFilter;
+import org.apache.hadoop.hbase.filter.ColumnCountGetFilter;
 import org.apache.hadoop.hbase.io.HbaseMapWritable;
 import org.apache.hadoop.io.MapWritable;
 import org.apache.hadoop.io.ObjectWritable;
@@ -139,7 +144,12 @@
     addToMap(Result.class, code++);
     addToMap(Result[].class, code++);
     addToMap(Scan.class, code++);
-    
+
+    addToMap(RowWhileMatchFilter.class, code++);
+    addToMap(RowPrefixFilter.class, code++);
+    addToMap(PageFilter.class, code++);
+    addToMap(RowInclusiveStopFilter.class, code++);
+    addToMap(ColumnCountGetFilter.class, code++);
   }
   
   private Class<?> declaredClass;

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/io/TestHbaseObjectWritable.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/io/TestHbaseObjectWritable.java?rev=787910&r1=787909&r2=787910&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/io/TestHbaseObjectWritable.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/io/TestHbaseObjectWritable.java Wed
Jun 24 05:34:26 2009
@@ -32,6 +32,7 @@
 import org.apache.hadoop.hbase.HConstants;
 import org.apache.hadoop.hbase.filter.RowFilterInterface;
 import org.apache.hadoop.hbase.filter.StopRowFilter;
+import org.apache.hadoop.hbase.filter.RowPrefixFilter;
 import org.apache.hadoop.io.Text;
 import org.apache.hadoop.io.WritableComparator;
 
@@ -79,6 +80,10 @@
     obj = doType(conf, new StopRowFilter(HConstants.EMPTY_BYTE_ARRAY),
         RowFilterInterface.class);
     assertTrue(obj instanceof StopRowFilter);
+    // Check that filters can be serialized
+    obj = doType(conf, new RowPrefixFilter(HConstants.EMPTY_BYTE_ARRAY),
+      RowPrefixFilter.class);
+    assertTrue(obj instanceof RowPrefixFilter);
   }
   
   private Object doType(final HBaseConfiguration conf, final Object value,



Mime
View raw message