|
||||||||||
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
@InterfaceAudience.Private @InterfaceStability.Evolving public class BlocksWithLocations
A class to implement an array of BlockLocations It provide efficient customized serialization/deserialization methods in stead of using the default array (de)serialization provided by RPC
Nested Class Summary | |
---|---|
static class |
BlocksWithLocations.BlockWithLocations
A class to keep track of a block and its locations |
Constructor Summary | |
---|---|
BlocksWithLocations(BlocksWithLocations.BlockWithLocations[] blocks)
Constructor with one parameter |
Method Summary | |
---|---|
BlocksWithLocations.BlockWithLocations[] |
getBlocks()
getter |
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(BlocksWithLocations.BlockWithLocations[] blocks)
Method Detail |
---|
public BlocksWithLocations.BlockWithLocations[] getBlocks()
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |