public interface GridQueryTypeDescriptor
Modifier and Type | Method and Description |
---|---|
String |
affinityKey()
Returns affinity key field name or
null for default. |
Map<String,Class<?>> |
fields()
Gets mapping from field name to its type.
|
Map<String,GridQueryIndexDescriptor> |
indexes()
Gets indexes for this type.
|
Class<?> |
keyClass()
Gets key class.
|
String |
keyFieldAlias()
Gets key field alias.
|
String |
keyFieldName()
Gets key field name.
|
String |
keyTypeName()
Gets key type name.
|
String |
name()
Gets type name which uniquely identifies this type.
|
GridQueryProperty |
property(String name) |
String |
schemaName()
Gets schema name for type (database schema means here).
|
void |
setValue(String field,
Object key,
Object val,
Object propVal)
Sets field value for given key and value.
|
String |
tableName()
Gets table name for type.
|
GridQueryIndexDescriptor |
textIndex()
Get text index for this type (if any).
|
int |
typeId() |
void |
validateKeyAndValue(Object key,
Object val)
Performs validation of given key and value against configured constraints.
|
<T> T |
value(String field,
Object key,
Object val)
Gets field value for given key and value.
|
Class<?> |
valueClass()
Gets value class.
|
String |
valueFieldAlias()
Gets value field alias.
|
String |
valueFieldName()
Gets value field name.
|
boolean |
valueTextIndex()
Returns
true if string representation of value should be indexed as text. |
String |
valueTypeName()
Gets value type name.
|
String name()
String schemaName()
String tableName()
Map<String,Class<?>> fields()
<T> T value(String field, Object key, Object val) throws IgniteCheckedException
field
- Field name.key
- Key.val
- Value.IgniteCheckedException
- If failed.void setValue(String field, Object key, Object val, Object propVal) throws IgniteCheckedException
field
- Field name.key
- Key.val
- Value.propVal
- Value for given field.IgniteCheckedException
- If failed.GridQueryProperty property(String name)
name
- Property name.Map<String,GridQueryIndexDescriptor> indexes()
GridQueryIndexDescriptor textIndex()
null
.Class<?> valueClass()
Class<?> keyClass()
String keyTypeName()
String valueTypeName()
boolean valueTextIndex()
true
if string representation of value should be indexed as text.String affinityKey()
null
for default.int typeId()
String keyFieldName()
String valueFieldName()
@Nullable String keyFieldAlias()
@Nullable String valueFieldAlias()
void validateKeyAndValue(Object key, Object val) throws IgniteCheckedException
key
- Key.val
- Value.IgniteCheckedException,
- If failure happens.IgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017