Interface ThrowingIterator<E>
- Type Parameters:
E- the type of elements returned by this iterator
- All Superinterfaces:
AutoCloseable,Closeable
Modified
Iterator interface that lets the implementation throw an IOException.- See Also:
-
Method Summary
-
Method Details
-
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
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
-