@InterfaceAudience.Private public interface IOEngine
BucketCache.| Modifier and Type | Method and Description |
|---|---|
boolean |
isPersistent() |
int |
read(ByteBuffer dstBuffer,
long offset)
Transfers data from IOEngine to the given byte buffer
|
void |
shutdown()
Shutdown the IOEngine
|
void |
sync()
Sync the data to IOEngine after writing
|
void |
write(ByteBuffer srcBuffer,
long offset)
Transfers data from the given byte buffer to IOEngine
|
boolean isPersistent()
int read(ByteBuffer dstBuffer, long offset) throws IOException
dstBuffer - the given byte buffer into which bytes are to be writtenoffset - The offset in the IO engine where the first byte to be readIOExceptionvoid write(ByteBuffer srcBuffer, long offset) throws IOException
srcBuffer - the given byte buffer from which bytes are to be readoffset - The offset in the IO engine where the first byte to be
writtenIOExceptionvoid sync()
throws IOException
IOExceptionvoid shutdown()
Copyright © 2014 The Apache Software Foundation. All rights reserved.