Class LazyIterableIterator<T>

  • All Implemented Interfaces:
    Iterable<T>, Iterator<T>

    public abstract class LazyIterableIterator<T>
    extends Object
    implements Iterable<T>, Iterator<T>
    This class is a generic base class for lazy, single pass iterator classes in order to simplify the implementation of lazy iterators for mapPartitions use cases. Note [SPARK-3369], which gives the reasons for backwards compatibility with regard to the iterable API despite Spark's single pass nature.