
public interface OBaseIndexEngine
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OBaseIndexEngine.Validator<K,V>
Put operation validator.
|
static interface |
OBaseIndexEngine.ValuesTransformer |
| 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() |
Object |
get(Object key) |
int |
getEngineAPIVersion() |
Object |
getFirstKey() |
String |
getIndexNameByKey(Object key) |
Object |
getLastKey() |
String |
getName() |
int |
getVersion() |
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() |
boolean |
remove(OAtomicOperation atomicOperation,
Object key) |
long |
size(OBaseIndexEngine.ValuesTransformer transformer) |
void init(String indexName, String indexType, OIndexDefinition indexDefinition, boolean isAutomatic, ODocument metadata)
void flush()
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) throws IOException
IOExceptionvoid delete(OAtomicOperation atomicOperation) throws IOException
IOExceptionvoid deleteWithoutLoad(OAtomicOperation atomicOperation, String indexName) throws IOException
IOExceptionboolean contains(Object key)
void clear(OAtomicOperation atomicOperation) throws IOException
IOExceptionvoid close()
boolean remove(OAtomicOperation atomicOperation, Object key) throws IOException
IOExceptionObject getFirstKey()
Object getLastKey()
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)
OIndexCursor cursor(OBaseIndexEngine.ValuesTransformer valuesTransformer)
OIndexCursor descCursor(OBaseIndexEngine.ValuesTransformer valuesTransformer)
OIndexKeyCursor keyCursor()
long size(OBaseIndexEngine.ValuesTransformer transformer)
boolean hasRangeQuerySupport()
int getVersion()
int getEngineAPIVersion()
String getName()
boolean acquireAtomicExclusiveLock(Object key)
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.
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.Copyright © 2009–2025 OrientDB. All rights reserved.