Package org.apache.calcite.rex
Class RexExecutorImpl
java.lang.Object
org.apache.calcite.rex.RexExecutorImpl
- All Implemented Interfaces:
- RexExecutor
Evaluates a 
RexNode expression.
 For this impl, all the public methods should be
 static except that it inherits from RexExecutor.
 This pretends that other code in the project assumes
 the executor instance is RexExecutorImpl.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic RexExecutablegetExecutable(RexBuilder rexBuilder, List<RexNode> exps, RelDataType rowType) Creates anRexExecutablethat allows to apply the generated code during query processing (filter, projection).voidDo constant reduction using generated code.
- 
Constructor Details- 
RexExecutorImpl
 
- 
- 
Method Details- 
getExecutablepublic static RexExecutable getExecutable(RexBuilder rexBuilder, List<RexNode> exps, RelDataType rowType) Creates anRexExecutablethat allows to apply the generated code during query processing (filter, projection).- Parameters:
- rexBuilder- Rex builder
- exps- Expressions
- rowType- describes the structure of the input row.
 
- 
reduceDo constant reduction using generated code.- Specified by:
- reducein interface- RexExecutor
- Parameters:
- rexBuilder- Builder used to construct expressions
- constExps- A list of constant expressions
- reducedValues- An empty list. The function will return for each expression on constExps one equivalent reduced expression in this list, in the same order.
 
 
-