
public abstract class OIndexMultiValues extends OIndexAbstract<Collection<ORID>>
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| 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() |
void |
doPut(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
boolean |
doRemove(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
Collection<ORID> |
get(Object key)
Gets the set of records associated with the passed key.
|
long |
getKeySize() |
long |
getSize() |
boolean |
isNativeTxSupported() |
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, clear, clearSnapshot, close, commit, commitSnapshot, compareTo, contains, create, delete, doReloadIndexEngine, doRemove, equals, flush, getAlgorithm, getClusters, getCollatingValue, getConfiguration, getDatabase, getDatabaseName, getDefinition, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getType, getVersion, hashCode, hasRangeQuerySupport, interpretTxKeyChanges, isAutomatic, isRebuilding, isUnique, keyCursor, loadFromConfiguration, loadMetadata, loadMetadataInternal, onIndexEngineChange, postCommit, putInSnapshot, rebuild, rebuild, releaseExclusiveLock, releaseSharedLock, remove, removeCluster, removeFromSnapshot, setRebuildingFlag, setType, toString, updateConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeUsedInEqualityOperatorssupportsOrderedIterationspublic Collection<ORID> get(Object key)
OIndexkey - The key to searchpublic long count(Object key)
OIndexcount in interface OIndex<Collection<ORID>>count in class OIndexAbstract<Collection<ORID>>public OIndexMultiValues put(Object key, OIdentifiable singleValue)
OIndexkey - Entry's keysingleValue - Entry's value as OIdentifiable instancepublic void doPut(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdExceptionpublic boolean isNativeTxSupported()
public boolean remove(Object key, OIdentifiable value)
OIndexremove in interface OIndex<Collection<ORID>>remove in class OIndexAbstract<Collection<ORID>>key - The entry's key to removepublic boolean doRemove(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
doRemove in interface OIndexInternal<Collection<ORID>>doRemove in class OIndexAbstract<Collection<ORID>>OInvalidIndexEngineIdExceptionpublic 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<Collection<ORID>>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.