org.apache.hadoop.hdfs
Class CorruptFileBlockIterator
java.lang.Object
org.apache.hadoop.hdfs.CorruptFileBlockIterator
- All Implemented Interfaces:
- org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CorruptFileBlockIterator
public CorruptFileBlockIterator(org.apache.hadoop.hdfs.DFSClient dfs,
org.apache.hadoop.fs.Path path)
throws IOException
- Throws:
IOException
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:
hasNext in interface org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>
next
public org.apache.hadoop.fs.Path next()
throws IOException
- Specified by:
next in interface org.apache.hadoop.fs.RemoteIterator<org.apache.hadoop.fs.Path>
- Throws:
IOException
Copyright © 2013 Apache Software Foundation. All Rights Reserved.