Package org.apache.hadoop.fs
Interface RemoteIterator<E>
- All Known Implementing Classes:
BatchedRemoteIterator,FileSystem.DirListingIterator,RemoteIterators.WrappingRemoteIterator
public interface RemoteIterator<E>
An iterator over a collection whose elements need to be fetched remotely
-
Method Summary
-
Method Details
-
hasNext
Returnstrueif the iteration has more elements.- Returns:
trueif the iterator has more elements.- Throws:
IOException- if any IO error occurs
-
next
Returns the next element in the iteration.- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more elements.IOException- if any IO error occurs
-