| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>ReduceDecimalsRule.RexExpander (Apache Calcite API)</title> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script> |
| <!--[if IE]> |
| <script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script> |
| <![endif]--> |
| <script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script> |
| <script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="ReduceDecimalsRule.RexExpander (Apache Calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":6,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| var pathtoroot = "../../../../../"; |
| var useModuleDirectories = true; |
| loadScripts(document, 'script');</script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <header role="banner"> |
| <nav role="navigation"> |
| <div class="fixedNav"> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a id="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ReduceDecimalsRule.RexExpander.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <ul class="navListSearch"> |
| <li><label for="search">SEARCH:</label> |
| <input type="text" id="search" value="search" disabled="disabled"> |
| <input type="reset" id="reset" value="reset" disabled="disabled"> |
| </li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| </div> |
| <div class="navPadding"> </div> |
| <script type="text/javascript"><!-- |
| $('.navPadding').css('padding-top', $('.fixedNav').css("height")); |
| //--> |
| </script> |
| </nav> |
| </header> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <main role="main"> |
| <div class="header"> |
| <div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.apache.calcite.rel.rules</a></div> |
| <h2 title="Class ReduceDecimalsRule.RexExpander" class="title">Class ReduceDecimalsRule.RexExpander</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.calcite.rel.rules.ReduceDecimalsRule.RexExpander</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>Direct Known Subclasses:</dt> |
| <dd><code><a href="ReduceDecimalsRule.BinaryArithmeticExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.BinaryArithmeticExpander</a></code>, <code><a href="ReduceDecimalsRule.CaseExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.CaseExpander</a></code>, <code><a href="ReduceDecimalsRule.CastArgAsTypeExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.CastArgAsTypeExpander</a></code>, <code><a href="ReduceDecimalsRule.CastExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.CastExpander</a></code>, <code><a href="ReduceDecimalsRule.CeilExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.CeilExpander</a></code>, <code><a href="ReduceDecimalsRule.FloorExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.FloorExpander</a></code>, <code><a href="ReduceDecimalsRule.PassThroughExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.PassThroughExpander</a></code>, <code><a href="ReduceDecimalsRule.ReinterpretExpander.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule.ReinterpretExpander</a></code></dd> |
| </dl> |
| <dl> |
| <dt>Enclosing class:</dt> |
| <dd><a href="ReduceDecimalsRule.html" title="class in org.apache.calcite.rel.rules">ReduceDecimalsRule</a></dd> |
| </dl> |
| <hr> |
| <pre>public abstract class <span class="typeNameLabel">ReduceDecimalsRule.RexExpander</span> |
| extends java.lang.Object</pre> |
| <div class="block">Rewrites a decimal expression for a specific set of SqlOperator's. In |
| general, most expressions are rewritten in such a way that SqlOperator's |
| do not have to deal with decimals. Decimals are represented by their |
| unscaled integer representations, similar to |
| <code>BigDecimal.unscaledValue()</code> (i.e. 10^scale). Once decimals are |
| decoded, SqlOperators can then operate on the integer representations. The |
| value can later be recoded as a decimal. |
| |
| <p>For example, suppose one casts 2.0 as a decima(10,4). The value is |
| decoded (20), multiplied by a scale factor (1000), for a result of |
| (20000) which is encoded as a decimal(10,4), in this case 2.0000 |
| |
| <p>To avoid the lengthy coding of RexNode expressions, this base class |
| provides succinct methods for building expressions used in rewrites.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Field</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) <a href="../../rex/RexBuilder.html" title="class in org.apache.calcite.rex">RexBuilder</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#builder">builder</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Factory for constructing new relational expressions</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>(package private) <a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#int8">int8</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Type for the internal representation of decimals.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>(package private) <a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#real8">real8</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">Type for doubles.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Constructor</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.apache.calcite.rex.RexBuilder)">RexExpander</a></span>​(<a href="../../rex/RexBuilder.html" title="class in org.apache.calcite.rex">RexBuilder</a> builder)</code></th> |
| <td class="colLast"> |
| <div class="block">Constructs a RexExpander</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </section> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Method</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#accessValue(org.apache.calcite.rex.RexNode)">accessValue</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> node)</code></th> |
| <td class="colLast"> |
| <div class="block">Retrieves the primitive value of a numeric node.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canExpand(org.apache.calcite.rex.RexCall)">canExpand</a></span>​(<a href="../../rex/RexCall.html" title="class in org.apache.calcite.rex">RexCall</a> call)</code></th> |
| <td class="colLast"> |
| <div class="block">This defaults to the utility method, |
| <a href="../../rex/RexUtil.html#requiresDecimalExpansion(org.apache.calcite.rex.RexNode,boolean)"><code>RexUtil.requiresDecimalExpansion(RexNode, boolean)</code></a> which checks |
| general guidelines on whether a rewrite should be considered at all.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#decodeValue(org.apache.calcite.rex.RexNode)">decodeValue</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> decimalNode)</code></th> |
| <td class="colLast"> |
| <div class="block">Retrieves a decimal node's integer representation</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#encodeValue(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataType)">encodeValue</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| <a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> decimalType)</code></th> |
| <td class="colLast"> |
| <div class="block">Casts a decimal's integer representation to a decimal node.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#encodeValue(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataType,boolean)">encodeValue</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| <a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> decimalType, |
| boolean checkOverflow)</code></th> |
| <td class="colLast"> |
| <div class="block">Casts a decimal's integer representation to a decimal node.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ensureScale(org.apache.calcite.rex.RexNode,int,int)">ensureScale</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale, |
| int required)</code></th> |
| <td class="colLast"> |
| <div class="block">Ensures a value is of a required scale.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ensureType(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">ensureType</a></span>​(<a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> node)</code></th> |
| <td class="colLast"> |
| <div class="block">Ensures expression is interpreted as a specified type.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ensureType(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,boolean)">ensureType</a></span>​(<a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> node, |
| boolean matchNullability)</code></th> |
| <td class="colLast"> |
| <div class="block">Ensures expression is interpreted as a specified type.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>abstract <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#expand(org.apache.calcite.rex.RexCall)">expand</a></span>​(<a href="../../rex/RexCall.html" title="class in org.apache.calcite.rex">RexCall</a> call)</code></th> |
| <td class="colLast"> |
| <div class="block">Rewrites an expression containing decimals.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeApproxLiteral(java.math.BigDecimal)">makeApproxLiteral</a></span>​(java.math.BigDecimal bd)</code></th> |
| <td class="colLast"> |
| <div class="block">Makes an approximate literal of double precision</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeApproxScaleFactor(int)">makeApproxScaleFactor</a></span>​(int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Makes an approximate literal to be used for scaling</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCase(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makeCase</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> condition, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> thenClause, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> elseClause)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCase(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makeCase</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> whenA, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> thenA, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> whenB, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> thenB, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> elseClause)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeDivide(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makeDivide</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeExactLiteral(long)">makeExactLiteral</a></span>​(long l)</code></th> |
| <td class="colLast"> |
| <div class="block">Makes an exact, non-nullable literal of Bigint type</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeIsNegative(org.apache.calcite.rex.RexNode)">makeIsNegative</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeIsPositive(org.apache.calcite.rex.RexNode)">makeIsPositive</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeMinus(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makeMinus</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeMultiply(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makeMultiply</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makePlus(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makePlus</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</code></th> |
| <td class="colLast"> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeRoundFactor(int)">makeRoundFactor</a></span>​(int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Makes an exact numeric value to be used for rounding.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeScaleFactor(int)">makeScaleFactor</a></span>​(int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Makes an exact numeric literal to be used for scaling</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>protected long</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#powerOfTen(int)">powerOfTen</a></span>​(int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Calculates a power of ten, as a long value</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleDown(org.apache.calcite.rex.RexNode,int)">scaleDown</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Scales down a decimal value, and returns the scaled value as an exact |
| numeric.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleDownDouble(org.apache.calcite.rex.RexNode,int)">scaleDownDouble</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Scales down a decimal value and returns the scaled value as a an |
| double precision approximate value.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#scaleUp(org.apache.calcite.rex.RexNode,int)">scaleUp</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale)</code></th> |
| <td class="colLast"> |
| <div class="block">Scales up a decimal value and returns the scaled value as an exact |
| number.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a id="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a id="builder"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>builder</h4> |
| <pre><a href="../../rex/RexBuilder.html" title="class in org.apache.calcite.rex">RexBuilder</a> builder</pre> |
| <div class="block">Factory for constructing new relational expressions</div> |
| </li> |
| </ul> |
| <a id="int8"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>int8</h4> |
| <pre><a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> int8</pre> |
| <div class="block">Type for the internal representation of decimals. This type is a |
| non-nullable type and requires extra work to make it nullable.</div> |
| </li> |
| </ul> |
| <a id="real8"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>real8</h4> |
| <pre><a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> real8</pre> |
| <div class="block">Type for doubles. This type is a non-nullable type and requires extra |
| work to make it nullable.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a id="<init>(org.apache.calcite.rex.RexBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>RexExpander</h4> |
| <pre>public RexExpander​(<a href="../../rex/RexBuilder.html" title="class in org.apache.calcite.rex">RexBuilder</a> builder)</pre> |
| <div class="block">Constructs a RexExpander</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| <!-- ============ METHOD DETAIL ========== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a id="canExpand(org.apache.calcite.rex.RexCall)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>canExpand</h4> |
| <pre class="methodSignature">public boolean canExpand​(<a href="../../rex/RexCall.html" title="class in org.apache.calcite.rex">RexCall</a> call)</pre> |
| <div class="block">This defaults to the utility method, |
| <a href="../../rex/RexUtil.html#requiresDecimalExpansion(org.apache.calcite.rex.RexNode,boolean)"><code>RexUtil.requiresDecimalExpansion(RexNode, boolean)</code></a> which checks |
| general guidelines on whether a rewrite should be considered at all. In |
| general, it is helpful to update the utility method since that method is |
| often used to filter the somewhat expensive rewrite process. |
| |
| <p>However, this method provides another place for implementations of |
| RexExpander to make a more detailed analysis before deciding on |
| whether to perform a rewrite.</div> |
| </li> |
| </ul> |
| <a id="expand(org.apache.calcite.rex.RexCall)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>expand</h4> |
| <pre class="methodSignature">public abstract <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> expand​(<a href="../../rex/RexCall.html" title="class in org.apache.calcite.rex">RexCall</a> call)</pre> |
| <div class="block">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.</div> |
| </li> |
| </ul> |
| <a id="makeScaleFactor(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeScaleFactor</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeScaleFactor​(int scale)</pre> |
| <div class="block">Makes an exact numeric literal to be used for scaling</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>scale</code> - a scale from one to max precision - 1</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>10^scale as an exact numeric value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="makeApproxScaleFactor(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeApproxScaleFactor</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeApproxScaleFactor​(int scale)</pre> |
| <div class="block">Makes an approximate literal to be used for scaling</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>scale</code> - a scale from -99 to 99</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>10^scale as an approximate value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="makeRoundFactor(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeRoundFactor</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeRoundFactor​(int scale)</pre> |
| <div class="block">Makes an exact numeric value to be used for rounding.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>scale</code> - a scale from 1 to max precision - 1</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>10^scale / 2 as an exact numeric value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="powerOfTen(int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>powerOfTen</h4> |
| <pre class="methodSignature">protected long powerOfTen​(int scale)</pre> |
| <div class="block">Calculates a power of ten, as a long value</div> |
| </li> |
| </ul> |
| <a id="makeExactLiteral(long)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeExactLiteral</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeExactLiteral​(long l)</pre> |
| <div class="block">Makes an exact, non-nullable literal of Bigint type</div> |
| </li> |
| </ul> |
| <a id="makeApproxLiteral(java.math.BigDecimal)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeApproxLiteral</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeApproxLiteral​(java.math.BigDecimal bd)</pre> |
| <div class="block">Makes an approximate literal of double precision</div> |
| </li> |
| </ul> |
| <a id="scaleUp(org.apache.calcite.rex.RexNode,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleUp</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> scaleUp​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale)</pre> |
| <div class="block">Scales up a decimal value and returns the scaled value as an exact |
| number.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the integer representation of a decimal</dd> |
| <dd><code>scale</code> - a value from zero to max precision - 1</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>value * 10^scale as an exact numeric value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="scaleDown(org.apache.calcite.rex.RexNode,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleDown</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> scaleDown​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale)</pre> |
| <div class="block">Scales down a decimal value, and returns the scaled value as an exact |
| numeric. with the rounding convention |
| <code>BigDecimal.ROUND_HALF_UP</code>. (Values midway |
| between two points are rounded away from zero.)</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the integer representation of a decimal</dd> |
| <dd><code>scale</code> - a value from zero to max precision</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>value/10^scale, rounded away from zero and returned as an |
| exact numeric value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="scaleDownDouble(org.apache.calcite.rex.RexNode,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>scaleDownDouble</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> scaleDownDouble​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale)</pre> |
| <div class="block">Scales down a decimal value and returns the scaled value as a an |
| double precision approximate value. Scaling is implemented with |
| double precision arithmetic.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - the integer representation of a decimal</dd> |
| <dd><code>scale</code> - a value from zero to max precision</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>value/10^scale as a double precision value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="ensureScale(org.apache.calcite.rex.RexNode,int,int)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureScale</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> ensureScale​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| int scale, |
| int required)</pre> |
| <div class="block">Ensures a value is of a required scale. If it is not, then the value |
| is multiplied by a scale factor. Scaling up an exact value is limited |
| to max precision - 1, because we cannot represent the result of |
| larger scales internally. Scaling up a floating point value is more |
| flexible since the value may be very small despite having a scale of |
| zero and the scaling may still produce a reasonable result</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - integer representation of decimal, or a floating point |
| number</dd> |
| <dd><code>scale</code> - current scale, 0 for floating point numbers</dd> |
| <dd><code>required</code> - required scale, must be at least the current scale; |
| the scale difference may not be greater than max |
| precision - 1 for exact numerics</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>value * 10^scale, returned as an exact or approximate value |
| corresponding to the input value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="decodeValue(org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>decodeValue</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> decodeValue​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> decimalNode)</pre> |
| <div class="block">Retrieves a decimal node's integer representation</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>decimalNode</code> - the decimal value as an opaque type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>an integer representation of the decimal value</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="accessValue(org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>accessValue</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> accessValue​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> node)</pre> |
| <div class="block">Retrieves the primitive value of a numeric node. If the node is a |
| decimal, then it must first be decoded. Otherwise the original node |
| may be returned.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - a numeric node, possibly a decimal</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the primitive value of the numeric node</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="encodeValue(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataType)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>encodeValue</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> encodeValue​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| <a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> decimalType)</pre> |
| <div class="block">Casts a decimal's integer representation to a decimal node. If the |
| expression is not the expected integer type, then it is casted first. |
| |
| <p>This method does not request an overflow check.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - integer representation of decimal</dd> |
| <dd><code>decimalType</code> - type integer will be reinterpreted as</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the integer representation reinterpreted as a decimal type</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="encodeValue(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataType,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>encodeValue</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> encodeValue​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> value, |
| <a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> decimalType, |
| boolean checkOverflow)</pre> |
| <div class="block">Casts a decimal's integer representation to a decimal node. If the |
| expression is not the expected integer type, then it is casted first. |
| |
| <p>An overflow check may be requested to ensure the internal value |
| does not exceed the maximum value of the decimal type.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - integer representation of decimal</dd> |
| <dd><code>decimalType</code> - type integer will be reinterpreted as</dd> |
| <dd><code>checkOverflow</code> - indicates whether an overflow check is required |
| when reinterpreting this particular value as the |
| decimal type. A check usually not required for |
| arithmetic, but is often required for rounding and |
| explicit casts.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the integer reinterpreted as an opaque decimal type</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="ensureType(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureType</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> ensureType​(<a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> node)</pre> |
| <div class="block">Ensures expression is interpreted as a specified type. The returned |
| expression may be wrapped with a cast. |
| |
| <p>This method corrects the nullability of the specified type to |
| match the nullability of the expression.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>type</code> - desired type</dd> |
| <dd><code>node</code> - expression</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a casted expression or the original expression</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="ensureType(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ensureType</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> ensureType​(<a href="../type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> node, |
| boolean matchNullability)</pre> |
| <div class="block">Ensures expression is interpreted as a specified type. The returned |
| expression may be wrapped with a cast.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>type</code> - desired type</dd> |
| <dd><code>node</code> - expression</dd> |
| <dd><code>matchNullability</code> - whether to correct nullability of specified |
| type to match the expression; this usually should |
| be true, except for explicit casts which can |
| override default nullability</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a casted expression or the original expression</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="makeCase(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeCase</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeCase​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> condition, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> thenClause, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> elseClause)</pre> |
| </li> |
| </ul> |
| <a id="makeCase(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeCase</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeCase​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> whenA, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> thenA, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> whenB, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> thenB, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> elseClause)</pre> |
| </li> |
| </ul> |
| <a id="makePlus(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makePlus</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makePlus​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</pre> |
| </li> |
| </ul> |
| <a id="makeMinus(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeMinus</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeMinus​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</pre> |
| </li> |
| </ul> |
| <a id="makeDivide(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeDivide</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeDivide​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</pre> |
| </li> |
| </ul> |
| <a id="makeMultiply(org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeMultiply</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeMultiply​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> b)</pre> |
| </li> |
| </ul> |
| <a id="makeIsPositive(org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>makeIsPositive</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeIsPositive​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a)</pre> |
| </li> |
| </ul> |
| <a id="makeIsNegative(org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>makeIsNegative</h4> |
| <pre class="methodSignature">protected <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> makeIsNegative​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> a)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| </div> |
| </main> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <footer role="contentinfo"> |
| <nav role="navigation"> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a id="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a id="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../index.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/ReduceDecimalsRule.RexExpander.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a id="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </nav> |
| <p class="legalCopy"><small>Copyright © 2012–2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </footer> |
| </body> |
| </html> |