Interface RexToSqlNodeConverter

All Known Implementing Classes:
RexToSqlNodeConverterImpl

public interface RexToSqlNodeConverter
Converts expressions from RexNode to SqlNode.

For most purposes, SqlImplementor is superior. See in particular SqlImplementor.Context.toSql(RexProgram, RexNode).

  • Method Details

    • convertNode

      @Nullable SqlNode convertNode(RexNode node)
      Converts a RexNode to a SqlNode expression, typically by dispatching to one of the other interface methods.
      Parameters:
      node - RexNode to translate
      Returns:
      SqlNode, or null if no translation was available
    • convertCall

      @Nullable SqlNode convertCall(RexCall call)
      Converts a RexCall to a SqlNode expression.
      Parameters:
      call - RexCall to translate
      Returns:
      SqlNode, or null if no translation was available
    • convertLiteral

      @Nullable SqlNode convertLiteral(RexLiteral literal)
      Converts a RexLiteral to a SqlLiteral.
      Parameters:
      literal - RexLiteral to translate
      Returns:
      SqlNode, or null if no translation was available
    • convertInputRef

      @Nullable SqlNode convertInputRef(RexInputRef ref)
      Converts a RexInputRef to a SqlIdentifier.
      Parameters:
      ref - RexInputRef to translate
      Returns:
      SqlNode, or null if no translation was available