|
||||||||||
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.PrefixFilter
public class PrefixFilter
Pass results that have same row prefix.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.filter.Filter |
---|
Filter.ReturnCode |
Field Summary | |
---|---|
protected boolean |
filterRow
|
protected boolean |
passedPrefix
|
protected byte[] |
prefix
|
Constructor Summary | |
---|---|
PrefixFilter()
|
|
PrefixFilter(byte[] prefix)
|
Method Summary | |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments)
|
boolean |
filterAllRemaining()
Filters that never filter all remaining can inherit this implementation that never stops the filter early. |
Filter.ReturnCode |
filterKeyValue(KeyValue ignored)
Filters that dont filter by key value can inherit this implementation that includes all KeyValues. |
boolean |
filterRow()
Filters that never filter by rows based on previously gathered state from FilterBase.filterKeyValue(KeyValue) can inherit this implementation that
never filters a row. |
boolean |
filterRowKey(byte[] buffer,
int offset,
int length)
Filters that do not filter by row key can inherit this implementation that never filters anything. |
byte[] |
getPrefix()
|
void |
readFields(DataInput in)
|
void |
reset()
Filters that are purely stateless and do nothing in their reset() methods can inherit this null/empty implementation. |
String |
toString()
Return filter's info for debugging and logging purpose. |
void |
write(DataOutput out)
|
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
---|
filterRow, getNextKeyHint, hasFilterRow, isFamilyEssential, isFamilyEssential, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte[] prefix
protected boolean passedPrefix
protected boolean filterRow
Constructor Detail |
---|
public PrefixFilter(byte[] prefix)
public PrefixFilter()
Method Detail |
---|
public byte[] getPrefix()
public boolean filterRowKey(byte[] buffer, int offset, int length)
FilterBase
filterRowKey
in interface Filter
filterRowKey
in class FilterBase
buffer
- buffer containing row keyoffset
- offset into buffer where row key startslength
- length of the row key
public Filter.ReturnCode filterKeyValue(KeyValue ignored)
FilterBase
filterKeyValue
in interface Filter
filterKeyValue
in class FilterBase
ignored
- the KeyValue in question
Filter.ReturnCode
public boolean filterRow()
FilterBase
FilterBase.filterKeyValue(KeyValue)
can inherit this implementation that
never filters a row.
filterRow
in interface Filter
filterRow
in class FilterBase
public void reset()
FilterBase
reset
in interface Filter
reset
in class FilterBase
public boolean filterAllRemaining()
FilterBase
filterAllRemaining
in interface Filter
filterAllRemaining
in class FilterBase
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public void write(DataOutput out) throws IOException
IOException
public void readFields(DataInput in) 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 |