public abstract class OIndexTxAware<T> extends OIndexAbstractDelegate<T>
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
MERGE_KEYS
Constructor and Description |
---|
OIndexTxAware(ODatabaseDocumentInternal iDatabase,
OIndex<T> iDelegate) |
Modifier and Type | Method and Description |
---|---|
OIndexTxAware<T> |
clear()
Clears the index removing all the entries in one shot.
|
protected Object |
enhanceCompositeKey(Object key,
OIndexTxAware.PartialSearchMode partialSearchMode) |
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) |
protected Object |
getCollatingValue(Object key) |
Object |
getFirstKey() |
Object |
getLastKey() |
long |
getSize() |
OIndexTxAware<T> |
put(Object iKey,
OIdentifiable iValue)
Inserts a new entry in the index.
|
boolean |
remove(Object key)
Removes an entry by its key.
|
boolean |
remove(Object iKey,
OIdentifiable iRID)
Removes an entry by its key and value.
|
checkForKeyType, compareTo, contains, count, create, cursor, delete, descCursor, equals, flush, get, getAlgorithm, getClusters, getConfiguration, getDatabaseName, getDefinition, getIndexId, getInternal, getKeySize, getKeyTypes, getMetadata, getName, getRebuildVersion, getType, getVersion, hashCode, isAutomatic, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, rebuild, rebuild, supportsOrderedIterations, toString
protected ODatabaseDocumentInternal database
public OIndexTxAware(ODatabaseDocumentInternal iDatabase, OIndex<T> iDelegate)
public long getSize()
public OIndexTxAware<T> put(Object iKey, OIdentifiable iValue)
OIndex
public boolean remove(Object key)
OIndex
public boolean remove(Object iKey, OIdentifiable iRID)
OIndex
public OIndexTxAware<T> clear()
OIndex
public Object getFirstKey()
getFirstKey
in interface OIndex<T>
getFirstKey
in class OIndexAbstractDelegate<T>
public Object getLastKey()
getLastKey
in interface OIndex<T>
getLastKey
in class OIndexAbstractDelegate<T>
protected Object enhanceCompositeKey(Object key, OIndexTxAware.PartialSearchMode partialSearchMode)
protected Object enhanceToCompositeKeyBetweenAsc(Object keyTo, boolean toInclusive)
protected Object enhanceFromCompositeKeyBetweenAsc(Object keyFrom, boolean fromInclusive)
protected Object enhanceToCompositeKeyBetweenDesc(Object keyTo, boolean toInclusive)
protected Object enhanceFromCompositeKeyBetweenDesc(Object keyFrom, boolean fromInclusive)
Copyright © 2009–2020 OrientDB. All rights reserved.