|
||||||||||
| 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)
Because StopRowFilter does not examine column information, this method defaults to calling the rowKey-only version of filter. |
boolean |
filterRow(SortedMap<byte[],Cell> columns)
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)
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)
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)
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 | |||||||||