public final class TimestampsFilter extends ScanFilter
Note: Use of this filter overrides any time range/time stamp
options specified using Scanner.setTimeRange(long, long)
.
Modifier and Type | Field and Description |
---|---|
static int |
kTimestampsFilter |
Constructor and Description |
---|
TimestampsFilter(Collection<Long> timestamps)
Create a timestamp filter which filters all key values with a timestamp not
in the provided collection.
|
TimestampsFilter(Long... timestamps)
Create a timestamp filter which filters all key values with a timestamp
not in the provided timestamps.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getId() |
protected com.google.protobuf.ByteString |
getState() |
getFilterId
public static final int kTimestampsFilter
public TimestampsFilter(Collection<Long> timestamps)
timestamps
- collection of timestamps to keeppublic TimestampsFilter(Long... timestamps)
timestamps
- collection of timestamps to keepprotected com.google.protobuf.ByteString getState()
getState
in class ScanFilter
protected String getId()
getId
in class ScanFilter
Copyright ? 2010-2016, The Async HBase Authors