HBASE-1680 FilterList writable only works for HBaseObjectWritable defined types

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@796949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2009-07-23 05:17:26 +00:00
parent c25c8fe9ea
commit 467e48e4b1
2 changed files with 4 additions and 1 deletions

View File

@ -280,6 +280,8 @@ Release 0.20.0 - Unreleased
HBASE-1215 0.19.0 -> 0.20.0 migration (hfile, HCD changes, HSK changes)
HBASE-1689 Fix javadoc warnings and add overview on client classes to
client package
HBASE-1680 FilterList writable only works for HBaseObjectWritable
defined types (Clint Morgan via Stack and Jon Gray)
IMPROVEMENTS
HBASE-1089 Add count of regions on filesystem to master UI; add percentage

View File

@ -29,6 +29,7 @@ import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.KeyValue;
import org.apache.hadoop.hbase.io.HbaseObjectWritable;
import org.apache.hadoop.io.Writable;
/**
* Implementation of {@link Filter} that represents an ordered List of Filters
@ -211,7 +212,7 @@ public class FilterList implements Filter {
out.writeByte(operator.ordinal());
out.writeInt(filters.size());
for (Filter filter : filters) {
HbaseObjectWritable.writeObject(out, filter, filter.getClass(), conf);
HbaseObjectWritable.writeObject(out, filter, Writable.class, conf);
}
}
}