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>

public final class CellBTreeSingleValueBucketV3<K> extends ODurablePage
Since:
8/7/13
Author:
Andrey Lomakin (a.lomakin-at-orientdb.com)
  • Constructor Details

    • CellBTreeSingleValueBucketV3

      public CellBTreeSingleValueBucketV3(OCacheEntry cacheEntry)
  • Method Details

    • switchBucketType

      public void switchBucketType()
    • init

      public void init(boolean isLeaf)
    • isEmpty

      public boolean isEmpty()
    • find

      public int find(K key, OBinarySerializer<K> keySerializer)
    • 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

      public CellBTreeSingleValueEntryV3<K> getEntry(int entryIndex, OBinarySerializer<K> keySerializer)
    • getLeft

      public int getLeft(int entryIndex)
    • getRight

      public int getRight(int entryIndex)
    • getRawEntry

      public byte[] getRawEntry(int entryIndex, OBinarySerializer<K> keySerializer)
    • getValue

      public ORID getValue(int entryIndex, OBinarySerializer<K> keySerializer)
      Obtains the value stored under the given entry index in this bucket.
      Parameters:
      entryIndex - the value entry index.
      Returns:
      the obtained value.
    • getKey

      public K getKey(int index, OBinarySerializer<K> keySerializer)
    • getRawKey

      public byte[] getRawKey(int index, OBinarySerializer<K> keySerializer)
    • isLeaf

      public boolean isLeaf()
    • addAll

      public void addAll(List<byte[]> rawEntries, OBinarySerializer<K> keySerializer)
    • shrink

      public void shrink(int newSize, OBinarySerializer<K> keySerializer)
    • addLeafEntry

      public boolean addLeafEntry(int index, byte[] serializedKey, byte[] serializedValue)
    • addNonLeafEntry

      public boolean addNonLeafEntry(int index, int leftChildIndex, int newRightChildIndex, byte[] key)
    • updateKey

      public boolean updateKey(int entryIndex, byte[] key, OBinarySerializer<K> keySerializer)
    • 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()