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
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2009 The Apache Software Foundation