Class IteratorMincClassCastBugIT.ClasCastIterator
- java.lang.Object
-
- org.apache.accumulo.test.functional.IteratorMincClassCastBugIT.ClasCastIterator
-
- All Implemented Interfaces:
SortedKeyValueIterator<Key,Value>
,YieldingKeyValueIterator<Key,Value>
- Enclosing class:
- IteratorMincClassCastBugIT
public static class IteratorMincClassCastBugIT.ClasCastIterator extends Object implements SortedKeyValueIterator<Key,Value>
To simulate the bug we only need direct implementation of SKVI that does a deepCopy on source.
-
-
Constructor Summary
Constructors Constructor Description ClasCastIterator()
-
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) throws IOException
- Specified by:
init
in interfaceSortedKeyValueIterator<Key,Value>
- Throws:
IOException
-
hasTop
public boolean hasTop()
- Specified by:
hasTop
in interfaceSortedKeyValueIterator<Key,Value>
-
next
public void next() throws IOException
- Specified by:
next
in interfaceSortedKeyValueIterator<Key,Value>
- Throws:
IOException
-
seek
public void seek(Range range, Collection<ByteSequence> columnFamilies, boolean inclusive) throws IOException
- Specified by:
seek
in interfaceSortedKeyValueIterator<Key,Value>
- Throws:
IOException
-
getTopKey
public Key getTopKey()
- Specified by:
getTopKey
in interfaceSortedKeyValueIterator<Key,Value>
-
getTopValue
public Value getTopValue()
- Specified by:
getTopValue
in interfaceSortedKeyValueIterator<Key,Value>
-
deepCopy
public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env)
- Specified by:
deepCopy
in interfaceSortedKeyValueIterator<Key,Value>
-
-