HBASE-6794 FilterBase should provide a default implementation of toByteArray

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1386842 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
gchanan 2012-09-17 21:12:07 +00:00
parent e5c0804a27
commit 60449458da
1 changed files with 7 additions and 0 deletions

View File

@ -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.
*