@Internal public class PlannerContext extends Object
RelBuilder
or FrameworkConfig
used to create a corresponding Planner
. It tries to separate
static elements in a TableEnvironment
like: root schema, cost
factory, type system etc. from a dynamic properties like e.g. default path to look for objects in
the schema.Constructor and Description |
---|
PlannerContext(boolean isBatchMode,
TableConfig tableConfig,
ModuleManager moduleManager,
FunctionCatalog functionCatalog,
CatalogManager catalogManager,
org.apache.calcite.jdbc.CalciteSchema rootSchema,
List<org.apache.calcite.plan.RelTraitDef> traitDefs,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
CalciteParser |
createCalciteParser() |
FlinkCalciteCatalogReader |
createCatalogReader(boolean lenientCaseSensitivity) |
org.apache.flink.table.planner.calcite.FlinkPlannerImpl |
createFlinkPlanner() |
org.apache.calcite.tools.FrameworkConfig |
createFrameworkConfig() |
FlinkRelBuilder |
createRelBuilder() |
org.apache.calcite.plan.RelOptCluster |
getCluster() |
org.apache.flink.table.planner.calcite.FlinkContext |
getFlinkContext() |
RexFactory |
getRexFactory() |
org.apache.flink.table.planner.calcite.FlinkTypeFactory |
getTypeFactory() |
public PlannerContext(boolean isBatchMode, TableConfig tableConfig, ModuleManager moduleManager, FunctionCatalog functionCatalog, CatalogManager catalogManager, org.apache.calcite.jdbc.CalciteSchema rootSchema, List<org.apache.calcite.plan.RelTraitDef> traitDefs, ClassLoader classLoader)
public RexFactory getRexFactory()
public org.apache.calcite.tools.FrameworkConfig createFrameworkConfig()
public org.apache.flink.table.planner.calcite.FlinkTypeFactory getTypeFactory()
public org.apache.flink.table.planner.calcite.FlinkContext getFlinkContext()
public FlinkRelBuilder createRelBuilder()
public org.apache.flink.table.planner.calcite.FlinkPlannerImpl createFlinkPlanner()
public CalciteParser createCalciteParser()
public FlinkCalciteCatalogReader createCatalogReader(boolean lenientCaseSensitivity)
public org.apache.calcite.plan.RelOptCluster getCluster()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.