
public class OPropertyIndexDefinition extends OAbstractIndexDefinition
| Modifier and Type | Field and Description |
|---|---|
protected String |
className |
protected String |
field |
protected OType |
keyType |
collatedocument| Constructor and Description |
|---|
OPropertyIndexDefinition()
Constructor used for index unmarshalling.
|
OPropertyIndexDefinition(String iClassName,
String iField,
OType iType) |
| Modifier and Type | Method and Description |
|---|---|
protected StringBuilder |
createIndexDDLWithFieldType(String indexName,
String indexType,
String engine) |
protected StringBuilder |
createIndexDDLWithoutFieldType(String indexName,
String indexType,
String engine) |
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) |
protected void |
fromStream() |
String |
getClassName() |
Object |
getDocumentValueToIndex(ODocument iDocument) |
List<String> |
getFields() |
List<String> |
getFieldsToIndex() |
int |
getParamCount()
Returns amount of parameters that are used to calculate key value.
|
OType[] |
getTypes()
Return types of values from which index key consist.
|
int |
hashCode() |
boolean |
isAutomatic() |
protected void |
serializeFromStream() |
protected void |
serializeToStream() |
String |
toCreateIndexDDL(String indexName,
String indexType,
String engine) |
ODocument |
toStream()
Serializes internal index state to document.
|
String |
toString() |
getCollate, isNullValuesIgnored, setCollate, setCollate, setNullValuesIgnoredfromStream, load, reload, reload, save, savegetDocument, load, load, reloadclone, finalize, getClass, notify, notifyAll, wait, wait, waitfromStreamprotected String className
protected String field
protected OType keyType
public OPropertyIndexDefinition(String iClassName, String iField, OType iType)
public OPropertyIndexDefinition()
public String getClassName()
public List<String> getFields()
public List<String> getFieldsToIndex()
Map values) which given
index is used to calculate key value. Order of fields is important.public boolean equals(Object o)
OIndexDefinitionequals in interface OIndexDefinitionequals in class OAbstractIndexDefinitionpublic int hashCode()
OIndexDefinitionhashCode in interface OIndexDefinitionhashCode in class OAbstractIndexDefinitionpublic String toString()
OIndexDefinitiontoString in interface OIndexDefinitiontoString in class ODocumentWrapperpublic Object createValue(List<?> params)
OIndexDefinitionnull will be returned.params - Parameters from which index key will be calculated.public Object createValue(Object... params)
null will be returned.params - Parameters from which index key will be calculated.public int getParamCount()
OIndexDefinitiongetTypes().length.public OType[] getTypes()
OIndexDefinitionprotected final void fromStream()
fromStream in class ODocumentWrapperNoClasspublic final ODocument toStream()
OIndexDefinitiontoStream in interface OIndexDefinitiontoStream in class ODocumentWrapperprotected void serializeToStream()
serializeToStream in class OAbstractIndexDefinitionprotected void serializeFromStream()
serializeFromStream in class OAbstractIndexDefinitionpublic String toCreateIndexDDL(String indexName, String indexType, String engine)
indexName - indexType - protected StringBuilder createIndexDDLWithFieldType(String indexName, String indexType, String engine)
protected StringBuilder createIndexDDLWithoutFieldType(String indexName, String indexType, String engine)
public boolean isAutomatic()
Copyright © 2009–2025 OrientDB. All rights reserved.