@InterfaceAudience.Public 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, comparator, filterIfMissing, foundColumn, latestVersionOnly, matchedColumn, op
Modifier | Constructor and Description |
---|---|
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
byte[] value)
Deprecated.
|
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, ByteArrayComparable) |
protected |
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareFilter.CompareOp compareOp,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Deprecated.
Since 2.0.0. Will be removed in 3.0.0. Use
SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, ByteArrayComparable, boolean, boolean) |
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
byte[] value)
Constructor for binary compare of the value of a single column.
|
|
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator)
Constructor for binary compare of the value of a single column.
|
protected |
SingleColumnValueExcludeFilter(byte[] family,
byte[] qualifier,
CompareOperator op,
ByteArrayComparable comparator,
boolean filterIfMissing,
boolean latestVersionOnly)
Constructor for protobuf deserialization only.
|
Modifier and Type | Method and Description |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
boolean |
equals(Object obj) |
void |
filterRowCells(List<Cell> kvs)
Filters that never filter by modifying the returned List of Cells can
inherit this implementation that does nothing.
|
boolean |
hasFilterRow()
Fitlers that never filter by modifying the returned List of Cells can
inherit this implementation that does nothing.
|
int |
hashCode() |
static SingleColumnValueExcludeFilter |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray()
Return length 0 byte array for Filters that don't require special serialization
|
filterCell, filterKeyValue, filterRow, filterRowKey, getComparator, getCompareOperator, getFamily, getFilterIfMissing, getLatestVersionOnly, getOperator, getQualifier, isFamilyEssential, reset, setFilterIfMissing, setLatestVersionOnly, toString
filterAllRemaining, filterRowKey, getNextCellHint, transformCell
isReversed, setReversed
@Deprecated 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 against
SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, byte[])
public SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareOperator op, byte[] value)
family
- name of column familyqualifier
- name of column qualifierop
- operatorvalue
- value to compare column values against@Deprecated public SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, ByteArrayComparable comparator)
SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, ByteArrayComparable)
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 SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareOperator op, 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 qualifierop
- operatorcomparator
- Comparator to use.@Deprecated protected SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, ByteArrayComparable comparator, boolean filterIfMissing, boolean latestVersionOnly)
SingleColumnValueExcludeFilter(byte[], byte[], CompareOperator, ByteArrayComparable, boolean, boolean)
family
- qualifier
- compareOp
- comparator
- filterIfMissing
- latestVersionOnly
- protected SingleColumnValueExcludeFilter(byte[] family, byte[] qualifier, CompareOperator op, ByteArrayComparable comparator, boolean filterIfMissing, boolean latestVersionOnly)
family
- qualifier
- op
- comparator
- filterIfMissing
- latestVersionOnly
- public boolean hasFilterRow()
org.apache.hadoop.hbase.filter.FilterBase
hasFilterRow
in class SingleColumnValueFilter
public void filterRowCells(List<Cell> kvs)
org.apache.hadoop.hbase.filter.FilterBase
IOException
.filterRowCells
in class org.apache.hadoop.hbase.filter.FilterBase
kvs
- the list of Cells to be filteredpublic static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public byte[] toByteArray()
org.apache.hadoop.hbase.filter.FilterBase
toByteArray
in class SingleColumnValueFilter
public static SingleColumnValueExcludeFilter parseFrom(byte[] pbBytes) throws org.apache.hadoop.hbase.exceptions.DeserializationException
pbBytes
- A pb serialized SingleColumnValueExcludeFilter
instanceSingleColumnValueExcludeFilter
made from bytes
org.apache.hadoop.hbase.exceptions.DeserializationException
toByteArray()
public boolean equals(Object obj)
equals
in class SingleColumnValueFilter
public int hashCode()
hashCode
in class SingleColumnValueFilter
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.