public class OPropertyRidBagIndexDefinition extends OAbstractIndexDefinitionMultiValue
OType.LINKBAG
.className, field, keyType
collate
document
Constructor and Description |
---|
OPropertyRidBagIndexDefinition() |
OPropertyRidBagIndexDefinition(String className,
String field) |
Modifier and Type | Method and Description |
---|---|
Object |
createSingleValue(Object... param)
Converts passed in value in the key of single index entry.
|
Object |
createValue(List<?> params)
Calculates key value by passed in parameters.
|
Object |
createValue(Object... params)
Calculates key value by passed in parameters.
|
Object |
getDocumentValueToIndex(ODocument iDocument) |
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.
|
String |
toCreateIndexDDL(String indexName,
String indexType,
String engine) |
isAutomatic, processAdd, processRemoval
createIndexDDLWithFieldType, createIndexDDLWithoutFieldType, equals, fromStream, getClassName, getFields, getFieldsToIndex, getParamCount, getTypes, hashCode, serializeFromStream, serializeToStream, toStream, toString
getCollate, isNullValuesIgnored, setCollate, setCollate, setNullValuesIgnored
fromStream, load, reload, reload, save, save
getDocument, load, reload
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, fromStream, getClassName, getCollate, getFields, getFieldsToIndex, getParamCount, getTypes, hashCode, isNullValuesIgnored, setCollate, setNullValuesIgnored, toStream, toString
public Object createSingleValue(Object... param)
OIndexDefinitionMultiValue
param
- Value to convert.public void processChangeEvent(OMultiValueChangeEvent<?,?> changeEvent, Map<Object,Integer> keysToAdd, Map<Object,Integer> keysToRemove)
OIndexDefinitionMultiValue
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.public Object getDocumentValueToIndex(ODocument iDocument)
getDocumentValueToIndex
in interface OIndexCallback
getDocumentValueToIndex
in class OPropertyIndexDefinition
public Object createValue(List<?> params)
OIndexDefinition
If it is impossible to calculate key value by given parameters null
will be
returned.
createValue
in interface OIndexDefinition
createValue
in class OPropertyIndexDefinition
params
- Parameters from which index key will be calculated.public Object createValue(Object... params)
OPropertyIndexDefinition
If it is impossible to calculate key value by given parameters null
will be
returned.
createValue
in interface OIndexDefinition
createValue
in class OPropertyIndexDefinition
params
- Parameters from which index key will be calculated.public String toCreateIndexDDL(String indexName, String indexType, String engine)
OPropertyIndexDefinition
toCreateIndexDDL
in interface OIndexDefinition
toCreateIndexDDL
in class OPropertyIndexDefinition
Copyright © 2009–2020 OrientDB. All rights reserved.