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 Type
    Method
    Description
    Expands identifiers in a given SQL string.
    org.apache.flink.table.catalog.CatalogManager
    Returns the CatalogManager in the convert context.
    FlinkPlannerImpl
    Returns the FlinkPlannerImpl in the convert context.
    org.apache.calcite.sql.validate.SqlValidator
    Returns the SqlValidator in the convert context.
    org.apache.flink.table.api.TableConfig
    Returns the TableConfig defined in TableEnvironment.
    List<org.apache.calcite.rex.RexNode>
    reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes)
    Reduce the given RexNodes.
    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.
  • Method Details

    • getTableConfig

      org.apache.flink.table.api.TableConfig getTableConfig()
      Returns the TableConfig defined in TableEnvironment.
    • getSqlValidator

      org.apache.calcite.sql.validate.SqlValidator getSqlValidator()
      Returns the SqlValidator in the convert context.
    • getCatalogManager

      org.apache.flink.table.catalog.CatalogManager getCatalogManager()
      Returns the CatalogManager in the convert context.
    • getFlinkPlanner

      FlinkPlannerImpl getFlinkPlanner()
      Returns the FlinkPlannerImpl in the convert context.
    • toRelRoot

      org.apache.calcite.rel.RelRoot toRelRoot(org.apache.calcite.sql.SqlNode sqlNode)
      Converts the given validated SqlNode into a RelRoot.
    • 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 validated SqlNode into a RexNode.
    • reduceRexNodes

      List<org.apache.calcite.rex.RexNode> reduceRexNodes(List<org.apache.calcite.rex.RexNode> rexNodes)
      Reduce the given RexNodes.
    • toQuotedSqlString

      String toQuotedSqlString(org.apache.calcite.sql.SqlNode sqlNode)
      Convert the given into a quoted SQL string.
    • expandSqlIdentifiers

      String expandSqlIdentifiers(String sql)
      Expands identifiers in a given SQL string.
      See Also: