public final class OClusterPage extends ODurablePage
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RECORD_SIZE |
static int |
PAGE_SIZE |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET
Constructor and Description |
---|
OClusterPage(OCacheEntry cacheEntry) |
Modifier and Type | Method and Description |
---|---|
int |
appendRecord(int recordVersion,
byte[] record,
int requestedPosition,
Set<Integer> bookedRecordPositions) |
byte[] |
deleteRecord(int position,
boolean preserveFreeListPointer) |
int |
getFreeSpace() |
int |
getMaxRecordSize() |
long |
getNextPage() |
long |
getPrevPage() |
byte[] |
getRecordBinaryValue(int recordPosition,
int offset,
int size) |
byte |
getRecordByteValue(int recordPosition,
int offset) |
long |
getRecordLongValue(int recordPosition,
int offset) |
int |
getRecordsCount() |
int |
getRecordSize(int position) |
int |
getRecordVersion(int position) |
void |
init() |
boolean |
isDeleted(int position) |
boolean |
isEmpty() |
byte[] |
replaceRecord(int entryIndex,
byte[] record,
int recordVersion) |
void |
setNextPage(long nextPage) |
void |
setPrevPage(long prevPage) |
void |
setRecordLongValue(int recordPosition,
int offset,
long value) |
addPageOperation, deserializeFromDirectMemory, getBinaryValue, getByteValue, getCacheEntry, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLsn, getLSN, getObjectSizeInDirectMemory, getPageData, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, setPageLSN, setShortValue, toString
public static final int PAGE_SIZE
public static final int MAX_RECORD_SIZE
public OClusterPage(OCacheEntry cacheEntry)
public void init()
public int appendRecord(int recordVersion, byte[] record, int requestedPosition, Set<Integer> bookedRecordPositions)
public byte[] replaceRecord(int entryIndex, byte[] record, int recordVersion)
public int getRecordVersion(int position)
public boolean isEmpty()
public byte[] deleteRecord(int position, boolean preserveFreeListPointer)
public boolean isDeleted(int position)
public int getRecordSize(int position)
public final int getFreeSpace()
public int getMaxRecordSize()
public final int getRecordsCount()
public long getNextPage()
public void setNextPage(long nextPage)
public long getPrevPage()
public void setPrevPage(long prevPage)
public void setRecordLongValue(int recordPosition, int offset, long value)
public long getRecordLongValue(int recordPosition, int offset)
public byte[] getRecordBinaryValue(int recordPosition, int offset, int size)
public byte getRecordByteValue(int recordPosition, int offset)
Copyright © 2009–2020 OrientDB. All rights reserved.