T - The type of record that the iterator handles.public class SpillingResettableIterator<T> extends Object implements ResettableIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected SpillingBuffer |
buffer |
protected Iterator<T> |
input |
protected org.apache.flink.core.memory.DataInputView |
inView |
protected MemoryManager |
memoryManager |
protected org.apache.flink.api.common.typeutils.TypeSerializer<T> |
serializer |
| Constructor and Description |
|---|
SpillingResettableIterator(Iterator<T> input,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
int numPages,
AbstractInvokable parentTask) |
SpillingResettableIterator(Iterator<T> input,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
List<org.apache.flink.core.memory.MemorySegment> memory) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.flink.core.memory.MemorySegment> |
close() |
boolean |
hasNext() |
T |
next() |
void |
open() |
void |
remove() |
void |
reset()
Resets the iterator.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected org.apache.flink.core.memory.DataInputView inView
protected final org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer
protected final SpillingBuffer buffer
protected final MemoryManager memoryManager
public SpillingResettableIterator(Iterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, int numPages, AbstractInvokable parentTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic void open()
public void reset()
throws IOException
ResettableIteratorreset in interface ResettableIterator<T>IOExceptionpublic List<org.apache.flink.core.memory.MemorySegment> close() throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.