
public final class CellBTreeSingleValueBucketV3<K> extends ODurablePage
| Modifier and Type | Class and Description |
|---|---|
static class |
CellBTreeSingleValueBucketV3.CellBTreeEntry<K> |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET| Constructor and Description |
|---|
CellBTreeSingleValueBucketV3(OCacheEntry cacheEntry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(List<byte[]> rawEntries) |
boolean |
addLeafEntry(int index,
byte[] serializedKey,
byte[] serializedValue) |
boolean |
addNonLeafEntry(int index,
int leftChildIndex,
int newRightChildIndex,
byte[] key) |
int |
find(K key,
OBinarySerializer<K> keySerializer) |
CellBTreeSingleValueBucketV3.CellBTreeEntry<K> |
getEntry(int entryIndex,
OBinarySerializer<K> keySerializer) |
K |
getKey(int index,
OBinarySerializer<K> keySerializer) |
int |
getLeft(int entryIndex) |
long |
getLeftSibling() |
int |
getNextFreeListPage() |
byte[] |
getRawEntry(int entryIndex,
OBinarySerializer<K> keySerializer) |
byte[] |
getRawKey(int index,
OBinarySerializer<K> keySerializer) |
int |
getRight(int entryIndex) |
long |
getRightSibling() |
ORID |
getValue(int entryIndex,
OBinarySerializer<K> keySerializer)
Obtains the value stored under the given entry index in this bucket.
|
void |
init(boolean isLeaf) |
boolean |
isEmpty() |
boolean |
isLeaf() |
int |
removeLeafEntry(int entryIndex,
byte[] key) |
void |
removeNonLeafEntry(int entryIndex,
boolean removeLeftChildPointer,
OBinarySerializer<K> keySerializer) |
void |
removeNonLeafEntry(int entryIndex,
byte[] key,
boolean removeLeftChildPointer) |
void |
setLeftSibling(long pageIndex) |
void |
setNextFreeListPage(int nextFreeListPage) |
void |
setRightSibling(long pageIndex) |
void |
shrink(int newSize,
OBinarySerializer<K> keySerializer) |
int |
size() |
void |
switchBucketType() |
boolean |
updateKey(int entryIndex,
byte[] key,
OBinarySerializer<K> keySerializer) |
void |
updateValue(int index,
byte[] value) |
deserializeFromDirectMemory, getBinaryValue, getBinaryValueBuffer, getByteValue, getCacheEntry, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLSN, getObjectSizeInDirectMemory, getPageData, getShortValue, moveData, restoreChanges, setBinaryValue, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, setPageLSN, setShortValue, toStringpublic CellBTreeSingleValueBucketV3(OCacheEntry cacheEntry)
public void switchBucketType()
public void init(boolean isLeaf)
public boolean isEmpty()
public int find(K key, OBinarySerializer<K> keySerializer)
public int removeLeafEntry(int entryIndex,
byte[] key)
public void removeNonLeafEntry(int entryIndex,
boolean removeLeftChildPointer,
OBinarySerializer<K> keySerializer)
public void removeNonLeafEntry(int entryIndex,
byte[] key,
boolean removeLeftChildPointer)
public int size()
public CellBTreeSingleValueBucketV3.CellBTreeEntry<K> getEntry(int entryIndex, OBinarySerializer<K> keySerializer)
public int getLeft(int entryIndex)
public int getRight(int entryIndex)
public byte[] getRawEntry(int entryIndex,
OBinarySerializer<K> keySerializer)
public ORID getValue(int entryIndex, OBinarySerializer<K> keySerializer)
entryIndex - the value entry index.public K getKey(int index, OBinarySerializer<K> keySerializer)
public byte[] getRawKey(int index,
OBinarySerializer<K> keySerializer)
public boolean isLeaf()
public void addAll(List<byte[]> rawEntries)
public void shrink(int newSize,
OBinarySerializer<K> keySerializer)
public boolean addLeafEntry(int index,
byte[] serializedKey,
byte[] serializedValue)
public boolean addNonLeafEntry(int index,
int leftChildIndex,
int newRightChildIndex,
byte[] key)
public boolean updateKey(int entryIndex,
byte[] key,
OBinarySerializer<K> keySerializer)
public void updateValue(int index,
byte[] value)
public void setLeftSibling(long pageIndex)
public long getLeftSibling()
public void setRightSibling(long pageIndex)
public int getNextFreeListPage()
public void setNextFreeListPage(int nextFreeListPage)
public long getRightSibling()
Copyright © 2009–2025 OrientDB. All rights reserved.