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, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public 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
MemoryAllocationException
public ReusingBlockResettableIterator(MemoryManager memoryManager, TypeSerializer<T> serializer, int numPages, AbstractInvokable ownerTask) throws MemoryAllocationException
MemoryAllocationException
public boolean hasNext()
public void open()
protected boolean writeNextRecord(T record) throws IOException
IOException
protected T getNextRecord(T reuse) throws IOException
IOException
protected T getNextRecord() throws IOException
IOException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.