|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.FuzzyRowFilter
@InterfaceAudience.Public @InterfaceStability.Evolving public class FuzzyRowFilter
Filters data based on fuzzy row key. Performs fast-forwards during scanning. It takes pairs (row key, fuzzy info) to match row keys. Where fuzzy info is a byte array with 0 or 1 as its values:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.Filter |
---|
Filter.ReturnCode |
Constructor Summary | |
---|---|
FuzzyRowFilter(List<Pair<byte[],byte[]>> fuzzyKeysData)
|
Method Summary | |
---|---|
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that never stops the filter early. |
Filter.ReturnCode |
filterKeyValue(KeyValue kv)
Filters that dont filter by key value can inherit this implementation that includes all KeyValues. |
KeyValue |
getNextKeyHint(KeyValue currentKV)
Filters that are not sure which key must be next seeked to, can inherit this implementation that, by default, returns a null KeyValue. |
static FuzzyRowFilter |
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. |
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
---|
createFilterFromArguments, filterRow, filterRow, filterRowKey, hasFilterRow, isFamilyEssential, reset, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FuzzyRowFilter(List<Pair<byte[],byte[]>> fuzzyKeysData)
Method Detail |
---|
public Filter.ReturnCode filterKeyValue(KeyValue kv)
FilterBase
filterKeyValue
in class FilterBase
kv
- the KeyValue in question
Filter.ReturnCode
public KeyValue getNextKeyHint(KeyValue currentKV)
FilterBase
getNextKeyHint
in class FilterBase
public boolean filterAllRemaining()
FilterBase
filterAllRemaining
in class FilterBase
public byte[] toByteArray()
FilterBase
toByteArray
in class FilterBase
public static FuzzyRowFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes
- A pb serialized FuzzyRowFilter
instance
FuzzyRowFilter
made from bytes
DeserializationException
toByteArray()
public String toString()
FilterBase
toString
in class FilterBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |