public final class OSBTreeV1<K,V> extends ODurableComponent implements OSBTree<K,V>
atomicOperationsManager, readCache, storage, writeCache
Constructor and Description |
---|
OSBTreeV1(String name,
String dataFileExtension,
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 |
close() |
void |
close(boolean flush) |
void |
create(OAtomicOperation atomicOperation,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
int keySize,
boolean nullPointerSupport,
OEncryption encryption) |
void |
delete(OAtomicOperation atomicOperation) |
K |
firstKey() |
void |
flush() |
V |
get(K key) |
boolean |
isNullPointerSupport() |
Stream<ORawPair<K,V>> |
iterateEntriesBetween(K keyFrom,
boolean fromInclusive,
K keyTo,
boolean toInclusive,
boolean ascSortOrder) |
Stream<ORawPair<K,V>> |
iterateEntriesMajor(K key,
boolean inclusive,
boolean ascSortOrder) |
Stream<ORawPair<K,V>> |
iterateEntriesMinor(K key,
boolean inclusive,
boolean ascSortOrder) |
Stream<K> |
keyStream() |
K |
lastKey() |
void |
load(String name,
OBinarySerializer<K> keySerializer,
OBinarySerializer<V> valueSerializer,
OType[] keyTypes,
int keySize,
boolean nullPointerSupport,
OEncryption encryption) |
void |
put(OAtomicOperation atomicOperation,
K key,
V value) |
V |
remove(OAtomicOperation atomicOperation,
K k) |
long |
size() |
boolean |
update(OAtomicOperation atomicOperation,
K k,
OIndexKeyUpdater<V> updater,
OBaseIndexEngine.Validator<K,V> validator) |
boolean |
validatedPut(OAtomicOperation atomicOperation,
K key,
V value,
OBaseIndexEngine.Validator<K,V> validator) |
addFile, addPage, calculateInsideComponentOperation, deleteFile, executeInsideComponentOperation, getExtension, getFilledUpTo, getFullName, getLockName, getName, isFileExists, loadPageForRead, loadPageForRead, loadPageForWrite, openFile, releasePageFromRead, releasePageFromWrite, setName, truncateFile, tryExecuteInsideComponentOperation
acquireExclusiveLock, acquireSharedLock, addUser, assertExclusiveLockHold, assertSharedLockHold, getUsers, isConcurrent, releaseExclusiveLock, releaseSharedLock, removeUser, tryAcquireExclusiveLock, tryAcquireSharedLock
public OSBTreeV1(String name, String dataFileExtension, String nullFileExtension, OAbstractPaginatedStorage storage)
public void create(OAtomicOperation atomicOperation, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OType[] keyTypes, int keySize, boolean nullPointerSupport, OEncryption encryption)
public boolean isNullPointerSupport()
isNullPointerSupport
in interface OSBTree<K,V>
public void put(OAtomicOperation atomicOperation, K key, V value)
public boolean validatedPut(OAtomicOperation atomicOperation, K key, V value, OBaseIndexEngine.Validator<K,V> validator)
validatedPut
in interface OSBTree<K,V>
public boolean update(OAtomicOperation atomicOperation, K k, OIndexKeyUpdater<V> updater, OBaseIndexEngine.Validator<K,V> validator)
public void delete(OAtomicOperation atomicOperation)
public void load(String name, OBinarySerializer<K> keySerializer, OBinarySerializer<V> valueSerializer, OType[] keyTypes, int keySize, boolean nullPointerSupport, OEncryption encryption)
public V remove(OAtomicOperation atomicOperation, K k)
public Stream<ORawPair<K,V>> iterateEntriesMinor(K key, boolean inclusive, boolean ascSortOrder)
iterateEntriesMinor
in interface OSBTree<K,V>
public Stream<ORawPair<K,V>> iterateEntriesMajor(K key, boolean inclusive, boolean ascSortOrder)
iterateEntriesMajor
in interface OSBTree<K,V>
public Stream<ORawPair<K,V>> iterateEntriesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, boolean ascSortOrder)
iterateEntriesBetween
in interface OSBTree<K,V>
public void acquireAtomicExclusiveLock()
acquireAtomicExclusiveLock
in interface OSBTree<K,V>
Copyright © 2009–2020 OrientDB. All rights reserved.