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:
parent
e5c0804a27
commit
60449458da
|
@ -150,6 +150,13 @@ public abstract class FilterBase extends Filter {
|
||||||
return this.getClass().getSimpleName();
|
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.
|
* Default implementation so that writers of custom filters aren't forced to implement.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue