public class TimeLimitingFilter
extends org.apache.accumulo.core.iterators.Filter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CURRENT_TIME |
protected long |
currentTime
The use of private for this member in the original AgeOffFilter wouldn't allow me to extend it.
|
protected long |
threshold |
protected static String |
TTL |
| Constructor and Description |
|---|
TimeLimitingFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(org.apache.accumulo.core.data.Key k,
org.apache.accumulo.core.data.Value v)
Accepts entries whose timestamps are less than currentTime - threshold.
|
org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> |
deepCopy(org.apache.accumulo.core.iterators.IteratorEnvironment env) |
org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions |
describeOptions() |
void |
init(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
Map<String,String> options,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
static void |
setCurrentTime(org.apache.accumulo.core.client.IteratorSetting is,
Long currentTime)
A convenience method for setting the current time (from which to measure the age off threshold).
|
static void |
setTTL(org.apache.accumulo.core.client.IteratorSetting is,
Long ttl)
A convenience method for setting the age off threshold.
|
boolean |
validateOptions(Map<String,String> options) |
findTop, next, seek, setNegateprotected static final String TTL
protected static final String CURRENT_TIME
protected long threshold
protected long currentTime
public static void setTTL(org.apache.accumulo.core.client.IteratorSetting is,
Long ttl)
is - IteratorSetting object to configure.ttl - age off threshold in milliseconds.public static void setCurrentTime(org.apache.accumulo.core.client.IteratorSetting is,
Long currentTime)
is - IteratorSetting object to configure.currentTime - time in milliseconds.public boolean accept(org.apache.accumulo.core.data.Key k,
org.apache.accumulo.core.data.Value v)
accept in class org.apache.accumulo.core.iterators.FilterFilter.accept(org.apache.accumulo.core.data.Key, org.apache.accumulo.core.data.Value)public void init(org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> source,
Map<String,String> options,
org.apache.accumulo.core.iterators.IteratorEnvironment env)
throws IOException
init in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>init in class org.apache.accumulo.core.iterators.FilterIOExceptionpublic org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> deepCopy(org.apache.accumulo.core.iterators.IteratorEnvironment env)
deepCopy in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>deepCopy in class org.apache.accumulo.core.iterators.Filterpublic org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions describeOptions()
describeOptions in interface org.apache.accumulo.core.iterators.OptionDescriberdescribeOptions in class org.apache.accumulo.core.iterators.FilterCopyright © 2014 Calrissian. All Rights Reserved.