com.google.cloud.bigtable.hbase.filter
Class TimestampRangeFilter
- java.lang.Object
-
- org.apache.hadoop.hbase.filter.Filter
-
- org.apache.hadoop.hbase.filter.FilterBase
-
- com.google.cloud.bigtable.hbase.filter.TimestampRangeFilter
-
- All Implemented Interfaces:
- Serializable
public class TimestampRangeFilter extends FilterBase implements Serializable
Defines a filter that only returns cells whose version matches a start and end (both are inclusive)- 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 TimestampRangeFilter(long startTimestamp, long endTimestamp)
-
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)
This is for HBase compatibility, and will not be used for Cloud Bigtablelong
getEndTimestampExclusive()
long
getStartTimestampInclusive()
static TimestampRangeFilter
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
-
TimestampRangeFilter
public TimestampRangeFilter(long startTimestamp, long endTimestamp)
-
-
Method Detail
-
getStartTimestampInclusive
public long getStartTimestampInclusive()
-
getEndTimestampExclusive
public long getEndTimestampExclusive()
-
filterKeyValue
public Filter.ReturnCode filterKeyValue(Cell cell) throws IOException
This is for HBase compatibility, and will not be used for Cloud Bigtable- Overrides:
filterKeyValue
in classFilter
- Throws:
IOException
-
toByteArray
public byte[] toByteArray() throws IOException
- Overrides:
toByteArray
in classFilterBase
- Throws:
IOException
-
parseFrom
public static TimestampRangeFilter parseFrom(byte[] bytes) throws DeserializationException
- Throws:
DeserializationException
-
-