public class SortedKeyIterator extends WrappingIterator implements OptionDescriber
OptionDescriber.IteratorOptions
Constructor and Description |
---|
SortedKeyIterator() |
SortedKeyIterator(SortedKeyIterator other,
IteratorEnvironment env) |
Modifier and Type | Method and Description |
---|---|
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.
|
Value |
getTopValue()
Returns top value.
|
boolean |
validateOptions(Map<String,String> options)
Check to see if an options map contains all options required by an iterator and that the option values are in the expected formats.
|
public SortedKeyIterator()
public SortedKeyIterator(SortedKeyIterator other, IteratorEnvironment env)
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
SortedKeyValueIterator
deepCopy
in interface SortedKeyValueIterator<Key,Value>
deepCopy
in class WrappingIterator
env
- IteratorEnvironment environment in which iterator is being run.public Value getTopValue()
SortedKeyValueIterator
For performance reasons, iterators reserve the right to reuse objects returned by getTopValue when SortedKeyValueIterator.next()
is called, changing the
underlying data that the object references. Iterators that need to save an object returned by getTopValue ought to copy the object's data into a
new object in order to avoid aliasing bugs.
getTopValue
in interface SortedKeyValueIterator<Key,Value>
getTopValue
in class WrappingIterator
public OptionDescriber.IteratorOptions describeOptions()
OptionDescriber
describeOptions
in interface OptionDescriber
public boolean validateOptions(Map<String,String> options)
OptionDescriber
validateOptions
in interface OptionDescriber
options
- a map of option names to option valuesCopyright © 2011–2016 The Apache Software Foundation. All rights reserved.