public class SqlNodeConvertContext extends Object implements SqlNodeConverter.ConvertContext
SqlNodeConverter.ConvertContext.| Constructor and Description |
|---|
SqlNodeConvertContext(org.apache.flink.table.planner.calcite.FlinkPlannerImpl flinkPlanner,
org.apache.flink.table.catalog.CatalogManager catalogManager) |
| Modifier and Type | Method and Description |
|---|---|
String |
expandSqlIdentifiers(String originalSql)
Expands identifiers in a given SQL string.
|
org.apache.flink.table.catalog.CatalogManager |
getCatalogManager()
Returns the
CatalogManager in the convert context. |
org.apache.calcite.sql.validate.SqlValidator |
getSqlValidator()
Returns the
SqlValidator in the convert context. |
List<org.apache.calcite.rex.RexNode> |
reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes)
Reduce the given
RexNodes. |
String |
toQuotedSqlString(org.apache.calcite.sql.SqlNode sqlNode)
Convert the given into a quoted SQL string.
|
org.apache.calcite.rel.RelRoot |
toRelRoot(org.apache.calcite.sql.SqlNode sqlNode)
Converts the given validated
SqlNode into a RelRoot. |
org.apache.calcite.rex.RexNode |
toRexNode(org.apache.calcite.sql.SqlNode sqlNode,
org.apache.calcite.rel.type.RelDataType inputRowType,
org.apache.flink.table.types.DataType outputType)
Converts the given validated
SqlNode into a RexNode. |
public SqlNodeConvertContext(org.apache.flink.table.planner.calcite.FlinkPlannerImpl flinkPlanner,
org.apache.flink.table.catalog.CatalogManager catalogManager)
public org.apache.calcite.sql.validate.SqlValidator getSqlValidator()
SqlNodeConverter.ConvertContextSqlValidator in the convert context.getSqlValidator in interface SqlNodeConverter.ConvertContextpublic org.apache.flink.table.catalog.CatalogManager getCatalogManager()
SqlNodeConverter.ConvertContextCatalogManager in the convert context.getCatalogManager in interface SqlNodeConverter.ConvertContextpublic org.apache.calcite.rel.RelRoot toRelRoot(org.apache.calcite.sql.SqlNode sqlNode)
SqlNodeConverter.ConvertContextSqlNode into a RelRoot.toRelRoot in interface SqlNodeConverter.ConvertContextpublic 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)
SqlNodeConverter.ConvertContextSqlNode into a RexNode.toRexNode in interface SqlNodeConverter.ConvertContextpublic List<org.apache.calcite.rex.RexNode> reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes)
SqlNodeConverter.ConvertContextRexNodes.reduceRexNodes in interface SqlNodeConverter.ConvertContextpublic String toQuotedSqlString(org.apache.calcite.sql.SqlNode sqlNode)
SqlNodeConverter.ConvertContexttoQuotedSqlString in interface SqlNodeConverter.ConvertContextpublic String expandSqlIdentifiers(String originalSql)
SqlNodeConverter.ConvertContextexpandSqlIdentifiers in interface SqlNodeConverter.ConvertContextExpanderCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.