protected class FileSystem.DirListingIterator<T extends FileStatus> extends Object implements RemoteIterator<T>
FileSystem.listStatusIterator(Path)
.Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if the iteration has more elements.
|
T |
next()
Returns the next element in the iteration.
|
public boolean hasNext() throws IOException
RemoteIterator
hasNext
in interface RemoteIterator<T extends FileStatus>
IOException
- if any IO error occurspublic T next() throws IOException
RemoteIterator
next
in interface RemoteIterator<T extends FileStatus>
IOException
- if any IO error occursCopyright © 2008–2020 Apache Software Foundation. All rights reserved.