
public class OSBTreeBonsaiRemote<K,V> extends Object implements OSBTreeBonsai<K,V>
OSBTreeBonsai for remote storage.| Modifier and Type | Class and Description |
|---|---|
static class |
OSBTreeBonsaiRemote.TreeEntry<EK,EV> |
OTreeInternal.AccumulativeListener<K,V>, OTreeInternal.RangeResultListener<K,V>| Constructor and Description |
|---|
OSBTreeBonsaiRemote(OBonsaiCollectionPointer treePointer,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(OAtomicOperation atomicOperation)
Deletes all entries from tree.
|
void |
delete(OAtomicOperation atomicOperation)
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,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) |
void |
markToDelete(OAtomicOperation atomicOperation) |
boolean |
put(OAtomicOperation atomicOperation,
K key,
V value) |
V |
remove(OAtomicOperation atomicOperation,
K key) |
long |
size() |
public OSBTreeBonsaiRemote(OBonsaiCollectionPointer treePointer, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer)
public long getFileId()
OSBTreeBonsaigetFileId in interface OSBTreeBonsai<K,V>OReadCachepublic OBonsaiBucketPointer getRootBucketPointer()
getRootBucketPointer in interface OSBTreeBonsai<K,V>public OBonsaiCollectionPointer getCollectionPointer()
getCollectionPointer in interface OSBTreeBonsai<K,V>public V get(K key)
OSBTreeBonsaiget in interface OSBTreeBonsai<K,V>public boolean put(OAtomicOperation atomicOperation, K key, V value)
put in interface OSBTreeBonsai<K,V>public V remove(OAtomicOperation atomicOperation, K key)
remove in interface OTreeInternal<K,V>remove in interface OSBTreeBonsai<K,V>public void clear(OAtomicOperation atomicOperation) throws IOException
OSBTreeBonsaiclear in interface OSBTreeBonsai<K,V>IOExceptionpublic void delete(OAtomicOperation atomicOperation)
OSBTreeBonsaidelete in interface OSBTreeBonsai<K,V>public long size()
size in interface OTreeInternal<K,V>size in interface OSBTreeBonsai<K,V>public Collection<V> getValuesMinor(K key, boolean inclusive, int maxValuesToFetch)
getValuesMinor in interface OSBTreeBonsai<K,V>public void loadEntriesMinor(K key, boolean inclusive, OTreeInternal.RangeResultListener<K,V> listener)
loadEntriesMinor in interface OSBTreeBonsai<K,V>public Collection<V> getValuesMajor(K key, boolean inclusive, int maxValuesToFetch)
getValuesMajor in interface OSBTreeBonsai<K,V>public void loadEntriesMajor(K key, boolean inclusive, boolean ascSortOrder, OTreeInternal.RangeResultListener<K,V> listener)
loadEntriesMajor in interface OTreeInternal<K,V>loadEntriesMajor in interface OSBTreeBonsai<K,V>public Collection<V> getValuesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, int maxValuesToFetch)
getValuesBetween in interface OSBTreeBonsai<K,V>public K firstKey()
firstKey in interface OTreeInternal<K,V>firstKey in interface OSBTreeBonsai<K,V>public K lastKey()
lastKey in interface OSBTreeBonsai<K,V>public void loadEntriesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, OTreeInternal.RangeResultListener<K,V> listener)
loadEntriesBetween in interface OSBTreeBonsai<K,V>public int getRealBagSize(Map<K,Change> changes)
OSBTreeBonsaigetRealBagSize in interface OSBTreeBonsai<K,V>changes - Bag changespublic OBinarySerializer<K> getKeySerializer()
getKeySerializer in interface OSBTreeBonsai<K,V>public OBinarySerializer<V> getValueSerializer()
getValueSerializer in interface OSBTreeBonsai<K,V>public void markToDelete(OAtomicOperation atomicOperation)
markToDelete in interface OSBTreeBonsai<K,V>Copyright © 2009–2025 OrientDB. All rights reserved.