@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, transformCell
isReversed, setReversed
protected byte[] hint
protected TreeSet<byte[]> sortedPrefixes
public byte[][] getPrefix()
public Filter.ReturnCode filterKeyValue(Cell kv)
FilterBase
filterKeyValue
in class FilterBase
kv
- the Cell in questionFilter.ReturnCode
public Filter.ReturnCode filterColumn(byte[] buffer, int qualifierOffset, int qualifierLength)
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public byte[] toByteArray()
FilterBase
toByteArray
in class FilterBase
public static MultipleColumnPrefixFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes
- A pb serialized MultipleColumnPrefixFilter
instanceMultipleColumnPrefixFilter
made from bytes
DeserializationException
toByteArray()
public Cell getNextCellHint(Cell kv)
FilterBase
getNextCellHint
in class FilterBase
public TreeSet<byte[]> createTreeSet()
public String toString()
FilterBase
toString
in class FilterBase
protected String toString(int maxPrefixes)
Copyright © 2014 The Apache Software Foundation. All rights reserved.