Package org.apache.hadoop.hdfs.protocol
Class BlockLocalPathInfo
java.lang.Object
org.apache.hadoop.hdfs.protocol.BlockLocalPathInfo
A block and the full path information to the block data file and
the metadata file stored on the local file system.
-
Constructor Summary
ConstructorsConstructorDescriptionBlockLocalPathInfo(ExtendedBlock b, String file, String metafile) Constructs BlockLocalPathInfo. -
Method Summary
Modifier and TypeMethodDescriptiongetBlock()Get the Block data file.Get the Block metadata file.longGet number of bytes in the block.
-
Constructor Details
-
BlockLocalPathInfo
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
Get the Block data file.- Returns:
- Block data file.
-
getBlock
- Returns:
- the Block
-
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.
-