Class CellBTreeBucketSingleValueV1<K>

java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.sbtree.singlevalue.v1.CellBTreeBucketSingleValueV1<K>

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

    • CellBTreeBucketSingleValueV1

      public CellBTreeBucketSingleValueV1(OCacheEntry cacheEntry)
  • Method Details

    • init

      public void init(boolean isLeaf)
    • switchBucketType

      public void switchBucketType()
    • isEmpty

      public boolean isEmpty()
    • find

      public int find(K key, OBinarySerializer<K> keySerializer, OEncryption encryption)
    • removeLeafEntry

      public void removeLeafEntry(int entryIndex, byte[] key, byte[] value)
    • removeNonLeafEntry

      public void removeNonLeafEntry(int entryIndex, byte[] key, int prevChild)
    • size

      public int size()
    • getEntry

      public CellBTreeBucketSingleValueV1.SBTreeEntry<K> getEntry(int entryIndex, OEncryption encryption, OBinarySerializer<K> keySerializer)
    • getRawEntry

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

      public ORID getValue(int entryIndex, OEncryption encryption, 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.
    • getValue

      public ORID getValue(int entryIndex, int keyLen)
    • getKey

      public K getKey(int index, OEncryption encryption, OBinarySerializer<K> keySerializer)
    • isLeaf

      public boolean isLeaf()
    • addAll

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

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

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

      public boolean addNonLeafEntry(int index, int leftChild, int rightChild, byte[] key, boolean updateNeighbors)
    • updateValue

      public void updateValue(int index, byte[] value, int keySize)
    • setLeftSibling

      public void setLeftSibling(long pageIndex)
    • getLeftSibling

      public long getLeftSibling()
    • setRightSibling

      public void setRightSibling(long pageIndex)
    • getRightSibling

      public long getRightSibling()