@InterfaceAudience.Public @Deprecated 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 org.apache.hadoop.hbase.mapreduce.RowCounter.
Filter.ReturnCode| Modifier and Type | Field and Description |
|---|---|
private Set<byte[]> |
qualifiers
Deprecated.
|
| Constructor and Description |
|---|
FirstKeyValueMatchingQualifiersFilter(Set<byte[]> qualifiers)
Deprecated.
Constructor which takes a set of columns.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
areSerializedFieldsEqual(Filter o)
Deprecated.
Returns true if and only if the fields of the filter that are serialized are equal to the
corresponding fields in other.
|
boolean |
equals(Object obj)
Deprecated.
|
Filter.ReturnCode |
filterCell(Cell c)
Deprecated.
A way to filter based on the column family, column qualifier and/or the column value.
|
Filter.ReturnCode |
filterKeyValue(Cell c)
Deprecated.
|
int |
hashCode()
Deprecated.
|
private boolean |
hasOneMatchingQualifier(Cell c)
Deprecated.
|
static FirstKeyValueMatchingQualifiersFilter |
parseFrom(byte[] pbBytes)
Deprecated.
Parses a serialized representation of
FirstKeyValueMatchingQualifiersFilter |
byte[] |
toByteArray()
Deprecated.
Returns The filter serialized using pb
|
createFilterFromArguments, filterRowKey, hasFoundKV, reset, setFoundKVfilterAllRemaining, filterRow, filterRowCells, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, toString, transformCellisReversed, setReversedprivate Set<byte[]> qualifiers
public FirstKeyValueMatchingQualifiersFilter(Set<byte[]> qualifiers)
qualifiers - the set of columns to me matched.@Deprecated public Filter.ReturnCode filterKeyValue(Cell c)
FilterReturnCode.NEXT_ROW, it should return
ReturnCode.NEXT_ROW until Filter.reset() is called just in case the caller calls
for the next row. Concrete implementers can signal a failure condition in their code by
throwing an IOException.filterKeyValue in class FirstKeyOnlyFilterc - the Cell in questionFilter.ReturnCodepublic Filter.ReturnCode filterCell(Cell c)
FilterReturnCode.NEXT_ROW, it should return
ReturnCode.NEXT_ROW until Filter.reset() is called just in case the caller calls
for the next row. Concrete implementers can signal a failure condition in their code by
throwing an IOException.filterCell in class FirstKeyOnlyFilterc - the Cell in questionFilter.ReturnCodeprivate boolean hasOneMatchingQualifier(Cell c)
public byte[] toByteArray()
toByteArray in class FirstKeyOnlyFilterpublic static FirstKeyValueMatchingQualifiersFilter parseFrom(byte[] pbBytes) throws DeserializationException
FirstKeyValueMatchingQualifiersFilterpbBytes - A pb serialized FirstKeyValueMatchingQualifiersFilter instanceFirstKeyValueMatchingQualifiersFilter made from
bytesDeserializationException - if an error occurredtoByteArray()boolean areSerializedFieldsEqual(Filter o)
FirstKeyOnlyFilterareSerializedFieldsEqual in class FirstKeyOnlyFiltero - the other filter to compare withpublic boolean equals(Object obj)
equals in class FirstKeyOnlyFilterpublic int hashCode()
hashCode in class FirstKeyOnlyFilterCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.