public abstract class AbstractEvaluatingIterator extends Object implements org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>, org.apache.accumulo.core.iterators.OptionDescriber
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
EMPTY_BYTE |
protected org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> |
iterator |
static String |
QUERY_OPTION |
static String |
UNEVALUTED_EXPRESSIONS |
| Modifier | Constructor and Description |
|---|---|
|
AbstractEvaluatingIterator() |
protected |
AbstractEvaluatingIterator(AbstractEvaluatingIterator other,
org.apache.accumulo.core.iterators.IteratorEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions |
describeOptions() |
abstract void |
fillMap(EventFields event,
org.apache.accumulo.core.data.Key key,
org.apache.accumulo.core.data.Value value)
Implementations will need to fill the map with field visibilities, names, and values.
|
abstract org.apache.accumulo.core.data.PartialKey |
getKeyComparator()
Implementations will return the PartialKey value to use for comparing keys for aggregating events
|
String |
getQueryExpression() |
abstract org.apache.accumulo.core.data.Key |
getReturnKey(org.apache.accumulo.core.data.Key k)
When the criteria expression evaluates to true against the event, the event fields will be serialized into the Value and returned up the iterator stack.
|
org.apache.accumulo.core.data.Key |
getTopKey() |
org.apache.accumulo.core.data.Value |
getTopValue() |
boolean |
hasTop() |
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) |
abstract boolean |
isKeyAccepted(org.apache.accumulo.core.data.Key key)
Provides the ability to skip this key and all of the following ones that match using the comparator.
|
void |
next() |
void |
reset()
Reset state.
|
void |
seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive) |
boolean |
validateOptions(Map<String,String> options) |
public static final String QUERY_OPTION
public static final String UNEVALUTED_EXPRESSIONS
protected static final byte[] EMPTY_BYTE
protected org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value> iterator
protected AbstractEvaluatingIterator(AbstractEvaluatingIterator other, org.apache.accumulo.core.iterators.IteratorEnvironment env)
public AbstractEvaluatingIterator()
public abstract org.apache.accumulo.core.data.PartialKey getKeyComparator()
public abstract org.apache.accumulo.core.data.Key getReturnKey(org.apache.accumulo.core.data.Key k)
throws Exception
k - Exceptionpublic abstract void fillMap(EventFields event, org.apache.accumulo.core.data.Key key, org.apache.accumulo.core.data.Value value) throws Exception
event - Multimap of event names and fields.key - current Keyvalue - current ValueExceptionpublic abstract boolean isKeyAccepted(org.apache.accumulo.core.data.Key key)
throws IOException
key - IOExceptionpublic void reset()
public org.apache.accumulo.core.data.Key getTopKey()
getTopKey in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public org.apache.accumulo.core.data.Value getTopValue()
getTopValue in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public boolean hasTop()
hasTop in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>public void next()
throws IOException
next in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic void seek(org.apache.accumulo.core.data.Range range,
Collection<org.apache.accumulo.core.data.ByteSequence> columnFamilies,
boolean inclusive)
throws IOException
seek in interface org.apache.accumulo.core.iterators.SortedKeyValueIterator<org.apache.accumulo.core.data.Key,org.apache.accumulo.core.data.Value>IOExceptionpublic 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>IOExceptionpublic org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions describeOptions()
describeOptions in interface org.apache.accumulo.core.iterators.OptionDescriberpublic boolean validateOptions(Map<String,String> options)
validateOptions in interface org.apache.accumulo.core.iterators.OptionDescriberpublic String getQueryExpression()
Copyright © 2014 Calrissian. All Rights Reserved.