public class CacheQueryConfiguration extends Object implements Serializable
Constructor and Description |
---|
CacheQueryConfiguration()
Default constructor.
|
CacheQueryConfiguration(CacheQueryConfiguration cfg) |
Modifier and Type | Method and Description |
---|---|
QueryTypeResolver |
getTypeResolver()
Gets query type resolver.
|
boolean |
isEscapeAll()
If
true , then table name and all column names in 'create table' SQL
generated for SQL engine are escaped with double quotes. |
boolean |
isIndexFixedTyping()
This flag essentially controls whether all values of the same type have
identical key type.
|
boolean |
isIndexPrimitiveKey()
Gets flag indicating whether SQL engine should index by key in cases
where key is primitive type
|
boolean |
isIndexPrimitiveValue()
Gets flag indicating whether SQL engine should index by value in cases
where value is primitive type
|
void |
setEscapeAll(boolean escapeAll)
If
true , then table name and all column names in 'create table' SQL
generated for SQL engine are escaped with double quotes. |
void |
setIndexFixedTyping(boolean idxFixedTyping)
This flag essentially controls whether key type is going to be identical
for all values of the same type.
|
void |
setIndexPrimitiveKey(boolean idxPrimitiveKey)
Sets flag indicating whether SQL engine should index by key in cases
where key is primitive type.
|
void |
setIndexPrimitiveValue(boolean idxPrimitiveVal)
Sets flag indexing whether SQL engine should index by value in cases
where value is primitive type.
|
void |
setTypeResolver(QueryTypeResolver typeRslvr)
Sets query type resolver.
|
public CacheQueryConfiguration()
public CacheQueryConfiguration(CacheQueryConfiguration cfg)
cfg
- Configuration to copy.public QueryTypeResolver getTypeResolver()
public void setTypeResolver(QueryTypeResolver typeRslvr)
typeRslvr
- Query type resolver.public boolean isIndexPrimitiveKey()
True
if primitive keys should be indexed.public void setIndexPrimitiveKey(boolean idxPrimitiveKey)
idxPrimitiveKey
- True
if primitive keys should be indexed.public boolean isIndexPrimitiveValue()
True
if primitive values should be indexed.public void setIndexPrimitiveValue(boolean idxPrimitiveVal)
idxPrimitiveVal
- True
if primitive values should be indexed.public boolean isIndexFixedTyping()
If false
, SQL engine will store all keys in BINARY form to make it possible to store
the same value type with different key types. If true
, key type will be converted
to respective SQL type if it is possible, hence, improving performance of queries.
Setting this value to false
also means that '_key'
column cannot be indexed and
cannot participate in query where clauses. The behavior of using '_key' column in where
clauses with this flag set to false
is undefined.
True
if SQL engine should try to convert values to their respective SQL
types for better performance.public void setIndexFixedTyping(boolean idxFixedTyping)
If false, SQL engine will store all keys in BINARY form to make it possible to store the same value type with different key types. If true, key type will be converted to respective SQL type if it is possible, which may provide significant performance boost.
idxFixedTyping
- True
if SQL engine should try to convert values to their respective SQL
types for better performance.public boolean isEscapeAll()
true
, then table name and all column names in 'create table' SQL
generated for SQL engine are escaped with double quotes. This flag should be set if table name of
column name is H2 reserved word or is not valid H2 identifier (e.g. contains space or hyphen).
Note if this flag is set then table and column name in SQL queries also must be escaped with double quotes.
public void setEscapeAll(boolean escapeAll)
true
, then table name and all column names in 'create table' SQL
generated for SQL engine are escaped with double quotes. This flag should be set if table name of
column name is H2 reserved word or is not valid H2 identifier (e.g. contains space or hyphen).
Note if this flag is set then table and column name in SQL queries also must be escaped with double quotes.
escapeAll
- Flag value.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015