diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java index 7c6161404cb..b41bc7fa6eb 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/filter/FilterBase.java @@ -150,6 +150,13 @@ public abstract class FilterBase extends Filter { return this.getClass().getSimpleName(); } + /** + * Return length 0 byte array for Filters that don't require special serialization + */ + public byte [] toByteArray() { + return new byte[0]; + } + /** * Default implementation so that writers of custom filters aren't forced to implement. *