Class BlocksWithLocations.BlockWithLocations
java.lang.Object
org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations
- Direct Known Subclasses:
BlocksWithLocations.StripedBlockWithLocations
- Enclosing class:
- BlocksWithLocations
A class to keep track of a block and its locations
-
Constructor Summary
ConstructorsConstructorDescriptionBlockWithLocations(org.apache.hadoop.hdfs.protocol.Block block, String[] datanodeUuids, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes) constructor -
Method Summary
-
Constructor Details
-
Method Details
-
getBlock
public org.apache.hadoop.hdfs.protocol.Block getBlock()get the block -
getDatanodeUuids
get the block's datanode locations -
getStorageIDs
get the block's storage locations -
getStorageTypes
public org.apache.hadoop.fs.StorageType[] getStorageTypes()- Returns:
- the storage types
-
toString
-