|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.filter.RowFilterSet
public class RowFilterSet
Implementation of RowFilterInterface that represents a set of RowFilters which will be evaluated with a specified boolean operator MUST_PASS_ALL (!AND) or MUST_PASS_ONE (!OR). Since you can use RowFilterSets as children of RowFilterSet, you can create a hierarchy of filters to be evaluated.
| Nested Class Summary | |
|---|---|
static class |
RowFilterSet.Operator
set operator |
| Constructor Summary | |
|---|---|
RowFilterSet()
Default constructor, filters nothing. |
|
RowFilterSet(RowFilterSet.Operator operator,
Set<RowFilterInterface> rowFilters)
Constructor that takes a set of RowFilters and an operator. |
|
RowFilterSet(Set<RowFilterInterface> rowFilters)
Constructor that takes a set of RowFilters. |
|
| Method Summary | |
|---|---|
boolean |
filterAllRemaining()
Determines if the filter has decided that all remaining results should be filtered (skipped). |
boolean |
filterColumn(byte[] rowKey,
byte[] colKey,
byte[] data)
Filters on row key, column name, and column value. |
boolean |
filterRow(SortedMap<byte[],Cell> columns)
Filter on the fully assembled row. |
boolean |
filterRowKey(byte[] rowKey)
Filters on just a row key. |
boolean |
processAlways()
Returns whether or not the filter should always be processed in any filtering call. |
void |
readFields(DataInput in)
|
void |
reset()
Resets the state of the filter. |
void |
rowProcessed(boolean filtered,
byte[] rowKey)
Called to let filter know the final decision (to pass or filter) on a given row. |
void |
validate(byte[][] columns)
Validates that this filter applies only to a subset of the given columns. |
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 RowFilterSet()
public RowFilterSet(Set<RowFilterInterface> rowFilters)
rowFilters -
public RowFilterSet(RowFilterSet.Operator operator,
Set<RowFilterInterface> rowFilters)
operator - Operator to process filter set with.rowFilters - Set of row filters.| Method Detail |
|---|
public void validate(byte[][] columns)
RowFilterInterface
validate in interface RowFilterInterfacepublic void reset()
RowFilterInterface
reset in interface RowFilterInterface
public void rowProcessed(boolean filtered,
byte[] rowKey)
RowFilterInterface
rowProcessed in interface RowFilterInterfaceRowFilterSetpublic boolean processAlways()
RowFilterInterface
processAlways in interface RowFilterInterfacepublic boolean filterAllRemaining()
RowFilterInterface
filterAllRemaining in interface RowFilterInterfacepublic boolean filterRowKey(byte[] rowKey)
RowFilterInterface
filterRowKey in interface RowFilterInterface
public boolean filterColumn(byte[] rowKey,
byte[] colKey,
byte[] data)
RowFilterInterface
filterColumn in interface RowFilterInterfacerowKey - row key to filter on.colKey - column name to filter ondata - column value to filter on
public boolean filterRow(SortedMap<byte[],Cell> columns)
RowFilterInterface
filterRow in interface RowFilterInterface
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.WritableIOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.WritableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||