Interface SqlNodeConverter.ConvertContext
- All Known Implementing Classes:
SqlNodeConvertContext
- Enclosing interface:
- SqlNodeConverter<S extends org.apache.calcite.sql.SqlNode>
public static interface SqlNodeConverter.ConvertContext
Context of
SqlNodeConverter.-
Method Summary
Modifier and TypeMethodDescriptionExpands identifiers in a given SQL string.org.apache.flink.table.catalog.CatalogManagerReturns theCatalogManagerin the convert context.FlinkPlannerImplReturns theFlinkPlannerImplin the convert context.org.apache.calcite.sql.validate.SqlValidatorReturns theSqlValidatorin the convert context.org.apache.flink.table.api.TableConfigReturns theTableConfigdefined inTableEnvironment.List<org.apache.calcite.rex.RexNode>reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes) Reduce the givenRexNodes.toQuotedSqlString(org.apache.calcite.sql.SqlNode sqlNode) Convert the given into a quoted SQL string.org.apache.calcite.rel.RelRoottoRelRoot(org.apache.calcite.sql.SqlNode sqlNode) Converts the given validatedSqlNodeinto aRelRoot.org.apache.calcite.rex.RexNodetoRexNode(org.apache.calcite.sql.SqlNode sqlNode, org.apache.calcite.rel.type.RelDataType inputRowType, org.apache.flink.table.types.DataType outputType) Converts the given validatedSqlNodeinto aRexNode.
-
Method Details
-
getTableConfig
org.apache.flink.table.api.TableConfig getTableConfig()Returns theTableConfigdefined inTableEnvironment. -
getSqlValidator
org.apache.calcite.sql.validate.SqlValidator getSqlValidator()Returns theSqlValidatorin the convert context. -
getCatalogManager
org.apache.flink.table.catalog.CatalogManager getCatalogManager()Returns theCatalogManagerin the convert context. -
getFlinkPlanner
FlinkPlannerImpl getFlinkPlanner()Returns theFlinkPlannerImplin the convert context. -
toRelRoot
org.apache.calcite.rel.RelRoot toRelRoot(org.apache.calcite.sql.SqlNode sqlNode) Converts the given validatedSqlNodeinto aRelRoot. -
toRexNode
org.apache.calcite.rex.RexNode toRexNode(org.apache.calcite.sql.SqlNode sqlNode, org.apache.calcite.rel.type.RelDataType inputRowType, @Nullable org.apache.flink.table.types.DataType outputType) Converts the given validatedSqlNodeinto aRexNode. -
reduceRexNodes
Reduce the givenRexNodes. -
toQuotedSqlString
Convert the given into a quoted SQL string. -
expandSqlIdentifiers
Expands identifiers in a given SQL string.- See Also:
-