public static class BlocksWithLocations.BlockWithLocations extends Object implements Writable
| 构造器和说明 |
|---|
BlocksWithLocations.BlockWithLocations()
default constructor
|
BlocksWithLocations.BlockWithLocations(Block b,
String[] datanodes)
constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
Block |
getBlock()
get the block
|
String[] |
getDatanodes()
get the block's locations
|
void |
readFields(DataInput in)
deserialization method
|
void |
write(DataOutput out)
serialization method
|
public BlocksWithLocations.BlockWithLocations()
public Block getBlock()
public String[] getDatanodes()
public void readFields(DataInput in) throws IOException
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionpublic void write(DataOutput out) throws IOException
write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionCopyright © 2009 The Apache Software Foundation