
public final class Bucket extends ODurablePage
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET| Constructor and Description |
|---|
Bucket(OCacheEntry cacheEntry) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(List<byte[]> rawEntries) |
boolean |
addLeafEntry(int index,
byte[] entry) |
boolean |
addLeafEntry(int index,
byte[] key,
byte[] serializedValue) |
boolean |
addLeafEntry(int index,
byte[] key,
int keyOffset,
int keyLen,
byte[] serializedValue) |
boolean |
addNonLeafEntry(int index,
int leftChildIndex,
int newRightChildIndex,
byte[] key) |
boolean |
addNonLeafEntry(int index,
int leftChildIndex,
int newRightChildIndex,
byte[] key,
int keyOffset,
int keyLen) |
int |
find(byte[] key,
int offset,
int length) |
com.orientechnologies.orient.core.storage.index.nkbtree.binarybtree.Bucket.Entry |
getEntry(int entryIndex) |
byte[] |
getKey(int index) |
ByteBuffer |
getKeyBuffer(int index) |
byte[] |
getKeyPrefix() |
int |
getLeft(int entryIndex) |
long |
getLeftSibling() |
int |
getNextFreeListPage() |
byte[] |
getRawEntry(int entryIndex) |
int |
getRight(int entryIndex) |
long |
getRightSibling() |
ORID |
getValue(int entryIndex) |
void |
init(boolean isLeaf) |
boolean |
isEmpty() |
boolean |
isLeaf() |
int |
removeLeafEntry(int entryIndex,
int keySize) |
void |
removeNonLeafEntry(int entryIndex,
boolean removeLeftChildPointer) |
void |
removeNonLeafEntry(int entryIndex,
int keySize,
boolean removeLeftChildPointer) |
boolean |
setKeyPrefix(byte[] keyPrefix) |
void |
setLeftSibling(long pageIndex) |
void |
setNextFreeListPage(int nextFreeListPage) |
void |
setRightSibling(long pageIndex) |
void |
shrink(int newSize) |
int |
size() |
void |
switchBucketType() |
boolean |
updateKey(int entryIndex,
byte[] key) |
void |
updateValue(int index,
byte[] value,
int keySize) |
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 Bucket(OCacheEntry cacheEntry)
public void switchBucketType()
public void init(boolean isLeaf)
public boolean isEmpty()
public boolean isLeaf()
public int size()
public int find(byte[] key,
int offset,
int length)
public byte[] getKey(int index)
public ByteBuffer getKeyBuffer(int index)
public void addAll(List<byte[]> rawEntries)
public void shrink(int newSize)
public byte[] getRawEntry(int entryIndex)
public ORID getValue(int entryIndex)
public boolean addLeafEntry(int index,
byte[] key,
byte[] serializedValue)
public boolean addLeafEntry(int index,
byte[] key,
int keyOffset,
int keyLen,
byte[] serializedValue)
public boolean addLeafEntry(int index,
byte[] entry)
public boolean setKeyPrefix(byte[] keyPrefix)
public int removeLeafEntry(int entryIndex,
int keySize)
public boolean addNonLeafEntry(int index,
int leftChildIndex,
int newRightChildIndex,
byte[] key)
public boolean addNonLeafEntry(int index,
int leftChildIndex,
int newRightChildIndex,
byte[] key,
int keyOffset,
int keyLen)
public byte[] getKeyPrefix()
public int getLeft(int entryIndex)
public int getRight(int entryIndex)
public void updateValue(int index,
byte[] value,
int keySize)
public boolean updateKey(int entryIndex,
byte[] key)
public void removeNonLeafEntry(int entryIndex,
boolean removeLeftChildPointer)
public void removeNonLeafEntry(int entryIndex,
int keySize,
boolean removeLeftChildPointer)
public com.orientechnologies.orient.core.storage.index.nkbtree.binarybtree.Bucket.Entry getEntry(int entryIndex)
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.