
public class OPropertyMapIndexDefinition extends OAbstractIndexDefinitionMultiValue
| Modifier and Type | Class and Description |
|---|---|
static class |
OPropertyMapIndexDefinition.INDEX_BY
Indicates whether Map will be indexed using its keys or values.
|
className, field, keyTypecollatedocument| Constructor and Description |
|---|
OPropertyMapIndexDefinition() |
OPropertyMapIndexDefinition(String iClassName,
String iField,
OType iType,
OPropertyMapIndexDefinition.INDEX_BY indexBy) |
| 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.
|
boolean |
equals(Object o) |
Object |
getDocumentValueToIndex(ODocument iDocument) |
List<String> |
getFieldsToIndex() |
OPropertyMapIndexDefinition.INDEX_BY |
getIndexBy() |
int |
hashCode() |
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.
|
protected void |
serializeFromStream() |
protected void |
serializeToStream() |
String |
toCreateIndexDDL(String indexName,
String indexType,
String engine) |
String |
toString() |
isAutomatic, processAdd, processRemovalcreateIndexDDLWithFieldType, createIndexDDLWithoutFieldType, fromStream, getClassName, getFields, getParamCount, getTypes, toStreamgetCollate, isNullValuesIgnored, setCollate, setCollate, setNullValuesIgnoredfromStream, load, load, reload, reload, save, savegetDocument, load, load, reloadclone, finalize, getClass, notify, notifyAll, wait, wait, waitfromStream, getClassName, getCollate, getFields, getParamCount, getTypes, isNullValuesIgnored, setCollate, setNullValuesIgnored, toStreampublic OPropertyMapIndexDefinition()
public OPropertyMapIndexDefinition(String iClassName, String iField, OType iType, OPropertyMapIndexDefinition.INDEX_BY indexBy)
public Object getDocumentValueToIndex(ODocument iDocument)
getDocumentValueToIndex in interface OIndexCallbackgetDocumentValueToIndex in class OPropertyIndexDefinitionpublic Object createValue(List<?> params)
OIndexDefinitionnull will be returned.createValue in interface OIndexDefinitioncreateValue in class OPropertyIndexDefinitionparams - Parameters from which index key will be calculated.public Object createValue(Object... params)
OPropertyIndexDefinitionnull will be returned.createValue in interface OIndexDefinitioncreateValue in class OPropertyIndexDefinitionparams - Parameters from which index key will be calculated.public OPropertyMapIndexDefinition.INDEX_BY getIndexBy()
protected void serializeToStream()
serializeToStream in class OPropertyIndexDefinitionprotected void serializeFromStream()
serializeFromStream in class OPropertyIndexDefinitionpublic boolean equals(Object o)
OIndexDefinitionequals in interface OIndexDefinitionequals in class OPropertyIndexDefinitionpublic Object createSingleValue(Object... param)
OIndexDefinitionMultiValueparam - Value to convert.public void processChangeEvent(OMultiValueChangeEvent<?,?> changeEvent, Map<Object,Integer> keysToAdd, Map<Object,Integer> keysToRemove)
OIndexDefinitionMultiValuechangeEvent - 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 List<String> getFieldsToIndex()
getFieldsToIndex in interface OIndexDefinitiongetFieldsToIndex in class OPropertyIndexDefinitionMap values) which given
index is used to calculate key value. Order of fields is important.public int hashCode()
OIndexDefinitionhashCode in interface OIndexDefinitionhashCode in class OPropertyIndexDefinitionpublic String toString()
OIndexDefinitiontoString in interface OIndexDefinitiontoString in class OPropertyIndexDefinitionpublic String toCreateIndexDDL(String indexName, String indexType, String engine)
OPropertyIndexDefinitiontoCreateIndexDDL in interface OIndexDefinitiontoCreateIndexDDL in class OPropertyIndexDefinitionCopyright © 2009–2025 OrientDB. All rights reserved.