|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.filter.StopRowFilter
public class StopRowFilter
Implementation of RowFilterInterface that filters out rows greater than or equal to a specified rowKey.
Constructor Summary | |
---|---|
StopRowFilter()
Default constructor, filters nothing. |
|
StopRowFilter(byte[] stopRowKey)
Constructor that takes a stopRowKey on which to filter |
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. Because StopRowFilter does not examine column information, this method defaults to calling the rowKey-only version of filter. |
boolean |
filterRow(SortedMap<byte[],Cell> columns)
Filter on the fully assembled row. Because StopRowFilter does not examine column information, this method defaults to calling filterAllRemaining(). |
boolean |
filterRowKey(byte[] rowKey)
Filters on just a row key. |
byte[] |
getStopRowKey()
An accessor for the stopRowKey |
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 StopRowFilter()
public StopRowFilter(byte[] stopRowKey)
stopRowKey
- rowKey to filter on.Method Detail |
---|
public byte[] getStopRowKey()
public void validate(byte[][] columns)
validate
in interface RowFilterInterface
public void reset()
reset
in interface RowFilterInterface
public void rowProcessed(boolean filtered, byte[] rowKey)
rowProcessed
in interface RowFilterInterface
RowFilterSet
public boolean processAlways()
processAlways
in interface RowFilterInterface
public boolean filterAllRemaining()
filterAllRemaining
in interface RowFilterInterface
public boolean filterRowKey(byte[] rowKey)
filterRowKey
in interface RowFilterInterface
public boolean filterColumn(byte[] rowKey, byte[] colKey, byte[] data)
filterColumn
in interface RowFilterInterface
rowKey
- row key to filter on.colKey
- column name to filter ondata
- column value to filter on
public boolean filterRow(SortedMap<byte[],Cell> columns)
filterRow
in interface RowFilterInterface
columns
-
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 |