| <!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>SqlValidatorWithHints (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="SqlValidatorWithHints (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":6,"i1":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/sql/validate/SqlValidatorUtil.Suggester.html" title="org.apache.calcite.sql.validate中的接口"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../../org/apache/calcite/sql/validate/TableConstructorNamespace.html" title="org.apache.calcite.sql.validate中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/calcite/sql/validate/SqlValidatorWithHints.html" target="_top">框架</a></li> |
| <li><a href="SqlValidatorWithHints.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.sql.validate</div> |
| <h2 title="接口 SqlValidatorWithHints" class="title">接口 SqlValidatorWithHints</h2> |
| </div> |
| <div class="contentContainer"> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt>所有超级接口:</dt> |
| <dd><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a></dd> |
| </dl> |
| <dl> |
| <dt>所有已知实现类:</dt> |
| <dd><a href="../../../../../org/apache/calcite/jdbc/ContextSqlValidator.html" title="org.apache.calcite.jdbc中的类">ContextSqlValidator</a>, <a href="../../../../../org/apache/calcite/sql/advise/SqlAdvisorValidator.html" title="org.apache.calcite.sql.advise中的类">SqlAdvisorValidator</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorImpl.html" title="org.apache.calcite.sql.validate中的类">SqlValidatorImpl</a></dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public interface <span class="typeNameLabel">SqlValidatorWithHints</span> |
| extends <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a></pre> |
| <div class="block">Extends <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlValidator</code></a> to allow discovery of useful data such as fully |
| qualified names of sql objects, alternative valid sql objects that can be |
| used in the SQL statement (dubbed as hints)</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="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/sql/validate/SqlMoniker.html" title="org.apache.calcite.sql.validate中的接口">SqlMoniker</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorWithHints.html#lookupHints-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.parser.SqlParserPos-">lookupHints</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> topNode, |
| <a href="../../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a> pos)</code> |
| <div class="block">Looks up completion hints for a syntactically correct SQL statement that |
| has been parsed into an expression tree.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlMoniker.html" title="org.apache.calcite.sql.validate中的接口">SqlMoniker</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorWithHints.html#lookupQualifiedName-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.parser.SqlParserPos-">lookupQualifiedName</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> topNode, |
| <a href="../../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a> pos)</code> |
| <div class="block">Looks up the fully qualified name for a <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a> at a given |
| Parser Position in a parsed expression tree Note: call this only after |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validate-org.apache.calcite.sql.SqlNode-"><code>SqlValidator.validate(org.apache.calcite.sql.SqlNode)</code></a> has been called.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.sql.validate.SqlValidator"> |
| <!-- --> |
| </a> |
| <h3>从接口继承的方法 org.apache.calcite.sql.validate.<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a></h3> |
| <code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#declareCursor-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.validate.SqlValidatorScope-">declareCursor</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#deriveAlias-org.apache.calcite.sql.SqlNode-int-">deriveAlias</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#deriveConstructorType-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlFunction-org.apache.calcite.sql.SqlFunction-java.util.List-">deriveConstructorType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#deriveType-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlNode-">deriveType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#expand-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-">expand</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#expandOrderExpr-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.SqlNode-">expandOrderExpr</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#expandStar-org.apache.calcite.sql.SqlNodeList-org.apache.calcite.sql.SqlSelect-boolean-">expandStar</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getCatalogReader--">getCatalogReader</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getColumnReferenceExpansion--">getColumnReferenceExpansion</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getConformance--">getConformance</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getDefaultNullCollation--">getDefaultNullCollation</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFieldOrigins-org.apache.calcite.sql.SqlNode-">getFieldOrigins</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFromScope-org.apache.calcite.sql.SqlSelect-">getFromScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getGroupScope-org.apache.calcite.sql.SqlSelect-">getGroupScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getHavingScope-org.apache.calcite.sql.SqlSelect-">getHavingScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getJoinScope-org.apache.calcite.sql.SqlNode-">getJoinScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getMatchRecognizeScope-org.apache.calcite.sql.SqlMatchRecognize-">getMatchRecognizeScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getNamespace-org.apache.calcite.sql.SqlNode-">getNamespace</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOperatorTable--">getOperatorTable</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOrderScope-org.apache.calcite.sql.SqlSelect-">getOrderScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOverScope-org.apache.calcite.sql.SqlNode-">getOverScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getParameterRowType-org.apache.calcite.sql.SqlNode-">getParameterRowType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getParentCursor-java.lang.String-">getParentCursor</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getRawSelectScope-org.apache.calcite.sql.SqlSelect-">getRawSelectScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getSelectScope-org.apache.calcite.sql.SqlSelect-">getSelectScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getTypeCoercion--">getTypeCoercion</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getTypeFactory--">getTypeFactory</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getUnknownType--">getUnknownType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getValidatedNodeType-org.apache.calcite.sql.SqlNode-">getValidatedNodeType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getValidatedNodeTypeIfKnown-org.apache.calcite.sql.SqlNode-">getValidatedNodeTypeIfKnown</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getWhereScope-org.apache.calcite.sql.SqlSelect-">getWhereScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getWithScope-org.apache.calcite.sql.SqlNode-">getWithScope</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#handleUnresolvedFunction-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlFunction-java.util.List-java.util.List-">handleUnresolvedFunction</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isAggregate-org.apache.calcite.sql.SqlNode-">isAggregate</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isAggregate-org.apache.calcite.sql.SqlSelect-">isAggregate</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isLenientOperatorLookup--">isLenientOperatorLookup</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isSystemField-org.apache.calcite.rel.type.RelDataTypeField-">isSystemField</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isTypeCoercionEnabled--">isTypeCoercionEnabled</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#makeNullaryCall-org.apache.calcite.sql.SqlIdentifier-">makeNullaryCall</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#newValidationError-org.apache.calcite.sql.SqlNode-org.apache.calcite.runtime.Resources.ExInst-">newValidationError</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#popFunctionCall--">popFunctionCall</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#pushFunctionCall--">pushFunctionCall</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#removeValidatedNodeType-org.apache.calcite.sql.SqlNode-">removeValidatedNodeType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#resolveWindow-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-boolean-">resolveWindow</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setCallRewrite-boolean-">setCallRewrite</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setColumnReferenceExpansion-boolean-">setColumnReferenceExpansion</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setDefaultNullCollation-org.apache.calcite.config.NullCollation-">setDefaultNullCollation</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setEnableTypeCoercion-boolean-">setEnableTypeCoercion</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setIdentifierExpansion-boolean-">setIdentifierExpansion</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setLenientOperatorLookup-boolean-">setLenientOperatorLookup</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setSqlTypeCoercionRules-org.apache.calcite.sql.type.SqlTypeCoercionRule-">setSqlTypeCoercionRules</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setTypeCoercion-org.apache.calcite.sql.validate.implicit.TypeCoercion-">setTypeCoercion</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setValidatedNodeType-org.apache.calcite.sql.SqlNode-org.apache.calcite.rel.type.RelDataType-">setValidatedNodeType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#shouldExpandIdentifiers--">shouldExpandIdentifiers</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validate-org.apache.calcite.sql.SqlNode-">validate</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateAggregateParams-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.SqlNodeList-org.apache.calcite.sql.validate.SqlValidatorScope-">validateAggregateParams</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateCall-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.validate.SqlValidatorScope-">validateCall</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateColumnListParams-org.apache.calcite.sql.SqlFunction-java.util.List-java.util.List-">validateColumnListParams</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateDataType-org.apache.calcite.sql.SqlDataTypeSpec-">validateDataType</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateDelete-org.apache.calcite.sql.SqlDelete-">validateDelete</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateDynamicParam-org.apache.calcite.sql.SqlDynamicParam-">validateDynamicParam</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateIdentifier-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.validate.SqlValidatorScope-">validateIdentifier</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateInsert-org.apache.calcite.sql.SqlInsert-">validateInsert</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateIntervalQualifier-org.apache.calcite.sql.SqlIntervalQualifier-">validateIntervalQualifier</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateLiteral-org.apache.calcite.sql.SqlLiteral-">validateLiteral</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateMatchRecognize-org.apache.calcite.sql.SqlCall-">validateMatchRecognize</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateMerge-org.apache.calcite.sql.SqlMerge-">validateMerge</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateModality-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.validate.SqlModality-boolean-">validateModality</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateParameterizedExpression-org.apache.calcite.sql.SqlNode-java.util.Map-">validateParameterizedExpression</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateQuery-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.rel.type.RelDataType-">validateQuery</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateSequenceValue-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlIdentifier-">validateSequenceValue</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateUpdate-org.apache.calcite.sql.SqlUpdate-">validateUpdate</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateWindow-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlCall-">validateWindow</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateWith-org.apache.calcite.sql.SqlWith-org.apache.calcite.sql.validate.SqlValidatorScope-">validateWith</a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateWithItem-org.apache.calcite.sql.SqlWithItem-">validateWithItem</a></code></li> |
| </ul> |
| </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="lookupHints-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.parser.SqlParserPos-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lookupHints</h4> |
| <pre><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/sql/validate/SqlMoniker.html" title="org.apache.calcite.sql.validate中的接口">SqlMoniker</a>> lookupHints(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> topNode, |
| <a href="../../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a> pos)</pre> |
| <div class="block">Looks up completion hints for a syntactically correct SQL statement that |
| has been parsed into an expression tree. (Note this should be called |
| after <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validate-org.apache.calcite.sql.SqlNode-"><code>SqlValidator.validate(org.apache.calcite.sql.SqlNode)</code></a>.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>topNode</code> - top of expression tree in which to lookup completion hints</dd> |
| <dd><code>pos</code> - indicates the position in the sql statement we want to get |
| completion hints for. For example, "select a.ename, b.deptno |
| from sales.emp a join sales.dept b "on a.deptno=b.deptno |
| where empno=1"; setting pos to 'Line 1, Column 17' returns |
| all the possible column names that can be selected from |
| sales.dept table setting pos to 'Line 1, Column 31' returns |
| all the possible table names in 'sales' schema</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>an array of <a href="../../../../../org/apache/calcite/sql/validate/SqlMoniker.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlMoniker</code></a> (sql identifiers) that can fill in |
| at the indicated position</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="lookupQualifiedName-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.parser.SqlParserPos-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>lookupQualifiedName</h4> |
| <pre><a href="../../../../../org/apache/calcite/sql/validate/SqlMoniker.html" title="org.apache.calcite.sql.validate中的接口">SqlMoniker</a> lookupQualifiedName(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a> topNode, |
| <a href="../../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a> pos)</pre> |
| <div class="block">Looks up the fully qualified name for a <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a> at a given |
| Parser Position in a parsed expression tree Note: call this only after |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validate-org.apache.calcite.sql.SqlNode-"><code>SqlValidator.validate(org.apache.calcite.sql.SqlNode)</code></a> has been called.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>topNode</code> - top of expression tree in which to lookup the qualified |
| name for the SqlIdentifier</dd> |
| <dd><code>pos</code> - indicates the position of the <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a> in |
| the SQL statement we want to get the qualified |
| name for</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>a string of the fully qualified name of the <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a> |
| if the Parser position represents a valid <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a>. Else |
| return an empty string</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/sql/validate/SqlValidatorUtil.Suggester.html" title="org.apache.calcite.sql.validate中的接口"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../../org/apache/calcite/sql/validate/TableConstructorNamespace.html" title="org.apache.calcite.sql.validate中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/calcite/sql/validate/SqlValidatorWithHints.html" target="_top">框架</a></li> |
| <li><a href="SqlValidatorWithHints.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> |