Package org.apache.calcite.rel.rules
Class ReduceDecimalsRule.DecimalShuttle
java.lang.Object
org.apache.calcite.rex.RexShuttle
org.apache.calcite.rel.rules.ReduceDecimalsRule.DecimalShuttle
- All Implemented Interfaces:
RexVisitor<RexNode>
- Enclosing class:
ReduceDecimalsRule
A shuttle which converts decimal expressions to expressions based on
longs.
-
Method Summary
Methods inherited from class org.apache.calcite.rex.RexShuttle
apply, apply, mutate, visitArray, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitFieldCollations, visitInputRef, visitLambda, visitLambdaRef, visitList, visitLiteral, visitLocalRef, visitOver, visitOverAggFunction, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef, visitWindow
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.rex.RexVisitor
visitEach, visitList, visitList
-
Method Details
-
visitCall
Rewrites a call in place, from bottom up. Algorithm is as follows:- visit operands
- visit call node
- rewrite call
- visit the rewritten call
- Specified by:
visitCall
in interfaceRexVisitor<RexNode>
- Overrides:
visitCall
in classRexShuttle
-