public class OIndexTxAwareMultiValue extends OIndexTxAware<Collection<OIdentifiable>>
OIndexTxAware.PartialSearchMode
database
delegate
MERGE_KEYS
Constructor and Description |
---|
OIndexTxAwareMultiValue(ODatabaseDocumentInternal database,
OIndex<Collection<OIdentifiable>> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object key)
Tells if a key is contained in the index.
|
Collection<OIdentifiable> |
get(Object key)
Gets the set of records associated with the passed key.
|
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.
|
clear, enhanceCompositeKey, enhanceFromCompositeKeyBetweenAsc, enhanceFromCompositeKeyBetweenDesc, enhanceToCompositeKeyBetweenAsc, enhanceToCompositeKeyBetweenDesc, getCollatingValue, getFirstKey, getLastKey, getSize, put, remove, remove
checkForKeyType, compareTo, count, create, cursor, delete, descCursor, equals, flush, getAlgorithm, getClusters, getConfiguration, getDatabaseName, getDefinition, getIndexId, getInternal, getKeySize, getKeyTypes, getMetadata, getName, getRebuildVersion, getType, getVersion, hashCode, isAutomatic, isRebuilding, isUnique, keyCursor, rebuild, rebuild, supportsOrderedIterations, toString
public OIndexTxAwareMultiValue(ODatabaseDocumentInternal database, OIndex<Collection<OIdentifiable>> delegate)
public Collection<OIdentifiable> get(Object key)
OIndex
get
in interface OIndex<Collection<OIdentifiable>>
get
in class OIndexAbstractDelegate<Collection<OIdentifiable>>
key
- The key to searchpublic boolean contains(Object key)
OIndex
contains
in interface OIndex<Collection<OIdentifiable>>
contains
in class OIndexAbstractDelegate<Collection<OIdentifiable>>
key
- The key to searchpublic OIndexCursor iterateEntriesBetween(Object fromKey, boolean fromInclusive, Object toKey, boolean toInclusive, boolean ascOrder)
OIndex
iterateEntriesBetween
in interface OIndex<Collection<OIdentifiable>>
iterateEntriesBetween
in class OIndexAbstractDelegate<Collection<OIdentifiable>>
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 cursor should be in ascending or descending order.public OIndexCursor iterateEntriesMajor(Object fromKey, boolean fromInclusive, boolean ascOrder)
OIndex
iterateEntriesMajor
in interface OIndex<Collection<OIdentifiable>>
iterateEntriesMajor
in class OIndexAbstractDelegate<Collection<OIdentifiable>>
fromKey
- 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)
OIndex
iterateEntriesMinor
in interface OIndex<Collection<OIdentifiable>>
iterateEntriesMinor
in class OIndexAbstractDelegate<Collection<OIdentifiable>>
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 cursor should be in ascending or descending order.public OIndexCursor iterateEntries(Collection<?> keys, boolean ascSortOrder)
OIndex
iterateEntries
in interface OIndex<Collection<OIdentifiable>>
iterateEntries
in class OIndexAbstractDelegate<Collection<OIdentifiable>>
keys
- Keys data of which should be returned.ascSortOrder
- Flag which determines whether data iterated by cursor should be in ascending or descending order.Copyright © 2009–2020 OrientDB. All rights reserved.