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
RemoteIteratorhasNext in interface RemoteIterator<T extends FileStatus>IOException - if any IO error occurspublic T next() throws IOException
RemoteIteratornext in interface RemoteIterator<T extends FileStatus>IOException - if any IO error occursCopyright © 2008–2022 Apache Software Foundation. All rights reserved.