Class ExclusiveMemoryMmapIOEngine
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.PersistentIOEngine
org.apache.hadoop.hbase.io.hfile.bucket.FileMmapIOEngine
org.apache.hadoop.hbase.io.hfile.bucket.ExclusiveMemoryMmapIOEngine
- All Implemented Interfaces:
IOEngine
IO engine that stores data to a file on the local block device using memory mapping mechanism
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.io.hfile.bucket.FileMmapIOEngine
bufferArray, LOG, path, sizeFields inherited from class org.apache.hadoop.hbase.io.hfile.bucket.PersistentIOEngine
filePaths -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(BucketEntry be) Transfers data from IOEngine to a Cacheable object.Methods inherited from class org.apache.hadoop.hbase.io.hfile.bucket.FileMmapIOEngine
isPersistent, shutdown, sync, toString, write, writeMethods inherited from class org.apache.hadoop.hbase.io.hfile.bucket.PersistentIOEngine
calculateChecksum, verifyFileIntegrityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.io.hfile.bucket.IOEngine
usesSharedMemory
-
Constructor Details
-
ExclusiveMemoryMmapIOEngine
- Throws:
IOException
-
-
Method Details
-
read
Description copied from interface:IOEngineTransfers data from IOEngine to a Cacheable object.- Specified by:
readin interfaceIOEngine- Specified by:
readin classFileMmapIOEngine- Parameters:
be- maintains an (offset,len,refCnt) inside.- Returns:
- Cacheable which will wrap the NIO ByteBuffers from IOEngine.
- Throws:
IOException- when any IO error happen
-