Package org.apache.hadoop.fs
Class FileSystem.DirListingIterator<T extends org.apache.hadoop.fs.FileStatus>
- java.lang.Object
-
- org.apache.hadoop.fs.FileSystem.DirListingIterator<T>
-
- All Implemented Interfaces:
org.apache.hadoop.fs.RemoteIterator<T>
- Enclosing class:
- FileSystem
protected class FileSystem.DirListingIterator<T extends org.apache.hadoop.fs.FileStatus> extends Object implements org.apache.hadoop.fs.RemoteIterator<T>
Generic iterator for implementingFileSystem.listStatusIterator(Path).
-
-
Method Detail
-
hasNext
public boolean hasNext() throws IOException- Specified by:
hasNextin interfaceorg.apache.hadoop.fs.RemoteIterator<T extends org.apache.hadoop.fs.FileStatus>- Throws:
IOException
-
next
public T next() throws IOException
- Specified by:
nextin interfaceorg.apache.hadoop.fs.RemoteIterator<T extends org.apache.hadoop.fs.FileStatus>- Throws:
IOException
-
-