org.eigenbase.rel.rules
Class ReduceDecimalsRule.CastArgAsTypeExpander

java.lang.Object
  extended by org.eigenbase.rel.rules.ReduceDecimalsRule.RexExpander
      extended by org.eigenbase.rel.rules.ReduceDecimalsRule.CastArgAsTypeExpander
Direct Known Subclasses:
ReduceDecimalsRule.CastArgAsDoubleExpander, ReduceDecimalsRule.CastArgAsReturnExpander
Enclosing class:
ReduceDecimalsRule

private abstract class ReduceDecimalsRule.CastArgAsTypeExpander
extends ReduceDecimalsRule.RexExpander

An expander which casts decimal arguments as another type


Field Summary
 
Fields inherited from class org.eigenbase.rel.rules.ReduceDecimalsRule.RexExpander
builder, int8, real8
 
Constructor Summary
private ReduceDecimalsRule.CastArgAsTypeExpander(RexBuilder builder)
           
 
Method Summary
 RexNode expand(RexCall call)
          Rewrites an expression containing decimals.
abstract  RelDataType getArgType(RexCall call, int ordinal)
           
 
Methods inherited from class org.eigenbase.rel.rules.ReduceDecimalsRule.RexExpander
accessValue, canExpand, decodeValue, encodeValue, encodeValue, ensureScale, ensureType, ensureType, makeApproxLiteral, makeApproxScaleFactor, makeCase, makeCase, makeDivide, makeExactLiteral, makeIsNegative, makeIsPositive, makeMinus, makeMultiply, makePlus, makeRoundFactor, makeScaleFactor, matchNullability, powerOfTen, scaleDown, scaleDownDouble, scaleUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReduceDecimalsRule.CastArgAsTypeExpander

private ReduceDecimalsRule.CastArgAsTypeExpander(RexBuilder builder)
Method Detail

getArgType

public abstract RelDataType getArgType(RexCall call,
                                       int ordinal)

expand

public RexNode expand(RexCall call)
Description copied from class: ReduceDecimalsRule.RexExpander
Rewrites an expression containing decimals. Normally, this method always performs a rewrite, but implementations may choose to return the original expression if no change was required.

Specified by:
expand in class ReduceDecimalsRule.RexExpander