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,
OBinarySerializer<K> keySerializer) |
boolean |
addLeafEntry(int index,
byte[] serializedKey,
byte[] serializedValue) |
boolean |
addNonLeafEntry(int index,
int leftChild,
int rightChild,
byte[] key,
boolean updateNeighbors) |
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() |
byte[] |
getRawEntry(int entryIndex,
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() |
void |
removeLeafEntry(int entryIndex,
byte[] key,
byte[] value) |
void |
removeNonLeafEntry(int entryIndex,
byte[] key,
int prevChild) |
void |
setLeftSibling(long pageIndex) |
void |
setRightSibling(long pageIndex) |
void |
shrink(int newSize,
OBinarySerializer<K> keySerializer) |
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 CellBTreeSingleValueBucketV3(OCacheEntry cacheEntry)
public void switchBucketType()
public void init(boolean isLeaf)
public boolean isEmpty()
public int find(K key, OBinarySerializer<K> keySerializer)
public void removeLeafEntry(int entryIndex, byte[] key, byte[] value)
public void removeNonLeafEntry(int entryIndex, byte[] key, int prevChild)
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 boolean isLeaf()
public void addAll(List<byte[]> rawEntries, OBinarySerializer<K> keySerializer)
public void shrink(int newSize, OBinarySerializer<K> keySerializer)
public boolean addLeafEntry(int index, byte[] serializedKey, byte[] serializedValue)
public boolean addNonLeafEntry(int index, int leftChild, int rightChild, byte[] key, boolean updateNeighbors)
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.