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

  • 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:
      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