
public interface OSBTreeBonsai<K,V> extends OTreeInternal<K,V>
OSBTree and designed to store small entries. OSBTree, but it have tiny buckets.OReadCache could contain several buckets. That's why there is no huge resource consuming when you have lots of
OSBTreeBonsai that contain only few records.
+--------------------------------------------------------------------------------------------+
| DISK CACHE PAGE |
|+---------------+ +---------------+ +---------------+ +---------------+ +---------------+ |
|| Bonsai Bucket | | Bonsai Bucket | | Bonsai Bucket | | Bonsai Bucket | | Bonsai Bucket |...|
|+---------------+ +---------------+ +---------------+ +---------------+ +---------------+ |
+--------------------------------------------------------------------------------------------+
OTreeInternal.AccumulativeListener<K,V>, OTreeInternal.RangeResultListener<K,V>| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deletes all entries from tree.
|
void |
delete()
Deletes whole tree.
|
K |
firstKey() |
V |
get(K key)
Search for entry with specific key and return its value.
|
OBonsaiCollectionPointer |
getCollectionPointer() |
long |
getFileId()
Gets id of file where this bonsai tree is stored.
|
OBinarySerializer<K> |
getKeySerializer() |
int |
getRealBagSize(Map<K,OSBTreeRidBag.Change> changes)
Hardcoded method for Bag to avoid creation of extra layer.
|
OBonsaiBucketPointer |
getRootBucketPointer() |
Collection<V> |
getValuesBetween(K keyFrom,
boolean fromInclusive,
K keyTo,
boolean toInclusive,
int maxValuesToFetch) |
OBinarySerializer<V> |
getValueSerializer() |
Collection<V> |
getValuesMajor(K key,
boolean inclusive,
int maxValuesToFetch) |
Collection<V> |
getValuesMinor(K key,
boolean inclusive,
int maxValuesToFetch) |
K |
lastKey() |
void |
loadEntriesBetween(K keyFrom,
boolean fromInclusive,
K keyTo,
boolean toInclusive,
OTreeInternal.RangeResultListener<K,V> listener) |
void |
loadEntriesMajor(K key,
boolean inclusive,
boolean ascSortOrder,
OTreeInternal.RangeResultListener<K,V> listener) |
void |
loadEntriesMinor(K key,
boolean inclusive,
OTreeInternal.RangeResultListener<K,V> listener) |
boolean |
put(K key,
V value) |
V |
remove(K key) |
long |
size() |
long getFileId()
OReadCacheOBonsaiBucketPointer getRootBucketPointer()
OBonsaiCollectionPointer getCollectionPointer()
V get(K key)
key - void clear()
void delete()
long size()
size in interface OTreeInternal<K,V>Collection<V> getValuesMinor(K key, boolean inclusive, int maxValuesToFetch)
void loadEntriesMinor(K key, boolean inclusive, OTreeInternal.RangeResultListener<K,V> listener)
Collection<V> getValuesMajor(K key, boolean inclusive, int maxValuesToFetch)
void loadEntriesMajor(K key, boolean inclusive, boolean ascSortOrder, OTreeInternal.RangeResultListener<K,V> listener)
loadEntriesMajor in interface OTreeInternal<K,V>Collection<V> getValuesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, int maxValuesToFetch)
K firstKey()
firstKey in interface OTreeInternal<K,V>K lastKey()
void loadEntriesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, OTreeInternal.RangeResultListener<K,V> listener)
int getRealBagSize(Map<K,OSBTreeRidBag.Change> changes)
changes - Bag changesOBinarySerializer<K> getKeySerializer()
OBinarySerializer<V> getValueSerializer()
Copyright © 2009–2025 OrientDB. All rights reserved.