public class TimestampsFilter extends FilterBase
Note: Use of this filter overrides any time range/time stamp
options specified using Get.setTimeRange(long, long)
,
Scan.setTimeRange(long, long)
, Get.setTimeStamp(long)
,
or Scan.setTimeStamp(long)
.
Filter.ReturnCode
Constructor and Description |
---|
TimestampsFilter()
Used during deserialization.
|
TimestampsFilter(List<Long> timestamps)
Constructor for filter that retains only those
cells whose timestamp (version) is in the specified
list of timestamps.
|
Modifier and Type | Method and Description |
---|---|
static Filter |
createFilterFromArguments(ArrayList<byte[]> filterArguments) |
Filter.ReturnCode |
filterKeyValue(KeyValue v)
Filters that dont filter by key value can inherit this implementation that
includes all KeyValues.
|
long |
getMin()
Gets the minimum timestamp requested by filter.
|
List<Long> |
getTimestamps() |
void |
readFields(DataInput in) |
String |
toString()
Return filter's info for debugging and logging purpose.
|
protected String |
toString(int maxTimestamps) |
void |
write(DataOutput out) |
filterAllRemaining, filterRow, filterRow, filterRowKey, getNextKeyHint, hasFilterRow, isFamilyEssential, isFamilyEssential, reset, transform
public TimestampsFilter()
public long getMin()
public Filter.ReturnCode filterKeyValue(KeyValue v)
FilterBase
filterKeyValue
in interface Filter
filterKeyValue
in class FilterBase
v
- the KeyValue in questionFilter.ReturnCode
public static Filter createFilterFromArguments(ArrayList<byte[]> filterArguments)
public void readFields(DataInput in) throws IOException
IOException
public void write(DataOutput out) throws IOException
IOException
public String toString()
FilterBase
toString
in class FilterBase
protected String toString(int maxTimestamps)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.