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, scaleUpprivate FloorExpander(RexBuilder rexBuilder)
public RexNode expand(RexCall call)
ReduceDecimalsRule.RexExpanderexpand in class ReduceDecimalsRule.RexExpanderCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.