Class BinaryRowChannelInputViewIterator
- java.lang.Object
-
- org.apache.flink.table.runtime.io.BinaryRowChannelInputViewIterator
-
- All Implemented Interfaces:
MutableObjectIterator<BinaryRowData>
- Direct Known Subclasses:
LongHashPartitionChannelReaderInputViewIterator
public class BinaryRowChannelInputViewIterator extends Object implements MutableObjectIterator<BinaryRowData>
A simple iterator over the input read though an I/O channel. UseBinaryRowDataSerializer.deserializeFromPages(org.apache.flink.runtime.memory.AbstractPagedInputView)
.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<MemorySegment>
freeMemTarget
protected ChannelReaderInputView
inView
protected BinaryRowDataSerializer
serializer
-
Constructor Summary
Constructors Constructor Description BinaryRowChannelInputViewIterator(ChannelReaderInputView inView, List<MemorySegment> freeMemTarget, BinaryRowDataSerializer serializer)
BinaryRowChannelInputViewIterator(ChannelReaderInputView inView, BinaryRowDataSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryRowData
next()
Gets the next element from the collection.BinaryRowData
next(BinaryRowData reuse)
Gets the next element from the collection.
-
-
-
Field Detail
-
inView
protected final ChannelReaderInputView inView
-
serializer
protected final BinaryRowDataSerializer serializer
-
freeMemTarget
protected final List<MemorySegment> freeMemTarget
-
-
Constructor Detail
-
BinaryRowChannelInputViewIterator
public BinaryRowChannelInputViewIterator(ChannelReaderInputView inView, BinaryRowDataSerializer serializer)
-
BinaryRowChannelInputViewIterator
public BinaryRowChannelInputViewIterator(ChannelReaderInputView inView, List<MemorySegment> freeMemTarget, BinaryRowDataSerializer serializer)
-
-
Method Detail
-
next
public BinaryRowData next(BinaryRowData reuse) 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<BinaryRowData>
- Parameters:
reuse
- 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 BinaryRowData 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<BinaryRowData>
- 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
-
-