public class ReusingBlockResettableIterator<T> extends NonReusingBlockResettableIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected SimpleCollectingOutputView |
collectingView |
protected ArrayList<MemorySegment> |
emptySegments |
protected ArrayList<MemorySegment> |
fullSegments |
static org.slf4j.Logger |
LOG |
protected int |
numRecordsInBuffer |
protected int |
numRecordsReturned |
protected RandomAccessInputView |
readView |
protected TypeSerializer<T> |
serializer |
input, leftOverElement, nextElement, noMoreBlocks, readPhase| Constructor and Description |
|---|
ReusingBlockResettableIterator(MemoryManager memoryManager,
Iterator<T> input,
TypeSerializer<T> serializer,
int numPages,
AbstractInvokable ownerTask) |
ReusingBlockResettableIterator(MemoryManager memoryManager,
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, resetpublic static final org.slf4j.Logger LOG
protected final RandomAccessInputView readView
protected final SimpleCollectingOutputView collectingView
protected final TypeSerializer<T> serializer
protected int numRecordsInBuffer
protected int numRecordsReturned
protected final ArrayList<MemorySegment> emptySegments
protected final ArrayList<MemorySegment> fullSegments
protected volatile boolean closed
public ReusingBlockResettableIterator(MemoryManager memoryManager, Iterator<T> input, TypeSerializer<T> serializer, int numPages, AbstractInvokable ownerTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic ReusingBlockResettableIterator(MemoryManager memoryManager, 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–2017 The Apache Software Foundation. All rights reserved.