@InterfaceAudience.Private public interface IOEngine
BucketCache
.Modifier and Type | Method and Description |
---|---|
boolean |
isPersistent() |
int |
read(java.nio.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(java.nio.ByteBuffer srcBuffer,
long offset)
Transfers data from the given byte buffer to IOEngine
|
boolean isPersistent()
int read(java.nio.ByteBuffer dstBuffer, long offset) throws java.io.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 readjava.io.IOException
void write(java.nio.ByteBuffer srcBuffer, long offset) throws java.io.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
writtenjava.io.IOException
void sync() throws java.io.IOException
java.io.IOException
void shutdown()