public interface OIndexDefinition extends OIndexCallback
OClass
.
This object cannot be created directly, use OClass
manipulation method instead.
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 index) |
void |
fromStream(ODocument document)
Deserialize internal index state from document.
|
String |
getClassName() |
OCollate |
getCollate() |
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() |
boolean |
isNullValuesIgnored() |
void |
setCollate(OCollate collate) |
void |
setNullValuesIgnored(boolean value) |
String |
toCreateIndexDDL(String indexName,
String indexType,
String engine) |
ODocument |
toStream()
Serializes internal index state to document.
|
String |
toString() |
getDocumentValueToIndex
List<String> getFields()
List<String> getFieldsToIndex()
Map
values) which given index is used to calculate key value. Order of fields is
important.String getClassName()
Object createValue(List<?> 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.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.int getParamCount()
getTypes().length
.OType[] getTypes()
ODocument toStream()
void fromStream(ODocument document)
document
- Serialized index presentation.boolean isAutomatic()
OCollate getCollate()
void setCollate(OCollate collate)
boolean isNullValuesIgnored()
void setNullValuesIgnored(boolean value)
Copyright © 2009–2020 OrientDB. All rights reserved.