T - The type of record that the iterator handles.public class SpillingResettableMutableObjectIterator<T> extends Object implements ResettableMutableObjectIterator<T>
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
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) |
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
public 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 在接口中 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 在接口中 org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic T next() throws IOException
next 在接口中 org.apache.flink.util.MutableObjectIterator<T>IOExceptionpublic void consumeAndCacheRemainingData()
throws IOException
IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.