@Private @Unstable public class NativePmemMappableBlockLoader extends PmemMappableBlockLoader
| Constructor | Description |
|---|---|
NativePmemMappableBlockLoader() |
| Modifier and Type | Method | Description |
|---|---|---|
MappableBlock |
getRecoveredMappableBlock(java.io.File cacheFile,
java.lang.String bpid,
byte volumeIndex) |
|
boolean |
isNativeLoader() |
|
MappableBlock |
load(long length,
java.io.FileInputStream blockIn,
java.io.FileInputStream metaIn,
java.lang.String blockFileName,
org.apache.hadoop.hdfs.ExtendedBlockId key) |
Load the block.
|
getBlockId, getCacheCapacity, getCacheUsed, isTransientCachefillBuffer, verifyChecksumpublic MappableBlock load(long length, java.io.FileInputStream blockIn, java.io.FileInputStream metaIn, java.lang.String blockFileName, org.apache.hadoop.hdfs.ExtendedBlockId key) throws java.io.IOException
length - The current length of the block.blockIn - The block input stream. Should be positioned at the
start. The caller must close this.metaIn - The meta file input stream. Should be positioned at
the start. The caller must close this.blockFileName - The block file name, for logging purposes.key - The extended block ID.java.io.IOException - If mapping block to persistent memory fails or
checksum fails.public boolean isNativeLoader()
isNativeLoader in class PmemMappableBlockLoaderpublic MappableBlock getRecoveredMappableBlock(java.io.File cacheFile, java.lang.String bpid, byte volumeIndex) throws java.io.IOException
getRecoveredMappableBlock in class PmemMappableBlockLoaderjava.io.IOExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.