Class NativePmemMappedBlock
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.NativePmemMappedBlock
- All Implemented Interfaces:
Closeable,AutoCloseable,MappableBlock
Represents an HDFS block that is mapped to persistent memory by the DataNode.
-
Method Details
-
getLength
public long getLength()Description copied from interface:MappableBlockGet the number of bytes that have been cached.- Specified by:
getLengthin interfaceMappableBlock- Returns:
- the number of bytes that have been cached.
-
getAddress
public long getAddress()Description copied from interface:MappableBlockGet cache address if applicable. Return -1 if not applicable.- Specified by:
getAddressin interfaceMappableBlock
-
getKey
public org.apache.hadoop.hdfs.ExtendedBlockId getKey()Description copied from interface:MappableBlockGet cached block's ExtendedBlockId.- Specified by:
getKeyin interfaceMappableBlock- Returns:
- cached block's ExtendedBlockId..
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-