public interface OWALPage
To detect which version of binary format is stored we use value stored under MAGIC_NUMBER_OFFSET
Modifier and Type | Field and Description |
---|---|
static int |
CRC_OFFSET
Offset of position which stores CRC32 value of content stored on this page.
|
static int |
FREE_SPACE_OFFSET
Offset of value which contains amount of space which is available to store new records.
|
static int |
MAGIC_NUMBER_OFFSET
Offset of magic number value.
|
static int |
MIN_RECORD_SIZE
Size of the record which will be stored inside of page even if payload of record equals to 0.
|
static int |
PAGE_SIZE
Size of the current instance of page in direct memory.
|
Modifier and Type | Method and Description |
---|---|
int |
getFreeSpace() |
byte[] |
getRecord(int position)
Returns content of record which is stored inside of specified position of page.
|
boolean |
mergeWithNextPage(int position)
Indicates whether page stored inside of passed in position is stored only partially inside of
given page, so next part of the record should be read from next page of WAL segment.
|
static final int PAGE_SIZE
static final int MIN_RECORD_SIZE
static final int CRC_OFFSET
static final int MAGIC_NUMBER_OFFSET
static final int FREE_SPACE_OFFSET
byte[] getRecord(int position)
boolean mergeWithNextPage(int position)
int getFreeSpace()
Copyright © 2009–2020 OrientDB. All rights reserved.