public final class OClusterPositionMapBucket extends ODurablePage
Modifier and Type | Class and Description |
---|---|
static class |
OClusterPositionMapBucket.PositionEntry |
Modifier and Type | Field and Description |
---|---|
static byte |
ALLOCATED |
static byte |
FILLED |
static int |
MAX_ENTRIES |
static byte |
NOT_EXISTENT |
static byte |
REMOVED |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET
Constructor and Description |
---|
OClusterPositionMapBucket(OCacheEntry cacheEntry) |
Modifier and Type | Method and Description |
---|---|
int |
add(int pageIndex,
int recordPosition,
byte status) |
int |
add(long pageIndex,
int recordPosition) |
int |
allocate() |
boolean |
exists(int index) |
OClusterPositionMapBucket.PositionEntry |
get(int index) |
int |
getSize() |
byte |
getStatus(int index) |
void |
init() |
boolean |
isFull() |
void |
remove(int index) |
void |
set(int index,
OClusterPositionMapBucket.PositionEntry entry) |
void |
truncateLastEntry() |
void |
updateEntry(int index,
int pageIndex,
int recordPosition,
byte status) |
void |
updateStatus(int index,
byte status) |
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 byte NOT_EXISTENT
public static final byte REMOVED
public static final byte FILLED
public static final byte ALLOCATED
public static final int MAX_ENTRIES
public OClusterPositionMapBucket(OCacheEntry cacheEntry)
public void init()
public int add(long pageIndex, int recordPosition)
public int add(int pageIndex, int recordPosition, byte status)
public int allocate()
public void truncateLastEntry()
public OClusterPositionMapBucket.PositionEntry get(int index)
public void set(int index, OClusterPositionMapBucket.PositionEntry entry)
public void updateEntry(int index, int pageIndex, int recordPosition, byte status)
public boolean isFull()
public int getSize()
public void remove(int index)
public void updateStatus(int index, byte status)
public boolean exists(int index)
public byte getStatus(int index)
Copyright © 2009–2020 OrientDB. All rights reserved.