Search in sources :

Example 1 with H2Dialect

use of com.yahoo.elide.datastores.aggregation.queryengines.sql.dialects.impl.H2Dialect in project elide by yahoo.

the class AggregateBeforeJoinOptimizerTest method init.

@BeforeAll
public static void init() {
    MetaDataStore metaDataStore = new MetaDataStore(DefaultClassScanner.getInstance(), getClassType(dictionary.getScanner().getAnnotatedClasses("example", Include.class)), false);
    Set<Optimizer> optimizers = new HashSet<>(Arrays.asList(new AggregateBeforeJoinOptimizer(metaDataStore)));
    init(new H2Dialect(), optimizers, metaDataStore);
}
Also used : H2Dialect(com.yahoo.elide.datastores.aggregation.queryengines.sql.dialects.impl.H2Dialect) MetaDataStore(com.yahoo.elide.datastores.aggregation.metadata.MetaDataStore) Optimizer(com.yahoo.elide.datastores.aggregation.query.Optimizer) HashSet(java.util.HashSet) BeforeAll(org.junit.jupiter.api.BeforeAll)

Example 2 with H2Dialect

use of com.yahoo.elide.datastores.aggregation.queryengines.sql.dialects.impl.H2Dialect in project elide by yahoo.

the class SkipOptimizerTest method init.

@BeforeAll
public static void init() {
    MetaDataStore metaDataStore = new MetaDataStore(DefaultClassScanner.getInstance(), getClassType(DefaultClassScanner.getInstance().getAnnotatedClasses("example", Include.class)), false);
    Set<Optimizer> optimizers = new HashSet<>(Arrays.asList(optimizer));
    init(new H2Dialect(), optimizers, metaDataStore);
}
Also used : H2Dialect(com.yahoo.elide.datastores.aggregation.queryengines.sql.dialects.impl.H2Dialect) MetaDataStore(com.yahoo.elide.datastores.aggregation.metadata.MetaDataStore) Optimizer(com.yahoo.elide.datastores.aggregation.query.Optimizer) HashSet(java.util.HashSet) BeforeAll(org.junit.jupiter.api.BeforeAll)

Aggregations

MetaDataStore (com.yahoo.elide.datastores.aggregation.metadata.MetaDataStore)2 Optimizer (com.yahoo.elide.datastores.aggregation.query.Optimizer)2 H2Dialect (com.yahoo.elide.datastores.aggregation.queryengines.sql.dialects.impl.H2Dialect)2 HashSet (java.util.HashSet)2 BeforeAll (org.junit.jupiter.api.BeforeAll)2