Class PmemMappableBlockLoader
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.MappableBlockLoader
org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.PmemMappableBlockLoader
- Direct Known Subclasses:
NativePmemMappableBlockLoader
Maps block to persistent memory by using mapped byte buffer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetBlockId(File file) Parse the file name and get the BlockId.longlonggetRecoveredMappableBlock(File cacheFile, String bpid, byte volumeIndex) booleanbooleanMethods inherited from class org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.MappableBlockLoader
fillBuffer, verifyChecksum
-
Constructor Details
-
PmemMappableBlockLoader
public PmemMappableBlockLoader()
-
-
Method Details
-
getCacheUsed
public long getCacheUsed() -
getCacheCapacity
public long getCacheCapacity() -
isTransientCache
public boolean isTransientCache() -
isNativeLoader
public boolean isNativeLoader() -
getRecoveredMappableBlock
public MappableBlock getRecoveredMappableBlock(File cacheFile, String bpid, byte volumeIndex) throws IOException - Throws:
IOException
-
getBlockId
Parse the file name and get the BlockId.
-