public final class OSBTreeBucketV2<K,V> extends ODurablePage
Modifier and Type | Class and Description |
---|---|
static class |
OSBTreeBucketV2.SBTreeEntry<K,V> |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET
Constructor and Description |
---|
OSBTreeBucketV2(OCacheEntry cacheEntry) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(List<byte[]> rawEntries,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer) |
boolean |
addLeafEntry(int index,
byte[] serializedKey,
byte[] serializedValue) |
boolean |
addNonLeafEntry(int index,
byte[] key,
long leftChild,
long rightChild,
boolean updateNeighbours) |
int |
find(K key,
OBinarySerializer<K> keySerializer) |
OSBTreeBucketV2.SBTreeEntry<K,V> |
getEntry(int entryIndex,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer) |
K |
getKey(int index,
OBinarySerializer<K> keySerializer) |
long |
getLeftSibling() |
byte[] |
getRawEntry(int entryIndex,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer) |
long |
getRightSibling() |
long |
getTreeSize() |
OSBTreeValue<V> |
getValue(int entryIndex,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer)
Obtains the value stored under the given entry index in this bucket.
|
void |
init(boolean isLeaf) |
boolean |
isEmpty() |
boolean |
isLeaf() |
void |
removeLeafEntry(int entryIndex,
byte[] oldRawKey,
byte[] oldRawValue) |
void |
removeNonLeafEntry(int entryIndex,
byte[] key,
int prevChild) |
void |
setLeftSibling(long pageIndex) |
void |
setRightSibling(long pageIndex) |
void |
setTreeSize(long size) |
void |
shrink(int newSize,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer) |
int |
size() |
void |
switchBucketType() |
void |
updateValue(int index,
byte[] value,
int keySize) |
addPageOperation, deserializeFromDirectMemory, getBinaryValue, getByteValue, getCacheEntry, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLsn, getLSN, getObjectSizeInDirectMemory, getPageData, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, setPageLSN, setShortValue, toString
public OSBTreeBucketV2(OCacheEntry cacheEntry)
public void init(boolean isLeaf)
public void switchBucketType()
public void setTreeSize(long size)
public long getTreeSize()
public boolean isEmpty()
public int find(K key, OBinarySerializer<K> keySerializer)
public void removeLeafEntry(int entryIndex, byte[] oldRawKey, byte[] oldRawValue)
public void removeNonLeafEntry(int entryIndex, byte[] key, int prevChild)
public int size()
public OSBTreeBucketV2.SBTreeEntry<K,V> getEntry(int entryIndex, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer)
public byte[] getRawEntry(int entryIndex, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer)
public OSBTreeValue<V> getValue(int entryIndex, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer)
entryIndex
- the value entry index.public K getKey(int index, OBinarySerializer<K> keySerializer)
public boolean isLeaf()
public void addAll(List<byte[]> rawEntries, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer)
public void shrink(int newSize, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer)
public boolean addLeafEntry(int index, byte[] serializedKey, byte[] serializedValue)
public boolean addNonLeafEntry(int index, byte[] key, long leftChild, long rightChild, boolean updateNeighbours)
public void updateValue(int index, byte[] value, int keySize)
public void setLeftSibling(long pageIndex)
public long getLeftSibling()
public void setRightSibling(long pageIndex)
public long getRightSibling()
Copyright © 2009–2020 OrientDB. All rights reserved.