public class OPropertyIndexDefinition extends OAbstractIndexDefinition
Modifier and Type | Field and Description |
---|---|
protected String |
className |
protected String |
field |
protected OType |
keyType |
collate
document
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, setNullValuesIgnored
fromStream, load, reload, reload, save, save
getDocument, load, reload
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fromStream
protected 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)
OIndexDefinition
equals
in interface OIndexDefinition
equals
in class OAbstractIndexDefinition
public int hashCode()
OIndexDefinition
hashCode
in interface OIndexDefinition
hashCode
in class OAbstractIndexDefinition
public String toString()
OIndexDefinition
toString
in interface OIndexDefinition
toString
in class ODocumentWrapper
public Object createValue(List<?> params)
OIndexDefinition
If it is impossible to calculate key value by given parameters null
will be
returned.
params
- Parameters from which index key will be calculated.public Object createValue(Object... params)
If it is impossible to calculate key value by given parameters null
will be
returned.
params
- Parameters from which index key will be calculated.public int getParamCount()
OIndexDefinition
getTypes().length
.public OType[] getTypes()
OIndexDefinition
protected final void fromStream()
fromStream
in class ODocumentWrapperNoClass
public final ODocument toStream()
OIndexDefinition
toStream
in interface OIndexDefinition
toStream
in class ODocumentWrapper
protected void serializeToStream()
serializeToStream
in class OAbstractIndexDefinition
protected void serializeFromStream()
serializeFromStream
in class OAbstractIndexDefinition
public 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–2020 OrientDB. All rights reserved.