Interface CalciteContext
-
- All Superinterfaces:
org.apache.flink.table.delegation.ParserFactory.Context
@Internal public interface CalciteContext extends org.apache.flink.table.delegation.ParserFactory.ContextTo provide calcite context which is mainly used to create Calcite's RelNode. The context is provided by Flink's table planner.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.calcite.prepare.CalciteCatalogReadercreateCatalogReader(boolean lenientCaseSensitivity)Create an instance ofCalciteCatalogReaderprovided by Flink's table planner.org.apache.calcite.tools.FrameworkConfigcreateFrameworkConfig()Create an instance ofFrameworkConfigprovided by Flink's table planner.org.apache.calcite.tools.RelBuildercreateRelBuilder()Create a builder for relational expressions provided by Flink's table planner.org.apache.calcite.plan.RelOptTable.ToRelContextcreateToRelContext()Create a new instance ofRelOptTable.ToRelContextprovided by Flink's table planner.ClassLoadergetClassLoader()Return theClassLoaderdefined inTableEnvironment.org.apache.calcite.plan.RelOptClustergetCluster()Return theRelOptClusterprovided by Flink's table planner.org.apache.flink.table.catalog.FunctionCataloggetFunctionCatalog()Return theFunctionCatalogdefined inTableEnvironment.org.apache.flink.table.api.TableConfiggetTableConfig()Return theTableConfigdefined inTableEnvironment.org.apache.calcite.rel.type.RelDataTypeFactorygetTypeFactory()Return theRelDataTypeFactoryprovided by Flink's table planner.
-
-
-
Method Detail
-
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.
-
-