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