Class OSBTreeBonsaiBucket<K,V>
java.lang.Object
com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
com.orientechnologies.orient.core.storage.index.sbtreebonsai.local.OBonsaiBucketAbstract
com.orientechnologies.orient.core.storage.index.sbtreebonsai.local.OSBTreeBonsaiBucket<K,V>
- Since:
- 8/7/13
- Author:
- Andrey Lomakin (a.lomakin-at-orientdb.com)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
CRC32_OFFSET, MAGIC_NUMBER_OFFSET, MAX_PAGE_SIZE_BYTES, NEXT_FREE_POSITION, WAL_POSITION_OFFSET, WAL_SEGMENT_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionOSBTreeBonsaiBucket(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) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(List<OSBTreeBonsaiBucket.SBTreeEntry<K, V>> entries) booleanaddEntry(int index, OSBTreeBonsaiBucket.SBTreeEntry<K, V> treeEntry, boolean updateNeighbors) intgetEntry(int entryIndex) getKey(int index) bytelongbytebooleanbooleanisEmpty()booleanisLeaf()booleanvoidremove(int entryIndex) voidsetDelted(boolean deleted) voidsetFreeListPointer(OBonsaiBucketPointer pointer) voidsetKeySerializerId(byte keySerializerId) voidsetLeftSibling(OBonsaiBucketPointer pointer) voidsetRightSibling(OBonsaiBucketPointer pointer) voidsetToDelete(boolean toDelete) voidsetTreeSize(long size) voidsetValueSerializerId(byte valueSerializerId) voidshrink(int newSize) intsize()intupdateValue(int index, V value) Methods inherited from class com.orientechnologies.orient.core.storage.index.sbtreebonsai.local.OBonsaiBucketAbstract
getBucketPointer, setBucketPointerMethods inherited from class com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage
deserializeFromDirectMemory, getBinaryValue, getByteValue, getCacheEntry, getChanges, getIntArray, getIntValue, getLogSequenceNumber, getLogSequenceNumberFromPage, getLongValue, getLSN, getObjectSizeInDirectMemory, getPageData, getPageIndex, getShortValue, moveData, restoreChanges, setBinaryValue, setByteValue, setIntArray, setIntValue, setLongValue, setLsn, setPageLSN, setShortValue, toString
-
Field Details
-
MAX_BUCKET_SIZE_BYTES
public static final int MAX_BUCKET_SIZE_BYTES
-
-
Constructor Details
-
OSBTreeBonsaiBucket
public OSBTreeBonsaiBucket(OCacheEntry cacheEntry, int pageOffset, boolean isLeaf, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OSBTreeBonsaiLocal<K, V> tree) throws IOException- Throws:
IOException
-
OSBTreeBonsaiBucket
public OSBTreeBonsaiBucket(OCacheEntry cacheEntry, int pageOffset, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OSBTreeBonsaiLocal<K, V> tree)
-
-
Method Details
-
getKeySerializerId
public byte getKeySerializerId() -
setKeySerializerId
public void setKeySerializerId(byte keySerializerId) -
getValueSerializerId
public byte getValueSerializerId() -
setValueSerializerId
public void setValueSerializerId(byte valueSerializerId) -
getTreeSize
public long getTreeSize() -
setTreeSize
- Throws:
IOException
-
isEmpty
public boolean isEmpty() -
find
-
remove
- Throws:
IOException
-
size
public int size() -
getEntry
-
getKey
-
isLeaf
public boolean isLeaf() -
addAll
- Throws:
IOException
-
shrink
- Throws:
IOException
-
addEntry
public boolean addEntry(int index, OSBTreeBonsaiBucket.SBTreeEntry<K, V> treeEntry, boolean updateNeighbors) throws IOException- Throws:
IOException
-
updateValue
- Throws:
IOException
-
getFreeListPointer
-
setFreeListPointer
- Throws:
IOException
-
setDelted
public void setDelted(boolean deleted) -
isDeleted
public boolean isDeleted() -
setToDelete
public void setToDelete(boolean toDelete) -
isToDelete
public boolean isToDelete() -
getLeftSibling
-
setLeftSibling
- Throws:
IOException
-
getRightSibling
-
setRightSibling
- Throws:
IOException
-