public class ChannelReaderKVInputViewIterator<K,V> extends Object implements MutableObjectIterator<Tuple2<K,V>>
Constructor and Description |
---|
ChannelReaderKVInputViewIterator(AbstractChannelReaderInputView inView,
List<MemorySegment> freeMemTarget,
TypeSerializer<K> keySerializer,
TypeSerializer<V> valueSerializer) |
public ChannelReaderKVInputViewIterator(AbstractChannelReaderInputView inView, List<MemorySegment> freeMemTarget, TypeSerializer<K> keySerializer, TypeSerializer<V> valueSerializer)
public Tuple2<K,V> next(Tuple2<K,V> kvPair) throws IOException
MutableObjectIterator
next
in interface MutableObjectIterator<Tuple2<K,V>>
kvPair
- The target object into which to place next element if E is mutable.null
if the iterator is exhausted.IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the
serialization / deserialization logicpublic Tuple2<K,V> next() throws IOException
MutableObjectIterator
next
in interface MutableObjectIterator<Tuple2<K,V>>
null
if the iterator is exhausted.IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the
serialization / deserialization logicCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.