
public class OWALPageChangesPortion extends Object implements OWALChanges
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SIZE |
static int |
PORTION_BYTES |
static int |
PORTION_SIZE |
| Constructor and Description |
|---|
OWALPageChangesPortion() |
OWALPageChangesPortion(int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyChanges(ByteBuffer pointer)
Apply the changes to a page.
|
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() |
OWALChanges |
inverse(ByteBuffer buffer) |
void |
moveData(ByteBuffer pointer,
int from,
int to,
int len) |
int |
serializedSize()
Return the size needed in a buffer in case of serialization.
|
void |
setBinaryValue(ByteBuffer pointer,
byte[] value,
int offset) |
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) |
int |
toStream(int offset,
byte[] stream)
Serialize the changes to a stream.
|
public static final int CHUNK_SIZE
public static final int PORTION_SIZE
public static final int PORTION_BYTES
public OWALPageChangesPortion()
public OWALPageChangesPortion(int pageSize)
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)
public 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 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 int fromStream(int offset,
byte[] stream)
OWALChangesfromStream in interface OWALChangesoffset - the offest in the buffer where start to read.stream - the buffer to read.public OWALChanges inverse(ByteBuffer buffer)
inverse in interface OWALChangespublic boolean hasChanges()
hasChanges in interface OWALChangesCopyright © 2009–2025 OrientDB. All rights reserved.