|
||||||||||
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.
Field Summary | |
---|---|
protected org.apache.hadoop.io.Text |
stopRowKey
|
Constructor Summary | |
---|---|
StopRowFilter()
Default constructor, filters nothing. |
|
StopRowFilter(org.apache.hadoop.io.Text stopRowKey)
Constructor that takes a stopRowKey on which to filter |
Method Summary | |
---|---|
boolean |
filter(org.apache.hadoop.io.Text rowKey)
Filters on just a row key. |
boolean |
filter(org.apache.hadoop.io.Text rowKey,
org.apache.hadoop.io.Text colKey,
byte[] data)
Filters on row key and/or a column key. Because StopRowFilter does not examine column information, this method defaults to calling the rowKey-only version of filter. |
boolean |
filterAllRemaining()
Determines if the filter has decided that all remaining results should be filtered (skipped). |
boolean |
filterNotNull(SortedMap<org.apache.hadoop.io.Text,byte[]> columns)
Filters a row if: 1) The given row (@param columns) has a columnKey expected to be null AND the value associated with that columnKey is non-null. Because StopRowFilter does not examine column information, this method defaults to calling filterAllRemaining(). |
org.apache.hadoop.io.Text |
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,
org.apache.hadoop.io.Text rowKey)
Called to let filter know the final decision (to pass or filter) on a given row. |
void |
validate(org.apache.hadoop.io.Text[] 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 |
Field Detail |
---|
protected org.apache.hadoop.io.Text stopRowKey
Constructor Detail |
---|
public StopRowFilter()
public StopRowFilter(org.apache.hadoop.io.Text stopRowKey)
stopRowKey
- rowKey to filter on.Method Detail |
---|
public org.apache.hadoop.io.Text getStopRowKey()
public void validate(org.apache.hadoop.io.Text[] columns)
validate
in interface RowFilterInterface
public void reset()
reset
in interface RowFilterInterface
public void rowProcessed(boolean filtered, org.apache.hadoop.io.Text rowKey)
rowProcessed
in interface RowFilterInterface
RowFilterSet
public boolean processAlways()
processAlways
in interface RowFilterInterface
public boolean filterAllRemaining()
filterAllRemaining
in interface RowFilterInterface
public boolean filter(org.apache.hadoop.io.Text rowKey)
filter
in interface RowFilterInterface
public boolean filter(org.apache.hadoop.io.Text rowKey, org.apache.hadoop.io.Text colKey, byte[] data)
filter
in interface RowFilterInterface
rowKey
- row key to filter on. May be null for no filtering of row key.colKey
- column whose data will be filtereddata
- column value
public boolean filterNotNull(SortedMap<org.apache.hadoop.io.Text,byte[]> columns)
filterNotNull
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 |