Class BlockInfoContiguous

java.lang.Object
org.apache.hadoop.hdfs.protocol.Block
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo
org.apache.hadoop.hdfs.server.blockmanagement.BlockInfoContiguous
All Implemented Interfaces:
Comparable<org.apache.hadoop.hdfs.protocol.Block>, org.apache.hadoop.io.Writable, org.apache.hadoop.util.LightWeightGSet.LinkedElement

@Private public class BlockInfoContiguous extends BlockInfo
Subclass of BlockInfo, used for a block with replication scheme.
  • Constructor Details

    • BlockInfoContiguous

      public BlockInfoContiguous(short size)
    • BlockInfoContiguous

      public BlockInfoContiguous(org.apache.hadoop.hdfs.protocol.Block blk, short size)
  • Method Details

    • numNodes

      public int numNodes()
      Description copied from class: BlockInfo
      Count the number of data-nodes the block currently belongs to (i.e., NN has received block reports from the DN).
      Specified by:
      numNodes in class BlockInfo
    • isStriped

      public final boolean isStriped()
      Specified by:
      isStriped in class BlockInfo
    • getBlockType

      public org.apache.hadoop.hdfs.protocol.BlockType getBlockType()
      Specified by:
      getBlockType in class BlockInfo