
public interface OWALChanges
use get* to access to the original content decorated with the changes. use set* to add a change.
Created by tglman on 24/12/15.
| Modifier and Type | Method and Description |
|---|---|
void |
applyChanges(ByteBuffer buffer)
Apply the changes to a page.
|
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) |
short |
getShortValue(ByteBuffer buffer,
int offset) |
boolean |
hasChanges() |
OWALChanges |
inverse(ByteBuffer buffer) |
void |
moveData(ByteBuffer buffer,
int from,
int to,
int len) |
int |
serializedSize()
Return the size needed in a buffer in case of serialization.
|
void |
setBinaryValue(ByteBuffer buffer,
byte[] value,
int offset) |
void |
setByteValue(ByteBuffer buffer,
byte value,
int offset) |
void |
setIntValue(ByteBuffer buffer,
int value,
int offset) |
void |
setLongValue(ByteBuffer buffer,
long value,
int offset) |
int |
toStream(int offset,
byte[] stream)
Serialize the changes to a stream.
|
byte getByteValue(ByteBuffer buffer, int offset)
byte[] getBinaryValue(ByteBuffer buffer, int offset, int len)
short getShortValue(ByteBuffer buffer, int offset)
int getIntValue(ByteBuffer buffer, int offset)
long getLongValue(ByteBuffer buffer, int offset)
void setLongValue(ByteBuffer buffer, long value, int offset)
void setIntValue(ByteBuffer buffer, int value, int offset)
void setByteValue(ByteBuffer buffer, byte value, int offset)
void setBinaryValue(ByteBuffer buffer, byte[] value, int offset)
void moveData(ByteBuffer buffer, int from, int to, int len)
boolean hasChanges()
void applyChanges(ByteBuffer buffer)
buffer - Presents page where apply the changes.int serializedSize()
int toStream(int offset,
byte[] stream)
offset - starting writing offset for the provided buffer.stream - buffer where write the content, should be of minimal size of offset+ @{link @serializedSize()}int fromStream(int offset,
byte[] stream)
offset - the offest in the buffer where start to read.stream - the buffer to read.OWALChanges inverse(ByteBuffer buffer)
Copyright © 2009–2025 OrientDB. All rights reserved.