Class OPropertyListIndexDefinition
java.lang.Object
com.orientechnologies.orient.core.index.OAbstractIndexDefinition
com.orientechnologies.orient.core.index.OPropertyIndexDefinition
com.orientechnologies.orient.core.index.OPropertyListIndexDefinition
- All Implemented Interfaces:
OIndexCallback,OIndexDefinition,OIndexDefinitionMultiValue
public class OPropertyListIndexDefinition
extends OPropertyIndexDefinition
implements OIndexDefinitionMultiValue
Index implementation bound to one schema class property that presents
OType.EMBEDDEDLIST, OType.LINKLIST, OType.LINKSET or OType.EMBEDDEDSET properties.-
Field Summary
Fields inherited from class com.orientechnologies.orient.core.index.OPropertyIndexDefinition
className, field, keyTypeFields inherited from class com.orientechnologies.orient.core.index.OAbstractIndexDefinition
collate, document -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSingleValue(Object... param) Converts passed in value in the key of single index entry.createValue(Object... params) Calculates key value by passed in parameters.createValue(List<?> params) Calculates key value by passed in parameters.getDocumentValueToIndex(ODocument iDocument) 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.toCreateIndexDDL(String indexName, String indexType, String engine) Methods inherited from class com.orientechnologies.orient.core.index.OPropertyIndexDefinition
createIndexDDLWithFieldType, createIndexDDLWithoutFieldType, equals, fromStream, getClassName, getFields, getFieldsToIndex, getParamCount, getTypes, hashCode, isAutomatic, processAdd, processRemoval, serializeFromStream, serializeToStream, toStream, toStringMethods inherited from class com.orientechnologies.orient.core.index.OAbstractIndexDefinition
getCollate, isNullValuesIgnored, setCollate, setCollate, setNullValuesIgnoredMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.orientechnologies.orient.core.index.OIndexDefinition
equals, fromStream, getClassName, getCollate, getFields, getFieldsToIndex, getParamCount, getTypes, hashCode, isAutomatic, isNullValuesIgnored, setCollate, setNullValuesIgnored, toStream, toString
-
Constructor Details
-
OPropertyListIndexDefinition
-
OPropertyListIndexDefinition
public OPropertyListIndexDefinition()
-
-
Method Details
-
getDocumentValueToIndex
- Specified by:
getDocumentValueToIndexin interfaceOIndexCallback- Overrides:
getDocumentValueToIndexin classOPropertyIndexDefinition
-
createValue
Description copied from interface:OIndexDefinitionCalculates key value by passed in parameters.If it is impossible to calculate key value by given parameters
nullwill be returned.- Specified by:
createValuein interfaceOIndexDefinition- Overrides:
createValuein classOPropertyIndexDefinition- Parameters:
params- Parameters from which index key will be calculated.- Returns:
- Key value or null if calculation is impossible.
-
createValue
Description copied from class:OPropertyIndexDefinitionCalculates key value by passed in parameters.If it is impossible to calculate key value by given parameters
nullwill be returned.- Specified by:
createValuein interfaceOIndexDefinition- Overrides:
createValuein classOPropertyIndexDefinition- Parameters:
params- Parameters from which index key will be calculated.- Returns:
- Key value or null if calculation is impossible.
-
createSingleValue
Description copied from interface:OIndexDefinitionMultiValueConverts passed in value in the key of single index entry.- Specified by:
createSingleValuein interfaceOIndexDefinitionMultiValue- Parameters:
param- Value to convert.- Returns:
- Index key.
-
processChangeEvent
public void processChangeEvent(OMultiValueChangeEvent<?, ?> changeEvent, Map<Object, Integer> keysToAdd, Map<Object, Integer> keysToRemove) Description copied from interface:OIndexDefinitionMultiValueProcess event that contains operation on collection and extract values that should be added removed from index to reflect collection changes in the given index.- Specified by:
processChangeEventin interfaceOIndexDefinitionMultiValue- 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.
-
toCreateIndexDDL
Description copied from class:OPropertyIndexDefinition- Specified by:
toCreateIndexDDLin interfaceOIndexDefinition- Overrides:
toCreateIndexDDLin classOPropertyIndexDefinition- Parameters:
indexName-indexType-
-