org.apache.accumulo.core.iterators.user
public class GrepIterator extends Filter
OptionDescriber.IteratorOptions
Constructor and Description |
---|
GrepIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Key k,
Value v) |
SortedKeyValueIterator<Key,Value> |
deepCopy(IteratorEnvironment env)
Creates a deep copy of this iterator as though seek had not yet been called.
|
void |
init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env)
Initializes the iterator.
|
static void |
setTerm(IteratorSetting cfg,
String term)
Encode the grep term as an option for a ScanIterator
|
describeOptions, findTop, next, seek, setNegate, validateOptions
getSource, getTopKey, getTopValue, hasTop, setSource
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
SortedKeyValueIterator
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env) throws IOException
SortedKeyValueIterator
init
in interface SortedKeyValueIterator<Key,Value>
init
in class Filter
source
- SortedKeyValueIterator source to read data from.options
- Map map of string option names to option values.env
- IteratorEnvironment environment in which iterator is being run.IOException
- unused.public static void setTerm(IteratorSetting cfg, String term)
Copyright © 2014 Apache Accumulo Project. All Rights Reserved.