
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_KEYS| 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.
|
OIndex<T> |
addCluster(String iClusterName)
Add given cluster to the list of clusters that should be automatically indexed.
|
void |
addTxOperation(OIndexAbstract.IndexTxSnapshot snapshots,
OTransactionIndexChanges changes) |
boolean |
canBeUsedInEqualityOperators()
Indicates whether given index can be used to calculate result of
OQueryOperatorEquality
operators. |
void |
close() |
void |
commit(OIndexAbstract.IndexTxSnapshot snapshots) |
void |
doPut(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
boolean |
doRemove(OAbstractPaginatedStorage storage,
Object key) |
boolean |
doRemove(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
Object |
getCollatingValue(Object key) |
String |
getIndexNameByKey(Object key)
Returns the index name for a key.
|
boolean |
hasRangeQuerySupport() |
Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> |
interpretTxKeyChanges(OTransactionIndexChangesPerKey changes) |
boolean |
isNativeTxSupported() |
boolean |
loadFromConfiguration(ODocument iConfig)
Loads the index giving the configuration.
|
OIndexMetadata |
loadMetadata(ODocument iConfig) |
void |
postCommit(OIndexAbstract.IndexTxSnapshot snapshots) |
OIndex<T> |
removeCluster(String iClusterName)
Remove given cluster from the list of clusters that should be automatically indexed.
|
void |
setRebuildingFlag() |
void |
setType(OType type) |
ODocument |
updateConfiguration()
Saves the index configuration to disk.
|
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()
OIndexMetadata loadMetadata(ODocument iConfig)
void setRebuildingFlag()
void close()
void addTxOperation(OIndexAbstract.IndexTxSnapshot snapshots, OTransactionIndexChanges changes)
void commit(OIndexAbstract.IndexTxSnapshot snapshots)
void postCommit(OIndexAbstract.IndexTxSnapshot snapshots)
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.boolean isNativeTxSupported()
Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> interpretTxKeyChanges(OTransactionIndexChangesPerKey changes)
void doPut(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdExceptionboolean doRemove(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdExceptionboolean doRemove(OAbstractPaginatedStorage storage, Object key) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdExceptionCopyright © 2009–2025 OrientDB. All rights reserved.