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
ModifiedIteratorinterface that lets the implementation throw anIOException.- See Also:
Iterator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhasNext()Returnstrueif the iteration has more elements.Enext()Returns the next element in the iteration.
-
-
-
Method Detail
-
hasNext
boolean hasNext()
Returnstrueif the iteration has more elements. (In other words, returnstrueifnext()would return an element rather than throwing an exception.)- Returns:
trueif 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 elementsIOExceptionorg.apache.flink.util.StateMigrationException
-
-