|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.FuzzyRowFilter
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 interface org.apache.hadoop.hbase.filter.Filter |
---|
Filter.ReturnCode |
Constructor Summary | |
---|---|
FuzzyRowFilter()
Used internally for reflection, do NOT use it directly |
|
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. |
void |
readFields(DataInput dataInput)
|
String |
toString()
Return filter's info for debugging and logging purpose. |
void |
write(DataOutput dataOutput)
|
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
---|
createFilterFromArguments, filterRow, filterRow, filterRowKey, hasFilterRow, isFamilyEssential, isFamilyEssential, reset, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FuzzyRowFilter()
public FuzzyRowFilter(List<Pair<byte[],byte[]>> fuzzyKeysData)
Method Detail |
---|
public Filter.ReturnCode filterKeyValue(KeyValue kv)
FilterBase
filterKeyValue
in interface Filter
filterKeyValue
in class FilterBase
kv
- the KeyValue in question
Filter.ReturnCode
public KeyValue getNextKeyHint(KeyValue currentKV)
FilterBase
getNextKeyHint
in interface Filter
getNextKeyHint
in class FilterBase
public boolean filterAllRemaining()
FilterBase
filterAllRemaining
in interface Filter
filterAllRemaining
in class FilterBase
public void write(DataOutput dataOutput) throws IOException
IOException
public void readFields(DataInput dataInput) throws IOException
IOException
public String toString()
FilterBase
toString
in class FilterBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |