| <!DOCTYPE HTML> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>PushProjector (Apache Calcite 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="PushProjector (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; |
| var tabs = {65535:["t0","All Methods"],2:["t2","Instance 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="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 class="aboutLanguage"><b>Apache Calcite</b></div> |
| </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><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </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>Field | </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 PushProjector" class="title">Class PushProjector</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.calcite.rel.rules.PushProjector</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <pre>public class <span class="typeNameLabel">PushProjector</span> |
| extends <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></pre> |
| <div class="block">PushProjector is a utility class used to perform operations used in push |
| projection rules. |
| |
| <p>Pushing is particularly interesting in the case of join, because there |
| are multiple inputs. Generally an expression can be pushed down to a |
| particular input if it depends upon no other inputs. If it can be pushed |
| down to both sides, it is pushed down to the left. |
| |
| <p>Sometimes an expression needs to be split before it can be pushed down. |
| To flag that an expression cannot be split, specify a rule that it must be |
| <dfn>preserved</dfn>. Such an expression will be pushed down intact to one |
| of the inputs, or not pushed down at all.</p></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <section role="region"> |
| <ul class="blockList"> |
| <li class="blockList"><a id="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colSecond" scope="col">Class</th> |
| <th class="colLast" scope="col">Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="PushProjector.ExprCondition.html" title="interface in org.apache.calcite.rel.rules">PushProjector.ExprCondition</a></span></code></th> |
| <td class="colLast"> |
| <div class="block">A functor that replies true or false for a given expression.</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.rel.core.Project,org.apache.calcite.rex.RexNode,org.apache.calcite.rel.RelNode,org.apache.calcite.rel.rules.PushProjector.ExprCondition,org.apache.calcite.tools.RelBuilder)">PushProjector</a></span>​(<a href="../core/Project.html" title="class in org.apache.calcite.rel.core">Project</a> origProj, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> origFilter, |
| <a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> childRel, |
| <a href="PushProjector.ExprCondition.html" title="interface in org.apache.calcite.rel.rules">PushProjector.ExprCondition</a> preserveExprCondition, |
| <a href="../../tools/RelBuilder.html" title="class in org.apache.calcite.tools">RelBuilder</a> relBuilder)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a PushProjector object for pushing projects past a RelNode.</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="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><a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#convertProject(org.apache.calcite.rex.RexNode)">convertProject</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> defaultExpr)</code></th> |
| <td class="colLast"> |
| <div class="block">Decomposes a projection to the input references referenced by a |
| projection and a filter, either of which is optional.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><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="#convertRefsAndExprs(org.apache.calcite.rex.RexNode,java.util.List,int%5B%5D)">convertRefsAndExprs</a></span>​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> rex, |
| <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><<a href="../type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> destFields, |
| int[] adjustments)</code></th> |
| <td class="colLast"> |
| <div class="block">Clones an expression tree and walks through it, adjusting each |
| RexInputRef index by some amount, and converting expressions that need to |
| be preserved to field references.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createNewProject(org.apache.calcite.rel.RelNode,int%5B%5D)">createNewProject</a></span>​(<a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> projChild, |
| int[] adjustments)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a new projection based on the original projection, adjusting all |
| input refs using an adjustment array passed in.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../core/Project.html" title="class in org.apache.calcite.rel.core">Project</a></code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createProjectRefsAndExprs(org.apache.calcite.rel.RelNode,boolean,boolean)">createProjectRefsAndExprs</a></span>​(<a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> projChild, |
| boolean adjust, |
| boolean rightSide)</code></th> |
| <td class="colLast"> |
| <div class="block">Creates a projection based on the inputs specified in a bitmap and the |
| expressions that need to be preserved.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>int[]</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAdjustments()">getAdjustments</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Determines how much each input reference needs to be adjusted as a result |
| of projection.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#locateAllRefs()">locateAllRefs</a></span>()</code></th> |
| <td class="colLast"> |
| <div class="block">Locates all references found in either the projection expressions a |
| filter, as well as references to expressions that should be preserved.</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.<a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </section> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= 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.rel.core.Project,org.apache.calcite.rex.RexNode,org.apache.calcite.rel.RelNode,org.apache.calcite.rel.rules.PushProjector.ExprCondition,org.apache.calcite.tools.RelBuilder)"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>PushProjector</h4> |
| <pre>public PushProjector​(<a href="../core/Project.html" title="class in org.apache.calcite.rel.core">Project</a> origProj, |
| <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> origFilter, |
| <a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> childRel, |
| <a href="PushProjector.ExprCondition.html" title="interface in org.apache.calcite.rel.rules">PushProjector.ExprCondition</a> preserveExprCondition, |
| <a href="../../tools/RelBuilder.html" title="class in org.apache.calcite.tools">RelBuilder</a> relBuilder)</pre> |
| <div class="block">Creates a PushProjector object for pushing projects past a RelNode.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>origProj</code> - the original projection that is being pushed; |
| may be null if the projection is implied as a |
| result of a projection having been trivially |
| removed</dd> |
| <dd><code>origFilter</code> - the filter that the projection must also be |
| pushed past, if applicable</dd> |
| <dd><code>childRel</code> - the RelNode that the projection is being |
| pushed past</dd> |
| <dd><code>preserveExprCondition</code> - condition for whether an expression should |
| be preserved in the projection</dd> |
| </dl> |
| </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="convertProject(org.apache.calcite.rex.RexNode)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertProject</h4> |
| <pre class="methodSignature">public <a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> convertProject​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> defaultExpr)</pre> |
| <div class="block">Decomposes a projection to the input references referenced by a |
| projection and a filter, either of which is optional. If both are |
| provided, the filter is underneath the project. |
| |
| <p>Creates a projection containing all input references as well as |
| preserving any special expressions. Converts the original projection |
| and/or filter to reference the new projection. Then, finally puts on top, |
| a final projection corresponding to the original projection.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>defaultExpr</code> - expression to be used in the projection if no fields |
| or special columns are selected</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the converted projection if it makes sense to push elements of |
| the projection; otherwise returns null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="locateAllRefs()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>locateAllRefs</h4> |
| <pre class="methodSignature">public boolean locateAllRefs()</pre> |
| <div class="block">Locates all references found in either the projection expressions a |
| filter, as well as references to expressions that should be preserved. |
| Based on that, determines whether pushing the projection makes sense.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if all inputs from the child that the projection is being |
| pushed past are referenced in the projection/filter and no special |
| preserve expressions are referenced; in that case, it does not make sense |
| to push the projection</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="createProjectRefsAndExprs(org.apache.calcite.rel.RelNode,boolean,boolean)"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createProjectRefsAndExprs</h4> |
| <pre class="methodSignature">public <a href="../core/Project.html" title="class in org.apache.calcite.rel.core">Project</a> createProjectRefsAndExprs​(<a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> projChild, |
| boolean adjust, |
| boolean rightSide)</pre> |
| <div class="block">Creates a projection based on the inputs specified in a bitmap and the |
| expressions that need to be preserved. The expressions are appended after |
| the input references.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>projChild</code> - child that the projection will be created on top of</dd> |
| <dd><code>adjust</code> - if true, need to create new projection expressions; |
| otherwise, the existing ones are reused</dd> |
| <dd><code>rightSide</code> - if true, creating a projection for the right hand side |
| of a join</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>created projection</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="getAdjustments()"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAdjustments</h4> |
| <pre class="methodSignature">public int[] getAdjustments()</pre> |
| <div class="block">Determines how much each input reference needs to be adjusted as a result |
| of projection.</div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>array indicating how much each input needs to be adjusted by</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="convertRefsAndExprs(org.apache.calcite.rex.RexNode,java.util.List,int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertRefsAndExprs</h4> |
| <pre class="methodSignature">public <a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> convertRefsAndExprs​(<a href="../../rex/RexNode.html" title="class in org.apache.calcite.rex">RexNode</a> rex, |
| <a href="https://docs.oracle.com/javase/9/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util" class="externalLink">List</a><<a href="../type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> destFields, |
| int[] adjustments)</pre> |
| <div class="block">Clones an expression tree and walks through it, adjusting each |
| RexInputRef index by some amount, and converting expressions that need to |
| be preserved to field references.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>rex</code> - the expression</dd> |
| <dd><code>destFields</code> - fields that the new expressions will be referencing</dd> |
| <dd><code>adjustments</code> - the amount each input reference index needs to be |
| adjusted by</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>modified expression tree</dd> |
| </dl> |
| </li> |
| </ul> |
| <a id="createNewProject(org.apache.calcite.rel.RelNode,int[])"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>createNewProject</h4> |
| <pre class="methodSignature">public <a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> createNewProject​(<a href="../RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> projChild, |
| int[] adjustments)</pre> |
| <div class="block">Creates a new projection based on the original projection, adjusting all |
| input refs using an adjustment array passed in. If there was no original |
| projection, create a new one that selects every field from the underlying |
| rel. |
| |
| <p>If the resulting projection would be trivial, return the child.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>projChild</code> - child of the new project</dd> |
| <dd><code>adjustments</code> - array indicating how much each input reference should |
| be adjusted by</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the created projection</dd> |
| </dl> |
| </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="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 class="aboutLanguage"><b>Apache Calcite</b></div> |
| </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><a href="#nested.class.summary">Nested</a> | </li> |
| <li>Field | </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>Field | </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-2020 Apache Software Foundation. All Rights Reserved.</small></p> |
| </footer> |
| </body> |
| </html> |