
public class OSBTreeBonsaiBucket<K,V> extends OBonsaiBucketAbstract
| Modifier and Type | Class and Description |
|---|---|
static class |
OSBTreeBonsaiBucket.SBTreeEntry<K,V> |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_BUCKET_SIZE_BYTES |
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET| Constructor and Description |
|---|
OSBTreeBonsaiBucket(OCacheEntry cacheEntry,
int pageOffset,
boolean isLeaf,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OSBTreeBonsaiLocal<K,V> tree) |
OSBTreeBonsaiBucket(OCacheEntry cacheEntry,
int pageOffset,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OSBTreeBonsaiLocal<K,V> tree) |
getBucketPointer, setBucketPointerdeserializeFromDirectMemory, getBinaryValue, getByteValue, getChanges, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLsn, getObjectSizeInDirectMemory, getPageData, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntValue, setLongValue, setLsn, setShortValue, toStringpublic OSBTreeBonsaiBucket(OCacheEntry cacheEntry, int pageOffset, boolean isLeaf, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OSBTreeBonsaiLocal<K,V> tree) throws IOException
IOExceptionpublic OSBTreeBonsaiBucket(OCacheEntry cacheEntry, int pageOffset, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OSBTreeBonsaiLocal<K,V> tree)
public byte getKeySerializerId()
public void setKeySerializerId(byte keySerializerId)
public byte getValueSerializerId()
public void setValueSerializerId(byte valueSerializerId)
public long getTreeSize()
public void setTreeSize(long size)
throws IOException
IOExceptionpublic boolean isEmpty()
public int find(K key)
public void remove(int entryIndex)
throws IOException
IOExceptionpublic int size()
public OSBTreeBonsaiBucket.SBTreeEntry<K,V> getEntry(int entryIndex)
public K getKey(int index)
public boolean isLeaf()
public void addAll(List<byte[]> entries)
public void shrink(int newSize)
public boolean addEntry(int index,
OSBTreeBonsaiBucket.SBTreeEntry<K,V> treeEntry,
boolean updateNeighbors)
throws IOException
IOExceptionpublic int updateValue(int index,
V value)
throws IOException
IOExceptionpublic OBonsaiBucketPointer getFreeListPointer()
public void setFreeListPointer(OBonsaiBucketPointer pointer) throws IOException
IOExceptionpublic void setDelted(boolean deleted)
public boolean isDeleted()
public void setToDelete(boolean toDelete)
public boolean isToDelete()
public OBonsaiBucketPointer getLeftSibling()
public void setLeftSibling(OBonsaiBucketPointer pointer) throws IOException
IOExceptionpublic OBonsaiBucketPointer getRightSibling()
public void setRightSibling(OBonsaiBucketPointer pointer) throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.