private class ReduceDecimalsRule.FloorExpander extends ReduceDecimalsRule.RexExpander
if (value < 0) (value - 0.99...) / (10^scale) else value / (10 ^ scale)
builder, int8, real8
Modifier | Constructor and Description |
---|---|
private |
FloorExpander(RexBuilder rexBuilder) |
Modifier and Type | Method and Description |
---|---|
RexNode |
expand(RexCall call)
Rewrites an expression containing decimals.
|
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
private FloorExpander(RexBuilder rexBuilder)
public RexNode expand(RexCall call)
ReduceDecimalsRule.RexExpander
expand
in class ReduceDecimalsRule.RexExpander
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.