Interface SqlNodeConverter<S extends org.apache.calcite.sql.SqlNode>

    • Method Detail

      • convertSqlNode

        Operation convertSqlNode​(S node,
                                 SqlNodeConverter.ConvertContext context)
        Convert the given validated SqlNode into an Operation.
        Parameters:
        node - a validated SqlNode.
        context - the utilities and context information to convert
      • supportedSqlKinds

        default Optional<EnumSet<org.apache.calcite.sql.SqlKind>> supportedSqlKinds()
        Returns the SqlKinds of SqlNodes that the SqlNodeConverter supports to convert.

        If a SqlNodeConverter returns a non-empty SqlKinds, The conversion framework will find the corresponding converter by matching the SqlKind of SqlNode instead of the class of SqlNode

        See Also:
        SqlQueryConverter