Class DefaultCalciteContext
- java.lang.Object
-
- org.apache.flink.table.planner.delegation.DefaultCalciteContext
-
- All Implemented Interfaces:
CalciteContext
,ParserFactory.Context
@Internal public class DefaultCalciteContext extends Object implements CalciteContext
A context for default dialect with calcite related interfaces.
-
-
Constructor Summary
Constructors Constructor Description DefaultCalciteContext(CatalogManager catalogManager, PlannerContext plannerContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.prepare.CalciteCatalogReader
createCatalogReader(boolean lenientCaseSensitivity)
Create an instance ofCalciteCatalogReader
provided by Flink's table planner.org.apache.calcite.tools.FrameworkConfig
createFrameworkConfig()
Create an instance ofFrameworkConfig
provided by Flink's table planner.RelBuilder
createRelBuilder()
Create a builder for relational expressions provided by Flink's table planner.org.apache.calcite.plan.RelOptTable.ToRelContext
createToRelContext()
Create a new instance ofRelOptTable.ToRelContext
provided by Flink's table planner.CatalogManager
getCatalogManager()
CatalogRegistry
getCatalogRegistry()
ClassLoader
getClassLoader()
Return theClassLoader
defined inTableEnvironment
.org.apache.calcite.plan.RelOptCluster
getCluster()
Return theRelOptCluster
provided by Flink's table planner.FunctionCatalog
getFunctionCatalog()
Return theFunctionCatalog
defined inTableEnvironment
.PlannerContext
getPlannerContext()
TableConfig
getTableConfig()
Return theTableConfig
defined inTableEnvironment
.org.apache.calcite.rel.type.RelDataTypeFactory
getTypeFactory()
Return theRelDataTypeFactory
provided by Flink's table planner.
-
-
-
Constructor Detail
-
DefaultCalciteContext
public DefaultCalciteContext(CatalogManager catalogManager, PlannerContext plannerContext)
-
-
Method Detail
-
getPlannerContext
public PlannerContext getPlannerContext()
-
getCatalogManager
public CatalogManager getCatalogManager()
-
getCatalogRegistry
public CatalogRegistry getCatalogRegistry()
- Specified by:
getCatalogRegistry
in interfaceParserFactory.Context
-
createCatalogReader
public org.apache.calcite.prepare.CalciteCatalogReader createCatalogReader(boolean lenientCaseSensitivity)
Description copied from interface:CalciteContext
Create an instance ofCalciteCatalogReader
provided by Flink's table planner.- Specified by:
createCatalogReader
in interfaceCalciteContext
-
getCluster
public org.apache.calcite.plan.RelOptCluster getCluster()
Description copied from interface:CalciteContext
Return theRelOptCluster
provided by Flink's table planner.- Specified by:
getCluster
in interfaceCalciteContext
-
createFrameworkConfig
public org.apache.calcite.tools.FrameworkConfig createFrameworkConfig()
Description copied from interface:CalciteContext
Create an instance ofFrameworkConfig
provided by Flink's table planner.- Specified by:
createFrameworkConfig
in interfaceCalciteContext
-
getTypeFactory
public org.apache.calcite.rel.type.RelDataTypeFactory getTypeFactory()
Description copied from interface:CalciteContext
Return theRelDataTypeFactory
provided by Flink's table planner.- Specified by:
getTypeFactory
in interfaceCalciteContext
-
createRelBuilder
public RelBuilder createRelBuilder()
Description copied from interface:CalciteContext
Create a builder for relational expressions provided by Flink's table planner.- Specified by:
createRelBuilder
in interfaceCalciteContext
-
getTableConfig
public TableConfig getTableConfig()
Description copied from interface:CalciteContext
Return theTableConfig
defined inTableEnvironment
.- Specified by:
getTableConfig
in interfaceCalciteContext
-
getClassLoader
public ClassLoader getClassLoader()
Description copied from interface:CalciteContext
Return theClassLoader
defined inTableEnvironment
.- Specified by:
getClassLoader
in interfaceCalciteContext
-
getFunctionCatalog
public FunctionCatalog getFunctionCatalog()
Description copied from interface:CalciteContext
Return theFunctionCatalog
defined inTableEnvironment
.- Specified by:
getFunctionCatalog
in interfaceCalciteContext
-
createToRelContext
public org.apache.calcite.plan.RelOptTable.ToRelContext createToRelContext()
Description copied from interface:CalciteContext
Create a new instance ofRelOptTable.ToRelContext
provided by Flink's table planner. TheRelOptTable.ToRelContext
is used to convert a table into a relational expression.- Specified by:
createToRelContext
in interfaceCalciteContext
-
-