ignite-sql-tests - examples
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/69c502a0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/69c502a0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/69c502a0 Branch: refs/heads/ignite-sql-tests Commit: 69c502a0af51d5a132c9fe3428fa9aac29eb1536 Parents: 93c03ae Author: S.Vladykin <[email protected]> Authored: Wed Feb 25 02:19:00 2015 +0300 Committer: S.Vladykin <[email protected]> Committed: Wed Feb 25 02:19:00 2015 +0300 ---------------------------------------------------------------------- examples/config/example-cache.xml | 43 ++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/69c502a0/examples/config/example-cache.xml ---------------------------------------------------------------------- diff --git a/examples/config/example-cache.xml b/examples/config/example-cache.xml index 9b8d8b8..7f27a94 100644 --- a/examples/config/example-cache.xml +++ b/examples/config/example-cache.xml @@ -60,6 +60,26 @@ <property name="atomicityMode" value="ATOMIC"/> <property name="distributionMode" value="PARTITIONED_ONLY"/> <property name="backups" value="1"/> + + <property name="indexedTypes"> + <list> + <!-- Key and value type for SQL table Organization. --> + <value>java.util.UUID</value> + <value>org.apache.ignite.examples.datagrid.CacheQueryExample.Organization</value> + + <!-- Key and value type for SQL table Person. --> + <value>org.apache.ignite.cache.affinity.CacheAffinityKey</value> + <value>org.apache.ignite.examples.datagrid.CacheQueryExample.Person</value> + + <!-- Key and value type for SQL table Long. --> + <value>java.lang.Integer</value> + <value>java.lang.Long</value> + + <!-- Key and value type for SQL table FactPurchase. --> + <value>java.lang.Integer</value> + <value>org.apache.ignite.examples.datagrid.starschema.FactPurchase</value> + </list> + </property> </bean> <!-- Partitioned cache example configuration (Atomic mode, PRIMARY write order mode). --> @@ -86,6 +106,17 @@ <property name="name" value="replicated"/> <property name="cacheMode" value="REPLICATED"/> <property name="atomicityMode" value="ATOMIC"/> + <property name="indexedTypes"> + <list> + <!-- Key and value type for SQL table DimStore. --> + <value>java.lang.Integer</value> + <value>org.apache.ignite.examples.datagrid.starschema.DimStore</value> + + <!-- Key and value type for SQL table DimProduct. --> + <value>java.lang.Integer</value> + <value>org.apache.ignite.examples.datagrid.starschema.DimProduct</value> + </list> + </property> </bean> <!-- Replicated cache example configuration (Transactional mode). --> @@ -148,17 +179,5 @@ <!-- Set to true to enable indexing for query examples, default value is false. --> <property name="queryIndexEnabled" value="true"/> - - <property name="indexedTypes"> - <list> - <!-- Key and value type for SQL table Organization. --> - <value>java.util.UUID</value> - <value>org.apache.ignite.examples.datagrid.CacheQueryExample.Organization</value> - - <!-- Key and value type for SQL table Person. --> - <value>org.apache.ignite.cache.affinity.CacheAffinityKey</value> - <value>org.apache.ignite.examples.datagrid.CacheQueryExample.Person</value> - </list> - </property> </bean> </beans>
