public class QueryEntity extends Object implements Serializable
cache entry (composed of key and value)
in a way of how it must be indexed and can be queried.| Constructor and Description |
|---|
QueryEntity() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryField(String fullName,
String type,
String alias)
Utility method for building query entities programmatically.
|
static String |
defaultIndexName(QueryIndex idx)
Generates default index name by concatenating all index field names.
|
void |
ensureIndex(String idxName,
QueryIndexType idxType)
Ensures that index with the given name exists.
|
Map<String,String> |
getAliases()
Gets aliases map.
|
LinkedHashMap<String,String> |
getFields()
Gets query fields for this query pair.
|
Collection<QueryIndex> |
getIndexes()
Gets a collection of index entities.
|
String |
getKeyType()
Gets key type for this query pair.
|
String |
getValueType()
Gets value type for this query pair.
|
void |
setAliases(Map<String,String> aliases)
Sets mapping from full property name in dot notation to an alias that will be used as SQL column name.
|
void |
setFields(LinkedHashMap<String,String> fields)
Sets query fields for this query pair.
|
void |
setIndexes(Collection<QueryIndex> idxs)
Sets a collection of index entities.
|
void |
setKeyType(String keyType)
Sets key type for this query pair.
|
void |
setValueType(String valType)
Sets value type for this query pair.
|
public String getKeyType()
public void setKeyType(String keyType)
keyType - Key type.public String getValueType()
public void setValueType(String valType)
valType - Value type.public LinkedHashMap<String,String> getFields()
public void setFields(LinkedHashMap<String,String> fields)
fields - Field-to-type map.public Collection<QueryIndex> getIndexes()
public void setAliases(Map<String,String> aliases)
aliases - Aliases map.public void setIndexes(Collection<QueryIndex> idxs)
idxs - Collection of index entities.public void addQueryField(String fullName, String type, String alias)
public void ensureIndex(String idxName, QueryIndexType idxType)
idxName - Index name.idxType - Index type.public static String defaultIndexName(QueryIndex idx)
idx - Index to build name for.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.11 Release Date : April 8 2016