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>
- Since:
- 8/7/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Nested Class Summary
Nested Classes -
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, boolean isEncrypted, OBinarySerializer<K> keySerializer) booleanaddLeafEntry(int index, byte[] serializedKey, byte[] serializedValue) booleanaddNonLeafEntry(int index, int leftChild, int rightChild, byte[] key, boolean updateNeighbors) intfind(K key, OBinarySerializer<K> keySerializer, OEncryption encryption) getEntry(int entryIndex, OEncryption encryption, OBinarySerializer<K> keySerializer) getKey(int index, OEncryption encryption, OBinarySerializer<K> keySerializer) longbyte[]getRawEntry(int entryIndex, boolean isEncrypted, OBinarySerializer<K> keySerializer) longgetValue(int entryIndex, int keyLen) getValue(int entryIndex, OEncryption encryption, OBinarySerializer<K> keySerializer) Obtains the value stored under the given entry index in this bucket.voidinit(boolean isLeaf) booleanisEmpty()booleanisLeaf()voidremoveLeafEntry(int entryIndex, byte[] key, byte[] value) voidremoveNonLeafEntry(int entryIndex, byte[] key, int prevChild) voidsetLeftSibling(long pageIndex) voidsetRightSibling(long pageIndex) voidshrink(int newSize, boolean isEncrypted, OBinarySerializer<K> keySerializer) intsize()voidvoidupdateValue(int index, byte[] value, int keySize) 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, setPageLSN, setShortValue, toString
-
Constructor Details
-
CellBTreeBucketSingleValueV1
-
-
Method Details
-
init
public void init(boolean isLeaf) -
switchBucketType
public void switchBucketType() -
isEmpty
public boolean isEmpty() -
find
-
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
-
getValue
Obtains the value stored under the given entry index in this bucket.- Parameters:
entryIndex- the value entry index.- Returns:
- the obtained value.
-
getValue
-
getKey
-
isLeaf
public boolean isLeaf() -
addAll
public void addAll(List<byte[]> rawEntries, boolean isEncrypted, OBinarySerializer<K> keySerializer) -
shrink
-
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()
-