public class QueryIndexDescriptorImpl extends Object implements GridQueryIndexDescriptor
| Constructor and Description |
|---|
QueryIndexDescriptorImpl(QueryTypeDescriptorImpl typDesc,
String name,
QueryIndexType type,
int inlineSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
QueryIndexDescriptorImpl |
addField(String field,
int orderNum,
boolean descending)
Adds field to this index.
|
boolean |
descending(String field)
Specifies order of the index for each indexed field.
|
Collection<String> |
fields()
Gets all fields to be indexed.
|
int |
inlineSize()
Gets inline size for SORTED index.
|
String |
name() |
String |
toString() |
QueryIndexType |
type()
Gets index type.
|
QueryTypeDescriptorImpl |
typeDescriptor() |
public QueryIndexDescriptorImpl(QueryTypeDescriptorImpl typDesc, String name, QueryIndexType type, int inlineSize)
typDesc - Type descriptor.name - Index name.type - Type.inlineSize - Inline size.public QueryTypeDescriptorImpl typeDescriptor()
public String name()
name in interface GridQueryIndexDescriptorpublic Collection<String> fields()
fields in interface GridQueryIndexDescriptorpublic int inlineSize()
inlineSize in interface GridQueryIndexDescriptorpublic boolean descending(String field)
descending in interface GridQueryIndexDescriptorfield - Field name.True if given field should be indexed in descending order.public QueryIndexDescriptorImpl addField(String field, int orderNum, boolean descending) throws IgniteCheckedException
field - Field name.orderNum - Field order number in this index.descending - Sort order.IgniteCheckedException - If failed.public QueryIndexType type()
type in interface GridQueryIndexDescriptor
Follow @ApacheIgnite
Ignite Fabric : ver. 2.4.0 Release Date : March 5 2018