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 DataInputView |
inView |
protected MemoryManager |
memoryManager |
protected TypeSerializer<T> |
serializer |
| Constructor and Description |
|---|
SpillingResettableIterator(Iterator<T> input,
TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
int numPages,
AbstractInvokable parentTask) |
SpillingResettableIterator(Iterator<T> input,
TypeSerializer<T> serializer,
MemoryManager memoryManager,
IOManager ioManager,
List<MemorySegment> memory) |
protected DataInputView inView
protected final TypeSerializer<T> serializer
protected final SpillingBuffer buffer
protected final MemoryManager memoryManager
public SpillingResettableIterator(Iterator<T> input, TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, int numPages, AbstractInvokable parentTask) throws MemoryAllocationException
MemoryAllocationExceptionpublic SpillingResettableIterator(Iterator<T> input, TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, List<MemorySegment> memory)
public void open()
public void reset()
throws IOException
ResettableIteratorreset in interface ResettableIterator<T>IOExceptionpublic List<MemorySegment> close() throws IOException
IOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.