Class CorruptFileBlockIterator
java.lang.Object
org.apache.hadoop.hdfs.client.impl.CorruptFileBlockIterator
- All Implemented Interfaces:
org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>
@Private
public class CorruptFileBlockIterator
extends Object
implements org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>
Provides an iterator interface for listCorruptFileBlocks.
This class is used by DistributedFileSystem and Hdfs.
-
Constructor Details
-
CorruptFileBlockIterator
- Throws:
IOException
-
-
Method Details
-
getCallsMade
public int getCallsMade()- Returns:
- the number of calls made to the DFSClient. This is for debugging and testing purposes.
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceorg.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>
-
next
- Specified by:
nextin interfaceorg.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>- Throws:
IOException
-