public class ReusingBlockResettableIterator<T> extends NonReusingBlockResettableIterator<T>
| Modifier and Type | Field and Description |
|---|---|
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 |
input, leftOverElement, nextElement, noMoreBlocks, readPhase| Constructor and Description |
|---|
ReusingBlockResettableIterator(MemoryManager memoryManager,
Iterator<T> input,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
int numPages,
AbstractInvokable ownerTask) |
ReusingBlockResettableIterator(MemoryManager memoryManager,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
int numPages,
AbstractInvokable ownerTask) |
| Modifier and Type | Method and Description |
|---|---|
protected T |
getNextRecord() |
protected T |
getNextRecord(T reuse) |
boolean |
hasNext() |
void |
open() |
protected boolean |
writeNextRecord(T record) |
close, hasFurtherInput, next, nextBlock, remove, reopen, resetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic 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 ReusingBlockResettableIterator(MemoryManager memoryManager, Iterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, int numPages, AbstractInvokable ownerTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic ReusingBlockResettableIterator(MemoryManager memoryManager, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, int numPages, AbstractInvokable ownerTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic boolean hasNext()
public void open()
protected boolean writeNextRecord(T record)
throws IOException
IOExceptionprotected T getNextRecord(T reuse)
throws IOException
IOExceptionprotected T getNextRecord()
throws IOException
IOExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.