|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.filter.RegExpRowFilter
Filter
instead.
public class RegExpRowFilter
Implementation of RowFilterInterface that can filter by rowkey regular
expression and/or individual column values (equals comparison only). Multiple
column filters imply an implicit conjunction of filter criteria.
Note that column value filtering in this interface has been replaced by
ColumnValueFilter
.
Constructor Summary | |
---|---|
RegExpRowFilter()
Deprecated. Default constructor, filters nothing. |
|
RegExpRowFilter(String rowKeyRegExp)
Deprecated. Constructor that takes a row key regular expression to filter on. |
|
RegExpRowFilter(String rowKeyRegExp,
Map<byte[],Cell> columnFilter)
Deprecated. Column filtering has been replaced by ColumnValueFilter
Constructor that takes a row key regular expression to filter on. |
Method Summary | |
---|---|
boolean |
filterAllRemaining()
Deprecated. Determines if the filter has decided that all remaining results should be filtered (skipped). |
boolean |
filterColumn(byte[] rowKey,
byte[] colKey,
byte[] data)
Deprecated. Filters on row key, column name, and column value. |
boolean |
filterColumn(byte[] rowKey,
int roffset,
int rlength,
byte[] colunmName,
int coffset,
int clength,
byte[] columnValue,
int voffset,
int vlength)
Deprecated. Filters on row key, column name, and column value. |
boolean |
filterRow(List<KeyValue> kvs)
Deprecated. Filter on the fully assembled row. |
boolean |
filterRow(SortedMap<byte[],Cell> columns)
Deprecated. Filter on the fully assembled row. |
boolean |
filterRowKey(byte[] rowKey)
Deprecated. Filters on just a row key. |
boolean |
filterRowKey(byte[] rowKey,
int offset,
int length)
Deprecated. Filters on just a row key. |
boolean |
processAlways()
Deprecated. Returns whether or not the filter should always be processed in any filtering call. |
void |
readFields(DataInput in)
Deprecated. |
void |
reset()
Deprecated. Resets the state of the filter. |
void |
rowProcessed(boolean filtered,
byte[] rowKey)
Deprecated. Called to let filter know the final decision (to pass or filter) on a given row. |
void |
rowProcessed(boolean filtered,
byte[] key,
int offset,
int length)
Deprecated. Called to let filter know the final decision (to pass or filter) on a given row. |
void |
setColumnFilter(byte[] colKey,
byte[] value)
Deprecated. Column filtering has been replaced by ColumnValueFilter
Specify a value that must be matched for the given column. |
void |
setColumnFilters(Map<byte[],Cell> columnFilter)
Deprecated. Column filtering has been replaced by ColumnValueFilter
Set column filters for a number of columns. |
void |
validate(byte[][] columns)
Deprecated. Validates that this filter applies only to a subset of the given columns. |
void |
write(DataOutput out)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegExpRowFilter()
public RegExpRowFilter(String rowKeyRegExp)
rowKeyRegExp
- @Deprecated public RegExpRowFilter(String rowKeyRegExp, Map<byte[],Cell> columnFilter)
ColumnValueFilter
Constructor that takes a row key regular expression to filter on.
rowKeyRegExp
- columnFilter
- Method Detail |
---|
public void rowProcessed(boolean filtered, byte[] rowKey)
RowFilterInterface
rowProcessed
in interface RowFilterInterface
RowFilterSet
public void rowProcessed(boolean filtered, byte[] key, int offset, int length)
RowFilterInterface
rowProcessed
in interface RowFilterInterface
RowFilterSet
public boolean processAlways()
RowFilterInterface
processAlways
in interface RowFilterInterface
@Deprecated public void setColumnFilter(byte[] colKey, byte[] value)
ColumnValueFilter
Specify a value that must be matched for the given column.
colKey
- the column to match onvalue
- the value that must equal the stored value.@Deprecated public void setColumnFilters(Map<byte[],Cell> columnFilter)
ColumnValueFilter
Set column filters for a number of columns.
columnFilter
- Map of columns with value criteria.public void reset()
RowFilterInterface
reset
in interface RowFilterInterface
public boolean filterAllRemaining()
RowFilterInterface
filterAllRemaining
in interface RowFilterInterface
public boolean filterRowKey(byte[] rowKey)
RowFilterInterface
filterRowKey
in interface RowFilterInterface
public boolean filterRowKey(byte[] rowKey, int offset, int length)
RowFilterInterface
filterRowKey
in interface RowFilterInterface
public boolean filterColumn(byte[] rowKey, byte[] colKey, byte[] data)
RowFilterInterface
filterColumn
in interface RowFilterInterface
rowKey
- row key to filter on.colKey
- column name to filter ondata
- column value to filter on
public boolean filterColumn(byte[] rowKey, int roffset, int rlength, byte[] colunmName, int coffset, int clength, byte[] columnValue, int voffset, int vlength)
RowFilterInterface
filterColumn
in interface RowFilterInterface
rowKey
- row key to filter on.colunmName
- column name to filter oncolumnValue
- column value to filter on
public boolean filterRow(SortedMap<byte[],Cell> columns)
RowFilterInterface
filterRow
in interface RowFilterInterface
public boolean filterRow(List<KeyValue> kvs)
RowFilterInterface
filterRow
in interface RowFilterInterface
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void validate(byte[][] columns)
RowFilterInterface
validate
in interface RowFilterInterface
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 |