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.
|
protected int |
indexOf(byte[] value,
int offset,
int length) |
void |
init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env)
Initializes the iterator.
|
protected boolean |
match(byte[] ba) |
protected boolean |
match(ByteSequence bs) |
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
protected boolean match(ByteSequence bs)
protected boolean match(byte[] ba)
protected int indexOf(byte[] value, int offset, int length)
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 © 2011–2019 The Apache Software Foundation. All rights reserved.