Class BlocksWithLocations.BlockWithLocations

java.lang.Object
org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations
Direct Known Subclasses:
BlocksWithLocations.StripedBlockWithLocations
Enclosing class:
BlocksWithLocations

@Private @Evolving public static class BlocksWithLocations.BlockWithLocations extends Object
A class to keep track of a block and its locations
  • Constructor Details

    • BlockWithLocations

      public BlockWithLocations(org.apache.hadoop.hdfs.protocol.Block block, String[] datanodeUuids, String[] storageIDs, org.apache.hadoop.fs.StorageType[] storageTypes)
      constructor
  • Method Details

    • getBlock

      public org.apache.hadoop.hdfs.protocol.Block getBlock()
      get the block
    • getDatanodeUuids

      public String[] getDatanodeUuids()
      get the block's datanode locations
    • getStorageIDs

      public String[] getStorageIDs()
      get the block's storage locations
    • getStorageTypes

      public org.apache.hadoop.fs.StorageType[] getStorageTypes()
      Returns:
      the storage types
    • toString

      public String toString()
      Overrides:
      toString in class Object