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 GridQueryIndexDescriptor
public Collection<String> fields()
fields
in interface GridQueryIndexDescriptor
public int inlineSize()
inlineSize
in interface GridQueryIndexDescriptor
public boolean descending(String field)
descending
in interface GridQueryIndexDescriptor
field
- 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.0.0 Release Date : April 30 2017