Class OBonsaiBucketAbstract
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.sbtreebonsai.local.OBonsaiBucketAbstract
- Direct Known Subclasses:
OSBTreeBonsaiBucket,OSysBucket
A base class for bonsai buckets. Bonsai bucket size is usually less than page size and one page
could contain multiple bonsai buckets.
Adds methods to read and write bucket pointers.
- Author:
- Artem Orobets (enisher-at-gmail.com)
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionprotected OBonsaiBucketPointergetBucketPointer(int offset) Read bucket pointer from page.protected voidsetBucketPointer(int pageOffset, OBonsaiBucketPointer value) Write a bucket pointer to specific location.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
-
Constructor Details
-
OBonsaiBucketAbstract
-
-
Method Details
-
setBucketPointer
Write a bucket pointer to specific location.- Parameters:
pageOffset- where to writevalue- - pointer to write- Throws:
IOException
-
getBucketPointer
Read bucket pointer from page.- Parameters:
offset- where the pointer should be read from- Returns:
- bucket pointer
-