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 MutableObjectIterator<T> |
input |
protected DataInputView |
inView |
protected MemoryManager |
memoryManager |
protected TypeSerializer<T> |
serializer |
| Constructor and Description |
|---|
SpillingResettableMutableObjectIterator(MutableObjectIterator<T> input,
TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
int numPages,
AbstractInvokable parentTask) |
SpillingResettableMutableObjectIterator(MutableObjectIterator<T> input,
TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
List<MemorySegment> memory) |
| Modifier and Type | Method and Description |
|---|---|
List<MemorySegment> |
close() |
void |
consumeAndCacheRemainingData() |
T |
next(T reuse) |
void |
open() |
void |
reset()
Resets the iterator.
|
protected DataInputView inView
protected final TypeSerializer<T> serializer
protected final SpillingBuffer buffer
protected final MutableObjectIterator<T> input
protected final MemoryManager memoryManager
public SpillingResettableMutableObjectIterator(MutableObjectIterator<T> input, TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, int numPages, AbstractInvokable parentTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic SpillingResettableMutableObjectIterator(MutableObjectIterator<T> input, TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, List<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<MemorySegment> close() throws IOException
IOExceptionpublic T next(T reuse) throws IOException
next in interface MutableObjectIterator<T>IOExceptionpublic void consumeAndCacheRemainingData()
throws IOException
IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.