Class SpillingResettableIterator<T>

  • Type Parameters:
    T - The type of record that the iterator handles.
    All Implemented Interfaces:
    Iterator<T>, ResettableIterator<T>

    public class SpillingResettableIterator<T>
    extends Object
    implements ResettableIterator<T>
    Implementation of a resettable iterator. While iterating the first time over the data, the iterator writes the records to a spillable buffer. Any subsequent iteration re-reads the data from that buffer.