@Internal public class DefaultCalciteContext extends Object implements CalciteContext
Constructor and Description |
---|
DefaultCalciteContext(CatalogManager catalogManager,
PlannerContext plannerContext) |
Modifier and Type | Method and Description |
---|---|
org.apache.calcite.prepare.CalciteCatalogReader |
createCatalogReader(boolean lenientCaseSensitivity)
Create an instance of
CalciteCatalogReader provided by Flink's table planner. |
org.apache.calcite.tools.FrameworkConfig |
createFrameworkConfig()
Create an instance of
FrameworkConfig 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 of
RelOptTable.ToRelContext provided by Flink's table planner. |
CatalogManager |
getCatalogManager() |
CatalogRegistry |
getCatalogRegistry() |
ClassLoader |
getClassLoader()
Return the
ClassLoader defined in TableEnvironment . |
org.apache.calcite.plan.RelOptCluster |
getCluster()
Return the
RelOptCluster provided by Flink's table planner. |
FunctionCatalog |
getFunctionCatalog()
Return the
FunctionCatalog defined in TableEnvironment . |
PlannerContext |
getPlannerContext() |
TableConfig |
getTableConfig()
Return the
TableConfig defined in TableEnvironment . |
org.apache.calcite.rel.type.RelDataTypeFactory |
getTypeFactory()
Return the
RelDataTypeFactory provided by Flink's table planner. |
public DefaultCalciteContext(CatalogManager catalogManager, PlannerContext plannerContext)
public PlannerContext getPlannerContext()
public CatalogManager getCatalogManager()
public CatalogRegistry getCatalogRegistry()
getCatalogRegistry
in interface ParserFactory.Context
public org.apache.calcite.prepare.CalciteCatalogReader createCatalogReader(boolean lenientCaseSensitivity)
CalciteContext
CalciteCatalogReader
provided by Flink's table planner.createCatalogReader
in interface CalciteContext
public org.apache.calcite.plan.RelOptCluster getCluster()
CalciteContext
RelOptCluster
provided by Flink's table planner.getCluster
in interface CalciteContext
public org.apache.calcite.tools.FrameworkConfig createFrameworkConfig()
CalciteContext
FrameworkConfig
provided by Flink's table planner.createFrameworkConfig
in interface CalciteContext
public org.apache.calcite.rel.type.RelDataTypeFactory getTypeFactory()
CalciteContext
RelDataTypeFactory
provided by Flink's table planner.getTypeFactory
in interface CalciteContext
public RelBuilder createRelBuilder()
CalciteContext
createRelBuilder
in interface CalciteContext
public TableConfig getTableConfig()
CalciteContext
TableConfig
defined in TableEnvironment
.getTableConfig
in interface CalciteContext
public ClassLoader getClassLoader()
CalciteContext
ClassLoader
defined in TableEnvironment
.getClassLoader
in interface CalciteContext
public FunctionCatalog getFunctionCatalog()
CalciteContext
FunctionCatalog
defined in TableEnvironment
.getFunctionCatalog
in interface CalciteContext
public org.apache.calcite.plan.RelOptTable.ToRelContext createToRelContext()
CalciteContext
RelOptTable.ToRelContext
provided by Flink's table planner.
The RelOptTable.ToRelContext
is used to convert a table into a relational expression.createToRelContext
in interface CalciteContext
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.