public class BlockResettableMutableObjectIterator<T> extends Object implements ResettableMutableObjectIterator<T>
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
closed |
protected SimpleCollectingOutputView |
collectingView |
protected ArrayList<org.apache.flink.core.memory.MemorySegment> |
emptySegments |
protected ArrayList<org.apache.flink.core.memory.MemorySegment> |
fullSegments |
static org.slf4j.Logger |
LOG |
protected int |
numRecordsInBuffer |
protected int |
numRecordsReturned |
protected RandomAccessInputView |
readView |
protected org.apache.flink.api.common.typeutils.TypeSerializer<T> |
serializer |
| 构造器和说明 |
|---|
BlockResettableMutableObjectIterator(MemoryManager memoryManager,
org.apache.flink.util.MutableObjectIterator<T> input,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
int numMemoryPages,
AbstractInvokable ownerTask) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
This method closes the iterator and releases all resources.
|
protected T |
getNextRecord() |
protected T |
getNextRecord(T reuse) |
boolean |
hasFurtherInput()
Checks, whether the input that is blocked by this iterator, has further elements available.
|
T |
next() |
T |
next(T target) |
boolean |
nextBlock()
Move the iterator to the next memory block.
|
void |
open() |
void |
reset()
Resets the iterator.
|
protected boolean |
writeNextRecord(T record) |
public static final org.slf4j.Logger LOG
protected final RandomAccessInputView readView
protected final SimpleCollectingOutputView collectingView
protected final org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer
protected int numRecordsInBuffer
protected int numRecordsReturned
protected final ArrayList<org.apache.flink.core.memory.MemorySegment> emptySegments
protected final ArrayList<org.apache.flink.core.memory.MemorySegment> fullSegments
protected volatile boolean closed
public BlockResettableMutableObjectIterator(MemoryManager memoryManager, org.apache.flink.util.MutableObjectIterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, int numMemoryPages, AbstractInvokable ownerTask) throws MemoryAllocationException
public T next(T target) throws IOException
next 在接口中 org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic T next() throws IOException
next 在接口中 org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic void reset()
ResettableMutableObjectIteratorreset 在接口中 ResettableMutableObjectIterator<T>public boolean nextBlock()
throws IOException
MemoryBlockIteratornextBlock 在接口中 MemoryBlockIteratorIOException - Thrown, when advancing to the next block failed.public boolean hasFurtherInput()
public void close()
public void open()
protected boolean writeNextRecord(T record)
throws IOException
IOExceptionprotected T getNextRecord(T reuse)
throws IOException
IOExceptionprotected T getNextRecord()
throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.