Package org.apache.accumulo.test
Class HardListIterator
- java.lang.Object
-
- org.apache.accumulo.test.HardListIterator
-
- All Implemented Interfaces:
SortedKeyValueIterator<Key,Value>
,YieldingKeyValueIterator<Key,Value>
public class HardListIterator extends Object implements SortedKeyValueIterator<Key,Value>
A wrapper making a list of hardcoded data into a SKVI. For testing.
-
-
Field Summary
Fields Modifier and Type Field Description static SortedMap<Key,Value>
allEntriesToInject
-
Constructor Summary
Constructors Constructor Description HardListIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedKeyValueIterator<Key,Value>
deepCopy(IteratorEnvironment env)
Key
getTopKey()
Value
getTopValue()
boolean
hasTop()
void
init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
void
next()
void
seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.accumulo.core.iterators.YieldingKeyValueIterator
enableYielding
-
-
-
-
Method Detail
-
init
public void init(SortedKeyValueIterator<Key,Value> source, Map<String,String> options, IteratorEnvironment env)
- Specified by:
init
in interfaceSortedKeyValueIterator<Key,Value>
-
deepCopy
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
- Specified by:
deepCopy
in interfaceSortedKeyValueIterator<Key,Value>
-
hasTop
public boolean hasTop()
- Specified by:
hasTop
in interfaceSortedKeyValueIterator<Key,Value>
-
next
public void next()
- Specified by:
next
in interfaceSortedKeyValueIterator<Key,Value>
-
seek
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive)
- Specified by:
seek
in interfaceSortedKeyValueIterator<Key,Value>
-
getTopKey
public Key getTopKey()
- Specified by:
getTopKey
in interfaceSortedKeyValueIterator<Key,Value>
-
getTopValue
public Value getTopValue()
- Specified by:
getTopValue
in interfaceSortedKeyValueIterator<Key,Value>
-
-