
public class OWALPageChangesPortion extends Object implements OWALChanges
| Constructor and Description |
|---|
OWALPageChangesPortion() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyChanges(ByteBuffer pointer)
Apply the changes to a page.
|
void |
fromStream(ByteBuffer buffer) |
int |
fromStream(int offset,
byte[] stream)
Read changes from a stream.
|
byte[] |
getBinaryValue(ByteBuffer pointer,
int offset,
int len) |
byte |
getByteValue(ByteBuffer pointer,
int offset) |
int |
getIntValue(ByteBuffer pointer,
int offset) |
long |
getLongValue(ByteBuffer pointer,
int offset) |
short |
getShortValue(ByteBuffer pointer,
int offset) |
boolean |
hasChanges() |
void |
moveData(ByteBuffer pointer,
int from,
int to,
int len) |
int |
serializedSize()
Return the size of byte array is needed to serialize all data in it.
|
void |
setBinaryValue(ByteBuffer pointer,
byte[] value,
int offset) |
void |
setBinaryValue(ByteBuffer buffer,
byte[] value,
int pageOffset,
int offset,
int len) |
void |
setByteValue(ByteBuffer pointer,
byte value,
int offset) |
void |
setIntValue(ByteBuffer pointer,
int value,
int offset) |
void |
setLongValue(ByteBuffer pointer,
long value,
int offset) |
void |
setShortValue(ByteBuffer pointer,
short value,
int offset) |
void |
toStream(ByteBuffer buffer) |
int |
toStream(int offset,
byte[] stream)
Serialize the changes to a stream.
|
public void setLongValue(ByteBuffer pointer, long value, int offset)
setLongValue in interface OWALChangespublic void setIntValue(ByteBuffer pointer, int value, int offset)
setIntValue in interface OWALChangespublic void setShortValue(ByteBuffer pointer, short value, int offset)
setShortValue in interface OWALChangespublic void setByteValue(ByteBuffer pointer, byte value, int offset)
setByteValue in interface OWALChangespublic void setBinaryValue(ByteBuffer pointer, 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 moveData(ByteBuffer pointer, int from, int to, int len)
moveData in interface OWALChangespublic long getLongValue(ByteBuffer pointer, int offset)
getLongValue in interface OWALChangespublic int getIntValue(ByteBuffer pointer, int offset)
getIntValue in interface OWALChangespublic short getShortValue(ByteBuffer pointer, int offset)
getShortValue in interface OWALChangespublic byte getByteValue(ByteBuffer pointer, int offset)
getByteValue in interface OWALChangespublic byte[] getBinaryValue(ByteBuffer pointer, int offset, int len)
getBinaryValue in interface OWALChangespublic void applyChanges(ByteBuffer pointer)
OWALChangesapplyChanges in interface OWALChangespointer - Presents page where apply the changes.public int serializedSize()
OWALChangesserializedSize in interface OWALChangespublic 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 void toStream(ByteBuffer buffer)
toStream in interface OWALChangespublic 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 void fromStream(ByteBuffer buffer)
fromStream in interface OWALChangespublic boolean hasChanges()
hasChanges in interface OWALChangesCopyright © 2009–2025 OrientDB. All rights reserved.