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 |
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 OWALChanges
public byte[] getBinaryValue(ByteBuffer buffer, int offset, int len)
getBinaryValue
in interface OWALChanges
public short getShortValue(ByteBuffer buffer, int offset)
getShortValue
in interface OWALChanges
public int getIntValue(ByteBuffer buffer, int offset)
getIntValue
in interface OWALChanges
public long getLongValue(ByteBuffer buffer, int offset)
getLongValue
in interface OWALChanges
public void setIntValue(ByteBuffer buffer, int value, int offset)
setIntValue
in interface OWALChanges
public void setShortValue(ByteBuffer buffer, short value, int offset)
setShortValue
in interface OWALChanges
public void setLongValue(ByteBuffer buffer, long value, int offset)
setLongValue
in interface OWALChanges
public void moveData(ByteBuffer buffer, int from, int to, int len)
moveData
in interface OWALChanges
public void setBinaryValue(ByteBuffer buffer, byte[] value, int offset)
setBinaryValue
in interface OWALChanges
public void setByteValue(ByteBuffer buffer, byte value, int offset)
setByteValue
in interface OWALChanges
public void fromStream(ByteBuffer buffer)
fromStream
in interface OWALChanges
public void add(byte[] value, int start)
public void applyChanges(byte[] values, int start)
public int serializedSize()
OWALChanges
serializedSize
in interface OWALChanges
public int serializedSize(int content)
public void applyChanges(ByteBuffer buffer)
OWALChanges
applyChanges
in interface OWALChanges
buffer
- Presents page where apply the changes.public int getSerializedSize()
public int fromStream(int offset, byte[] stream)
OWALChanges
fromStream
in interface OWALChanges
offset
- the offset in the buffer where start to read.stream
- the buffer to read.public int toStream(int offset, byte[] stream)
OWALChanges
toStream
in interface OWALChanges
offset
- 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 OWALChanges
public void toStream(ByteBuffer byteBuffer)
toStream
in interface OWALChanges
Copyright © 2009–2020 OrientDB. All rights reserved.