@InterfaceAudience.Public @InterfaceStability.Stable public class MultipleColumnPrefixFilter extends FilterBase
Filter.ReturnCode| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
hint |
protected TreeSet<byte[]> |
sortedPrefixes |
| Constructor and Description |
|---|
MultipleColumnPrefixFilter(byte[][] prefixes) |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
TreeSet<byte[]> |
createTreeSet() |
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 MultipleColumnPrefixFilter |
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.
|
protected String |
toString(int maxPrefixes) |
filterAllRemaining, filterRow, filterRow, filterRowCells, filterRowKey, getNextKeyHint, hasFilterRow, isFamilyEssential, reset, transform, transformCellprotected byte[] hint
protected TreeSet<byte[]> sortedPrefixes
public 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 MultipleColumnPrefixFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized MultipleColumnPrefixFilter instanceMultipleColumnPrefixFilter made from bytesDeserializationExceptiontoByteArray()public Cell getNextCellHint(Cell kv)
FilterBasegetNextCellHint in class FilterBasepublic TreeSet<byte[]> createTreeSet()
public String toString()
FilterBasetoString in class FilterBaseprotected String toString(int maxPrefixes)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.