@InterfaceAudience.Private public class ExclusiveMemoryMmapIOEngine extends FileMmapIOEngine
bufferArray, path, size| 构造器和说明 |
|---|
ExclusiveMemoryMmapIOEngine(String filePath,
long capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
Cacheable |
read(long offset,
int length,
CacheableDeserializer<Cacheable> deserializer)
Transfers data from IOEngine to a Cacheable object.
|
isPersistent, shutdown, sync, toString, write, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitusesSharedMemorypublic ExclusiveMemoryMmapIOEngine(String filePath, long capacity) throws IOException
IOExceptionpublic Cacheable read(long offset, int length, CacheableDeserializer<Cacheable> deserializer) throws IOException
IOEngineread 在接口中 IOEngineread 在类中 FileMmapIOEngineoffset - The offset in the IO engine where the first byte to be readlength - How many bytes to be read from the offsetdeserializer - The deserializer to be used to make a Cacheable from the data.IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.