Interface OIndexDefinitionMultiValue
- All Superinterfaces:
OIndexCallback,OIndexDefinition
- All Known Implementing Classes:
OPropertyListIndexDefinition,OPropertyMapIndexDefinition,OPropertyRidBagIndexDefinition
Interface that indicates that index definition is based on collection of values but not on single
value.
- Since:
- 20.12.11
- Author:
- Andrey Lomakin
-
Method Summary
Modifier and TypeMethodDescriptioncreateSingleValue(Object... param) Converts passed in value in the key of single index entry.voidprocessChangeEvent(OMultiValueChangeEvent<?, ?> changeEvent, Map<Object, Integer> keysToAdd, Map<Object, Integer> keysToRemove) Process event that contains operation on collection and extract values that should be added removed from index to reflect collection changes in the given index.Methods inherited from interface com.orientechnologies.orient.core.index.OIndexCallback
getDocumentValueToIndexMethods inherited from interface com.orientechnologies.orient.core.index.OIndexDefinition
createValue, createValue, equals, fromStream, getClassName, getCollate, getFields, getFieldsToIndex, getParamCount, getTypes, hashCode, isAutomatic, isNullValuesIgnored, setCollate, setNullValuesIgnored, toCreateIndexDDL, toStream, toString
-
Method Details
-
createSingleValue
Converts passed in value in the key of single index entry.- Parameters:
param- Value to convert.- Returns:
- Index key.
-
processChangeEvent
void processChangeEvent(OMultiValueChangeEvent<?, ?> changeEvent, Map<Object, Integer> keysToAdd, Map<Object, Integer> keysToRemove) Process event that contains operation on collection and extract values that should be added removed from index to reflect collection changes in the given index.- Parameters:
changeEvent- Event that describes operation that was performed on collection.keysToAdd- Values that should be added to related index.keysToRemove- Values that should be removed to related index.
-