
public interface OIndexEngine
| Modifier and Type | Interface and Description |
|---|---|
static interface |
OIndexEngine.Validator<K,V>
Put operation validator.
|
static interface |
OIndexEngine.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() |
void |
close() |
boolean |
contains(Object key) |
void |
create(OBinarySerializer valueSerializer,
boolean isAutomatic,
OType[] keyTypes,
boolean nullPointerSupport,
OBinarySerializer keySerializer,
int keySize,
Set<String> clustersToIndex,
Map<String,String> engineProperties,
ODocument metadata) |
OIndexCursor |
cursor(OIndexEngine.ValuesTransformer valuesTransformer) |
void |
delete() |
void |
deleteWithoutLoad(String indexName) |
OIndexCursor |
descCursor(OIndexEngine.ValuesTransformer valuesTransformer) |
void |
flush() |
Object |
get(Object key) |
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,
OIndexEngine.ValuesTransformer transformer) |
OIndexCursor |
iterateEntriesMajor(Object fromKey,
boolean isInclusive,
boolean ascSortOrder,
OIndexEngine.ValuesTransformer transformer) |
OIndexCursor |
iterateEntriesMinor(Object toKey,
boolean isInclusive,
boolean ascSortOrder,
OIndexEngine.ValuesTransformer transformer) |
OIndexKeyCursor |
keyCursor() |
void |
load(String indexName,
OBinarySerializer valueSerializer,
boolean isAutomatic,
OBinarySerializer keySerializer,
OType[] keyTypes,
boolean nullPointerSupport,
int keySize,
Map<String,String> engineProperties) |
void |
put(Object key,
Object value) |
boolean |
remove(Object key) |
long |
size(OIndexEngine.ValuesTransformer transformer) |
boolean |
validatedPut(Object key,
OIdentifiable value,
OIndexEngine.Validator<Object,OIdentifiable> validator)
Puts the given value under the given key into this index engine.
|
void init(String indexName, String indexType, OIndexDefinition indexDefinition, boolean isAutomatic, ODocument metadata)
void flush()
void create(OBinarySerializer valueSerializer, boolean isAutomatic, OType[] keyTypes, boolean nullPointerSupport, OBinarySerializer keySerializer, int keySize, Set<String> clustersToIndex, Map<String,String> engineProperties, ODocument metadata)
void delete()
void deleteWithoutLoad(String indexName)
void load(String indexName, OBinarySerializer valueSerializer, boolean isAutomatic, OBinarySerializer keySerializer, OType[] keyTypes, boolean nullPointerSupport, int keySize, Map<String,String> engineProperties)
boolean contains(Object key)
boolean remove(Object key)
void clear()
void close()
boolean validatedPut(Object key, OIdentifiable value, OIndexEngine.Validator<Object,OIdentifiable> 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)Object getFirstKey()
Object getLastKey()
OIndexCursor iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, OIndexEngine.ValuesTransformer transformer)
OIndexCursor iterateEntriesMajor(Object fromKey, boolean isInclusive, boolean ascSortOrder, OIndexEngine.ValuesTransformer transformer)
OIndexCursor iterateEntriesMinor(Object toKey, boolean isInclusive, boolean ascSortOrder, OIndexEngine.ValuesTransformer transformer)
OIndexCursor cursor(OIndexEngine.ValuesTransformer valuesTransformer)
OIndexCursor descCursor(OIndexEngine.ValuesTransformer valuesTransformer)
OIndexKeyCursor keyCursor()
long size(OIndexEngine.ValuesTransformer transformer)
boolean hasRangeQuerySupport()
int getVersion()
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.