|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.rex.RexShuttle org.eigenbase.rel.rules.ReduceDecimalsRule.DecimalShuttle
public class ReduceDecimalsRule.DecimalShuttle
A shuttle which converts decimal expressions to expressions based on longs.
Field Summary | |
---|---|
private ReduceDecimalsRule.ExpanderMap |
expanderMap
|
private Map<String,RexNode> |
irreducible
|
private Map<String,RexNode> |
results
|
Constructor Summary | |
---|---|
ReduceDecimalsRule.DecimalShuttle(RexBuilder rexBuilder)
|
Method Summary | |
---|---|
private ReduceDecimalsRule.RexExpander |
getExpander(RexCall call)
Returns a ReduceDecimalsRule.RexExpander for a call |
private RexNode |
lookup(RexNode node)
Lookup registered node |
private void |
register(RexNode node,
RexNode reducedNode)
Registers node so it will not be computed again |
private RexNode |
rewriteCall(RexCall call)
Rewrites a call, if required, or returns the original call |
RexNode |
visitCall(RexCall call)
Rewrites a call in place, from bottom up, as follows: visit operands visit call node rewrite call visit the rewritten call |
Methods inherited from class org.eigenbase.rex.RexShuttle |
---|
apply, apply, visitArray, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitInputRef, visitLiteral, visitLocalRef, visitOver, visitRangeRef, visitWindow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Map<String,RexNode> irreducible
private final Map<String,RexNode> results
private final ReduceDecimalsRule.ExpanderMap expanderMap
Constructor Detail |
---|
public ReduceDecimalsRule.DecimalShuttle(RexBuilder rexBuilder)
Method Detail |
---|
public RexNode visitCall(RexCall call)
visitCall
in interface RexVisitor<RexNode>
visitCall
in class RexShuttle
private void register(RexNode node, RexNode reducedNode)
private RexNode lookup(RexNode node)
private RexNode rewriteCall(RexCall call)
private ReduceDecimalsRule.RexExpander getExpander(RexCall call)
ReduceDecimalsRule.RexExpander
for a call
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |