
public interface OIndexInternal<T> extends OIndex<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM |
static String |
CONFIG_AUTOMATIC |
static String |
CONFIG_KEYTYPE |
static String |
CONFIG_NAME |
static String |
CONFIG_TYPE |
static String |
INDEX_DEFINITION |
static String |
INDEX_DEFINITION_CLASS |
static String |
INDEX_VERSION |
static String |
METADATA |
static String |
VALUE_CONTAINER_ALGORITHM |
MERGE_KEYScheckEntry, clear, contains, count, create, cursor, delete, descCursor, flush, get, getAlgorithm, getClusters, getConfiguration, getDatabaseName, getDefinition, getFirstKey, getIndexId, getInternal, getKeySize, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getSize, getType, getVersion, isAutomatic, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, put, rebuild, rebuild, remove, remove, supportsOrderedIterationscompareTostatic final String CONFIG_KEYTYPE
static final String CONFIG_AUTOMATIC
static final String CONFIG_TYPE
static final String ALGORITHM
static final String VALUE_CONTAINER_ALGORITHM
static final String CONFIG_NAME
static final String INDEX_DEFINITION
static final String INDEX_DEFINITION_CLASS
static final String INDEX_VERSION
static final String METADATA
boolean loadFromConfiguration(ODocument iConfig)
iConfig - ODocument instance containing the configurationODocument updateConfiguration()
OIndex.getConfiguration()OIndex<T> addCluster(String iClusterName)
iClusterName - Cluster to add.OIndex<T> removeCluster(String iClusterName)
iClusterName - Cluster to remove.boolean canBeUsedInEqualityOperators()
OQueryOperatorEquality operators.true if given index can be used to calculate result of
OQueryOperatorEquality operators.boolean hasRangeQuerySupport()
void lockKeysForUpdate(Object... key)
OIndex.put(Object, com.orientechnologies.orient.core.db.record.OIdentifiable)OIndex.checkEntry(com.orientechnologies.orient.core.db.record.OIdentifiable, Object)OIndex.remove(Object, com.orientechnologies.orient.core.db.record.OIdentifiable)OIndex.remove(Object)If you want to lock several keys in single thread, you should pass all those keys in single method call. Several calls of this method in single thread are not allowed because it may lead to deadlocks.
This is internal method and cannot be used by end users.key - Keys to lock.Lock[] lockKeysForUpdate(Collection<Object> keys)
OIndex.put(Object, com.orientechnologies.orient.core.db.record.OIdentifiable)OIndex.checkEntry(com.orientechnologies.orient.core.db.record.OIdentifiable, Object)OIndex.remove(Object, com.orientechnologies.orient.core.db.record.OIdentifiable)OIndex.remove(Object)If you want to lock several keys in single thread, you should pass all those keys in single method call. Several calls of this method in single thread are not allowed because it may lead to deadlocks.
This is internal method and cannot be used by end users.keys - Keys to lock.void releaseKeysForUpdate(Object... key)
key - Keys to unlock.OIndexMetadata loadMetadata(ODocument iConfig)
void setRebuildingFlag()
void close()
void preCommit()
void addTxOperation(OTransactionIndexChanges changes)
void commit()
void postCommit()
void setType(OType type)
String getIndexNameByKey(Object key)
Returns the index name for a key. The name is always the current index name, but in cases where the index supports key-based sharding.
key - the index key.boolean acquireAtomicExclusiveLock(Object key)
Acquires exclusive lock in the active atomic operation running on the current thread for this index.
If this index 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.