T - The type of record that the iterator handles.public class SpillingResettableMutableObjectIterator<T> extends Object implements ResettableMutableObjectIterator<T>
| Modifier and Type | Field and Description |
|---|---|
protected SpillingBuffer |
buffer |
protected org.apache.flink.util.MutableObjectIterator<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 |
|---|
SpillingResettableMutableObjectIterator(org.apache.flink.util.MutableObjectIterator<T> input,
org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
int numPages,
AbstractInvokable parentTask) |
SpillingResettableMutableObjectIterator(org.apache.flink.util.MutableObjectIterator<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() |
void |
consumeAndCacheRemainingData() |
T |
next() |
T |
next(T reuse) |
void |
open() |
void |
reset()
Resets the iterator.
|
protected org.apache.flink.core.memory.DataInputView inView
protected final org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer
protected final SpillingBuffer buffer
protected final org.apache.flink.util.MutableObjectIterator<T> input
protected final MemoryManager memoryManager
public SpillingResettableMutableObjectIterator(org.apache.flink.util.MutableObjectIterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, int numPages, AbstractInvokable parentTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic SpillingResettableMutableObjectIterator(org.apache.flink.util.MutableObjectIterator<T> input, org.apache.flink.api.common.typeutils.TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, List<org.apache.flink.core.memory.MemorySegment> memory)
public void open()
public void reset()
throws IOException
ResettableMutableObjectIteratorreset in interface ResettableMutableObjectIterator<T>IOException - May be thrown when the serialization into buffers or the spilling to
secondary storage fails.public List<org.apache.flink.core.memory.MemorySegment> close() throws IOException
IOExceptionpublic T next(T reuse) throws IOException
next in interface org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic T next() throws IOException
next in interface org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic void consumeAndCacheRemainingData()
throws IOException
IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.