From 8c73db0ebd891ee23f145e4eba83e4de43609c0f Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Mon, 20 Dec 2010 17:30:09 +0000 Subject: [PATCH] HBASE-3335 Add BitComparator for filtering git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1051217 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + .../java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 51f0ad4f768..6fcd15787ae 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -44,6 +44,7 @@ Release 0.91.0 - Unreleased NEW FEATURES HBASE-3287 Add option to cache blocks on hfile write and evict blocks on hfile close + HBASE-3335 Add BitComparator for filtering (Nathaniel Cook via Stack) Release 0.90.0 - Unreleased diff --git a/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java b/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java index 8c5ecd6c0fc..ba9db37d871 100644 --- a/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java +++ b/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java @@ -62,6 +62,7 @@ import org.apache.hadoop.hbase.client.Row; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.coprocessor.Exec; import org.apache.hadoop.hbase.filter.BinaryComparator; +import org.apache.hadoop.hbase.filter.BitComparator; import org.apache.hadoop.hbase.filter.ColumnCountGetFilter; import org.apache.hadoop.hbase.filter.ColumnPrefixFilter; import org.apache.hadoop.hbase.filter.CompareFilter; @@ -178,6 +179,7 @@ public class HbaseObjectWritable implements Writable, WritableWithSize, Configur addToMap(SingleColumnValueFilter.class, code++); addToMap(SingleColumnValueExcludeFilter.class, code++); addToMap(BinaryComparator.class, code++); + addToMap(BitComparator.class, code++); addToMap(CompareFilter.class, code++); addToMap(RowFilter.class, code++); addToMap(ValueFilter.class, code++);