Search in sources :

Example 1 with RelationalStoreExecutorBuilder

use of org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutorBuilder in project legend-engine by finos.

the class TestRelationalStoreExecutorBuilder method assertStoreExecutorBuilders.

private void assertStoreExecutorBuilders(List<StoreExecutorBuilder> builders) {
    Assert.assertEquals(1, builders.size());
    StoreExecutorBuilder builder = builders.get(0);
    Assert.assertTrue(builder instanceof RelationalStoreExecutorBuilder);
    RelationalStoreExecutor executor = ((RelationalStoreExecutorBuilder) builder).build();
    Assert.assertNotNull(executor);
}
Also used : RelationalStoreExecutorBuilder(org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutorBuilder) RelationalStoreExecutor(org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutor) RelationalStoreExecutorBuilder(org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutorBuilder) StoreExecutorBuilder(org.finos.legend.engine.plan.execution.stores.StoreExecutorBuilder)

Example 2 with RelationalStoreExecutorBuilder

use of org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutorBuilder in project legend-engine by finos.

the class TestRelationalStoreExecutorBuilder method testDefaultBuilder.

@Test
public void testDefaultBuilder() {
    RelationalStoreExecutor executor = new RelationalStoreExecutorBuilder().build();
    RelationalStoreState state = executor.getStoreState();
    RelationalExecutorInfo info = state.getStoreExecutionInfo();
    Assert.assertNotNull(info);
}
Also used : RelationalStoreExecutorBuilder(org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutorBuilder) RelationalStoreExecutor(org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutor) RelationalStoreState(org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreState) RelationalExecutorInfo(org.finos.legend.engine.plan.execution.stores.relational.connection.RelationalExecutorInfo) Test(org.junit.Test)

Aggregations

RelationalStoreExecutor (org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutor)2 RelationalStoreExecutorBuilder (org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreExecutorBuilder)2 StoreExecutorBuilder (org.finos.legend.engine.plan.execution.stores.StoreExecutorBuilder)1 RelationalExecutorInfo (org.finos.legend.engine.plan.execution.stores.relational.connection.RelationalExecutorInfo)1 RelationalStoreState (org.finos.legend.engine.plan.execution.stores.relational.plugin.RelationalStoreState)1 Test (org.junit.Test)1