@InterfaceAudience.Public @InterfaceStability.Stable public class FirstKeyValueMatchingQualifiersFilter extends FirstKeyOnlyFilter
Note : It may emit KVs which do not have the given columns in them, if
these KVs happen to occur before a KV which does have a match. Given this
caveat, this filter is only useful for special cases
like RowCounter
.
Filter.ReturnCode
Constructor and Description |
---|
FirstKeyValueMatchingQualifiersFilter(Set<byte[]> qualifiers)
Constructor which takes a set of columns.
|
Modifier and Type | Method and Description |
---|---|
Filter.ReturnCode |
filterKeyValue(Cell v)
Filters that dont filter by key value can inherit this implementation that
includes all Cells.
|
static FirstKeyValueMatchingQualifiersFilter |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
createFilterFromArguments, hasFoundKV, reset, setFoundKV
filterAllRemaining, filterRow, filterRow, filterRowCells, filterRowKey, getNextCellHint, getNextKeyHint, hasFilterRow, isFamilyEssential, toString, transform, transformCell
isReversed, setReversed
public FirstKeyValueMatchingQualifiersFilter(Set<byte[]> qualifiers)
qualifiers
- the set of columns to me matched.public Filter.ReturnCode filterKeyValue(Cell v)
org.apache.hadoop.hbase.filter.FilterBase
filterKeyValue
in class FirstKeyOnlyFilter
v
- the Cell in questionFilter.ReturnCode
public byte[] toByteArray()
org.apache.hadoop.hbase.filter.FilterBase
toByteArray
in class FirstKeyOnlyFilter
public static FirstKeyValueMatchingQualifiersFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes
- A pb serialized FirstKeyValueMatchingQualifiersFilter
instanceFirstKeyValueMatchingQualifiersFilter
made from bytes
org.apache.hadoop.hbase.exceptions.DeserializationException
toByteArray()
Copyright © 2015 The Apache Software Foundation. All rights reserved.