public class GridH2IndexingSpaceConfiguration extends Object
GridH2IndexingSpi.| Constructor and Description |
|---|
GridH2IndexingSpaceConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets space name to which this configuration applies.
|
boolean |
isIndexFixedTyping()
This flag essentially controls whether all values of the same type have
identical key type.
|
boolean |
isIndexPrimitiveKey()
Gets flag indicating whether indexing SPI should index by key in cases
where key is primitive type
|
boolean |
isIndexPrimitiveValue()
Gets flag indicating whether indexing SPI should index by value in cases
where value is primitive type
|
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 indexing SPI should index by key in cases
where key is primitive type.
|
void |
setIndexPrimitiveValue(boolean idxPrimitiveVal)
Sets flag indexing whether indexing SPI should index by value in cases
where value is primitive type.
|
void |
setName(String name)
Sets space name.
|
String |
toString() |
public String getName()
public void setName(String name)
name - Space name.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, SPI 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 SPI should try to convert values to their respective SQL
types for better performance.public void setIndexFixedTyping(boolean idxFixedTyping)
If false, SPI 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 SPI should try to convert values to their respective SQL
types for better performance.Copyright © 2014. All rights reserved.