Class OClusterPositionMapBucket
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.cluster.OClusterPositionMapBucket
- Since:
- 10/7/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final intstatic final bytestatic final byteFields inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintadd(int pageIndex, int recordPosition, byte status) intadd(long pageIndex, int recordPosition) intallocate()booleanexists(int index) get(int index) intgetSize()bytegetStatus(int index) voidinit()booleanisFull()voidremove(int index) voidset(int index, OClusterPositionMapBucket.PositionEntry entry) voidvoidupdateEntry(int index, int pageIndex, int recordPosition, byte status) voidupdateStatus(int index, byte status) Methods inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
deserializeFromDirectMemory, getBinaryValue, getByteValue, getCacheEntry, getChanges, getIntArray, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLSN, getObjectSizeInDirectMemory, getPageData, getPageIndex, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntArray, setIntValue, setLongValue, setLsn, setShortValue, toString
-
Field Details
-
NOT_EXISTENT
public static final byte NOT_EXISTENT- See Also:
-
REMOVED
public static final byte REMOVED- See Also:
-
FILLED
public static final byte FILLED- See Also:
-
ALLOCATED
public static final byte ALLOCATED- See Also:
-
MAX_ENTRIES
public static final int MAX_ENTRIES
-
-
Constructor Details
-
OClusterPositionMapBucket
-
-
Method Details
-
init
public void init() -
add
public int add(long pageIndex, int recordPosition) -
add
public int add(int pageIndex, int recordPosition, byte status) -
allocate
public int allocate() -
truncateLastEntry
public void truncateLastEntry() -
get
-
set
-
updateEntry
public void updateEntry(int index, int pageIndex, int recordPosition, byte status) -
isFull
public boolean isFull() -
getSize
public int getSize() -
remove
public void remove(int index) -
updateStatus
public void updateStatus(int index, byte status) -
exists
public boolean exists(int index) -
getStatus
public byte getStatus(int index)
-