private class ReduceDecimalsRule.BinaryArithmeticExpander extends ReduceDecimalsRule.RexExpander
Modifier and Type | Field and Description |
---|---|
(package private) int |
scaleA |
(package private) int |
scaleB |
(package private) RelDataType |
typeA |
(package private) RelDataType |
typeB |
builder, int8, real8
Modifier | Constructor and Description |
---|---|
private |
BinaryArithmeticExpander(RexBuilder builder) |
Modifier and Type | Method and Description |
---|---|
private void |
analyzeOperands(java.util.List<RexNode> operands)
Convenience method for reading characteristics of operands (such as
scale, precision, whole digits) into an ArithmeticExpander.
|
RexNode |
expand(RexCall call)
Rewrites an expression containing decimals.
|
private RexNode |
expandComparison(RexCall call,
java.util.List<RexNode> operands) |
private RexNode |
expandDivide(RexCall call,
java.util.List<RexNode> operands) |
private RexNode |
expandMod(RexCall call,
java.util.List<RexNode> operands) |
private RexNode |
expandPlusMinus(RexCall call,
java.util.List<RexNode> operands) |
private RexNode |
expandTimes(RexCall call,
java.util.List<RexNode> operands) |
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
RelDataType typeA
RelDataType typeB
int scaleA
int scaleB
private BinaryArithmeticExpander(RexBuilder builder)
public RexNode expand(RexCall call)
ReduceDecimalsRule.RexExpander
expand
in class ReduceDecimalsRule.RexExpander
private void analyzeOperands(java.util.List<RexNode> operands)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.