public abstract class OIndexMultiValues extends OIndexAbstract
OIndexAbstract.IndexConfiguration, OIndexAbstract.IndexTxSnapshot
apiVersion, binaryFormatVersion, clustersToIndex, CONFIG_MAP_RID, configuration, indexId, metadata, storage, type, valueContainerAlgorithm
ALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, METADATA, VALUE_CONTAINER_ALGORITHM
MERGE_KEYS
Modifier and Type | Method and Description |
---|---|
OIndexMultiValues |
create(String name,
OIndexDefinition indexDefinition,
String clusterIndexName,
Set<String> clustersToIndex,
boolean rebuild,
OProgressListener progressListener) |
Stream<ORawPair<Object,ORID>> |
descStream() |
protected OBinarySerializer |
determineValueSerializer() |
void |
doPut(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
boolean |
doRemove(OAbstractPaginatedStorage storage,
Object key,
ORID rid) |
Collection<ORID> |
get(Object key)
Deprecated.
|
Stream<ORID> |
getRids(Object key) |
boolean |
isNativeTxSupported() |
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.
|
long |
size() |
Stream<ORawPair<Object,ORID>> |
stream() |
Stream<ORawPair<Object,ORID>> |
streamEntries(Collection<?> keys,
boolean ascSortOrder)
Returns stream which presents data associated with passed in keys.
|
Stream<ORawPair<Object,ORID>> |
streamEntriesBetween(Object fromKey,
boolean fromInclusive,
Object toKey,
boolean toInclusive,
boolean ascOrder)
Returns stream which presents subset of index data between passed in keys.
|
Stream<ORawPair<Object,ORID>> |
streamEntriesMajor(Object fromKey,
boolean fromInclusive,
boolean ascOrder)
Returns stream which presents subset of data which associated with key which is greater than
passed in key.
|
Stream<ORawPair<Object,ORID>> |
streamEntriesMinor(Object toKey,
boolean toInclusive,
boolean ascOrder)
Returns stream which presents subset of data which associated with key which is less than
passed in key.
|
acquireAtomicExclusiveLock, acquireExclusiveLock, acquireSharedLock, addCluster, addTxOperation, clear, clearSnapshot, close, commit, commitSnapshot, compareTo, count, create, cursor, delete, descCursor, doReloadIndexEngine, doRemove, equals, flush, getAlgorithm, getClusters, getCollatingValue, getConfiguration, getDatabase, getDatabaseName, getDefinition, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeySize, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getSize, getType, getVersion, hashCode, hasRangeQuerySupport, interpretTxKeyChanges, isAutomatic, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, keyStream, loadFromConfiguration, loadMetadata, loadMetadataInternal, manualIndexesWarning, onIndexEngineChange, postCommit, preCommit, putInSnapshot, rebuild, rebuild, releaseExclusiveLock, releaseSharedLock, remove, removeCluster, removeFromSnapshot, setType, toString, updateConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeUsedInEqualityOperators, isLabelSecurityDefined, isReadRestrictedBySecurityPolicy, securityFilterOnRead, securityFilterOnRead
supportsOrderedIterations
@Deprecated public Collection<ORID> get(Object key)
OIndex
key
- The key to searchpublic OIndexMultiValues put(Object key, OIdentifiable singleValue)
OIndex
key
- Entry's keysingleValue
- Entry's value as OIdentifiable instancepublic void doPut(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
OInvalidIndexEngineIdException
public boolean isNativeTxSupported()
public boolean remove(Object key, OIdentifiable value)
OIndex
remove
in interface OIndex
remove
in class OIndexAbstract
key
- The entry's key to removepublic boolean doRemove(OAbstractPaginatedStorage storage, Object key, ORID rid) throws OInvalidIndexEngineIdException
doRemove
in interface OIndexInternal
doRemove
in class OIndexAbstract
OInvalidIndexEngineIdException
public OIndexMultiValues create(String name, OIndexDefinition indexDefinition, String clusterIndexName, Set<String> clustersToIndex, boolean rebuild, OProgressListener progressListener)
protected OBinarySerializer determineValueSerializer()
determineValueSerializer
in class OIndexAbstract
public Stream<ORawPair<Object,ORID>> streamEntriesBetween(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive, boolean ascOrder)
OIndexInternal
fromKey
- 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 stream should be in ascending or
descending order.public Stream<ORawPair<Object,ORID>> streamEntriesMajor(Object fromKey, boolean fromInclusive, boolean ascOrder)
OIndexInternal
fromKey
- Lower border of index data.fromInclusive
- Indicates whether lower border should be inclusive or exclusive.ascOrder
- Flag which determines whether data iterated by stream should be in ascending or
descending order.public Stream<ORawPair<Object,ORID>> streamEntriesMinor(Object toKey, boolean toInclusive, boolean ascOrder)
OIndexInternal
toKey
- Upper border of index data.toInclusive
- Indicates Indicates whether upper border should be inclusive or exclusive.ascOrder
- Flag which determines whether data iterated by stream should be in ascending or
descending order.public Stream<ORawPair<Object,ORID>> streamEntries(Collection<?> keys, boolean ascSortOrder)
OIndexInternal
keys
- Keys data of which should be returned.ascSortOrder
- Flag which determines whether data iterated by stream should be in
ascending or descending order.public long size()
Copyright © 2009–2020 OrientDB. All rights reserved.