
public abstract class OIndexOneValue extends OIndexAbstract<OIdentifiable>
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| Constructor and Description |
|---|
OIndexOneValue(String name,
String type,
String algorithm,
int version,
OAbstractPaginatedStorage storage,
String valueContainerAlgorithm,
ODocument metadata,
int binaryFormatVersion) |
| Modifier and Type | Method and Description |
|---|---|
long |
count(Object iKey)
Counts the entries for the key.
|
OIndexOneValue |
create(String name,
OIndexDefinition indexDefinition,
String clusterIndexName,
Set<String> clustersToIndex,
boolean rebuild,
OProgressListener progressListener)
Creates the index.
|
OIndexCursor |
cursor() |
OIndexCursor |
descCursor() |
protected OBinarySerializer |
determineValueSerializer() |
OIdentifiable |
get(Object iKey)
Gets the set of records associated with the passed key.
|
long |
getKeySize() |
long |
getSize() |
boolean |
isUnique() |
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.
|
acquireAtomicExclusiveLock, acquireExclusiveLock, acquireSharedLock, addCluster, addTxOperation, clear, clearSnapshot, close, commit, commitSnapshot, compareTo, contains, create, delete, doReloadIndexEngine, doRemove, 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, keyCursor, loadFromConfiguration, loadMetadata, loadMetadataInternal, onIndexEngineChange, postCommit, putInSnapshot, rebuild, rebuild, releaseExclusiveLock, releaseSharedLock, remove, remove, removeCluster, removeFromSnapshot, setRebuildingFlag, setType, toString, updateConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcanBeUsedInEqualityOperators, doPut, isNativeTxSupportedput, supportsOrderedIterationspublic OIdentifiable get(Object iKey)
OIndexiKey - The key to searchpublic long count(Object iKey)
OIndexcount in interface OIndex<OIdentifiable>count in class OIndexAbstract<OIdentifiable>public OIndexOneValue create(String name, OIndexDefinition indexDefinition, String clusterIndexName, Set<String> clustersToIndex, boolean rebuild, OProgressListener progressListener)
OIndexclusterIndexName - Cluster name where to place the TreeMappublic 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 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 long getSize()
public long getKeySize()
public OIndexCursor cursor()
public OIndexCursor descCursor()
public boolean isUnique()
isUnique in interface OIndex<OIdentifiable>isUnique in class OIndexAbstract<OIdentifiable>protected OBinarySerializer determineValueSerializer()
determineValueSerializer in class OIndexAbstract<OIdentifiable>Copyright © 2009–2025 OrientDB. All rights reserved.