Class CellBTreeMultiValueV2Bucket<K>
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.sbtree.multivalue.v2.CellBTreeMultiValueV2Bucket<K>
- Since:
- 8/7/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic final classstatic final class -
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 TypeMethodDescriptionvoidaddAll(List<? extends CellBTreeMultiValueV2Bucket.Entry> entries, OBinarySerializer<K> keySerializer, boolean isEncrypted) booleanaddNonLeafEntry(int index, byte[] serializedKey, int leftChild, int rightChild, boolean updateNeighbors) longappendNewLeafEntry(int index, ORID value) booleancreateMainLeafEntry(int index, byte[] serializedKey, ORID value, long mId) booleandecrementEntriesCount(int entryIndex) getKey(int index, OBinarySerializer<K> keySerializer, OEncryption encryption) getLeafEntry(int entryIndex, OBinarySerializer<K> keySerializer, boolean isEncrypted) longgetNonLeafEntry(int entryIndex, OBinarySerializer<K> keySerializer, boolean isEncrypted) longvoidincrementEntriesCount(int entryIndex) voidinit(boolean isLeaf) booleanisLeaf()intremoveLeafEntry(int entryIndex, ORID value) voidremoveMainLeafEntry(int entryIndex, int keySize) voidremoveNonLeafEntry(int entryIndex, byte[] key, int prevChild) voidsetLeftSibling(long pageIndex) voidsetRightSibling(long pageIndex) voidshrink(int newSize, OBinarySerializer<K> keySerializer, boolean isEncrypted) intsize()voidMethods 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, setPageLSN, setShortValue, toString
-
Constructor Details
-
CellBTreeMultiValueV2Bucket
-
-
Method Details
-
init
public void init(boolean isLeaf) -
switchBucketType
public void switchBucketType() -
removeLeafEntry
-
decrementEntriesCount
public boolean decrementEntriesCount(int entryIndex) -
removeMainLeafEntry
public void removeMainLeafEntry(int entryIndex, int keySize) -
incrementEntriesCount
public void incrementEntriesCount(int entryIndex) -
size
public int size() -
getLeafEntry
public CellBTreeMultiValueV2Bucket.LeafEntry getLeafEntry(int entryIndex, OBinarySerializer<K> keySerializer, boolean isEncrypted) -
getNonLeafEntry
public CellBTreeMultiValueV2Bucket.NonLeafEntry getNonLeafEntry(int entryIndex, OBinarySerializer<K> keySerializer, boolean isEncrypted) -
getKey
-
isLeaf
public boolean isLeaf() -
addAll
public void addAll(List<? extends CellBTreeMultiValueV2Bucket.Entry> entries, OBinarySerializer<K> keySerializer, boolean isEncrypted) -
shrink
-
createMainLeafEntry
-
appendNewLeafEntry
-
addNonLeafEntry
public boolean addNonLeafEntry(int index, byte[] serializedKey, int leftChild, int rightChild, boolean updateNeighbors) -
removeNonLeafEntry
public void removeNonLeafEntry(int entryIndex, byte[] key, int prevChild) -
setLeftSibling
public void setLeftSibling(long pageIndex) -
getLeftSibling
public long getLeftSibling() -
setRightSibling
public void setRightSibling(long pageIndex) -
getRightSibling
public long getRightSibling()
-