public class ColumnSliceFilter extends Filter
OptionDescriber.IteratorOptions
Modifier and Type | Field and Description |
---|---|
static String |
END_BOUND |
static String |
END_INCLUSIVE |
static String |
START_BOUND |
static String |
START_INCLUSIVE |
Constructor and Description |
---|
ColumnSliceFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Key key,
Value value) |
SortedKeyValueIterator<Key,Value> |
deepCopy(IteratorEnvironment env)
Creates a deep copy of this iterator as though seek had not yet been called.
|
OptionDescriber.IteratorOptions |
describeOptions()
Gets an iterator options object that contains information needed to configure this iterator.
|
void |
init(SortedKeyValueIterator<Key,Value> source,
Map<String,String> options,
IteratorEnvironment env)
Initializes the iterator.
|
static void |
setSlice(IteratorSetting si,
String start,
boolean startInclusive,
String end,
boolean endInclusive) |
static void |
setSlice(IteratorSetting si,
String start,
String end) |
findTop, next, seek, setNegate, validateOptions
getSource, getTopKey, getTopValue, hasTop, setSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enableYielding
public static final String START_BOUND
public static final String START_INCLUSIVE
public static final String END_BOUND
public static final String END_INCLUSIVE
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 OptionDescriber.IteratorOptions describeOptions()
OptionDescriber
describeOptions
in interface OptionDescriber
describeOptions
in class Filter
public static void setSlice(IteratorSetting si, String start, String end)
public static void setSlice(IteratorSetting si, String start, boolean startInclusive, String end, boolean endInclusive)
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
SortedKeyValueIterator
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.