Package org.apache.calcite.rel.rules
Class ReduceDecimalsRule.CastArgAsTypeExpander
- java.lang.Object
-
- org.apache.calcite.rel.rules.ReduceDecimalsRule.RexExpander
-
- org.apache.calcite.rel.rules.ReduceDecimalsRule.CastArgAsTypeExpander
-
- Direct Known Subclasses:
ReduceDecimalsRule.CastArgAsDoubleExpander
- 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.apache.calcite.rel.rules.ReduceDecimalsRule.RexExpander
builder, int8, real8
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CastArgAsTypeExpander(RexBuilder builder)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description RexNode
expand(RexCall call)
Rewrites an expression containing decimals.abstract RelDataType
getArgType(RexCall call, int ordinal)
-
Methods inherited from class org.apache.calcite.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, powerOfTen, scaleDown, scaleDownDouble, scaleUp
-
-
-
-
Constructor Detail
-
CastArgAsTypeExpander
private 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 classReduceDecimalsRule.RexExpander
-
-