|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 Filter s. |
|
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 Filter s 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 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)
Filter
s. 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)
Filter
s 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.Filter
public boolean filterRowKey(byte[] rowKey, int offset, int length)
filterRowKey
in interface org.apache.hadoop.hbase.filter.Filter
public boolean filterAllRemaining()
filterAllRemaining
in interface org.apache.hadoop.hbase.filter.Filter
public org.apache.hadoop.hbase.filter.Filter.ReturnCode filterKeyValue(org.apache.hadoop.hbase.KeyValue v)
filterKeyValue
in interface org.apache.hadoop.hbase.filter.Filter
public boolean filterRow()
filterRow
in interface org.apache.hadoop.hbase.filter.Filter
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |