Class CellBTreeSingleValueBucketV3<K>
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.sbtree.singlevalue.v3.CellBTreeSingleValueBucketV3<K>
- Since:
- 8/7/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
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<byte[]> rawEntries, OBinarySerializer<K> keySerializer) booleanaddLeafEntry(int index, byte[] serializedKey, byte[] serializedValue) booleanaddNonLeafEntry(int index, int leftChildIndex, int newRightChildIndex, byte[] key) intfind(K key, OBinarySerializer<K> keySerializer) getEntry(int entryIndex, OBinarySerializer<K> keySerializer) getKey(int index, OBinarySerializer<K> keySerializer) intgetLeft(int entryIndex) longintint[]byte[]getRawEntry(int entryIndex, OBinarySerializer<K> keySerializer) byte[]getRawKey(int index, OBinarySerializer<K> keySerializer) intgetRight(int entryIndex) longgetValue(int entryIndex, OBinarySerializer<K> keySerializer) Obtains the value stored under the given entry index in this bucket.voidinit(boolean isLeaf) booleanisEmpty()booleanisLeaf()intremoveLeafEntry(int entryIndex, byte[] key) intremoveNonLeafEntry(int entryIndex, boolean removeLeftChildPointer, OBinarySerializer<K> keySerializer) intremoveNonLeafEntry(int entryIndex, byte[] key, boolean removeLeftChildPointer) voidsetLeftSibling(long pageIndex) voidsetNextFreeListPage(int nextFreeListPage) voidsetPointersOffset(int position, int[] pointers, int pointersOffset) voidsetRightSibling(long pageIndex) voidshrink(int newSize, OBinarySerializer<K> keySerializer) intsize()voidbooleanupdateKey(int entryIndex, byte[] key, OBinarySerializer<K> keySerializer) voidupdateValue(int index, byte[] value, int keyLenght) 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
-
CellBTreeSingleValueBucketV3
-
-
Method Details
-
switchBucketType
public void switchBucketType() -
init
public void init(boolean isLeaf) -
isEmpty
public boolean isEmpty() -
find
-
removeLeafEntry
public int removeLeafEntry(int entryIndex, byte[] key) -
removeNonLeafEntry
public int removeNonLeafEntry(int entryIndex, boolean removeLeftChildPointer, OBinarySerializer<K> keySerializer) -
removeNonLeafEntry
public int removeNonLeafEntry(int entryIndex, byte[] key, boolean removeLeftChildPointer) -
getPointers
public int[] getPointers() -
setPointersOffset
public void setPointersOffset(int position, int[] pointers, int pointersOffset) -
size
public int size() -
getEntry
-
getLeft
public int getLeft(int entryIndex) -
getRight
public int getRight(int entryIndex) -
getRawEntry
-
getValue
Obtains the value stored under the given entry index in this bucket.- Parameters:
entryIndex- the value entry index.- Returns:
- the obtained value.
-
getKey
-
getRawKey
-
isLeaf
public boolean isLeaf() -
addAll
-
shrink
-
addLeafEntry
public boolean addLeafEntry(int index, byte[] serializedKey, byte[] serializedValue) -
addNonLeafEntry
public boolean addNonLeafEntry(int index, int leftChildIndex, int newRightChildIndex, byte[] key) -
updateKey
-
updateValue
public void updateValue(int index, byte[] value, int keyLenght) -
setLeftSibling
public void setLeftSibling(long pageIndex) -
getLeftSibling
public long getLeftSibling() -
setRightSibling
public void setRightSibling(long pageIndex) -
getNextFreeListPage
public int getNextFreeListPage() -
setNextFreeListPage
public void setNextFreeListPage(int nextFreeListPage) -
getRightSibling
public long getRightSibling()
-