public class QueryEntityTypeDescriptor extends Object
| Constructor and Description |
|---|
QueryEntityTypeDescriptor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFieldToIndex(String idxName,
String field,
int orderNum,
boolean descending)
Adds field to index.
|
void |
addFieldToTextIndex(String field)
Adds field to text index.
|
QueryEntityIndexDescriptor |
addIndex(String idxName,
QueryIndexType type,
int inlineSize)
Adds index.
|
void |
addNotNullField(String field)
Adds a notNull field.
|
void |
addPrecision(String field,
Integer precision)
Adds fieldsPrecision info.
|
void |
addProperty(QueryEntityClassProperty prop,
boolean key,
boolean failOnDuplicate)
Adds property to the type descriptor.
|
void |
addScale(String field,
int scale)
Adds fieldsScale info.
|
Map<String,Integer> |
fieldsPrecision() |
Map<String,Integer> |
fieldsScale() |
Map<String,GridQueryIndexDescriptor> |
indexes() |
Class<?> |
keyClass() |
void |
keyClass(Class<?> keyCls)
Set key class.
|
Set<String> |
keyProperties() |
Set<String> |
notNullFields() |
Map<String,QueryEntityClassProperty> |
properties() |
String |
toString() |
Class<?> |
valueClass() |
void |
valueClass(Class<?> valCls)
Sets value class.
|
boolean |
valueTextIndex() |
void |
valueTextIndex(boolean valTextIdx)
Sets if this value should be text indexed.
|
public Map<String,GridQueryIndexDescriptor> indexes()
public QueryEntityIndexDescriptor addIndex(String idxName, QueryIndexType type, int inlineSize)
idxName - Index name.type - Index type.inlineSize - Inline size.public void addFieldToIndex(String idxName, String field, int orderNum, boolean descending)
idxName - Index name.field - Field name.orderNum - Fields order number in index.descending - Sorting order.public void addFieldToTextIndex(String field)
field - Field name.public Class<?> valueClass()
public void valueClass(Class<?> valCls)
valCls - Value class.public Class<?> keyClass()
public void keyClass(Class<?> keyCls)
keyCls - Key class.public void addProperty(QueryEntityClassProperty prop, boolean key, boolean failOnDuplicate)
prop - Property.key - Property ownership flag (key or not).failOnDuplicate - Fail on duplicate flag.public void addNotNullField(String field)
field - notNull field.public void addPrecision(String field, Integer precision)
field - Field.precision - Precision.public void addScale(String field, int scale)
field - Field.scale - Scale.public Map<String,QueryEntityClassProperty> properties()
public boolean valueTextIndex()
true If we need to have a fulltext index on value.public void valueTextIndex(boolean valTextIdx)
valTextIdx - Flag value.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020