@InterfaceAudience.Public @InterfaceStability.Stable public class ColumnPrefixFilter extends FilterBase
Filter.ReturnCode| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
prefix |
| Constructor and Description |
|---|
ColumnPrefixFilter(byte[] prefix) |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
Filter.ReturnCode |
filterColumn(byte[] buffer,
int qualifierOffset,
int qualifierLength) |
Filter.ReturnCode |
filterKeyValue(Cell kv)
Filters that dont filter by key value can inherit this implementation that
includes all Cells.
|
Cell |
getNextCellHint(Cell kv)
Filters that are not sure which key must be next seeked to, can inherit
this implementation that, by default, returns a null Cell.
|
byte[] |
getPrefix() |
static ColumnPrefixFilter |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
String |
toString()
Return filter's info for debugging and logging purpose.
|
filterAllRemaining, filterRow, filterRow, filterRowCells, filterRowKey, getNextKeyHint, hasFilterRow, isFamilyEssential, reset, transform, transformCellpublic byte[] getPrefix()
public Filter.ReturnCode filterKeyValue(Cell kv)
FilterBasefilterKeyValue in class FilterBasekv - the Cell in questionFilter.ReturnCodepublic Filter.ReturnCode filterColumn(byte[] buffer, int qualifierOffset, int qualifierLength)
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public byte[] toByteArray()
FilterBasetoByteArray in class FilterBasepublic static ColumnPrefixFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized ColumnPrefixFilter instanceColumnPrefixFilter made from bytesDeserializationExceptiontoByteArray()public Cell getNextCellHint(Cell kv)
FilterBasegetNextCellHint in class FilterBasepublic String toString()
FilterBasetoString in class FilterBaseCopyright © 2014 The Apache Software Foundation. All Rights Reserved.