|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RowFilterInterface
Interface used for row-level filters applied to HRegion.HScanner scan results during calls to next().
Method Summary | |
---|---|
void |
acceptedRow(Text key)
Called to let filter know that the specified row has been included in the results (passed all filtering). |
boolean |
filter(Text rowKey)
Filters on just a row key. |
boolean |
filter(Text rowKey,
Text colKey,
byte[] data)
Filters on row key and/or a column key. |
boolean |
filterAllRemaining()
Determines if the filter has decided that all remaining results should be filtered (skipped). |
boolean |
filterNotNull(TreeMap<Text,byte[]> columns)
Filters row if given columns are non-null and have null criteria or if there exists criteria on columns not included in the column set. |
void |
reset()
Resets the state of the filter. |
void |
validate(Text[] columns)
Validates that this filter applies only to a subset of the given columns. |
Methods inherited from interface org.apache.hadoop.io.Writable |
---|
readFields, write |
Method Detail |
---|
void reset()
void acceptedRow(Text key)
key
- RowFilterSet
boolean filterAllRemaining()
boolean filter(Text rowKey)
rowKey
-
boolean filter(Text rowKey, Text colKey, byte[] data)
rowKey
- row key to filter on. May be null for no filtering of row key.colKey
- column whose data will be filtereddata
- column value
boolean filterNotNull(TreeMap<Text,byte[]> columns)
columns
-
void validate(Text[] columns)
columns
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |