use of org.apache.ignite.configuration.SqlConfiguration in project ignite by apache.
the class IgniteCacheDistributedQueryDefaultTimeoutSelfTest method getConfiguration.
/**
* {@inheritDoc}
*/
@Override
protected IgniteConfiguration getConfiguration(String igniteInstanceName) throws Exception {
IgniteConfiguration cfg = super.getConfiguration(igniteInstanceName);
CacheConfiguration<Integer, String> ccfg = new CacheConfiguration<>(DEFAULT_CACHE_NAME);
ccfg.setIndexedTypes(Integer.class, String.class);
ccfg.setSqlFunctionClasses(GridTestUtils.SqlTestFunctions.class);
cfg.setCacheConfiguration(ccfg);
if ("client".equals(igniteInstanceName))
cfg.setClientMode(true);
cfg.setSqlConfiguration(new SqlConfiguration().setDefaultQueryTimeout(DEFAULT_QUERY_TIMEOUT));
return cfg;
}
Aggregations