public final class Block extends Object
| Constructor and Description |
|---|
Block(long id,
ByteBuffer byteBuffer) |
Block(Long id,
ByteBuffer byteBuffer) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
getByteBuffer() |
Long |
getId() |
ByteBuffer |
getUnderlyingByteBuffer() |
boolean |
isModified() |
boolean |
isReadOnly() |
Block |
replicate()
Deep copy, including ByteBuffer contents into a HeapByteBuffer.
|
static void |
replicate(Block srcBlock,
Block dstBlock) |
void |
setModified(boolean modified) |
void |
setReadOnly(boolean readonly) |
void |
setUnderlyingByteBuffer(ByteBuffer underlyingByteBuffer) |
String |
toString() |
public Block(long id,
ByteBuffer byteBuffer)
public Block(Long id, ByteBuffer byteBuffer)
public final Long getId()
public final ByteBuffer getByteBuffer()
public boolean isReadOnly()
public void setReadOnly(boolean readonly)
public boolean isModified()
public void setModified(boolean modified)
public ByteBuffer getUnderlyingByteBuffer()
public void setUnderlyingByteBuffer(ByteBuffer underlyingByteBuffer)
public Block replicate()
Licensed under the Apache License, Version 2.0