Package org.apache.hadoop.fs
Class FileSystem.DirListingIterator<T extends FileStatus>
java.lang.Object
org.apache.hadoop.fs.FileSystem.DirListingIterator<T>
- All Implemented Interfaces:
RemoteIterator<T>
- Enclosing class:
- FileSystem
protected class FileSystem.DirListingIterator<T extends FileStatus>
extends Object
implements RemoteIterator<T>
Generic iterator for implementing
FileSystem.listStatusIterator(Path).-
Method Summary
-
Method Details
-
hasNext
Description copied from interface:RemoteIteratorReturnstrueif the iteration has more elements.- Specified by:
hasNextin interfaceRemoteIterator<T extends FileStatus>- Returns:
trueif the iterator has more elements.- Throws:
IOException- if any IO error occurs
-
next
Description copied from interface:RemoteIteratorReturns the next element in the iteration.- Specified by:
nextin interfaceRemoteIterator<T extends FileStatus>- Returns:
- the next element in the iteration.
- Throws:
IOException- if any IO error occurs
-