Class ExtendedBlock

java.lang.Object
org.apache.hadoop.hdfs.protocol.ExtendedBlock

@Private @Evolving public class ExtendedBlock extends Object
Identifies a Block uniquely across the block pools
  • Constructor Details

    • ExtendedBlock

      public ExtendedBlock()
    • ExtendedBlock

      public ExtendedBlock(ExtendedBlock b)
    • ExtendedBlock

      public ExtendedBlock(String poolId, long blockId)
    • ExtendedBlock

      public ExtendedBlock(String poolId, Block b)
    • ExtendedBlock

      public ExtendedBlock(String poolId, long blkid, long len, long genstamp)
  • Method Details

    • getBlockPoolId

      public String getBlockPoolId()
    • getBlockName

      public String getBlockName()
      Returns the block file name for the block
    • getNumBytes

      public long getNumBytes()
    • getBlockId

      public long getBlockId()
    • getGenerationStamp

      public long getGenerationStamp()
    • setBlockId

      public void setBlockId(long bid)
    • setGenerationStamp

      public void setGenerationStamp(long genStamp)
    • setNumBytes

      public void setNumBytes(long len)
    • set

      public void set(String poolId, Block blk)
    • getLocalBlock

      public static Block getLocalBlock(ExtendedBlock b)
    • getLocalBlock

      public Block getLocalBlock()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object