public final 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, setBucketPointer
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 OSBTreeBonsaiBucket(OCacheEntry cacheEntry, int pageOffset, boolean isLeaf, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OSBTreeBonsaiLocal<K,V> tree) throws IOException
IOException
public 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
IOException
public boolean isEmpty()
public int find(K key)
public void remove(int entryIndex) throws IOException
IOException
public int size()
public OSBTreeBonsaiBucket.SBTreeEntry<K,V> getEntry(int entryIndex)
public K getKey(int index)
public boolean isLeaf()
public void addAll(List<OSBTreeBonsaiBucket.SBTreeEntry<K,V>> entries) throws IOException
IOException
public void shrink(int newSize) throws IOException
IOException
public boolean addEntry(int index, OSBTreeBonsaiBucket.SBTreeEntry<K,V> treeEntry, boolean updateNeighbors) throws IOException
IOException
public int updateValue(int index, V value) throws IOException
IOException
public OBonsaiBucketPointer getFreeListPointer()
public void setFreeListPointer(OBonsaiBucketPointer pointer) throws IOException
IOException
public 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
IOException
public OBonsaiBucketPointer getRightSibling()
public void setRightSibling(OBonsaiBucketPointer pointer) throws IOException
IOException
Copyright © 2009–2020 OrientDB. All rights reserved.