org.apache.hadoop.hdfs.server.blockmanagement
Class DatanodeDescriptor.BlockIterator

java.lang.Object
  extended by org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor.BlockIterator
All Implemented Interfaces:
Iterator<org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo>
Enclosing class:
org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor

public static class DatanodeDescriptor.BlockIterator
extends Object
implements Iterator<org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo>

Iterates over the list of blocks belonging to the datanode.


Method Summary
 boolean hasNext()
           
 org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo>

next

public org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo next()
Specified by:
next in interface Iterator<org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo>

remove

public void remove()
Specified by:
remove in interface Iterator<org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo>


Copyright © 2013 Apache Software Foundation. All Rights Reserved.