public interface GridQueryTypeDescriptor
| Modifier and Type | Method and Description |
|---|---|
String |
affinityKey()
Returns affinity key field name or
null for default. |
boolean |
customAffinityKeyMapper() |
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.
|
@Nullable String |
keyFieldAlias()
Gets key field alias.
|
String |
keyFieldName()
Gets key field name.
|
String |
keyTypeName()
Gets key type name.
|
boolean |
matchType(CacheObject val) |
String |
name()
Gets type name which uniquely identifies this type.
|
Set<String> |
primaryKeyFields()
Gets primary key fields if defined, or empty collection otherwise.
|
void |
primaryKeyFields(Set<String> keys)
Sets primary key fields.
|
GridQueryProperty |
property(String name) |
String |
schemaName()
Gets schema name for type (database schema means here).
|
void |
setDefaults(Object key,
Object val)
Sets defaults value for given key and value.
|
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.
|
@Nullable 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.boolean customAffinityKeyMapper()
int typeId()
boolean matchType(CacheObject val)
val - Value cache object.true If the type of the given value cache object matches this descriptor.String keyFieldName()
String valueFieldName()
@Nullable @Nullable String keyFieldAlias()
@Nullable @Nullable String valueFieldAlias()
void validateKeyAndValue(Object key, Object val) throws IgniteCheckedException
key - Key.val - Value.IgniteCheckedException, - If failure happens.IgniteCheckedExceptionvoid setDefaults(Object key, Object val) throws IgniteCheckedException
key - Key.val - Value.IgniteCheckedException - If failed.Set<String> primaryKeyFields()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021