Package org.apache.hadoop.hbase.filter
Class FirstKeyValueMatchingQualifiersFilter
java.lang.Object
org.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.FirstKeyOnlyFilter
org.apache.hadoop.hbase.filter.FirstKeyValueMatchingQualifiersFilter
Deprecated.
Deprecated in 2.0.0 and will be removed in 3.0.0.
The filter looks for the given columns in KeyValue. Once there is a match for any one of the
columns, it returns ReturnCode.NEXT_ROW for remaining KeyValues in the row.
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.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.Filter
Filter.ReturnCode
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFirstKeyValueMatchingQualifiersFilter
(Set<byte[]> qualifiers) Deprecated.Constructor which takes a set of columns. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
Deprecated.Returns true if and only if the fields of the filter that are serialized are equal to the corresponding fields in other.boolean
Deprecated.filterCell
(Cell c) Deprecated.A way to filter based on the column family, column qualifier and/or the column value.Deprecated.int
hashCode()
Deprecated.private boolean
Deprecated.parseFrom
(byte[] pbBytes) Deprecated.Parses a serialized representation ofFirstKeyValueMatchingQualifiersFilter
byte[]
Deprecated.Returns The filter serialized using pbMethods inherited from class org.apache.hadoop.hbase.filter.FirstKeyOnlyFilter
createFilterFromArguments, filterRowKey, hasFoundKV, reset, setFoundKV
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase
filterAllRemaining, filterRow, filterRowCells, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, toString, transformCell
Methods inherited from class org.apache.hadoop.hbase.filter.Filter
isReversed, setReversed
-
Field Details
-
qualifiers
Deprecated.
-
-
Constructor Details
-
FirstKeyValueMatchingQualifiersFilter
Deprecated.Constructor which takes a set of columns. As soon as first KeyValue matching any of these columns is found, filter moves to next row.- Parameters:
qualifiers
- the set of columns to me matched.
-
-
Method Details
-
filterKeyValue
Deprecated.Description copied from class:Filter
A way to filter based on the column family, column qualifier and/or the column value. Return code is described below. This allows filters to filter only certain number of columns, then terminate without matching ever column. If filterRowKey returns true, filterKeyValue needs to be consistent with it. filterKeyValue can assume that filterRowKey has already been called for the row. If your filter returnsReturnCode.NEXT_ROW
, it should returnReturnCode.NEXT_ROW
untilFilter.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 anIOException
.- Overrides:
filterKeyValue
in classFirstKeyOnlyFilter
- Parameters:
c
- the Cell in question- Returns:
- code as described below, Filter.ReturnCode.INCLUDE by default
- See Also:
-
filterCell
Deprecated.Description copied from class:Filter
A way to filter based on the column family, column qualifier and/or the column value. Return code is described below. This allows filters to filter only certain number of columns, then terminate without matching ever column. If filterRowKey returns true, filterCell needs to be consistent with it. filterCell can assume that filterRowKey has already been called for the row. If your filter returnsReturnCode.NEXT_ROW
, it should returnReturnCode.NEXT_ROW
untilFilter.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 anIOException
.- Overrides:
filterCell
in classFirstKeyOnlyFilter
- Parameters:
c
- the Cell in question- Returns:
- code as described below
- See Also:
-
hasOneMatchingQualifier
Deprecated. -
toByteArray
Deprecated.Returns The filter serialized using pb- Overrides:
toByteArray
in classFirstKeyOnlyFilter
- Returns:
- The filter serialized using pb
-
parseFrom
public static FirstKeyValueMatchingQualifiersFilter parseFrom(byte[] pbBytes) throws DeserializationException Deprecated.Parses a serialized representation ofFirstKeyValueMatchingQualifiersFilter
- Parameters:
pbBytes
- A pb serializedFirstKeyValueMatchingQualifiersFilter
instance- Returns:
- An instance of
FirstKeyValueMatchingQualifiersFilter
made frombytes
- Throws:
DeserializationException
- if an error occurred- See Also:
-
areSerializedFieldsEqual
Deprecated.Description copied from class:FirstKeyOnlyFilter
Returns true if and only if the fields of the filter that are serialized are equal to the corresponding fields in other. Used for testing.- Overrides:
areSerializedFieldsEqual
in classFirstKeyOnlyFilter
- Parameters:
o
- the other filter to compare with- Returns:
- true if and only if the fields of the filter that are serialized are equal to the corresponding fields in other. Used for testing.
-
equals
Deprecated.- Overrides:
equals
in classFirstKeyOnlyFilter
-
hashCode
Deprecated.- Overrides:
hashCode
in classFirstKeyOnlyFilter
-