Class BlockLocalPathInfo

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

@Private @Evolving public class BlockLocalPathInfo extends Object
A block and the full path information to the block data file and the metadata file stored on the local file system.
  • Constructor Details

    • BlockLocalPathInfo

      public BlockLocalPathInfo(ExtendedBlock b, String file, String metafile)
      Constructs BlockLocalPathInfo.
      Parameters:
      b - The block corresponding to this lock path info.
      file - Block data file.
      metafile - Metadata file for the block.
  • Method Details

    • getBlockPath

      public String getBlockPath()
      Get the Block data file.
      Returns:
      Block data file.
    • getBlock

      public ExtendedBlock getBlock()
      Returns:
      the Block
    • getMetaPath

      public String getMetaPath()
      Get the Block metadata file.
      Returns:
      Block metadata file.
    • getNumBytes

      public long getNumBytes()
      Get number of bytes in the block.
      Returns:
      Number of bytes in the block.