public abstract class OIndexOneValue extends OIndexAbstract<OIdentifiable>
OIndexAbstract.IndexConfiguration, OIndexAbstract.IndexTxSnapshot
apiVersion, binaryFormatVersion, clustersToIndex, CONFIG_MAP_RID, indexId, metadata, storage, valueContainerAlgorithm
ALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, METADATA, VALUE_CONTAINER_ALGORITHM
MERGE_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, updateConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeUsedInEqualityOperators, doPut, isNativeTxSupported
put, supportsOrderedIterations
public OIdentifiable get(Object iKey)
OIndex
iKey
- The key to searchpublic long count(Object iKey)
OIndex
count
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)
OIndex
clusterIndexName
- Cluster name where to place the TreeMappublic OIndexCursor iterateEntries(Collection<?> keys, boolean ascSortOrder)
OIndex
keys
- 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)
OIndex
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
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
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 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–2020 OrientDB. All rights reserved.