public final class CellBTreeSingleValueV1<K> extends ODurableComponent implements OCellBTreeSingleValue<K>
Modifier and Type | Class and Description |
---|---|
class |
CellBTreeSingleValueV1.OSBTreeFullKeySpliterator |
atomicOperationsManager, readCache, storage, writeCache
Constructor and Description |
---|
CellBTreeSingleValueV1(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 |
create(OAtomicOperation atomicOperation,
OBinarySerializer<K> keySerializer,
OType[] keyTypes,
int keySize,
OEncryption encryption) |
void |
delete(OAtomicOperation atomicOperation) |
K |
firstKey() |
ORID |
get(K key) |
Stream<ORawPair<K,ORID>> |
iterateEntriesBetween(K keyFrom,
boolean fromInclusive,
K keyTo,
boolean toInclusive,
boolean ascSortOrder) |
Stream<ORawPair<K,ORID>> |
iterateEntriesMajor(K key,
boolean inclusive,
boolean ascSortOrder) |
Stream<ORawPair<K,ORID>> |
iterateEntriesMinor(K key,
boolean inclusive,
boolean ascSortOrder) |
Stream<K> |
keyStream() |
K |
lastKey() |
void |
load(String name,
int keySize,
OType[] keyTypes,
OBinarySerializer<K> keySerializer,
OEncryption encryption) |
void |
put(OAtomicOperation atomicOperation,
K key,
ORID value) |
ORID |
remove(OAtomicOperation atomicOperation,
K k) |
long |
size() |
boolean |
validatedPut(OAtomicOperation atomicOperation,
K key,
ORID value,
OBaseIndexEngine.Validator<K,ORID> 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 CellBTreeSingleValueV1(String name, String dataFileExtension, String nullFileExtension, OAbstractPaginatedStorage storage)
public void create(OAtomicOperation atomicOperation, OBinarySerializer<K> keySerializer, OType[] keyTypes, int keySize, OEncryption encryption)
create
in interface OCellBTreeSingleValue<K>
public ORID get(K key)
get
in interface OCellBTreeSingleValue<K>
public void put(OAtomicOperation atomicOperation, K key, ORID value)
put
in interface OCellBTreeSingleValue<K>
public boolean validatedPut(OAtomicOperation atomicOperation, K key, ORID value, OBaseIndexEngine.Validator<K,ORID> validator)
validatedPut
in interface OCellBTreeSingleValue<K>
public void close()
close
in interface OCellBTreeSingleValue<K>
public void delete(OAtomicOperation atomicOperation)
delete
in interface OCellBTreeSingleValue<K>
public void load(String name, int keySize, OType[] keyTypes, OBinarySerializer<K> keySerializer, OEncryption encryption)
load
in interface OCellBTreeSingleValue<K>
public long size()
size
in interface OCellBTreeSingleValue<K>
public ORID remove(OAtomicOperation atomicOperation, K k)
remove
in interface OCellBTreeSingleValue<K>
public Stream<ORawPair<K,ORID>> iterateEntriesMinor(K key, boolean inclusive, boolean ascSortOrder)
iterateEntriesMinor
in interface OCellBTreeSingleValue<K>
public Stream<ORawPair<K,ORID>> iterateEntriesMajor(K key, boolean inclusive, boolean ascSortOrder)
iterateEntriesMajor
in interface OCellBTreeSingleValue<K>
public K firstKey()
firstKey
in interface OCellBTreeSingleValue<K>
public K lastKey()
lastKey
in interface OCellBTreeSingleValue<K>
public Stream<K> keyStream()
keyStream
in interface OCellBTreeSingleValue<K>
public Stream<ORawPair<K,ORID>> iterateEntriesBetween(K keyFrom, boolean fromInclusive, K keyTo, boolean toInclusive, boolean ascSortOrder)
iterateEntriesBetween
in interface OCellBTreeSingleValue<K>
public void acquireAtomicExclusiveLock()
acquireAtomicExclusiveLock
in interface OCellBTreeSingleValue<K>
Copyright © 2009–2020 OrientDB. All rights reserved.