com.google.cloud.bigtable.hbase.filter
Class BigtableFilter
- java.lang.Object
-
- org.apache.hadoop.hbase.filter.Filter
-
- org.apache.hadoop.hbase.filter.FilterBase
-
- com.google.cloud.bigtable.hbase.filter.BigtableFilter
-
- All Implemented Interfaces:
- Serializable
public class BigtableFilter extends FilterBase implements Serializable
An HBaseFilter
that wraps a Cloud BigtableFilters.Filter
. Generally, users should opt for a pure HBaseFilter
. There are complex cases where a Cloud BigtableFilters.Filter
can express a more robust expression than the HBase semantics, or can be used to express an expression that's more performant than a translation of a complex HBaseFilterList
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.filter.Filter
Filter.ReturnCode
-
-
Constructor Summary
Constructors Constructor and Description BigtableFilter(com.google.cloud.bigtable.data.v2.models.Filters.Filter filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean
equals(Object obj)
Filter.ReturnCode
filterKeyValue(Cell cell)
com.google.cloud.bigtable.data.v2.models.Filters.Filter
getFilter()
static BigtableFilter
parseFrom(byte[] bytes)
byte[]
toByteArray()
-
Methods inherited from class org.apache.hadoop.hbase.filter.FilterBase
createFilterFromArguments, filterAllRemaining, filterRow, filterRowCells, filterRowKey, filterRowKey, getNextCellHint, hasFilterRow, isFamilyEssential, reset, toString, transformCell
-
Methods inherited from class org.apache.hadoop.hbase.filter.Filter
filterCell, isReversed, setReversed
-
-
-
-
Constructor Detail
-
BigtableFilter
public BigtableFilter(com.google.cloud.bigtable.data.v2.models.Filters.Filter filter)
-
-
Method Detail
-
filterKeyValue
public Filter.ReturnCode filterKeyValue(Cell cell)
- Overrides:
filterKeyValue
in classFilter
-
getFilter
public com.google.cloud.bigtable.data.v2.models.Filters.Filter getFilter()
-
toByteArray
public byte[] toByteArray()
- Overrides:
toByteArray
in classFilterBase
-
parseFrom
public static BigtableFilter parseFrom(byte[] bytes) throws DeserializationException
- Throws:
DeserializationException
-
-