public final class OCellBTreeSingleValueIndexEngine extends Object implements OSingleValueIndexEngine, OCellBTreeIndexEngine
OBaseIndexEngine.Validator<K,V>, OBaseIndexEngine.ValuesTransformer
VERSION
API_VERSION
Constructor and Description |
---|
OCellBTreeSingleValueIndexEngine(String name,
OAbstractPaginatedStorage storage) |
Modifier and Type | Method and Description |
---|---|
boolean |
acquireAtomicExclusiveLock(Object key)
Acquires exclusive lock in the active atomic operation running on the current thread for this index engine.
|
void |
clear(OAtomicOperation atomicOperation) |
void |
close() |
boolean |
contains(Object key) |
void |
create(OAtomicOperation atomicOperation,
OBinarySerializer valueSerializer,
boolean isAutomatic,
OType[] keyTypes,
boolean nullPointerSupport,
OBinarySerializer keySerializer,
int keySize,
Set<String> clustersToIndex,
Map<String,String> engineProperties,
ODocument metadata,
OEncryption encryption) |
OIndexCursor |
cursor(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
void |
delete(OAtomicOperation atomicOperation) |
void |
deleteWithoutLoad(OAtomicOperation atomicOperation,
String indexName) |
OIndexCursor |
descCursor(OBaseIndexEngine.ValuesTransformer valuesTransformer) |
void |
flush() |
ORID |
get(Object key) |
Object |
getFirstKey() |
String |
getIndexNameByKey(Object key) |
Object |
getLastKey() |
String |
getName() |
boolean |
hasRangeQuerySupport() |
void |
init(String indexName,
String indexType,
OIndexDefinition indexDefinition,
boolean isAutomatic,
ODocument metadata) |
OIndexCursor |
iterateEntriesBetween(Object rangeFrom,
boolean fromInclusive,
Object rangeTo,
boolean toInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
OIndexCursor |
iterateEntriesMajor(Object fromKey,
boolean isInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
OIndexCursor |
iterateEntriesMinor(Object toKey,
boolean isInclusive,
boolean ascSortOrder,
OBaseIndexEngine.ValuesTransformer transformer) |
OIndexKeyCursor |
keyCursor() |
void |
load(String indexName,
int keySize,
OType[] keyTypes,
OBinarySerializer keySerializer,
OEncryption encryption) |
void |
put(OAtomicOperation atomicOperation,
Object key,
ORID value) |
boolean |
remove(OAtomicOperation atomicOperation,
Object key) |
long |
size(OBaseIndexEngine.ValuesTransformer transformer) |
boolean |
validatedPut(Object key,
OAtomicOperation atomicOperation,
ORID value,
OBaseIndexEngine.Validator<Object,ORID> validator) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getVersion
getEngineAPIVersion
public OCellBTreeSingleValueIndexEngine(String name, OAbstractPaginatedStorage storage)
public void init(String indexName, String indexType, OIndexDefinition indexDefinition, boolean isAutomatic, ODocument metadata)
init
in interface OBaseIndexEngine
public void flush()
flush
in interface OBaseIndexEngine
public String getName()
getName
in interface OBaseIndexEngine
public void create(OAtomicOperation atomicOperation, OBinarySerializer valueSerializer, boolean isAutomatic, OType[] keyTypes, boolean nullPointerSupport, OBinarySerializer keySerializer, int keySize, Set<String> clustersToIndex, Map<String,String> engineProperties, ODocument metadata, OEncryption encryption)
create
in interface OBaseIndexEngine
public void delete(OAtomicOperation atomicOperation)
delete
in interface OBaseIndexEngine
public void deleteWithoutLoad(OAtomicOperation atomicOperation, String indexName)
deleteWithoutLoad
in interface OBaseIndexEngine
public void load(String indexName, int keySize, OType[] keyTypes, OBinarySerializer keySerializer, OEncryption encryption)
load
in interface OV1IndexEngine
public boolean contains(Object key)
contains
in interface OBaseIndexEngine
public boolean remove(OAtomicOperation atomicOperation, Object key)
remove
in interface OBaseIndexEngine
public void clear(OAtomicOperation atomicOperation)
clear
in interface OBaseIndexEngine
public void close()
close
in interface OBaseIndexEngine
public ORID get(Object key)
get
in interface OBaseIndexEngine
get
in interface OSingleValueIndexEngine
public OIndexCursor cursor(OBaseIndexEngine.ValuesTransformer valuesTransformer)
cursor
in interface OBaseIndexEngine
public OIndexCursor descCursor(OBaseIndexEngine.ValuesTransformer valuesTransformer)
descCursor
in interface OBaseIndexEngine
public OIndexKeyCursor keyCursor()
keyCursor
in interface OBaseIndexEngine
public void put(OAtomicOperation atomicOperation, Object key, ORID value)
put
in interface OV1IndexEngine
public boolean validatedPut(Object key, OAtomicOperation atomicOperation, ORID value, OBaseIndexEngine.Validator<Object,ORID> validator)
validatedPut
in interface OSingleValueIndexEngine
public Object getFirstKey()
getFirstKey
in interface OBaseIndexEngine
public Object getLastKey()
getLastKey
in interface OBaseIndexEngine
public OIndexCursor iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesBetween
in interface OBaseIndexEngine
public OIndexCursor iterateEntriesMajor(Object fromKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMajor
in interface OBaseIndexEngine
public OIndexCursor iterateEntriesMinor(Object toKey, boolean isInclusive, boolean ascSortOrder, OBaseIndexEngine.ValuesTransformer transformer)
iterateEntriesMinor
in interface OBaseIndexEngine
public long size(OBaseIndexEngine.ValuesTransformer transformer)
size
in interface OBaseIndexEngine
public boolean hasRangeQuerySupport()
hasRangeQuerySupport
in interface OBaseIndexEngine
public boolean acquireAtomicExclusiveLock(Object key)
OBaseIndexEngine
Acquires exclusive lock in the active atomic operation running on the current thread for this index engine.
If this index engine supports a more narrow locking, for example key-based sharding, it may use the provided key
to
infer a more narrow lock scope, but that is not a requirement.
acquireAtomicExclusiveLock
in interface OBaseIndexEngine
key
- the index key to lock.true
if this index was locked entirely, false
if this index locking is sensitive to the provided key
and only some subset of this index was locked.public String getIndexNameByKey(Object key)
getIndexNameByKey
in interface OBaseIndexEngine
Copyright © 2009–2020 OrientDB. All rights reserved.