Class ChannelReaderKVInputViewIterator<K,V>
- java.lang.Object
-
- org.apache.flink.table.runtime.operators.sort.ChannelReaderKVInputViewIterator<K,V>
-
- All Implemented Interfaces:
MutableObjectIterator<Tuple2<K,V>>
public class ChannelReaderKVInputViewIterator<K,V> extends Object implements MutableObjectIterator<Tuple2<K,V>>
Key-Value style channel reader input view iterator.
-
-
Constructor Summary
Constructors Constructor Description ChannelReaderKVInputViewIterator(AbstractChannelReaderInputView inView, List<MemorySegment> freeMemTarget, TypeSerializer<K> keySerializer, TypeSerializer<V> valueSerializer)
-
-
-
Constructor Detail
-
ChannelReaderKVInputViewIterator
public ChannelReaderKVInputViewIterator(AbstractChannelReaderInputView inView, List<MemorySegment> freeMemTarget, TypeSerializer<K> keySerializer, TypeSerializer<V> valueSerializer)
-
-
Method Detail
-
next
public Tuple2<K,V> next(Tuple2<K,V> kvPair) throws IOException
Description copied from interface:MutableObjectIterator
Gets the next element from the collection. The contents of that next element is put into the given reuse object, if the type is mutable.- Specified by:
next
in interfaceMutableObjectIterator<K>
- Parameters:
kvPair
- The target object into which to place next element if E is mutable.- Returns:
- The filled object or
null
if the iterator is exhausted. - Throws:
IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
-
next
public Tuple2<K,V> next() throws IOException
Description copied from interface:MutableObjectIterator
Gets the next element from the collection. The iterator implementation must obtain a new instance.- Specified by:
next
in interfaceMutableObjectIterator<K>
- Returns:
- The object or
null
if the iterator is exhausted. - Throws:
IOException
- Thrown, if a problem occurred in the underlying I/O layer or in the serialization / deserialization logic
-
-