public abstract class OIndexTxAware<T> extends OIndexAbstractDelegate
Modifier and Type | Class and Description |
---|---|
static class |
OIndexTxAware.PartialSearchMode
Indicates search behavior in case of
OCompositeKey keys that have less amount of internal
keys are used, whether lowest or highest partially matched key should be used. |
Modifier and Type | Field and Description |
---|---|
protected ODatabaseDocumentInternal |
database |
delegate
ALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, METADATA, VALUE_CONTAINER_ALGORITHM
MERGE_KEYS
Constructor and Description |
---|
OIndexTxAware(ODatabaseDocumentInternal database,
OIndexInternal delegate) |
Modifier and Type | Method and Description |
---|---|
OIndexTxAware<T> |
clear()
Clears the index removing all the entries in one shot.
|
protected Object |
enhanceFromCompositeKeyBetweenAsc(Object keyFrom,
boolean fromInclusive) |
protected Object |
enhanceFromCompositeKeyBetweenDesc(Object keyFrom,
boolean fromInclusive) |
protected Object |
enhanceToCompositeKeyBetweenAsc(Object keyTo,
boolean toInclusive) |
protected Object |
enhanceToCompositeKeyBetweenDesc(Object keyTo,
boolean toInclusive) |
OIndexTxAware<T> |
put(Object key,
OIdentifiable value)
Inserts a new entry in the index.
|
boolean |
remove(Object key)
Removes an entry by its key.
|
boolean |
remove(Object key,
OIdentifiable rid)
Removes an entry by its key and value.
|
long |
size() |
acquireAtomicExclusiveLock, addCluster, addTxOperation, canBeUsedInEqualityOperators, checkForKeyType, close, commit, compareTo, count, create, cursor, delete, descCursor, descStream, doPut, doRemove, doRemove, equals, flush, get, getAlgorithm, getClusters, getCollatingValue, getConfiguration, getDatabaseName, getDefinition, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeySize, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getRids, getSize, getType, getVersion, hashCode, hasRangeQuerySupport, interpretTxKeyChanges, isAutomatic, isNativeTxSupported, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, keyStream, loadFromConfiguration, loadMetadata, postCommit, preCommit, rebuild, rebuild, removeCluster, setType, stream, streamEntries, streamEntriesBetween, streamEntriesMajor, streamEntriesMinor, supportsOrderedIterations, toString, updateConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isLabelSecurityDefined, isReadRestrictedBySecurityPolicy, securityFilterOnRead, securityFilterOnRead
protected ODatabaseDocumentInternal database
public OIndexTxAware(ODatabaseDocumentInternal database, OIndexInternal delegate)
public long size()
size
in interface OIndexInternal
size
in class OIndexAbstractDelegate
public OIndexTxAware<T> put(Object key, OIdentifiable value)
OIndex
put
in interface OIndex
put
in class OIndexAbstractDelegate
key
- Entry's keyvalue
- Entry's value as OIdentifiable instancepublic boolean remove(Object key)
OIndex
remove
in interface OIndex
remove
in class OIndexAbstractDelegate
key
- The entry's key to removepublic boolean remove(Object key, OIdentifiable rid)
OIndex
remove
in interface OIndex
remove
in class OIndexAbstractDelegate
key
- The entry's key to removepublic OIndexTxAware<T> clear()
OIndexAbstractDelegate
clear
in interface OIndex
clear
in class OIndexAbstractDelegate
protected Object enhanceToCompositeKeyBetweenAsc(Object keyTo, boolean toInclusive)
protected Object enhanceFromCompositeKeyBetweenAsc(Object keyFrom, boolean fromInclusive)
protected Object enhanceToCompositeKeyBetweenDesc(Object keyTo, boolean toInclusive)
Copyright © 2009–2020 OrientDB. All rights reserved.