Package org.apache.calcite.rex
Interface RexExecutor
- All Known Subinterfaces:
RelOptPlanner.Executor
- All Known Implementing Classes:
RexExecutorImpl
public interface RexExecutor
Can reduce expressions, writing a literal for each into a list.
-
Method Summary
-
Method Details
-
reduce
Reduces expressions, and writes their results intoreducedValues
.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.- Parameters:
rexBuilder
- Rex builderconstExps
- Expressions to be reducedreducedValues
- List to which reduced expressions are appended
-