
public abstract class OIndexMultiValues extends OIndexAbstract<Set<OIdentifiable>>
OIndexAbstract.IndexConfiguration, OIndexAbstract.IndexTxSnapshotCONFIG_CLUSTERS, CONFIG_MAP_RID, configuration, indexId, keyLockManager, metadata, storage, type, valueContainerAlgorithmALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, METADATA, VALUE_CONTAINER_ALGORITHMMERGE_KEYS| Constructor and Description |
|---|
OIndexMultiValues(String name,
String type,
String algorithm,
int version,
OAbstractPaginatedStorage storage,
String valueContainerAlgorithm,
ODocument metadata) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(Object key)
Counts the entries for the key.
|
OIndexMultiValues |
create(String name,
OIndexDefinition indexDefinition,
String clusterIndexName,
Set<String> clustersToIndex,
boolean rebuild,
OProgressListener progressListener)
Creates the index.
|
OIndexCursor |
cursor() |
OIndexCursor |
descCursor() |
protected OBinarySerializer |
determineValueSerializer() |
Set<OIdentifiable> |
get(Object key)
Gets the set of records associated with the passed key.
|
long |
getKeySize() |
long |
getSize() |
OIndexCursor |
iterateEntries(Collection<?> keys,
boolean ascSortOrder)
Returns cursor which presents data associated with passed in keys.
|
OIndexCursor |
iterateEntriesBetween(Object fromKey,
boolean fromInclusive,
Object toKey,
boolean toInclusive,
boolean ascOrder)
Returns cursor which presents subset of index data between passed in keys.
|
OIndexCursor |
iterateEntriesMajor(Object fromKey,
boolean fromInclusive,
boolean ascOrder)
Returns cursor which presents subset of data which associated with key which is greater than passed in key.
|
OIndexCursor |
iterateEntriesMinor(Object toKey,
boolean toInclusive,
boolean ascOrder)
Returns cursor which presents subset of data which associated with key which is less than passed in key.
|
OIndexMultiValues |
put(Object key,
OIdentifiable singleValue)
Inserts a new entry in the index.
|
boolean |
remove(Object key,
OIdentifiable value)
Removes an entry by its key and value.
|
acquireAtomicExclusiveLock, acquireExclusiveLock, acquireSharedLock, addCluster, addTxOperation, checkEntry, clear, clearSnapshot, close, commit, commitSnapshot, compareTo, contains, create, delete, doReloadIndexEngine, equals, flush, getAlgorithm, getClusters, getCollatingValue, getConfiguration, getDatabase, getDatabaseName, getDefinition, getEngineProperties, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getType, getVersion, hashCode, hasRangeQuerySupport, indexCluster, indexConfigurationInstance, interpretTxKeyChanges, isAutomatic, isRebuilding, isUnique, keyCursor, loadFromConfiguration, loadMetadata, loadMetadataInternal, lockKeysForUpdate, lockKeysForUpdate, onIndexEngineChange, onShutdown, onStartup, populateIndex, postCommit, preCommit, putInSnapshot, rebuild, rebuild, releaseExclusiveLock, releaseKeysForUpdate, releaseSharedLock, remove, removeCluster, removeFromSnapshot, removeFromSnapshot, setRebuildingFlag, setType, toString, updateConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeUsedInEqualityOperatorssupportsOrderedIterationspublic Set<OIdentifiable> get(Object key)
OIndexkey - The key to searchpublic long count(Object key)
OIndexcount in interface OIndex<Set<OIdentifiable>>count in class OIndexAbstract<Set<OIdentifiable>>public OIndexMultiValues put(Object key, OIdentifiable singleValue)
OIndexkey - Entry's keysingleValue - Entry's value as OIdentifiable instancepublic boolean remove(Object key, OIdentifiable value)
OIndexremove in interface OIndex<Set<OIdentifiable>>remove in class OIndexAbstract<Set<OIdentifiable>>key - The entry's key to removepublic OIndexMultiValues create(String name, OIndexDefinition indexDefinition, String clusterIndexName, Set<String> clustersToIndex, boolean rebuild, OProgressListener progressListener)
OIndexclusterIndexName - Cluster name where to place the TreeMapprotected OBinarySerializer determineValueSerializer()
determineValueSerializer in class OIndexAbstract<Set<OIdentifiable>>public OIndexCursor iterateEntriesBetween(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive, boolean ascOrder)
OIndexfromKey - Lower border of index data.fromInclusive - Indicates whether lower border should be inclusive or exclusive.toKey - Upper border of index data.toInclusive - Indicates whether upper border should be inclusive or exclusive.ascOrder - Flag which determines whether data iterated by cursor should be in ascending or descending order.public OIndexCursor iterateEntriesMajor(Object fromKey, boolean fromInclusive, boolean ascOrder)
OIndexfromKey - Lower border of index data.fromInclusive - Indicates whether lower border should be inclusive or exclusive.ascOrder - Flag which determines whether data iterated by cursor should be in ascending or descending order.public OIndexCursor iterateEntriesMinor(Object toKey, boolean toInclusive, boolean ascOrder)
OIndextoKey - Upper border of index data.toInclusive - Indicates Indicates whether upper border should be inclusive or exclusive.ascOrder - Flag which determines whether data iterated by cursor should be in ascending or descending order.public OIndexCursor iterateEntries(Collection<?> keys, boolean ascSortOrder)
OIndexkeys - Keys data of which should be returned.ascSortOrder - Flag which determines whether data iterated by cursor should be in ascending or descending order.public long getSize()
public long getKeySize()
public OIndexCursor cursor()
public OIndexCursor descCursor()
Copyright © 2009–2025 OrientDB. All rights reserved.