
public class OIndexUnique extends OIndexOneValue
OIndexAbstract.IndexConfiguration, OIndexAbstract.IndexTxSnapshotapiVersion, binaryFormatVersion, clustersToIndex, CONFIG_MAP_RID, indexId, metadata, storage, valueContainerAlgorithmALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, METADATA, VALUE_CONTAINER_ALGORITHMMERGE_KEYS| Constructor and Description |
|---|
OIndexUnique(String name,
String typeId,
String algorithm,
int version,
OAbstractPaginatedStorage storage,
String valueContainerAlgorithm,
ODocument metadata,
int binaryFormatVersion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeUsedInEqualityOperators()
Indicates whether given index can be used to calculate result of
OQueryOperatorEquality
operators. |
void |
doPut(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> |
interpretTxKeyChanges(OTransactionIndexChangesPerKey changes)
Interprets transaction index changes for a certain key.
|
boolean |
isNativeTxSupported() |
OIndexOneValue |
put(Object key,
OIdentifiable value)
Inserts a new entry in the index.
|
boolean |
supportsOrderedIterations() |
count, create, cursor, descCursor, determineValueSerializer, get, getKeySize, getSize, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinoracquireAtomicExclusiveLock, acquireExclusiveLock, acquireSharedLock, addCluster, addTxOperation, clear, clearSnapshot, close, commit, commitSnapshot, compareTo, contains, create, delete, doReloadIndexEngine, doRemove, doRemove, equals, flush, getAlgorithm, getClusters, getCollatingValue, getConfiguration, getDatabase, getDatabaseName, getDefinition, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getType, getVersion, hashCode, hasRangeQuerySupport, isAutomatic, isRebuilding, keyCursor, loadFromConfiguration, loadMetadata, loadMetadataInternal, onIndexEngineChange, postCommit, putInSnapshot, rebuild, rebuild, releaseExclusiveLock, releaseSharedLock, remove, remove, removeCluster, removeFromSnapshot, setRebuildingFlag, setType, toString, updateConfigurationpublic OIndexOneValue put(Object key, OIdentifiable value)
OIndexkey - Entry's keyvalue - Entry's value as OIdentifiable instancepublic boolean isNativeTxSupported()
public void doPut(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdExceptionpublic boolean canBeUsedInEqualityOperators()
OIndexInternalOQueryOperatorEquality
operators.true if given index can be used to calculate result of OQueryOperatorEquality
operators.public boolean supportsOrderedIterations()
public Iterable<OTransactionIndexChangesPerKey.OTransactionIndexEntry> interpretTxKeyChanges(OTransactionIndexChangesPerKey changes)
OIndexAbstractORecordDuplicatedException while applying index
changes.interpretTxKeyChanges in interface OIndexInternal<OIdentifiable>interpretTxKeyChanges in class OIndexAbstract<OIdentifiable>changes - the changes to interpret.Copyright © 2009–2025 OrientDB. All rights reserved.