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) |
Modifier and Type | Method and Description |
---|---|
List<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, wait
forEachRemaining
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
MemoryAllocationException
public SpillingResettableIterator(Iterator<T> input, TypeSerializer<T> serializer, MemoryManager memoryManager, IOManager ioManager, List<MemorySegment> memory)
public void open()
public void reset() throws IOException
ResettableIterator
reset
in interface ResettableIterator<T>
IOException
public List<MemorySegment> close() throws IOException
IOException
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.