@InterfaceAudience.Public
@InterfaceStability.Stable
public class ColumnPrefixFilter
extends org.apache.hadoop.hbase.filter.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, transformCell
isReversed, setReversed
public byte[] getPrefix()
public Filter.ReturnCode filterKeyValue(Cell kv)
org.apache.hadoop.hbase.filter.FilterBase
filterKeyValue
in class org.apache.hadoop.hbase.filter.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()
org.apache.hadoop.hbase.filter.FilterBase
toByteArray
in class org.apache.hadoop.hbase.filter.FilterBase
public static ColumnPrefixFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes
- A pb serialized ColumnPrefixFilter
instanceColumnPrefixFilter
made from bytes
org.apache.hadoop.hbase.exceptions.DeserializationException
toByteArray()
public Cell getNextCellHint(Cell kv)
org.apache.hadoop.hbase.filter.FilterBase
getNextCellHint
in class org.apache.hadoop.hbase.filter.FilterBase
public String toString()
org.apache.hadoop.hbase.filter.FilterBase
toString
in class org.apache.hadoop.hbase.filter.FilterBase
Copyright © 2015 The Apache Software Foundation. All rights reserved.