use of org.apache.flink.table.delegation.PlannerFactory.DefaultPlannerContext 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);
}
Aggregations