|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.filter.Filter
org.apache.hadoop.hbase.filter.FilterBase
org.apache.hadoop.hbase.filter.SingleColumnValueFilter
org.apache.hadoop.hbase.filter.SingleColumnValueExcludeFilter
@InterfaceAudience.Public @InterfaceStability.Stable public class SingleColumnValueExcludeFilter
A Filter
that checks a single column value, but does not emit the
tested column. This will enable a performance boost over
SingleColumnValueFilter
, if the tested column value is not actually
needed as input (besides for the filtering itself).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.Filter |
---|
Filter.ReturnCode |
Field Summary |
---|
Fields inherited from class org.apache.hadoop.hbase.filter.SingleColumnValueFilter |
---|
columnFamily, columnQualifier, comparator, compareOp, filterIfMissing, foundColumn, latestVersionOnly, matchedColumn |
Constructor Summary | |
---|---|
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value)
Constructor for binary compare of the value of a single column. |
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator)
Constructor for binary compare of the value of a single column. |
protected |
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Constructor for protobuf deserialization only. |
Method Summary | |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments)
|
void |
filterRow(List<KeyValue> kvs)
Filters that never filter by modifying the returned List of KeyValues can inherit this implementation that does nothing. |
boolean |
hasFilterRow()
Fitlers that never filter by modifying the returned List of KeyValues can inherit this implementation that does nothing. |
static SingleColumnValueExcludeFilter |
parseFrom(byte[] pbBytes)
|
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization |
Methods inherited from class org.apache.hadoop.hbase.filter.SingleColumnValueFilter |
---|
filterKeyValue, filterRow, getComparator, getFamily, getFilterIfMissing, getLatestVersionOnly, getOperator, getQualifier, isFamilyEssential, reset, setFilterIfMissing, setLatestVersionOnly, toString |
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase |
---|
filterAllRemaining, filterRowKey, getNextKeyHint, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value)
family
- name of column familyqualifier
- name of column qualifiercompareOp
- operatorvalue
- value to compare column values againstpublic SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, ByteArrayComparable comparator)
Use the filterIfColumnMissing flag to set whether the rest of the columns in a row will be emitted if the specified column to check is not found in the row.
family
- name of column familyqualifier
- name of column qualifiercompareOp
- operatorcomparator
- Comparator to use.protected SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, ByteArrayComparable comparator, boolean filterIfMissing, boolean latestVersionOnly)
family
- qualifier
- compareOp
- comparator
- filterIfMissing
- latestVersionOnly
- Method Detail |
---|
public boolean hasFilterRow()
FilterBase
hasFilterRow
in class SingleColumnValueFilter
public void filterRow(List<KeyValue> kvs)
FilterBase
filterRow
in class FilterBase
kvs
- the list of keyvalues to be filteredpublic static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public byte[] toByteArray()
FilterBase
toByteArray
in class SingleColumnValueFilter
public static SingleColumnValueExcludeFilter parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes
- A pb serialized SingleColumnValueExcludeFilter
instance
SingleColumnValueExcludeFilter
made from bytes
DeserializationException
toByteArray()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |