public class ORuntimeKeyIndexDefinition<T> extends OAbstractIndexDefinition
collate
document
Constructor and Description |
---|
ORuntimeKeyIndexDefinition() |
ORuntimeKeyIndexDefinition(byte iId) |
Modifier and Type | Method and Description |
---|---|
Comparable<?> |
createValue(List<?> params)
Calculates key value by passed in parameters.
|
Comparable<?> |
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.
|
OBinarySerializer<T> |
getSerializer() |
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 ORuntimeKeyIndexDefinition(byte iId)
public ORuntimeKeyIndexDefinition()
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 Comparable<?> 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 Comparable<?> 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 OBinarySerializer<T> getSerializer()
public boolean isAutomatic()
Copyright © 2009–2020 OrientDB. All rights reserved.