
public class OWALChangesTree extends Object implements OWALChanges
| Constructor and Description |
|---|
OWALChangesTree() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(byte[] value,
int start) |
void |
applyChanges(byte[] values,
int start) |
void |
applyChanges(ByteBuffer buffer)
Apply the changes to a page.
|
void |
fromStream(ByteBuffer buffer) |
int |
fromStream(int offset,
byte[] stream)
Read changes from a stream.
|
byte[] |
getBinaryValue(ByteBuffer buffer,
int offset,
int len) |
byte |
getByteValue(ByteBuffer buffer,
int offset) |
int |
getIntValue(ByteBuffer buffer,
int offset) |
long |
getLongValue(ByteBuffer buffer,
int offset) |
int |
getSerializedSize() |
short |
getShortValue(ByteBuffer buffer,
int offset) |
boolean |
hasChanges() |
void |
moveData(ByteBuffer buffer,
int from,
int to,
int len) |
int |
serializedSize()
Return the size of byte array is needed to serialize all data in it.
|
int |
serializedSize(int content) |
void |
setBinaryValue(ByteBuffer buffer,
byte[] value,
int offset) |
void |
setBinaryValue(ByteBuffer buffer,
byte[] value,
int pageOffset,
int offset,
int len) |
void |
setByteValue(ByteBuffer buffer,
byte value,
int offset) |
void |
setDebug(boolean debug) |
void |
setIntValue(ByteBuffer buffer,
int value,
int offset) |
void |
setLongValue(ByteBuffer buffer,
long value,
int offset) |
void |
setShortValue(ByteBuffer buffer,
short value,
int offset) |
void |
toStream(ByteBuffer byteBuffer) |
int |
toStream(int offset,
byte[] stream)
Serialize the changes to a stream.
|
public void setDebug(boolean debug)
public byte getByteValue(ByteBuffer buffer, int offset)
getByteValue in interface OWALChangespublic byte[] getBinaryValue(ByteBuffer buffer, int offset, int len)
getBinaryValue in interface OWALChangespublic short getShortValue(ByteBuffer buffer, int offset)
getShortValue in interface OWALChangespublic int getIntValue(ByteBuffer buffer, int offset)
getIntValue in interface OWALChangespublic long getLongValue(ByteBuffer buffer, int offset)
getLongValue in interface OWALChangespublic void setIntValue(ByteBuffer buffer, int value, int offset)
setIntValue in interface OWALChangespublic void setShortValue(ByteBuffer buffer, short value, int offset)
setShortValue in interface OWALChangespublic void setLongValue(ByteBuffer buffer, long value, int offset)
setLongValue in interface OWALChangespublic void moveData(ByteBuffer buffer, int from, int to, int len)
moveData in interface OWALChangespublic void setBinaryValue(ByteBuffer buffer, byte[] value, int offset)
setBinaryValue in interface OWALChangespublic void setBinaryValue(ByteBuffer buffer, byte[] value, int pageOffset, int offset, int len)
setBinaryValue in interface OWALChangespublic void setByteValue(ByteBuffer buffer, byte value, int offset)
setByteValue in interface OWALChangespublic void fromStream(ByteBuffer buffer)
fromStream in interface OWALChangespublic void add(byte[] value,
int start)
public void applyChanges(byte[] values,
int start)
public int serializedSize()
OWALChangesserializedSize in interface OWALChangespublic int serializedSize(int content)
public void applyChanges(ByteBuffer buffer)
OWALChangesapplyChanges in interface OWALChangesbuffer - Presents page where apply the changes.public int getSerializedSize()
public int fromStream(int offset,
byte[] stream)
OWALChangesfromStream in interface OWALChangesoffset - the offset in the buffer where start to read.stream - the buffer to read.public int toStream(int offset,
byte[] stream)
OWALChangestoStream in interface OWALChangesoffset - starting writing offset for the provided buffer.stream - buffer where write the content, should be of minimal size of
offset+ @{link @serializedSize()}public boolean hasChanges()
hasChanges in interface OWALChangespublic void toStream(ByteBuffer byteBuffer)
toStream in interface OWALChangesCopyright © 2009–2025 OrientDB. All rights reserved.