Interface RexExecutor

  • All Known Subinterfaces:
    All Known Implementing Classes:

    public interface RexExecutor
    Can reduce expressions, writing a literal for each into a list.
    • Method Detail

      • reduce

        void reduce​(RexBuilder rexBuilder,
                    java.util.List<RexNode> constExps,
                    java.util.List<RexNode> reducedValues)
        Reduces expressions, and writes their results into reducedValues.

        If an expression cannot be reduced, writes the original expression. For example, CAST('abc' AS INTEGER) gives an error when executed, so the executor ignores the error and writes the original expression.

        rexBuilder - Rex builder
        constExps - Expressions to be reduced
        reducedValues - List to which reduced expressions are appended