| <!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>Compiler (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="Compiler (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6}; |
| var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],4:["t3","抽象方法"]}; |
| 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/interpreter/CollectNode.html" title="org.apache.calcite.interpreter中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../org/apache/calcite/interpreter/Context.html" title="org.apache.calcite.interpreter中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/interpreter/Compiler.html" target="_top">框架</a></li> |
| <li><a href="Compiler.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>嵌套 | </li> |
| <li>字段 | </li> |
| <li>构造器 | </li> |
| <li><a href="#method.summary">方法</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>详细资料: </li> |
| <li>字段 | </li> |
| <li>构造器 | </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.interpreter</div> |
| <h2 title="接口 Compiler" class="title">接口 Compiler</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>所有已知实现类:</dt> |
| <dd><a href="../../../../org/apache/calcite/interpreter/Nodes.CoreCompiler.html" title="org.apache.calcite.interpreter中的类">Nodes.CoreCompiler</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">Compiler</span></pre> |
| <div class="block">Context while converting a tree of <a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口"><code>RelNode</code></a> to a program |
| that can be run by an <a href="../../../../org/apache/calcite/interpreter/Interpreter.html" title="org.apache.calcite.interpreter中的类"><code>Interpreter</code></a>.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========== 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="t3" class="tableTab"><span><a href="javascript:show(4);">抽象方法</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/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#combinedRowType-java.util.List-">combinedRowType</a></span>(<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/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>> inputs)</code> </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/interpreter/Scalar.html" title="org.apache.calcite.interpreter中的接口">Scalar</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#compile-java.util.List-org.apache.calcite.rel.type.RelDataType-">compile</a></span>(<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/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>> nodes, |
| <a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a> inputRowType)</code> |
| <div class="block">Compiles an expression to an executable form.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/interpreter/Context.html" title="org.apache.calcite.interpreter中的类">Context</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#createContext--">createContext</a></span>()</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#enumerable-org.apache.calcite.rel.RelNode-org.apache.calcite.linq4j.Enumerable-">enumerable</a></span>(<a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel, |
| <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="org.apache.calcite.linq4j中的接口">Enumerable</a><<a href="../../../../org/apache/calcite/interpreter/Row.html" title="org.apache.calcite.interpreter中的类">Row</a>> rowEnumerable)</code> |
| <div class="block">Tells the interpreter that a given relational expression wishes to |
| give its output as an enumerable.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/DataContext.html" title="org.apache.calcite中的接口">DataContext</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#getDataContext--">getDataContext</a></span>()</code> </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/interpreter/Sink.html" title="org.apache.calcite.interpreter中的接口">Sink</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#sink-org.apache.calcite.rel.RelNode-">sink</a></span>(<a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel)</code> |
| <div class="block">Creates a Sink for a relational expression to write into.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/interpreter/Source.html" title="org.apache.calcite.interpreter中的接口">Source</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/interpreter/Compiler.html#source-org.apache.calcite.rel.RelNode-int-">source</a></span>(<a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel, |
| int ordinal)</code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>方法详细资料</h3> |
| <a name="compile-java.util.List-org.apache.calcite.rel.type.RelDataType-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>compile</h4> |
| <pre><a href="../../../../org/apache/calcite/interpreter/Scalar.html" title="org.apache.calcite.interpreter中的接口">Scalar</a> compile(<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/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>> nodes, |
| <a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a> inputRowType)</pre> |
| <div class="block">Compiles an expression to an executable form.</div> |
| </li> |
| </ul> |
| <a name="combinedRowType-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>combinedRowType</h4> |
| <pre><a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a> combinedRowType(<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/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a>> inputs)</pre> |
| </li> |
| </ul> |
| <a name="source-org.apache.calcite.rel.RelNode-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>source</h4> |
| <pre><a href="../../../../org/apache/calcite/interpreter/Source.html" title="org.apache.calcite.interpreter中的接口">Source</a> source(<a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel, |
| int ordinal)</pre> |
| </li> |
| </ul> |
| <a name="sink-org.apache.calcite.rel.RelNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>sink</h4> |
| <pre><a href="../../../../org/apache/calcite/interpreter/Sink.html" title="org.apache.calcite.interpreter中的接口">Sink</a> sink(<a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel)</pre> |
| <div class="block">Creates a Sink for a relational expression to write into. |
| |
| <p>This method is generally called from the constructor of a <a href="../../../../org/apache/calcite/interpreter/Node.html" title="org.apache.calcite.interpreter中的接口"><code>Node</code></a>. |
| But a constructor could instead call |
| <a href="../../../../org/apache/calcite/interpreter/Compiler.html#enumerable-org.apache.calcite.rel.RelNode-org.apache.calcite.linq4j.Enumerable-"><code>enumerable(RelNode, Enumerable)</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>rel</code> - Relational expression</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>Sink</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="enumerable-org.apache.calcite.rel.RelNode-org.apache.calcite.linq4j.Enumerable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>enumerable</h4> |
| <pre>void enumerable(<a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel, |
| <a href="../../../../org/apache/calcite/linq4j/Enumerable.html" title="org.apache.calcite.linq4j中的接口">Enumerable</a><<a href="../../../../org/apache/calcite/interpreter/Row.html" title="org.apache.calcite.interpreter中的类">Row</a>> rowEnumerable)</pre> |
| <div class="block">Tells the interpreter that a given relational expression wishes to |
| give its output as an enumerable. |
| |
| <p>This is as opposed to the norm, where a relational expression calls |
| <a href="../../../../org/apache/calcite/interpreter/Compiler.html#sink-org.apache.calcite.rel.RelNode-"><code>sink(RelNode)</code></a>, then its <a href="../../../../org/apache/calcite/interpreter/Node.html#run--"><code>Node.run()</code></a> method writes into that |
| sink.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>rel</code> - Relational expression</dd> |
| <dd><code>rowEnumerable</code> - Contents of relational expression</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getDataContext--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getDataContext</h4> |
| <pre><a href="../../../../org/apache/calcite/DataContext.html" title="org.apache.calcite中的接口">DataContext</a> getDataContext()</pre> |
| </li> |
| </ul> |
| <a name="createContext--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>createContext</h4> |
| <pre><a href="../../../../org/apache/calcite/interpreter/Context.html" title="org.apache.calcite.interpreter中的类">Context</a> createContext()</pre> |
| </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/interpreter/CollectNode.html" title="org.apache.calcite.interpreter中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../org/apache/calcite/interpreter/Context.html" title="org.apache.calcite.interpreter中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/interpreter/Compiler.html" target="_top">框架</a></li> |
| <li><a href="Compiler.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>嵌套 | </li> |
| <li>字段 | </li> |
| <li>构造器 | </li> |
| <li><a href="#method.summary">方法</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>详细资料: </li> |
| <li>字段 | </li> |
| <li>构造器 | </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> |