org.apache.hadoop.hdfs
Class CorruptFileBlockIterator

java.lang.Object
  extended by 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.


Constructor Summary
CorruptFileBlockIterator(org.apache.hadoop.hdfs.DFSClient dfs, org.apache.hadoop.fs.Path path)
           
 
Method Summary
 int getCallsMade()
           
 boolean hasNext()
           
 org.apache.hadoop.fs.Path next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CorruptFileBlockIterator

public CorruptFileBlockIterator(org.apache.hadoop.hdfs.DFSClient dfs,
                                org.apache.hadoop.fs.Path path)
                         throws IOException
Throws:
IOException
Method Detail

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 © 2014 Apache Software Foundation. All Rights Reserved.