| <!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>PlannerImpl (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="PlannerImpl (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":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/prepare/CalcitePrepareImpl.html" title="org.apache.calcite.prepare中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../org/apache/calcite/prepare/PlannerImpl.ViewExpanderImpl.html" title="org.apache.calcite.prepare中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/prepare/PlannerImpl.html" target="_top">框架</a></li> |
| <li><a href="PlannerImpl.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.prepare</div> |
| <h2 title="类 PlannerImpl" class="title">类 PlannerImpl</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.prepare.PlannerImpl</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>所有已实现的接口:</dt> |
| <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="java.lang中的类或接口">AutoCloseable</a>, <a href="../../../../org/apache/calcite/plan/RelOptTable.ViewExpander.html" title="org.apache.calcite.plan中的接口">RelOptTable.ViewExpander</a>, <a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">PlannerImpl</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a> |
| implements <a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a>, <a href="../../../../org/apache/calcite/plan/RelOptTable.ViewExpander.html" title="org.apache.calcite.plan中的接口">RelOptTable.ViewExpander</a></pre> |
| <div class="block">Implementation of <a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口"><code>Planner</code></a>.</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>class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.ViewExpanderImpl.html" title="org.apache.calcite.prepare中的类">PlannerImpl.ViewExpanderImpl</a></span></code> |
| <div class="block"><span class="deprecatedLabel">已过时。</span> |
| <div class="block"><span class="deprecationComment">Now <a href="../../../../org/apache/calcite/prepare/PlannerImpl.html" title="org.apache.calcite.prepare中的类"><code>PlannerImpl</code></a> implements <a href="../../../../org/apache/calcite/plan/RelOptTable.ViewExpander.html" title="org.apache.calcite.plan中的接口"><code>RelOptTable.ViewExpander</code></a> |
| directly.</span></div> |
| </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/prepare/PlannerImpl.html#PlannerImpl-org.apache.calcite.tools.FrameworkConfig-">PlannerImpl</a></span>(<a href="../../../../org/apache/calcite/tools/FrameworkConfig.html" title="org.apache.calcite.tools中的接口">FrameworkConfig</a> config)</code> |
| <div class="block">Creates a planner.</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>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#close--">close</a></span>()</code> |
| <div class="block">Releases all internal resources utilized while this <code>Planner</code> |
| exists.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <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/prepare/PlannerImpl.html#convert-org.apache.calcite.sql.SqlNode-">convert</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sql)</code> </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/rel/RelRoot.html" title="org.apache.calcite.rel中的类">RelRoot</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#expandView-org.apache.calcite.rel.type.RelDataType-java.lang.String-java.util.List-java.util.List-">expandView</a></span>(<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a> rowType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a> queryString, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> schemaPath, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> viewPath)</code> |
| <div class="block">Returns a relational expression that is to be substituted for an access |
| to a SQL view.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/plan/RelTraitSet.html" title="org.apache.calcite.plan中的类">RelTraitSet</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#getEmptyTraitSet--">getEmptyTraitSet</a></span>()</code> </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/adapter/java/JavaTypeFactory.html" title="org.apache.calcite.adapter.java中的接口">JavaTypeFactory</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#getTypeFactory--">getTypeFactory</a></span>()</code> |
| <div class="block">Returns the type factory.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#parse-java.io.Reader-">parse</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Reader.html?is-external=true" title="java.io中的类或接口">Reader</a> reader)</code> |
| <div class="block">Parses and validates a SQL statement.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/rel/RelRoot.html" title="org.apache.calcite.rel中的类">RelRoot</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#rel-org.apache.calcite.sql.SqlNode-">rel</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sql)</code> |
| <div class="block">Converts a SQL parse tree into a tree of relational expressions.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#reset--">reset</a></span>()</code> |
| <div class="block">Resets this <code>Planner</code> to be used with a new query.</div> |
| </td> |
| </tr> |
| <tr id="i8" 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/prepare/PlannerImpl.html#transform-int-org.apache.calcite.plan.RelTraitSet-org.apache.calcite.rel.RelNode-">transform</a></span>(int ruleSetIndex, |
| <a href="../../../../org/apache/calcite/plan/RelTraitSet.html" title="org.apache.calcite.plan中的类">RelTraitSet</a> requiredOutputTraits, |
| <a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel)</code> |
| <div class="block">Converts one relational expression tree into another relational expression |
| based on a particular rule set and requires set of traits.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/prepare/PlannerImpl.html#validate-org.apache.calcite.sql.SqlNode-">validate</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sqlNode)</code> |
| <div class="block">Validates a SQL statement.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../org/apache/calcite/util/Pair.html" title="org.apache.calcite.util中的类">Pair</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>,<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/prepare/PlannerImpl.html#validateAndGetType-org.apache.calcite.sql.SqlNode-">validateAndGetType</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sqlNode)</code> |
| <div class="block">Validates a SQL statement.</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> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.tools.Planner"> |
| <!-- --> |
| </a> |
| <h3>从接口继承的方法 org.apache.calcite.tools.<a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></h3> |
| <code><a href="../../../../org/apache/calcite/tools/Planner.html#parse-java.lang.String-">parse</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="PlannerImpl-org.apache.calcite.tools.FrameworkConfig-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>PlannerImpl</h4> |
| <pre>public PlannerImpl(<a href="../../../../org/apache/calcite/tools/FrameworkConfig.html" title="org.apache.calcite.tools中的接口">FrameworkConfig</a> config)</pre> |
| <div class="block">Creates a planner. Not a public API; call |
| <a href="../../../../org/apache/calcite/tools/Frameworks.html#getPlanner-org.apache.calcite.tools.FrameworkConfig-"><code>Frameworks.getPlanner(org.apache.calcite.tools.FrameworkConfig)</code></a> instead.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>方法详细资料</h3> |
| <a name="getEmptyTraitSet--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEmptyTraitSet</h4> |
| <pre>public <a href="../../../../org/apache/calcite/plan/RelTraitSet.html" title="org.apache.calcite.plan中的类">RelTraitSet</a> getEmptyTraitSet()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#getEmptyTraitSet--">getEmptyTraitSet</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="close--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>close</h4> |
| <pre>public void close()</pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#close--">Planner</a></code></span></div> |
| <div class="block">Releases all internal resources utilized while this <code>Planner</code> |
| exists. Once called, this Planner object is no longer valid.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true#close--" title="java.lang中的类或接口">close</a></code> 在接口中 <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/AutoCloseable.html?is-external=true" title="java.lang中的类或接口">AutoCloseable</a></code></dd> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#close--">close</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="reset--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reset</h4> |
| <pre>public void reset()</pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#reset--">Planner</a></code></span></div> |
| <div class="block">Resets this <code>Planner</code> to be used with a new query. This |
| should be called between each new query.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#reset--">reset</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="parse-java.io.Reader-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>parse</h4> |
| <pre>public <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> parse(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/Reader.html?is-external=true" title="java.io中的类或接口">Reader</a> reader) |
| throws <a href="../../../../org/apache/calcite/sql/parser/SqlParseException.html" title="org.apache.calcite.sql.parser中的类">SqlParseException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#parse-java.io.Reader-">Planner</a></code></span></div> |
| <div class="block">Parses and validates a SQL statement.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#parse-java.io.Reader-">parse</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>reader</code> - A reader which will provide the SQL statement to parse.</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>The root node of the SQL parse tree.</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/sql/parser/SqlParseException.html" title="org.apache.calcite.sql.parser中的类">SqlParseException</a></code> - on parse error</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validate-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validate</h4> |
| <pre>public <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> validate(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sqlNode) |
| throws <a href="../../../../org/apache/calcite/tools/ValidationException.html" title="org.apache.calcite.tools中的类">ValidationException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#validate-org.apache.calcite.sql.SqlNode-">Planner</a></code></span></div> |
| <div class="block">Validates a SQL statement.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#validate-org.apache.calcite.sql.SqlNode-">validate</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>sqlNode</code> - Root node of the SQL parse tree.</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>Validated node</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/ValidationException.html" title="org.apache.calcite.tools中的类">ValidationException</a></code> - if not valid</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validateAndGetType-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateAndGetType</h4> |
| <pre>public <a href="../../../../org/apache/calcite/util/Pair.html" title="org.apache.calcite.util中的类">Pair</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>,<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>> validateAndGetType(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sqlNode) |
| throws <a href="../../../../org/apache/calcite/tools/ValidationException.html" title="org.apache.calcite.tools中的类">ValidationException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#validateAndGetType-org.apache.calcite.sql.SqlNode-">Planner</a></code></span></div> |
| <div class="block">Validates a SQL statement.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#validateAndGetType-org.apache.calcite.sql.SqlNode-">validateAndGetType</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>sqlNode</code> - Root node of the SQL parse tree.</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>Validated node and its validated type.</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/ValidationException.html" title="org.apache.calcite.tools中的类">ValidationException</a></code> - if not valid</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="convert-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>convert</h4> |
| <pre>public final <a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> convert(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sql) |
| throws <a href="../../../../org/apache/calcite/tools/RelConversionException.html" title="org.apache.calcite.tools中的类">RelConversionException</a></pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#convert-org.apache.calcite.sql.SqlNode-">convert</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/RelConversionException.html" title="org.apache.calcite.tools中的类">RelConversionException</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="rel-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rel</h4> |
| <pre>public <a href="../../../../org/apache/calcite/rel/RelRoot.html" title="org.apache.calcite.rel中的类">RelRoot</a> rel(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> sql) |
| throws <a href="../../../../org/apache/calcite/tools/RelConversionException.html" title="org.apache.calcite.tools中的类">RelConversionException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#rel-org.apache.calcite.sql.SqlNode-">Planner</a></code></span></div> |
| <div class="block">Converts a SQL parse tree into a tree of relational expressions. |
| |
| <p>You must call <a href="../../../../org/apache/calcite/tools/Planner.html#validate-org.apache.calcite.sql.SqlNode-"><code>Planner.validate(org.apache.calcite.sql.SqlNode)</code></a> first.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#rel-org.apache.calcite.sql.SqlNode-">rel</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>sql</code> - The root node of the SQL parse tree.</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>The root node of the newly generated RelNode tree.</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/RelConversionException.html" title="org.apache.calcite.tools中的类">RelConversionException</a></code> - if the node |
| cannot be converted or has not been validated</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="expandView-org.apache.calcite.rel.type.RelDataType-java.lang.String-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>expandView</h4> |
| <pre>public <a href="../../../../org/apache/calcite/rel/RelRoot.html" title="org.apache.calcite.rel中的类">RelRoot</a> expandView(<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a> rowType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a> queryString, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> schemaPath, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> viewPath)</pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/plan/RelOptTable.ViewExpander.html#expandView-org.apache.calcite.rel.type.RelDataType-java.lang.String-java.util.List-java.util.List-">RelOptTable.ViewExpander</a></code></span></div> |
| <div class="block">Returns a relational expression that is to be substituted for an access |
| to a SQL view.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/plan/RelOptTable.ViewExpander.html#expandView-org.apache.calcite.rel.type.RelDataType-java.lang.String-java.util.List-java.util.List-">expandView</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/plan/RelOptTable.ViewExpander.html" title="org.apache.calcite.plan中的接口">RelOptTable.ViewExpander</a></code></dd> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>rowType</code> - Row type of the view</dd> |
| <dd><code>queryString</code> - Body of the view</dd> |
| <dd><code>schemaPath</code> - Path of a schema wherein to find referenced tables</dd> |
| <dd><code>viewPath</code> - Path of the view, ending with its name; may be null</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>Relational expression</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTypeFactory--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTypeFactory</h4> |
| <pre>public <a href="../../../../org/apache/calcite/adapter/java/JavaTypeFactory.html" title="org.apache.calcite.adapter.java中的接口">JavaTypeFactory</a> getTypeFactory()</pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#getTypeFactory--">Planner</a></code></span></div> |
| <div class="block">Returns the type factory.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#getTypeFactory--">getTypeFactory</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="transform-int-org.apache.calcite.plan.RelTraitSet-org.apache.calcite.rel.RelNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>transform</h4> |
| <pre>public <a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> transform(int ruleSetIndex, |
| <a href="../../../../org/apache/calcite/plan/RelTraitSet.html" title="org.apache.calcite.plan中的类">RelTraitSet</a> requiredOutputTraits, |
| <a href="../../../../org/apache/calcite/rel/RelNode.html" title="org.apache.calcite.rel中的接口">RelNode</a> rel) |
| throws <a href="../../../../org/apache/calcite/tools/RelConversionException.html" title="org.apache.calcite.tools中的类">RelConversionException</a></pre> |
| <div class="block"><span class="descfrmTypeLabel">从接口复制的说明: <code><a href="../../../../org/apache/calcite/tools/Planner.html#transform-int-org.apache.calcite.plan.RelTraitSet-org.apache.calcite.rel.RelNode-">Planner</a></code></span></div> |
| <div class="block">Converts one relational expression tree into another relational expression |
| based on a particular rule set and requires set of traits.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">指定者:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/Planner.html#transform-int-org.apache.calcite.plan.RelTraitSet-org.apache.calcite.rel.RelNode-">transform</a></code> 在接口中 <code><a href="../../../../org/apache/calcite/tools/Planner.html" title="org.apache.calcite.tools中的接口">Planner</a></code></dd> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>ruleSetIndex</code> - The RuleSet to use for conversion purposes. Note that |
| this is zero-indexed and is based on the list and order |
| of RuleSets provided in the construction of this |
| Planner.</dd> |
| <dd><code>requiredOutputTraits</code> - The set of RelTraits required of the root node |
| at the termination of the planning cycle.</dd> |
| <dd><code>rel</code> - The root of the RelNode tree to convert.</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>The root of the new RelNode tree.</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="../../../../org/apache/calcite/tools/RelConversionException.html" title="org.apache.calcite.tools中的类">RelConversionException</a></code> - on conversion |
| error</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/prepare/CalcitePrepareImpl.html" title="org.apache.calcite.prepare中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../org/apache/calcite/prepare/PlannerImpl.ViewExpanderImpl.html" title="org.apache.calcite.prepare中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/prepare/PlannerImpl.html" target="_top">框架</a></li> |
| <li><a href="PlannerImpl.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> |