Interface MappableBlock
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
MemoryMappedBlock,NativePmemMappedBlock,PmemMappedBlock
Represents an HDFS block that is mapped by the DataNode.
-
Method Summary
Modifier and TypeMethodDescriptionlongGet cache address if applicable.org.apache.hadoop.hdfs.ExtendedBlockIdgetKey()Get cached block's ExtendedBlockId.longGet the number of bytes that have been cached.
-
Method Details
-
getLength
long getLength()Get the number of bytes that have been cached.- Returns:
- the number of bytes that have been cached.
-
getAddress
long getAddress()Get cache address if applicable. Return -1 if not applicable. -
getKey
org.apache.hadoop.hdfs.ExtendedBlockId getKey()Get cached block's ExtendedBlockId.- Returns:
- cached block's ExtendedBlockId..
-