Search in sources :

Example 1 with ExecutorMock

use of org.apache.flink.table.utils.ExecutorMock in project flink by apache.

the class StreamTableEnvironmentImplTest method getStreamTableEnvironment.

private StreamTableEnvironmentImpl getStreamTableEnvironment(StreamExecutionEnvironment env, DataStreamSource<Integer> elements) {
    TableConfig tableConfig = new TableConfig();
    CatalogManager catalogManager = CatalogManagerMocks.createEmptyCatalogManager();
    ModuleManager moduleManager = new ModuleManager();
    return new StreamTableEnvironmentImpl(catalogManager, moduleManager, new FunctionCatalog(tableConfig, catalogManager, moduleManager), tableConfig, env, new TestPlanner(elements.getTransformation()), new ExecutorMock(), true, this.getClass().getClassLoader());
}
Also used : FunctionCatalog(org.apache.flink.table.catalog.FunctionCatalog) TableConfig(org.apache.flink.table.api.TableConfig) ExecutorMock(org.apache.flink.table.utils.ExecutorMock) ModuleManager(org.apache.flink.table.module.ModuleManager) CatalogManager(org.apache.flink.table.catalog.CatalogManager)

Aggregations

TableConfig (org.apache.flink.table.api.TableConfig)1 CatalogManager (org.apache.flink.table.catalog.CatalogManager)1 FunctionCatalog (org.apache.flink.table.catalog.FunctionCatalog)1 ModuleManager (org.apache.flink.table.module.ModuleManager)1 ExecutorMock (org.apache.flink.table.utils.ExecutorMock)1