Search in sources :

Example 1 with Context

use of org.apache.flink.table.delegation.PlannerFactory.Context in project flink by apache.

the class PlannerFactoryUtil method createPlanner.

/**
 * Discovers a planner factory and creates a planner instance.
 */
public static Planner createPlanner(String plannerIdentifier, Executor executor, TableConfig tableConfig, ModuleManager moduleManager, CatalogManager catalogManager, FunctionCatalog functionCatalog) {
    final PlannerFactory plannerFactory = FactoryUtil.discoverFactory(Thread.currentThread().getContextClassLoader(), PlannerFactory.class, plannerIdentifier);
    final Context context = new DefaultPlannerContext(executor, tableConfig, moduleManager, catalogManager, functionCatalog);
    return plannerFactory.create(context);
}
Also used : Context(org.apache.flink.table.delegation.PlannerFactory.Context) DefaultPlannerContext(org.apache.flink.table.delegation.PlannerFactory.DefaultPlannerContext) DefaultPlannerContext(org.apache.flink.table.delegation.PlannerFactory.DefaultPlannerContext) PlannerFactory(org.apache.flink.table.delegation.PlannerFactory)

Aggregations

PlannerFactory (org.apache.flink.table.delegation.PlannerFactory)1 Context (org.apache.flink.table.delegation.PlannerFactory.Context)1 DefaultPlannerContext (org.apache.flink.table.delegation.PlannerFactory.DefaultPlannerContext)1