|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations
@InterfaceAudience.Private @InterfaceStability.Evolving public static class BlocksWithLocations.BlockWithLocations
A class to keep track of a block and its locations
Constructor Summary | |
---|---|
BlocksWithLocations.BlockWithLocations()
default constructor |
|
BlocksWithLocations.BlockWithLocations(Block b,
String[] datanodes)
constructor |
Method Summary | |
---|---|
Block |
getBlock()
get the block |
String[] |
getDatanodes()
get the block's locations |
void |
readFields(DataInput in)
deserialization method |
void |
write(DataOutput out)
serialization method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlocksWithLocations.BlockWithLocations()
public BlocksWithLocations.BlockWithLocations(Block b, String[] datanodes)
Method Detail |
---|
public Block getBlock()
public String[] getDatanodes()
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |