public class SingleColumnValueExcludeFilter extends SingleColumnValueFilter
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).Filter.ReturnCode
columnFamily, columnQualifier
Constructor and Description |
---|
SingleColumnValueExcludeFilter()
Writable constructor, do not use.
|
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,
WritableByteArrayComparable comparator)
Constructor for binary compare of the value of a single column.
|
Modifier and Type | Method and Description |
---|---|
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.
|
filterKeyValue, filterRow, getComparator, getFamily, getFilterIfMissing, getLatestVersionOnly, getOperator, getQualifier, isFamilyEssential, readFields, reset, setFilterIfMissing, setLatestVersionOnly, toString, write
filterAllRemaining, filterRowKey, getNextKeyHint, isFamilyEssential, transform
public SingleColumnValueExcludeFilter()
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, WritableByteArrayComparable 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.public boolean hasFilterRow()
FilterBase
hasFilterRow
in interface Filter
hasFilterRow
in class FilterBase
public void filterRow(List<KeyValue> kvs)
FilterBase
filterRow
in interface Filter
filterRow
in class FilterBase
kvs
- the list of keyvalues to be filteredCopyright © 2014 The Apache Software Foundation. All Rights Reserved.