
public class OClusterPage extends ODurablePage
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_ENTRY_SIZE |
static int |
MAX_RECORD_SIZE |
static int |
PAGE_SIZE |
changes, CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET| Constructor and Description |
|---|
OClusterPage(OCacheEntry cacheEntry,
boolean newPage,
OWALChanges changes) |
| Modifier and Type | Method and Description |
|---|---|
int |
appendRecord(int recordVersion,
byte[] record) |
void |
clearAndMarkAsFilled() |
boolean |
deleteRecord(int position) |
void |
dumpToLog()
Writes binary dump of this cluster page to the log.
|
int |
findFirstDeletedRecord(int position) |
int |
findFirstRecord(int position) |
int |
findLastRecord(int position) |
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) |
boolean |
isDeleted(int position) |
boolean |
isEmpty() |
int |
replaceRecord(int entryIndex,
byte[] record,
int recordVersion) |
void |
setNextPage(long nextPage) |
void |
setPrevPage(long prevPage) |
void |
setRecordLongValue(int recordPosition,
int offset,
long value) |
deserializeFromDirectMemory, getBinaryValue, getByteValue, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLsn, getObjectSizeInDirectMemory, getPageData, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, toStringpublic static final int PAGE_SIZE
public static final int MAX_ENTRY_SIZE
public static final int MAX_RECORD_SIZE
public OClusterPage(OCacheEntry cacheEntry, boolean newPage, OWALChanges changes) throws IOException
IOExceptionpublic void clearAndMarkAsFilled()
throws IOException
IOExceptionpublic int appendRecord(int recordVersion,
byte[] record)
throws IOException
IOExceptionpublic int replaceRecord(int entryIndex,
byte[] record,
int recordVersion)
throws IOException
IOExceptionpublic int getRecordVersion(int position)
public boolean isEmpty()
public boolean deleteRecord(int position)
throws IOException
IOExceptionpublic boolean isDeleted(int position)
public int getRecordSize(int position)
public int findFirstDeletedRecord(int position)
public int findFirstRecord(int position)
public int findLastRecord(int position)
public int getFreeSpace()
public int getMaxRecordSize()
public int getRecordsCount()
public long getNextPage()
public void setNextPage(long nextPage)
throws IOException
IOExceptionpublic long getPrevPage()
public void setPrevPage(long prevPage)
throws IOException
IOExceptionpublic void setRecordLongValue(int recordPosition,
int offset,
long value)
throws IOException
IOExceptionpublic long getRecordLongValue(int recordPosition,
int offset)
public byte[] getRecordBinaryValue(int recordPosition,
int offset,
int size)
throws IOException
IOExceptionpublic byte getRecordByteValue(int recordPosition,
int offset)
public void dumpToLog()
Copyright © 2009–2025 OrientDB. All rights reserved.