public class OSimpleKeyIndexDefinition extends OAbstractIndexDefinition
collate
document
Constructor and Description |
---|
OSimpleKeyIndexDefinition() |
OSimpleKeyIndexDefinition(OType... keyTypes) |
OSimpleKeyIndexDefinition(OType[] keyTypes2,
List<OCollate> collatesList) |
Modifier and Type | Method and Description |
---|---|
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
public OSimpleKeyIndexDefinition(OType... keyTypes)
public OSimpleKeyIndexDefinition()
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 String getClassName()
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)
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 int getParamCount()
OIndexDefinition
getTypes().length
.public OType[] getTypes()
OIndexDefinition
public ODocument toStream()
OIndexDefinition
toStream
in interface OIndexDefinition
toStream
in class ODocumentWrapper
protected void serializeToStream()
serializeToStream
in class OAbstractIndexDefinition
protected void fromStream()
fromStream
in class ODocumentWrapperNoClass
protected void serializeFromStream()
serializeFromStream
in class OAbstractIndexDefinition
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 String toCreateIndexDDL(String indexName, String indexType, String engine)
indexName
- indexType
- public boolean isAutomatic()
Copyright © 2009–2020 OrientDB. All rights reserved.