Interface ThrowingIterator<E>

Type Parameters:
E - the type of elements returned by this iterator
All Superinterfaces:
AutoCloseable, Closeable

@Internal public interface ThrowingIterator<E> extends Closeable
Modified Iterator interface that lets the implementation throw an IOException.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns true if the iteration has more elements.
    Returns the next element in the iteration.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • hasNext

      boolean hasNext()
      Returns true if the iteration has more elements. (In other words, returns true if next() would return an element rather than throwing an exception.)
      Returns:
      true if the iteration has more elements
    • next

      E next() throws IOException, org.apache.flink.util.StateMigrationException
      Returns the next element in the iteration.
      Returns:
      the next element in the iteration
      Throws:
      NoSuchElementException - if the iteration has no more elements
      IOException
      org.apache.flink.util.StateMigrationException