Class OLuceneSpatialIndex
java.lang.Object
com.orientechnologies.orient.core.index.OIndexAbstract
com.orientechnologies.lucene.index.OLuceneIndexNotUnique
com.orientechnologies.spatial.index.OLuceneSpatialIndex
- All Implemented Interfaces:
OLuceneIndex,OIndex,OIndexInternal,Comparable<OIndex>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.orientechnologies.orient.core.index.OIndexAbstract
OIndexAbstract.PartialSearchMode -
Field Summary
Fields inherited from class com.orientechnologies.orient.core.index.OIndexAbstract
apiVersion, CONFIG_MAP_RID, im, indexId, storageFields inherited from interface com.orientechnologies.orient.core.index.OIndexInternal
ALGORITHM, CONFIG_AUTOMATIC, CONFIG_KEYTYPE, CONFIG_NAME, CONFIG_TYPE, INDEX_DEFINITION, INDEX_DEFINITION_CLASS, INDEX_VERSION, MERGE_KEYS, METADATA, VALUE_CONTAINER_ALGORITHM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Objectprotected ObjectInterprets transaction index changes for a certain key.put(Object key, OIdentifiable value) Inserts a new entry in the index.Methods inherited from class com.orientechnologies.lucene.index.OLuceneIndexNotUnique
canBeUsedInEqualityOperators, descStream, doDelete, get, getCollatingValue, getRids, getRidsIgnoreTx, isNativeTxSupported, populateIndex, rebuild, remove, remove, removeCluster, searcher, size, stream, streamEntries, streamEntriesBetween, streamEntriesMajor, streamEntriesMinor, supportsOrderedIterationsMethods inherited from class com.orientechnologies.orient.core.index.OIndexAbstract
acquireAtomicExclusiveLock, acquireExclusiveLock, acquireSharedLock, addCluster, clear, close, compareTo, count, create, cursor, delete, descCursor, doReloadIndexEngine, enhanceFromCompositeKeyBetweenAsc, enhanceFromCompositeKeyBetweenDesc, enhanceToCompositeKeyBetweenAsc, enhanceToCompositeKeyBetweenDesc, equals, flush, getAlgorithm, getClusters, getConfiguration, getDatabase, getDatabaseName, getDefinition, getFirstKey, getIndexId, getIndexNameByKey, getInternal, getKeySize, getKeyTypes, getLastKey, getMetadata, getName, getRebuildVersion, getSize, getType, getVersion, hashCode, hasRangeQuerySupport, isAutomatic, isRebuilding, isUnique, iterateEntries, iterateEntriesBetween, iterateEntriesMajor, iterateEntriesMinor, keyCursor, keyStream, loadFromConfiguration, loadMetadata, loadMetadataFromDoc, loadMetadataInternal, manualIndexesWarning, rebuild, releaseExclusiveLock, releaseSharedLock, toString, updateConfiguration
-
Constructor Details
-
OLuceneSpatialIndex
-
-
Method Details
-
put
Description copied from interface:OIndexInserts a new entry in the index. The behaviour depends by the index implementation.- Specified by:
putin interfaceOIndex- Overrides:
putin classOLuceneIndexNotUnique- Parameters:
key- Entry's keyvalue- Entry's value as OIdentifiable instance- Returns:
- The index instance itself to allow in chain calls
-
interpretTxKeyChanges
public Iterable<OStorageTransactionIndexChange> interpretTxKeyChanges(OTransactionIndexChangesPerKey changes) Description copied from class:OIndexAbstractInterprets transaction index changes for a certain key. Override it to customize index behaviour on interpreting index changes. This may be viewed as an optimization, but in some cases this is a requirement. For example, if you put multiple values under the same key during the transaction for single-valued/unique index, but remove all of them except one before commit, there is no point in throwingORecordDuplicatedExceptionwhile applying index changes.- Specified by:
interpretTxKeyChangesin interfaceOIndexInternal- Overrides:
interpretTxKeyChangesin classOLuceneIndexNotUnique- Parameters:
changes- the changes to interpret.- Returns:
- the interpreted index key changes.
-
encodeKey
- Overrides:
encodeKeyin classOLuceneIndexNotUnique
-
decodeKey
- Overrides:
decodeKeyin classOLuceneIndexNotUnique
-