
public class OSBTree<K,V> extends ODurableComponent
| Modifier and Type | Class and Description |
|---|---|
static interface |
OSBTree.OSBTreeCursor<K,V> |
class |
OSBTree.OSBTreeFullKeyCursor |
static interface |
OSBTree.OSBTreeKeyCursor<K> |
atomicOperationsManager, extension, performanceStatisticManager, readCache, storage, writeCache| Constructor and Description |
|---|
OSBTree(String name,
String dataFileExtension,
boolean durableInNonTxMode,
String nullFileExtension,
OAbstractPaginatedStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireAtomicExclusiveLock()
Acquires exclusive lock in the active atomic operation running on the current thread for this SB-tree.
|
void |
clear() |
void |
close() |
void |
close(boolean flush) |
void |
create(OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
int keySize,
boolean nullPointerSupport) |
void |
delete() |
void |
deleteWithoutLoad(String name) |
K |
firstKey() |
void |
flush() |
V |
get(K key) |
boolean |
isNullPointerSupport() |
OSBTree.OSBTreeCursor<K,V> |
iterateEntriesBetween(K keyFrom,
boolean fromInclusive,
K keyTo,
boolean toInclusive,
boolean ascSortOrder) |
OSBTree.OSBTreeCursor<K,V> |
iterateEntriesMajor(K key,
boolean inclusive,
boolean ascSortOrder) |
OSBTree.OSBTreeCursor<K,V> |
iterateEntriesMinor(K key,
boolean inclusive,
boolean ascSortOrder) |
OSBTree.OSBTreeKeyCursor<K> |
keyCursor() |
K |
lastKey() |
void |
load(String name,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
int keySize,
boolean nullPointerSupport) |
void |
put(K key,
V value) |
V |
remove(K key) |
long |
size() |
protected void |
startOperation() |
boolean |
validatedPut(K key,
V value,
OIndexEngine.Validator<K,V> validator)
Puts the given value under the given key into this tree.
|
acquireExclusiveLock, addFile, addPage, completeOperation, deleteFile, endAtomicOperation, getChanges, getExtension, getFilledUpTo, getFullName, getLockName, getName, isFileExists, isFileExists, loadPage, loadPage, openFile, pinPage, releasePage, setName, startAtomicOperation, truncateFileacquireSharedLock, addUser, assertExclusiveLockHold, assertSharedLockHold, getUsers, isConcurrent, releaseExclusiveLock, releaseSharedLock, removeUser, tryAcquireExclusiveLock, tryAcquireSharedLockpublic OSBTree(String name, String dataFileExtension, boolean durableInNonTxMode, String nullFileExtension, OAbstractPaginatedStorage storage)
public void create(OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OType[] keyTypes, int keySize, boolean nullPointerSupport)
public boolean isNullPointerSupport()
public boolean validatedPut(K key, V value, OIndexEngine.Validator<K,V> validator)
key - the key to put the value under.value - the value to put.validator - the operation validator.true if the validator allowed the put, false otherwise.OIndexEngine.Validator#validate(Object, Object, Object)public void close(boolean flush)
public void close()
public void clear()
public void delete()
public void deleteWithoutLoad(String name)
public void load(String name, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OType[] keyTypes, int keySize, boolean nullPointerSupport)
public long size()
public OSBTree.OSBTreeCursor<K,V> iterateEntriesMinor(K key, boolean inclusive, boolean ascSortOrder)
public OSBTree.OSBTreeCursor<K,V> iterateEntriesMajor(K key, boolean inclusive, boolean ascSortOrder)
public K firstKey()
public K lastKey()
public OSBTree.OSBTreeKeyCursor<K> keyCursor()
public OSBTree.OSBTreeCursor<K,V> iterateEntriesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, boolean ascSortOrder)
public void flush()
public void acquireAtomicExclusiveLock()
protected void startOperation()
startOperation in class ODurableComponentCopyright © 2009–2025 OrientDB. All rights reserved.