| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="zh"> |
| <head> |
| <!-- Generated by javadoc --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>PushProjector (Apache Calcite calcite API)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.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 methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; |
| var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],8:["t4","具体方法"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>您的浏览器已禁用 JavaScript。</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="导航"> |
| <li><a href="../../../../../overview-summary.html">概览</a></li> |
| <li><a href="package-summary.html">程序包</a></li> |
| <li class="navBarCell1Rev">类</li> |
| <li><a href="package-tree.html">树</a></li> |
| <li><a href="../../../../../deprecated-list.html">已过时</a></li> |
| <li><a href="../../../../../index-all.html">索引</a></li> |
| <li><a href="../../../../../help-doc.html">帮助</a></li> |
| </ul> |
| <div class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/calcite/rel/rules/PruneEmptyRules.RemoveEmptySingleRule.html" title="org.apache.calcite.rel.rules中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.ExprCondition.html" title="org.apache.calcite.rel.rules中的接口"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/calcite/rel/rules/PushProjector.html" target="_top">框架</a></li> |
| <li><a href="PushProjector.html" target="_top">无框架</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">所有类</a></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> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>概要: </li> |
| <li><a href="#nested.class.summary">嵌套</a> | </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.summary">构造器</a> | </li> |
| <li><a href="#method.summary">方法</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>详细资料: </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.detail">构造器</a> | </li> |
| <li><a href="#method.detail">方法</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.calcite.rel.rules</div> |
| <h2 title="类 PushProjector" class="title">类 PushProjector</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">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> |
| <br> |
| <pre>public class <span class="typeNameLabel">PushProjector</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">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 ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>嵌套类概要</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="嵌套类概要表, 列表嵌套类和解释"> |
| <caption><span>嵌套类</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">限定符和类型</th> |
| <th class="colLast" scope="col">类和说明</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.ExprCondition.html" title="org.apache.calcite.rel.rules中的接口">PushProjector.ExprCondition</a></span></code> |
| <div class="block">A functor that replies true or false for a given expression.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>构造器概要</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释"> |
| <caption><span>构造器</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">构造器和说明</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#PushProjector-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="../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a> origProj, |
| <a href="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a> origFilter, |
| <a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> childRel, |
| <a href="../../../../../org/apache/calcite/rel/rules/PushProjector.ExprCondition.html" title="org.apache.calcite.rel.rules中的接口">PushProjector.ExprCondition</a> preserveExprCondition, |
| <a href="../../../../../org/apache/calcite/tools/RelBuilder.html" title="org.apache.calcite.tools中的类">RelBuilder</a> relBuilder)</code> |
| <div class="block">Creates a PushProjector object for pushing projects past a RelNode.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>方法概要</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释"> |
| <caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">限定符和类型</th> |
| <th class="colLast" scope="col">方法和说明</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#convertProject-org.apache.calcite.rex.RexNode-">convertProject</a></span>(<a href="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a> defaultExpr)</code> |
| <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="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#convertRefsAndExprs-org.apache.calcite.rex.RexNode-java.util.List-int:A-">convertRefsAndExprs</a></span>(<a href="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a> rex, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeField</a>> destFields, |
| int[] adjustments)</code> |
| <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="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#createNewProject-org.apache.calcite.rel.RelNode-int:A-">createNewProject</a></span>(<a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> projChild, |
| int[] adjustments)</code> |
| <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="../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#createProjectRefsAndExprs-org.apache.calcite.rel.RelNode-boolean-boolean-">createProjectRefsAndExprs</a></span>(<a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> projChild, |
| boolean adjust, |
| boolean rightSide)</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#getAdjustments--">getAdjustments</a></span>()</code> |
| <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> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.html#locateAllRefs--">locateAllRefs</a></span>()</code> |
| <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 name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>从类继承的方法 java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="java.lang中的类或接口">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="java.lang中的类或接口">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="java.lang中的类或接口">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="java.lang中的类或接口">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="java.lang中的类或接口">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="java.lang中的类或接口">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="java.lang中的类或接口">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="java.lang中的类或接口">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="java.lang中的类或接口">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>构造器详细资料</h3> |
| <a name="PushProjector-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="../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a> origProj, |
| <a href="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a> origFilter, |
| <a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> childRel, |
| <a href="../../../../../org/apache/calcite/rel/rules/PushProjector.ExprCondition.html" title="org.apache.calcite.rel.rules中的接口">PushProjector.ExprCondition</a> preserveExprCondition, |
| <a href="../../../../../org/apache/calcite/tools/RelBuilder.html" title="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">参数:</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> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>方法详细资料</h3> |
| <a name="convertProject-org.apache.calcite.rex.RexNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertProject</h4> |
| <pre>public <a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> convertProject(<a href="../../../../../org/apache/calcite/rex/RexNode.html" title="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">参数:</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">返回:</span></dt> |
| <dd>the converted projection if it makes sense to push elements of |
| the projection; otherwise returns null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="locateAllRefs--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>locateAllRefs</h4> |
| <pre>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">返回:</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 name="createProjectRefsAndExprs-org.apache.calcite.rel.RelNode-boolean-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createProjectRefsAndExprs</h4> |
| <pre>public <a href="../../../../../org/apache/calcite/rel/core/Project.html" title="org.apache.calcite.rel.core中的类">Project</a> createProjectRefsAndExprs(<a href="../../../../../org/apache/calcite/rel/RelNode.html" title="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">参数:</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">返回:</span></dt> |
| <dd>created projection</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAdjustments--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAdjustments</h4> |
| <pre>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">返回:</span></dt> |
| <dd>array indicating how much each input needs to be adjusted by</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="convertRefsAndExprs-org.apache.calcite.rex.RexNode-java.util.List-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convertRefsAndExprs</h4> |
| <pre>public <a href="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a> convertRefsAndExprs(<a href="../../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a> rex, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="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">参数:</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">返回:</span></dt> |
| <dd>modified expression tree</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createNewProject-org.apache.calcite.rel.RelNode-int:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>createNewProject</h4> |
| <pre>public <a href="../../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> createNewProject(<a href="../../../../../org/apache/calcite/rel/RelNode.html" title="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">参数:</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">返回:</span></dt> |
| <dd>the created projection</dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="导航"> |
| <li><a href="../../../../../overview-summary.html">概览</a></li> |
| <li><a href="package-summary.html">程序包</a></li> |
| <li class="navBarCell1Rev">类</li> |
| <li><a href="package-tree.html">树</a></li> |
| <li><a href="../../../../../deprecated-list.html">已过时</a></li> |
| <li><a href="../../../../../index-all.html">索引</a></li> |
| <li><a href="../../../../../help-doc.html">帮助</a></li> |
| </ul> |
| <div class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/calcite/rel/rules/PruneEmptyRules.RemoveEmptySingleRule.html" title="org.apache.calcite.rel.rules中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../../org/apache/calcite/rel/rules/PushProjector.ExprCondition.html" title="org.apache.calcite.rel.rules中的接口"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/calcite/rel/rules/PushProjector.html" target="_top">框架</a></li> |
| <li><a href="PushProjector.html" target="_top">无框架</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">所有类</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> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>概要: </li> |
| <li><a href="#nested.class.summary">嵌套</a> | </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.summary">构造器</a> | </li> |
| <li><a href="#method.summary">方法</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>详细资料: </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.detail">构造器</a> | </li> |
| <li><a href="#method.detail">方法</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p> |
| </body> |
| </html> |