Interface CalciteContext
- All Superinterfaces:
org.apache.flink.table.delegation.ParserFactory.Context
@Internal
public interface CalciteContext
extends org.apache.flink.table.delegation.ParserFactory.Context
To provide calcite context which is mainly used to create Calcite's RelNode. The context is
provided by Flink's table planner.
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.prepare.CalciteCatalogReadercreateCatalogReader(boolean lenientCaseSensitivity) Create an instance ofCalciteCatalogReaderprovided by Flink's table planner.org.apache.calcite.tools.FrameworkConfigCreate an instance ofFrameworkConfigprovided by Flink's table planner.org.apache.calcite.tools.RelBuilderCreate a builder for relational expressions provided by Flink's table planner.org.apache.calcite.plan.RelOptTable.ToRelContextCreate a new instance ofRelOptTable.ToRelContextprovided by Flink's table planner.Return theClassLoaderdefined inTableEnvironment.org.apache.calcite.plan.RelOptClusterReturn theRelOptClusterprovided by Flink's table planner.org.apache.flink.table.catalog.FunctionCatalogReturn theFunctionCatalogdefined inTableEnvironment.org.apache.flink.table.api.TableConfigReturn theTableConfigdefined inTableEnvironment.org.apache.calcite.rel.type.RelDataTypeFactoryReturn theRelDataTypeFactoryprovided by Flink's table planner.Methods inherited from interface org.apache.flink.table.delegation.ParserFactory.Context
getCatalogRegistry
-
Method Details
-
createCatalogReader
org.apache.calcite.prepare.CalciteCatalogReader createCatalogReader(boolean lenientCaseSensitivity) Create an instance ofCalciteCatalogReaderprovided by Flink's table planner. -
getCluster
org.apache.calcite.plan.RelOptCluster getCluster()Return theRelOptClusterprovided by Flink's table planner. -
createFrameworkConfig
org.apache.calcite.tools.FrameworkConfig createFrameworkConfig()Create an instance ofFrameworkConfigprovided by Flink's table planner. -
getTypeFactory
org.apache.calcite.rel.type.RelDataTypeFactory getTypeFactory()Return theRelDataTypeFactoryprovided by Flink's table planner. -
createRelBuilder
org.apache.calcite.tools.RelBuilder createRelBuilder()Create a builder for relational expressions provided by Flink's table planner. -
getTableConfig
org.apache.flink.table.api.TableConfig getTableConfig()Return theTableConfigdefined inTableEnvironment. -
getClassLoader
ClassLoader getClassLoader()Return theClassLoaderdefined inTableEnvironment. -
getFunctionCatalog
org.apache.flink.table.catalog.FunctionCatalog getFunctionCatalog()Return theFunctionCatalogdefined inTableEnvironment. -
createToRelContext
org.apache.calcite.plan.RelOptTable.ToRelContext createToRelContext()Create a new instance ofRelOptTable.ToRelContextprovided by Flink's table planner. TheRelOptTable.ToRelContextis used to convert a table into a relational expression.
-