|
||||||||||
| 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.hbql.filter.RecordFilterList
public class RecordFilterList
Implementation of Filter that represents an ordered List of Filters
which will be evaluated with a specified boolean operator RecordFilterList.Operator.MUST_PASS_ALL
(!AND) or RecordFilterList.Operator.MUST_PASS_ONE (!OR).
Since you can use Filter Lists as children of Filter Lists, you can create a
hierarchy of filters to be evaluated.
Defaults to RecordFilterList.Operator.MUST_PASS_ALL.
TODO: Fix creation of Configuration on serialization and deserialization.
| Nested Class Summary | |
|---|---|
static class |
RecordFilterList.Operator
set operator |
| Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.filter.Filter |
|---|
org.apache.hadoop.hbase.filter.Filter.ReturnCode |
| Constructor Summary | |
|---|---|
RecordFilterList()
Default constructor, filters nothing. |
|
RecordFilterList(List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
Constructor that takes a set of Filters. |
|
RecordFilterList(RecordFilterList.Operator operator)
Constructor that takes an operator. |
|
RecordFilterList(RecordFilterList.Operator operator,
List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
Constructor that takes a set of Filters and an operator. |
|
| Method Summary | |
|---|---|
void |
addFilter(org.apache.hadoop.hbase.filter.Filter filter)
Add a filter. |
boolean |
filterAllRemaining()
|
org.apache.hadoop.hbase.filter.Filter.ReturnCode |
filterKeyValue(org.apache.hadoop.hbase.KeyValue v)
|
boolean |
filterRow()
|
boolean |
filterRowKey(byte[] rowKey,
int offset,
int length)
|
List<org.apache.hadoop.hbase.filter.Filter> |
getFilters()
Get the filters. |
RecordFilterList.Operator |
getOperator()
Get the operator. |
void |
readFields(DataInput in)
|
void |
reset()
|
void |
write(DataOutput out)
|
| Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
|---|
filterRow, getNextKeyHint, hasFilterRow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RecordFilterList()
public RecordFilterList(List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
Filters. The default operator
MUST_PASS_ALL is assumed.
rowFilters - public RecordFilterList(RecordFilterList.Operator operator)
operator - Operator to process filter set with.
public RecordFilterList(RecordFilterList.Operator operator,
List<org.apache.hadoop.hbase.filter.Filter> rowFilters)
Filters and an operator.
operator - Operator to process filter set with.rowFilters - Set of row filters.| Method Detail |
|---|
public RecordFilterList.Operator getOperator()
public List<org.apache.hadoop.hbase.filter.Filter> getFilters()
public void addFilter(org.apache.hadoop.hbase.filter.Filter filter)
filter - public void reset()
reset in interface org.apache.hadoop.hbase.filter.Filterreset in class org.apache.hadoop.hbase.filter.FilterBase
public boolean filterRowKey(byte[] rowKey,
int offset,
int length)
filterRowKey in interface org.apache.hadoop.hbase.filter.FilterfilterRowKey in class org.apache.hadoop.hbase.filter.FilterBasepublic boolean filterAllRemaining()
filterAllRemaining in interface org.apache.hadoop.hbase.filter.FilterfilterAllRemaining in class org.apache.hadoop.hbase.filter.FilterBasepublic org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.KeyValue v)
filterKeyValue in interface org.apache.hadoop.hbase.filter.FilterfilterKeyValue in class org.apache.hadoop.hbase.filter.FilterBasepublic boolean filterRow()
filterRow in interface org.apache.hadoop.hbase.filter.FilterfilterRow in class org.apache.hadoop.hbase.filter.FilterBase
public void readFields(DataInput in)
throws IOException
IOException
public void write(DataOutput out)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||