blob: 863fe3a31184f203a32da9779b8f034cef1ee67c [file] [log] [blame]
<!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>SqlValidator (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="SqlValidator (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":6,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":6,"i33":38,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":38,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6,"i59":6,"i60":6,"i61":6,"i62":6,"i63":6,"i64":6,"i65":6,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":6,"i72":6,"i73":6,"i74":6};
var tabs = {65535:["t0","所有方法"],2:["t2","实例方法"],4:["t3","抽象方法"],32:["t6","已过时的方法"]};
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/SqlUserDefinedTableMacro.html" title="org.apache.calcite.sql.validate中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.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/SqlValidator.html" target="_top">框架</a></li>
<li><a href="SqlValidator.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>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</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="接口 SqlValidator" class="title">接口 SqlValidator</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/SqlValidatorWithHints.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorWithHints</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">SqlValidator</span></pre>
<div class="block">Validates the parse tree of a SQL statement, and provides semantic
information about the parse tree.
<p>To create an instance of the default validator implementation, call
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#newValidator-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.sql.validate.SqlConformance-"><code>SqlValidatorUtil.newValidator(org.apache.calcite.sql.SqlOperatorTable, org.apache.calcite.sql.validate.SqlValidatorCatalogReader, org.apache.calcite.rel.type.RelDataTypeFactory, org.apache.calcite.sql.validate.SqlConformance)</code></a>.
<h2>Visitor pattern</h2>
<p>The validator interface is an instance of the
<a href="../../../../../org/apache/calcite/util/Glossary.html#VISITOR_PATTERN"><code>visitor pattern</code></a>.
Implementations
of the <a href="../../../../../org/apache/calcite/sql/SqlNode.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-"><code>SqlNode.validate(org.apache.calcite.sql.validate.SqlValidator, org.apache.calcite.sql.validate.SqlValidatorScope)</code></a> method call the <code>validateXxx</code>
method appropriate to the kind of node:
<ul>
<li><a href="../../../../../org/apache/calcite/sql/SqlLiteral.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-"><code>SqlLiteral.validate(SqlValidator, SqlValidatorScope)</code></a>
calls
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateLiteral-org.apache.calcite.sql.SqlLiteral-"><code>validateLiteral(org.apache.calcite.sql.SqlLiteral)</code></a>;
<li><a href="../../../../../org/apache/calcite/sql/SqlCall.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-"><code>SqlCall.validate(SqlValidator, SqlValidatorScope)</code></a>
calls
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateCall-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.validate.SqlValidatorScope-"><code>validateCall(SqlCall, SqlValidatorScope)</code></a>;
<li>and so forth.</ul>
<p>The <a href="../../../../../org/apache/calcite/sql/SqlNode.html#validateExpr-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-"><code>SqlNode.validateExpr(SqlValidator, SqlValidatorScope)</code></a> method
is as <a href="../../../../../org/apache/calcite/sql/SqlNode.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-"><code>SqlNode.validate(SqlValidator, SqlValidatorScope)</code></a> but is called
when the node is known to be a scalar expression.
<h2>Scopes and namespaces</h2>
<p>In order to resolve names to objects, the validator builds a map of the
structure of the query. This map consists of two types of objects. A
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlValidatorScope</code></a> describes the tables and columns accessible at a
particular point in the query; and a <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlValidatorNamespace</code></a> is a
description of a data source used in a query.
<p>There are different kinds of namespace for different parts of the query.
for example <a href="../../../../../org/apache/calcite/sql/validate/IdentifierNamespace.html" title="org.apache.calcite.sql.validate中的类"><code>IdentifierNamespace</code></a> for table names,
<a href="../../../../../org/apache/calcite/sql/validate/SelectNamespace.html" title="org.apache.calcite.sql.validate中的类"><code>SelectNamespace</code></a> for SELECT queries,
<a href="../../../../../org/apache/calcite/sql/validate/SetopNamespace.html" title="org.apache.calcite.sql.validate中的类"><code>SetopNamespace</code></a> for UNION, EXCEPT
and INTERSECT. A validator is allowed to wrap namespaces in other objects
which implement <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlValidatorNamespace</code></a>, so don't try to cast your
namespace or use <code>instanceof</code>; use
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html#unwrap-java.lang.Class-"><code>SqlValidatorNamespace.unwrap(Class)</code></a> and
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html#isWrapperFor-java.lang.Class-"><code>SqlValidatorNamespace.isWrapperFor(Class)</code></a> instead.</p>
<p>The validator builds the map by making a quick scan over the query when
the root <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>SqlNode</code></a> is first provided. Thereafter, it supplies the
correct scope or namespace object when it calls validation methods.</p>
<p>The methods <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getSelectScope-org.apache.calcite.sql.SqlSelect-"><code>getSelectScope(org.apache.calcite.sql.SqlSelect)</code></a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFromScope-org.apache.calcite.sql.SqlSelect-"><code>getFromScope(org.apache.calcite.sql.SqlSelect)</code></a>,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getWhereScope-org.apache.calcite.sql.SqlSelect-"><code>getWhereScope(org.apache.calcite.sql.SqlSelect)</code></a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getGroupScope-org.apache.calcite.sql.SqlSelect-"><code>getGroupScope(org.apache.calcite.sql.SqlSelect)</code></a>, <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getHavingScope-org.apache.calcite.sql.SqlSelect-"><code>getHavingScope(org.apache.calcite.sql.SqlSelect)</code></a>,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOrderScope-org.apache.calcite.sql.SqlSelect-"><code>getOrderScope(org.apache.calcite.sql.SqlSelect)</code></a> and <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getJoinScope-org.apache.calcite.sql.SqlNode-"><code>getJoinScope(org.apache.calcite.sql.SqlNode)</code></a> get the correct scope
to resolve
names in a particular clause of a SQL statement.</p></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">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">已过时的方法</a></span><span class="tabEnd">&nbsp;</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/sql/validate/SqlValidator.html#declareCursor-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.validate.SqlValidatorScope-">declareCursor</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Declares a SELECT expression as a cursor.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#deriveAlias-org.apache.calcite.sql.SqlNode-int-">deriveAlias</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
int&nbsp;ordinal)</code>
<div class="block">Derives an alias for an expression.</div>
</td>
</tr>
<tr id="i2" 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/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></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call,
<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;unresolvedConstructor,
<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;resolvedConstructor,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;argTypes)</code>
<div class="block">Derives the type of a constructor.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<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/sql/validate/SqlValidator.html#deriveType-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlNode-">deriveType</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;operand)</code>
<div class="block">Derives the type of a node in a given scope.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<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/sql/validate/SqlValidator.html#expand-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-">expand</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;expr,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Expands an expression.</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/sql/validate/SqlValidator.html#expandOrderExpr-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.SqlNode-">expandOrderExpr</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select,
<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;orderExpr)</code>
<div class="block">Expands an expression in the ORDER BY clause into an expression with the
same semantics as expressions in the SELECT clause.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="org.apache.calcite.sql中的类">SqlNodeList</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#expandStar-org.apache.calcite.sql.SqlNodeList-org.apache.calcite.sql.SqlSelect-boolean-">expandStar</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="org.apache.calcite.sql中的类">SqlNodeList</a>&nbsp;selectList,
<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;query,
boolean&nbsp;includeSystemVars)</code>
<div class="block">Returns a list of expressions, with every occurrence of "&#42;" or
"TABLE.&#42;" expanded.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorCatalogReader</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getCatalogReader--">getCatalogReader</a></span>()</code>
<div class="block">Returns the catalog reader used by this validator.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getColumnReferenceExpansion--">getColumnReferenceExpansion</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlConformance.html" title="org.apache.calcite.sql.validate中的接口">SqlConformance</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getConformance--">getConformance</a></span>()</code>
<div class="block">Returns the dialect of SQL (SQL:2003, etc.) this validator recognizes.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/config/NullCollation.html" title="org.apache.calcite.config中的枚举">NullCollation</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getDefaultNullCollation--">getDefaultNullCollation</a></span>()</code>
<div class="block">Returns how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<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>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&gt;&gt;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFieldOrigins-org.apache.calcite.sql.SqlNode-">getFieldOrigins</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;sqlQuery)</code>
<div class="block">Returns a description of how each field in the row type maps to a
catalog, schema, table and column in the schema.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFromScope-org.apache.calcite.sql.SqlSelect-">getFromScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns a scope containing the objects visible from the FROM clause of a
query.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getGroupScope-org.apache.calcite.sql.SqlSelect-">getGroupScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns a scope containing the objects visible from the GROUP BY clause
of a query.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getHavingScope-org.apache.calcite.sql.SqlSelect-">getHavingScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns a scope containing the objects visible from the HAVING clause of
a query.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getJoinScope-org.apache.calcite.sql.SqlNode-">getJoinScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Returns a scope containing the objects visible from the ON and USING
sections of a JOIN clause.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getMatchRecognizeScope-org.apache.calcite.sql.SqlMatchRecognize-">getMatchRecognizeScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlMatchRecognize.html" title="org.apache.calcite.sql中的类">SqlMatchRecognize</a>&nbsp;node)</code>
<div class="block">Returns a scope match recognize clause.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorNamespace</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getNamespace-org.apache.calcite.sql.SqlNode-">getNamespace</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Finds the namespace corresponding to a given node.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="org.apache.calcite.sql中的接口">SqlOperatorTable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOperatorTable--">getOperatorTable</a></span>()</code>
<div class="block">Returns the operator table used by this validator.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOrderScope-org.apache.calcite.sql.SqlSelect-">getOrderScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns the scope that expressions in the SELECT and HAVING clause of
this query should use.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOverScope-org.apache.calcite.sql.SqlNode-">getOverScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Returns the scope of an OVER or VALUES node.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<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/sql/validate/SqlValidator.html#getParameterRowType-org.apache.calcite.sql.SqlNode-">getParameterRowType</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;sqlQuery)</code>
<div class="block">Returns a record type that contains the name and type of each parameter.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getParentCursor-java.lang.String-">getParentCursor</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;columnListParamName)</code>
<div class="block">Retrieves the name of the parent cursor referenced by a column list
parameter.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SelectScope.html" title="org.apache.calcite.sql.validate中的类">SelectScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getRawSelectScope-org.apache.calcite.sql.SqlSelect-">getRawSelectScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns the scope for resolving the SELECT, GROUP BY and HAVING clauses.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getSelectScope-org.apache.calcite.sql.SqlSelect-">getSelectScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns the appropriate scope for validating a particular clause of a
SELECT statement.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercion.html" title="org.apache.calcite.sql.validate.implicit中的接口">TypeCoercion</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getTypeCoercion--">getTypeCoercion</a></span>()</code>
<div class="block">Get the type coercion instance.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getTypeFactory--">getTypeFactory</a></span>()</code>
<div class="block">Returns the type factory used by this validator.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<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/sql/validate/SqlValidator.html#getUnknownType--">getUnknownType</a></span>()</code>
<div class="block">Returns an object representing the "unknown" type.</div>
</td>
</tr>
<tr id="i28" 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/sql/validate/SqlValidator.html#getValidatedNodeType-org.apache.calcite.sql.SqlNode-">getValidatedNodeType</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Returns the type assigned to a node by validation.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<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/sql/validate/SqlValidator.html#getValidatedNodeTypeIfKnown-org.apache.calcite.sql.SqlNode-">getValidatedNodeTypeIfKnown</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Returns the type assigned to a node by validation, or null if unknown.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getWhereScope-org.apache.calcite.sql.SqlSelect-">getWhereScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns the scope that expressions in the WHERE and GROUP BY clause of
this query should use.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getWithScope-org.apache.calcite.sql.SqlNode-">getWithScope</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;withItem)</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/runtime/CalciteException.html" title="org.apache.calcite.runtime中的类">CalciteException</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><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></span>(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call,
<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;unresolvedFunction,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;argTypes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&gt;&nbsp;argNames)</code>
<div class="block">Handles a call to a function which cannot be resolved.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isAggregate-org.apache.calcite.sql.SqlNode-">isAggregate</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;selectNode)</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isAggregate-org.apache.calcite.sql.SqlSelect-">isAggregate</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</code>
<div class="block">Returns whether a SELECT statement is an aggregation.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isLenientOperatorLookup--">isLenientOperatorLookup</a></span>()</code>
<div class="block">Returns whether this validator should be lenient upon encountering an
unknown function.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isSystemField-org.apache.calcite.rel.type.RelDataTypeField-">isSystemField</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeField</a>&nbsp;field)</code>
<div class="block">Returns whether a field is a system field.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#isTypeCoercionEnabled--">isTypeCoercionEnabled</a></span>()</code>
<div class="block">Returns if this validator supports implicit type coercion.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#makeNullaryCall-org.apache.calcite.sql.SqlIdentifier-">makeNullaryCall</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a>&nbsp;id)</code>
<div class="block">If an identifier is a legitimate call to a function that has no
arguments and requires no parentheses (for example "CURRENT_USER"),
returns a call to that function, otherwise returns null.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/runtime/CalciteContextException.html" title="org.apache.calcite.runtime中的类">CalciteContextException</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#newValidationError-org.apache.calcite.sql.SqlNode-org.apache.calcite.runtime.Resources.ExInst-">newValidationError</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
org.apache.calcite.runtime.Resources.ExInst&lt;<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorException.html" title="org.apache.calcite.sql.validate中的类">SqlValidatorException</a>&gt;&nbsp;e)</code>
<div class="block">Adds "line x, column y" context to a validator exception.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#popFunctionCall--">popFunctionCall</a></span>()</code>
<div class="block">Removes the topmost entry from the function call stack.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#pushFunctionCall--">pushFunctionCall</a></span>()</code>
<div class="block">Pushes a new instance of a function call on to a function call stack.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#removeValidatedNodeType-org.apache.calcite.sql.SqlNode-">removeValidatedNodeType</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Removes a node from the set of validated nodes</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/SqlWindow.html" title="org.apache.calcite.sql中的类">SqlWindow</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#resolveWindow-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-boolean-">resolveWindow</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;windowOrRef,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
boolean&nbsp;populateBounds)</code>
<div class="block">Converts a window specification or window name into a fully-resolved
window specification.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setCallRewrite-boolean-">setCallRewrite</a></span>(boolean&nbsp;rewriteCalls)</code>
<div class="block">Enables or disables rewrite of "macro-like" calls such as COALESCE.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setColumnReferenceExpansion-boolean-">setColumnReferenceExpansion</a></span>(boolean&nbsp;expandColumnReferences)</code>
<div class="block">Enables or disables expansion of column references.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setDefaultNullCollation-org.apache.calcite.config.NullCollation-">setDefaultNullCollation</a></span>(<a href="../../../../../org/apache/calcite/config/NullCollation.html" title="org.apache.calcite.config中的枚举">NullCollation</a>&nbsp;nullCollation)</code>
<div class="block">Sets how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setEnableTypeCoercion-boolean-">setEnableTypeCoercion</a></span>(boolean&nbsp;enabled)</code>
<div class="block">Sets enable or disable implicit type coercion when the validator does validation.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setIdentifierExpansion-boolean-">setIdentifierExpansion</a></span>(boolean&nbsp;expandIdentifiers)</code>
<div class="block">Enables or disables expansion of identifiers other than column
references.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setLenientOperatorLookup-boolean-">setLenientOperatorLookup</a></span>(boolean&nbsp;lenient)</code>
<div class="block">Sets whether this validator should be lenient upon encountering an unknown
function.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setSqlTypeCoercionRules-org.apache.calcite.sql.type.SqlTypeCoercionRule-">setSqlTypeCoercionRules</a></span>(<a href="../../../../../org/apache/calcite/sql/type/SqlTypeCoercionRule.html" title="org.apache.calcite.sql.type中的类">SqlTypeCoercionRule</a>&nbsp;typeCoercionRules)</code>
<div class="block">Sets the <a href="../../../../../org/apache/calcite/sql/type/SqlTypeCoercionRule.html" title="org.apache.calcite.sql.type中的类"><code>SqlTypeCoercionRule</code></a> instance which defines the type conversion matrix
for the explicit type coercion.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setTypeCoercion-org.apache.calcite.sql.validate.implicit.TypeCoercion-">setTypeCoercion</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercion.html" title="org.apache.calcite.sql.validate.implicit中的接口">TypeCoercion</a>&nbsp;typeCoercion)</code>
<div class="block">Sets an instance of type coercion, you can customize the coercion rules to
override the default ones defined in
<a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercionImpl.html" title="org.apache.calcite.sql.validate.implicit中的类"><code>TypeCoercionImpl</code></a>.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#setValidatedNodeType-org.apache.calcite.sql.SqlNode-org.apache.calcite.rel.type.RelDataType-">setValidatedNodeType</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;type)</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;
<div class="block"><span class="deprecationComment">This method should not be in the <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlValidator</code></a>
interface. The validator should drive the type-derivation process, and
store nodes' types when they have been derived.</span></div>
</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#shouldExpandIdentifiers--">shouldExpandIdentifiers</a></span>()</code>
<div class="block">Returns expansion of identifiers.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<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/sql/validate/SqlValidator.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>&nbsp;topNode)</code>
<div class="block">Validates an expression tree.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><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></span>(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;aggCall,
<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;filter,
<a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="org.apache.calcite.sql中的类">SqlNodeList</a>&nbsp;orderList,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Validates parameters for aggregate function.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateCall-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.validate.SqlValidatorScope-">validateCall</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Validates a call to an operator.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateColumnListParams-org.apache.calcite.sql.SqlFunction-java.util.List-java.util.List-">validateColumnListParams</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;function,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;argTypes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&gt;&nbsp;operands)</code>
<div class="block">Validates a COLUMN_LIST parameter</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateDataType-org.apache.calcite.sql.SqlDataTypeSpec-">validateDataType</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlDataTypeSpec.html" title="org.apache.calcite.sql中的类">SqlDataTypeSpec</a>&nbsp;dataType)</code>
<div class="block">Validates a data type expression.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateDelete-org.apache.calcite.sql.SqlDelete-">validateDelete</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlDelete.html" title="org.apache.calcite.sql中的类">SqlDelete</a>&nbsp;delete)</code>
<div class="block">Validates a DELETE statement.</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateDynamicParam-org.apache.calcite.sql.SqlDynamicParam-">validateDynamicParam</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlDynamicParam.html" title="org.apache.calcite.sql中的类">SqlDynamicParam</a>&nbsp;dynamicParam)</code>
<div class="block">Validates a dynamic parameter.</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateIdentifier-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.validate.SqlValidatorScope-">validateIdentifier</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a>&nbsp;id,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Resolves an identifier to a fully-qualified name.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateInsert-org.apache.calcite.sql.SqlInsert-">validateInsert</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlInsert.html" title="org.apache.calcite.sql中的类">SqlInsert</a>&nbsp;insert)</code>
<div class="block">Validates an INSERT statement.</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateIntervalQualifier-org.apache.calcite.sql.SqlIntervalQualifier-">validateIntervalQualifier</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类">SqlIntervalQualifier</a>&nbsp;qualifier)</code>
<div class="block">Validates a <a href="../../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类"><code>SqlIntervalQualifier</code></a></div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateLiteral-org.apache.calcite.sql.SqlLiteral-">validateLiteral</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;literal)</code>
<div class="block">Validates a literal.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateMatchRecognize-org.apache.calcite.sql.SqlCall-">validateMatchRecognize</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;pattern)</code>
<div class="block">Validates a MATCH_RECOGNIZE clause.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateMerge-org.apache.calcite.sql.SqlMerge-">validateMerge</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlMerge.html" title="org.apache.calcite.sql中的类">SqlMerge</a>&nbsp;merge)</code>
<div class="block">Validates a MERGE statement.</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateModality-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.validate.SqlModality-boolean-">validateModality</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select,
<a href="../../../../../org/apache/calcite/sql/validate/SqlModality.html" title="org.apache.calcite.sql.validate中的枚举">SqlModality</a>&nbsp;modality,
boolean&nbsp;fail)</code>
<div class="block">Validates that a query is capable of producing a return of given modality
(relational or streaming).</div>
</td>
</tr>
<tr id="i68" class="altColor">
<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/sql/validate/SqlValidator.html#validateParameterizedExpression-org.apache.calcite.sql.SqlNode-java.util.Map-">validateParameterizedExpression</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;topNode,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="java.util中的类或接口">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;nameToTypeMap)</code>
<div class="block">Validates an expression tree.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><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></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;targetRowType)</code>
<div class="block">Checks that a query is valid.</div>
</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateSequenceValue-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlIdentifier-">validateSequenceValue</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a>&nbsp;id)</code>&nbsp;</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateUpdate-org.apache.calcite.sql.SqlUpdate-">validateUpdate</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlUpdate.html" title="org.apache.calcite.sql中的类">SqlUpdate</a>&nbsp;update)</code>
<div class="block">Validates an UPDATE statement.</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><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></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;windowOrId,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call)</code>
<div class="block">Validates the right-hand side of an OVER expression.</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateWith-org.apache.calcite.sql.SqlWith-org.apache.calcite.sql.validate.SqlValidatorScope-">validateWith</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlWith.html" title="org.apache.calcite.sql中的类">SqlWith</a>&nbsp;with,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>&nbsp;</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateWithItem-org.apache.calcite.sql.SqlWithItem-">validateWithItem</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlWithItem.html" title="org.apache.calcite.sql中的类">SqlWithItem</a>&nbsp;withItem)</code>&nbsp;</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="getConformance--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getConformance</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlConformance.html" title="org.apache.calcite.sql.validate中的接口">SqlConformance</a>&nbsp;getConformance()</pre>
<div class="block">Returns the dialect of SQL (SQL:2003, etc.) this validator recognizes.
Default is <a href="../../../../../org/apache/calcite/sql/validate/SqlConformanceEnum.html#DEFAULT"><code>SqlConformanceEnum.DEFAULT</code></a>.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>dialect of SQL this validator recognizes</dd>
</dl>
</li>
</ul>
<a name="getCatalogReader--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCatalogReader</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorCatalogReader</a>&nbsp;getCatalogReader()</pre>
<div class="block">Returns the catalog reader used by this validator.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>catalog reader</dd>
</dl>
</li>
</ul>
<a name="getOperatorTable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOperatorTable</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="org.apache.calcite.sql中的接口">SqlOperatorTable</a>&nbsp;getOperatorTable()</pre>
<div class="block">Returns the operator table used by this validator.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>operator table</dd>
</dl>
</li>
</ul>
<a name="validate-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validate</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;validate(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;topNode)</pre>
<div class="block">Validates an expression tree. You can call this method multiple times,
but not reentrantly.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>topNode</code> - top of expression tree to be validated</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>validated tree (possibly rewritten)</dd>
</dl>
</li>
</ul>
<a name="validateParameterizedExpression-org.apache.calcite.sql.SqlNode-java.util.Map-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateParameterizedExpression</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;validateParameterizedExpression(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;topNode,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="java.util中的类或接口">Map</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;nameToTypeMap)</pre>
<div class="block">Validates an expression tree. You can call this method multiple times,
but not reentrantly.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>topNode</code> - top of expression tree to be validated</dd>
<dd><code>nameToTypeMap</code> - map of simple name to <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口"><code>RelDataType</code></a>; used to
resolve <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a> references</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>validated tree (possibly rewritten)</dd>
</dl>
</li>
</ul>
<a name="validateQuery-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.rel.type.RelDataType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateQuery</h4>
<pre>void&nbsp;validateQuery(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;targetRowType)</pre>
<div class="block">Checks that a query is valid.
<p>Valid queries include:
<ul>
<li><code>SELECT</code> statement,
<li>set operation (<code>UNION</code>, <code>INTERSECT</code>, <code>
EXCEPT</code>)
<li>identifier (e.g. representing use of a table in a FROM clause)
<li>query aliased with the <code>AS</code> operator
</ul></div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - Query node</dd>
<dd><code>scope</code> - Scope in which the query occurs</dd>
<dd><code>targetRowType</code> - Desired row type, must not be null, may be the data
type 'unknown'.</dd>
<dt><span class="throwsLabel">抛出:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="java.lang中的类或接口">RuntimeException</a></code> - if the query is not valid</dd>
</dl>
</li>
</ul>
<a name="getValidatedNodeType-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValidatedNodeType</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;getValidatedNodeType(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Returns the type assigned to a node by validation.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - the node of interest</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>validated type, never null</dd>
</dl>
</li>
</ul>
<a name="getValidatedNodeTypeIfKnown-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValidatedNodeTypeIfKnown</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;getValidatedNodeTypeIfKnown(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Returns the type assigned to a node by validation, or null if unknown.
This allows for queries against nodes such as aliases, which have no type
of their own. If you want to assert that the node of interest must have a
type, use <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getValidatedNodeType-org.apache.calcite.sql.SqlNode-"><code>getValidatedNodeType(org.apache.calcite.sql.SqlNode)</code></a> instead.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - the node of interest</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>validated type, or null if unknown or not applicable</dd>
</dl>
</li>
</ul>
<a name="validateIdentifier-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateIdentifier</h4>
<pre>void&nbsp;validateIdentifier(<a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a>&nbsp;id,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block">Resolves an identifier to a fully-qualified name.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>id</code> - Identifier</dd>
<dd><code>scope</code> - Naming scope</dd>
</dl>
</li>
</ul>
<a name="validateLiteral-org.apache.calcite.sql.SqlLiteral-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateLiteral</h4>
<pre>void&nbsp;validateLiteral(<a href="../../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;literal)</pre>
<div class="block">Validates a literal.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>literal</code> - Literal</dd>
</dl>
</li>
</ul>
<a name="validateIntervalQualifier-org.apache.calcite.sql.SqlIntervalQualifier-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateIntervalQualifier</h4>
<pre>void&nbsp;validateIntervalQualifier(<a href="../../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类">SqlIntervalQualifier</a>&nbsp;qualifier)</pre>
<div class="block">Validates a <a href="../../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类"><code>SqlIntervalQualifier</code></a></div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>qualifier</code> - Interval qualifier</dd>
</dl>
</li>
</ul>
<a name="validateInsert-org.apache.calcite.sql.SqlInsert-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateInsert</h4>
<pre>void&nbsp;validateInsert(<a href="../../../../../org/apache/calcite/sql/SqlInsert.html" title="org.apache.calcite.sql中的类">SqlInsert</a>&nbsp;insert)</pre>
<div class="block">Validates an INSERT statement.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>insert</code> - INSERT statement</dd>
</dl>
</li>
</ul>
<a name="validateUpdate-org.apache.calcite.sql.SqlUpdate-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateUpdate</h4>
<pre>void&nbsp;validateUpdate(<a href="../../../../../org/apache/calcite/sql/SqlUpdate.html" title="org.apache.calcite.sql中的类">SqlUpdate</a>&nbsp;update)</pre>
<div class="block">Validates an UPDATE statement.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>update</code> - UPDATE statement</dd>
</dl>
</li>
</ul>
<a name="validateDelete-org.apache.calcite.sql.SqlDelete-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateDelete</h4>
<pre>void&nbsp;validateDelete(<a href="../../../../../org/apache/calcite/sql/SqlDelete.html" title="org.apache.calcite.sql中的类">SqlDelete</a>&nbsp;delete)</pre>
<div class="block">Validates a DELETE statement.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>delete</code> - DELETE statement</dd>
</dl>
</li>
</ul>
<a name="validateMerge-org.apache.calcite.sql.SqlMerge-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateMerge</h4>
<pre>void&nbsp;validateMerge(<a href="../../../../../org/apache/calcite/sql/SqlMerge.html" title="org.apache.calcite.sql中的类">SqlMerge</a>&nbsp;merge)</pre>
<div class="block">Validates a MERGE statement.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>merge</code> - MERGE statement</dd>
</dl>
</li>
</ul>
<a name="validateDataType-org.apache.calcite.sql.SqlDataTypeSpec-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateDataType</h4>
<pre>void&nbsp;validateDataType(<a href="../../../../../org/apache/calcite/sql/SqlDataTypeSpec.html" title="org.apache.calcite.sql中的类">SqlDataTypeSpec</a>&nbsp;dataType)</pre>
<div class="block">Validates a data type expression.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>dataType</code> - Data type</dd>
</dl>
</li>
</ul>
<a name="validateDynamicParam-org.apache.calcite.sql.SqlDynamicParam-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateDynamicParam</h4>
<pre>void&nbsp;validateDynamicParam(<a href="../../../../../org/apache/calcite/sql/SqlDynamicParam.html" title="org.apache.calcite.sql中的类">SqlDynamicParam</a>&nbsp;dynamicParam)</pre>
<div class="block">Validates a dynamic parameter.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>dynamicParam</code> - Dynamic parameter</dd>
</dl>
</li>
</ul>
<a name="validateWindow-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlCall-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateWindow</h4>
<pre>void&nbsp;validateWindow(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;windowOrId,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call)</pre>
<div class="block">Validates the right-hand side of an OVER expression. It might be either
an <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>identifier</code></a> referencing a window, or an
<a href="../../../../../org/apache/calcite/sql/SqlWindow.html" title="org.apache.calcite.sql中的类"><code>inline window specification</code></a>.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>windowOrId</code> - SqlNode that can be either SqlWindow with all the
components of a window spec or a SqlIdentifier with the
name of a window spec.</dd>
<dd><code>scope</code> - Naming scope</dd>
<dd><code>call</code> - the SqlNode if a function call if the window is attached
to one.</dd>
</dl>
</li>
</ul>
<a name="validateMatchRecognize-org.apache.calcite.sql.SqlCall-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateMatchRecognize</h4>
<pre>void&nbsp;validateMatchRecognize(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;pattern)</pre>
<div class="block">Validates a MATCH_RECOGNIZE clause.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>pattern</code> - MATCH_RECOGNIZE clause</dd>
</dl>
</li>
</ul>
<a name="validateCall-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateCall</h4>
<pre>void&nbsp;validateCall(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block">Validates a call to an operator.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>call</code> - Operator call</dd>
<dd><code>scope</code> - Naming scope</dd>
</dl>
</li>
</ul>
<a name="validateAggregateParams-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.SqlNodeList-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateAggregateParams</h4>
<pre>void&nbsp;validateAggregateParams(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;aggCall,
<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;filter,
<a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="org.apache.calcite.sql中的类">SqlNodeList</a>&nbsp;orderList,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block">Validates parameters for aggregate function.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>aggCall</code> - Call to aggregate function</dd>
<dd><code>filter</code> - Filter (<code>FILTER (WHERE)</code> clause), or null</dd>
<dd><code>orderList</code> - Ordering specification (<code>WITHING GROUP</code> clause),
or null</dd>
<dd><code>scope</code> - Syntactic scope</dd>
</dl>
</li>
</ul>
<a name="validateColumnListParams-org.apache.calcite.sql.SqlFunction-java.util.List-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateColumnListParams</h4>
<pre>void&nbsp;validateColumnListParams(<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;function,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;argTypes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&gt;&nbsp;operands)</pre>
<div class="block">Validates a COLUMN_LIST parameter</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>function</code> - function containing COLUMN_LIST parameter</dd>
<dd><code>argTypes</code> - function arguments</dd>
<dd><code>operands</code> - operands passed into the function call</dd>
</dl>
</li>
</ul>
<a name="makeNullaryCall-org.apache.calcite.sql.SqlIdentifier-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNullaryCall</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/javax/annotation/Nullable.html?is-external=true" title="javax.annotation中的类或接口">@Nullable</a>
<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;makeNullaryCall(<a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a>&nbsp;id)</pre>
<div class="block">If an identifier is a legitimate call to a function that has no
arguments and requires no parentheses (for example "CURRENT_USER"),
returns a call to that function, otherwise returns null.</div>
</li>
</ul>
<a name="deriveType-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deriveType</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;deriveType(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;operand)</pre>
<div class="block">Derives the type of a node in a given scope. If the type has already been
inferred, returns the previous type.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>scope</code> - Syntactic scope</dd>
<dd><code>operand</code> - Parse tree node</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Type of the SqlNode. Should never return <code>NULL</code></dd>
</dl>
</li>
</ul>
<a name="newValidationError-org.apache.calcite.sql.SqlNode-org.apache.calcite.runtime.Resources.ExInst-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newValidationError</h4>
<pre><a href="../../../../../org/apache/calcite/runtime/CalciteContextException.html" title="org.apache.calcite.runtime中的类">CalciteContextException</a>&nbsp;newValidationError(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
org.apache.calcite.runtime.Resources.ExInst&lt;<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorException.html" title="org.apache.calcite.sql.validate中的类">SqlValidatorException</a>&gt;&nbsp;e)</pre>
<div class="block">Adds "line x, column y" context to a validator exception.
<p>Note that the input exception is checked (it derives from
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="java.lang中的类或接口"><code>Exception</code></a>) and the output exception is unchecked (it derives from
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="java.lang中的类或接口"><code>RuntimeException</code></a>). This is intentional -- it should remind code
authors to provide context for their validation errors.</p></div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - The place where the exception occurred, not null</dd>
<dd><code>e</code> - The validation error</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Exception containing positional information, never null</dd>
</dl>
</li>
</ul>
<a name="isAggregate-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAggregate</h4>
<pre>boolean&nbsp;isAggregate(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns whether a SELECT statement is an aggregation. Criteria are: (1)
contains GROUP BY, or (2) contains HAVING, or (3) SELECT or ORDER BY
clause contains aggregate functions. (Windowed aggregate functions, such
as <code>SUM(x) OVER w</code>, don't count.)</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether SELECT statement is an aggregation</dd>
</dl>
</li>
</ul>
<a name="isAggregate-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAggregate</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
boolean&nbsp;isAggregate(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;selectNode)</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
<div class="block">Returns whether a select list expression is an aggregate function.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>selectNode</code> - Expression in SELECT clause</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether expression is an aggregate function</dd>
</dl>
</li>
</ul>
<a name="resolveWindow-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resolveWindow</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlWindow.html" title="org.apache.calcite.sql中的类">SqlWindow</a>&nbsp;resolveWindow(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;windowOrRef,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
boolean&nbsp;populateBounds)</pre>
<div class="block">Converts a window specification or window name into a fully-resolved
window specification. For example, in <code>SELECT sum(x) OVER (PARTITION
BY x ORDER BY y), sum(y) OVER w1, sum(z) OVER (w ORDER BY y) FROM t
WINDOW w AS (PARTITION BY x)</code> all aggregations have the same
resolved window specification <code>(PARTITION BY x ORDER BY y)</code>.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>windowOrRef</code> - Either the name of a window (a <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类"><code>SqlIdentifier</code></a>)
or a window specification (a <a href="../../../../../org/apache/calcite/sql/SqlWindow.html" title="org.apache.calcite.sql中的类"><code>SqlWindow</code></a>).</dd>
<dd><code>scope</code> - Scope in which to resolve window names</dd>
<dd><code>populateBounds</code> - Whether to populate bounds. Doing so may alter the
definition of the window. It is recommended that
populate bounds when translating to physical algebra,
but not when validating.</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>A window</dd>
<dt><span class="throwsLabel">抛出:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="java.lang中的类或接口">RuntimeException</a></code> - Validation exception if window does not exist</dd>
</dl>
</li>
</ul>
<a name="getNamespace-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNamespace</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorNamespace</a>&nbsp;getNamespace(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Finds the namespace corresponding to a given node.
<p>For example, in the query <code>SELECT * FROM (SELECT * FROM t), t1 AS
alias</code>, the both items in the FROM clause have a corresponding
namespace.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - Parse tree node</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>namespace of node</dd>
</dl>
</li>
</ul>
<a name="deriveAlias-org.apache.calcite.sql.SqlNode-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deriveAlias</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;deriveAlias(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
int&nbsp;ordinal)</pre>
<div class="block">Derives an alias for an expression. If no alias can be derived, returns
null if <code>ordinal</code> is less than zero, otherwise generates an
alias <code>EXPR$<i>ordinal</i></code>.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - Expression</dd>
<dd><code>ordinal</code> - Ordinal of expression</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>derived alias, or null if no alias can be derived and ordinal is
less than zero</dd>
</dl>
</li>
</ul>
<a name="expandStar-org.apache.calcite.sql.SqlNodeList-org.apache.calcite.sql.SqlSelect-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>expandStar</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="org.apache.calcite.sql中的类">SqlNodeList</a>&nbsp;expandStar(<a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="org.apache.calcite.sql中的类">SqlNodeList</a>&nbsp;selectList,
<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;query,
boolean&nbsp;includeSystemVars)</pre>
<div class="block">Returns a list of expressions, with every occurrence of "&#42;" or
"TABLE.&#42;" expanded.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>selectList</code> - Select clause to be expanded</dd>
<dd><code>query</code> - Query</dd>
<dd><code>includeSystemVars</code> - Whether to include system variables</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>expanded select clause</dd>
</dl>
</li>
</ul>
<a name="getWhereScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWhereScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getWhereScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns the scope that expressions in the WHERE and GROUP BY clause of
this query should use. This scope consists of the tables in the FROM
clause, and the enclosing scope.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - Query</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope of WHERE clause</dd>
</dl>
</li>
</ul>
<a name="getTypeFactory--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeFactory</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a>&nbsp;getTypeFactory()</pre>
<div class="block">Returns the type factory used by this validator.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>type factory</dd>
</dl>
</li>
</ul>
<a name="setValidatedNodeType-org.apache.calcite.sql.SqlNode-org.apache.calcite.rel.type.RelDataType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValidatedNodeType</h4>
<pre>void&nbsp;setValidatedNodeType(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;type)</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;<span class="deprecationComment">This method should not be in the <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口"><code>SqlValidator</code></a>
interface. The validator should drive the type-derivation process, and
store nodes' types when they have been derived.</span></div>
<div class="block">Saves the type of a <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>SqlNode</code></a>, now that it has been validated.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - A SQL parse tree node, never null</dd>
<dd><code>type</code> - Its type; must not be null</dd>
</dl>
</li>
</ul>
<a name="removeValidatedNodeType-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeValidatedNodeType</h4>
<pre>void&nbsp;removeValidatedNodeType(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Removes a node from the set of validated nodes</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - node to be removed</dd>
</dl>
</li>
</ul>
<a name="getUnknownType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUnknownType</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;getUnknownType()</pre>
<div class="block">Returns an object representing the "unknown" type.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>unknown type</dd>
</dl>
</li>
</ul>
<a name="getSelectScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSelectScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getSelectScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns the appropriate scope for validating a particular clause of a
SELECT statement.
<p>Consider</p>
<blockquote><pre><code>SELECT *
FROM foo
WHERE EXISTS (
SELECT deptno AS x
FROM emp
JOIN dept ON emp.deptno = dept.deptno
WHERE emp.deptno = 5
GROUP BY deptno
ORDER BY x)</code></pre></blockquote>
<p>What objects can be seen in each part of the sub-query?</p>
<ul>
<li>In FROM (<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFromScope-org.apache.calcite.sql.SqlSelect-"><code>getFromScope(org.apache.calcite.sql.SqlSelect)</code></a> , you can only see 'foo'.
<li>In WHERE (<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getWhereScope-org.apache.calcite.sql.SqlSelect-"><code>getWhereScope(org.apache.calcite.sql.SqlSelect)</code></a>), GROUP BY (<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getGroupScope-org.apache.calcite.sql.SqlSelect-"><code>getGroupScope(org.apache.calcite.sql.SqlSelect)</code></a>),
SELECT (<code>getSelectScope</code>), and the ON clause of the JOIN
(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getJoinScope-org.apache.calcite.sql.SqlNode-"><code>getJoinScope(org.apache.calcite.sql.SqlNode)</code></a>) you can see 'emp', 'dept', and 'foo'.
<li>In ORDER BY (<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getOrderScope-org.apache.calcite.sql.SqlSelect-"><code>getOrderScope(org.apache.calcite.sql.SqlSelect)</code></a>), you can see the column alias 'x';
and tables 'emp', 'dept', and 'foo'.
</ul></div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for SELECT statement</dd>
</dl>
</li>
</ul>
<a name="getRawSelectScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRawSelectScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SelectScope.html" title="org.apache.calcite.sql.validate中的类">SelectScope</a>&nbsp;getRawSelectScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns the scope for resolving the SELECT, GROUP BY and HAVING clauses.
Always a <a href="../../../../../org/apache/calcite/sql/validate/SelectScope.html" title="org.apache.calcite.sql.validate中的类"><code>SelectScope</code></a>; if this is an aggregation query, the
<a href="../../../../../org/apache/calcite/sql/validate/AggregatingScope.html" title="org.apache.calcite.sql.validate中的接口"><code>AggregatingScope</code></a> is stripped away.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for SELECT statement, sans any aggregating scope</dd>
</dl>
</li>
</ul>
<a name="getFromScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFromScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getFromScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns a scope containing the objects visible from the FROM clause of a
query.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for FROM clause</dd>
</dl>
</li>
</ul>
<a name="getJoinScope-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getJoinScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getJoinScope(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Returns a scope containing the objects visible from the ON and USING
sections of a JOIN clause.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - The item in the FROM clause which contains the ON or USING
expression</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for JOIN clause</dd>
<dt><span class="seeLabel">另请参阅:</span></dt>
<dd><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getFromScope-org.apache.calcite.sql.SqlSelect-"><code>getFromScope(org.apache.calcite.sql.SqlSelect)</code></a></dd>
</dl>
</li>
</ul>
<a name="getGroupScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGroupScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getGroupScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns a scope containing the objects visible from the GROUP BY clause
of a query.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for GROUP BY clause</dd>
</dl>
</li>
</ul>
<a name="getHavingScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHavingScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getHavingScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns a scope containing the objects visible from the HAVING clause of
a query.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for HAVING clause</dd>
</dl>
</li>
</ul>
<a name="getOrderScope-org.apache.calcite.sql.SqlSelect-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOrderScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getOrderScope(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select)</pre>
<div class="block">Returns the scope that expressions in the SELECT and HAVING clause of
this query should use. This scope consists of the FROM clause and the
enclosing scope. If the query is aggregating, only columns in the GROUP
BY clause may be used.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - SELECT statement</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for ORDER BY clause</dd>
</dl>
</li>
</ul>
<a name="getMatchRecognizeScope-org.apache.calcite.sql.SqlMatchRecognize-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMatchRecognizeScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getMatchRecognizeScope(<a href="../../../../../org/apache/calcite/sql/SqlMatchRecognize.html" title="org.apache.calcite.sql中的类">SqlMatchRecognize</a>&nbsp;node)</pre>
<div class="block">Returns a scope match recognize clause.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - Match recognize</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>naming scope for Match recognize clause</dd>
</dl>
</li>
</ul>
<a name="declareCursor-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>declareCursor</h4>
<pre>void&nbsp;declareCursor(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block">Declares a SELECT expression as a cursor.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - select expression associated with the cursor</dd>
<dd><code>scope</code> - scope of the parent query associated with the cursor</dd>
</dl>
</li>
</ul>
<a name="pushFunctionCall--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pushFunctionCall</h4>
<pre>void&nbsp;pushFunctionCall()</pre>
<div class="block">Pushes a new instance of a function call on to a function call stack.</div>
</li>
</ul>
<a name="popFunctionCall--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>popFunctionCall</h4>
<pre>void&nbsp;popFunctionCall()</pre>
<div class="block">Removes the topmost entry from the function call stack.</div>
</li>
</ul>
<a name="getParentCursor-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParentCursor</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;getParentCursor(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;columnListParamName)</pre>
<div class="block">Retrieves the name of the parent cursor referenced by a column list
parameter.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>columnListParamName</code> - name of the column list parameter</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>name of the parent cursor</dd>
</dl>
</li>
</ul>
<a name="setIdentifierExpansion-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIdentifierExpansion</h4>
<pre>void&nbsp;setIdentifierExpansion(boolean&nbsp;expandIdentifiers)</pre>
<div class="block">Enables or disables expansion of identifiers other than column
references.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>expandIdentifiers</code> - new setting</dd>
</dl>
</li>
</ul>
<a name="setColumnReferenceExpansion-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setColumnReferenceExpansion</h4>
<pre>void&nbsp;setColumnReferenceExpansion(boolean&nbsp;expandColumnReferences)</pre>
<div class="block">Enables or disables expansion of column references. (Currently this does
not apply to the ORDER BY clause; may be fixed in the future.)</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>expandColumnReferences</code> - new setting</dd>
</dl>
</li>
</ul>
<a name="getColumnReferenceExpansion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getColumnReferenceExpansion</h4>
<pre>boolean&nbsp;getColumnReferenceExpansion()</pre>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether column reference expansion is enabled</dd>
</dl>
</li>
</ul>
<a name="setDefaultNullCollation-org.apache.calcite.config.NullCollation-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDefaultNullCollation</h4>
<pre>void&nbsp;setDefaultNullCollation(<a href="../../../../../org/apache/calcite/config/NullCollation.html" title="org.apache.calcite.config中的枚举">NullCollation</a>&nbsp;nullCollation)</pre>
<div class="block">Sets how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</li>
</ul>
<a name="getDefaultNullCollation--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultNullCollation</h4>
<pre><a href="../../../../../org/apache/calcite/config/NullCollation.html" title="org.apache.calcite.config中的枚举">NullCollation</a>&nbsp;getDefaultNullCollation()</pre>
<div class="block">Returns how NULL values should be collated if an ORDER BY item does not
contain NULLS FIRST or NULLS LAST.</div>
</li>
</ul>
<a name="shouldExpandIdentifiers--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shouldExpandIdentifiers</h4>
<pre>boolean&nbsp;shouldExpandIdentifiers()</pre>
<div class="block">Returns expansion of identifiers.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether this validator should expand identifiers</dd>
</dl>
</li>
</ul>
<a name="setCallRewrite-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCallRewrite</h4>
<pre>void&nbsp;setCallRewrite(boolean&nbsp;rewriteCalls)</pre>
<div class="block">Enables or disables rewrite of "macro-like" calls such as COALESCE.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>rewriteCalls</code> - new setting</dd>
</dl>
</li>
</ul>
<a name="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-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deriveConstructorType</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;deriveConstructorType(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call,
<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;unresolvedConstructor,
<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;resolvedConstructor,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;argTypes)</pre>
<div class="block">Derives the type of a constructor.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>scope</code> - Scope</dd>
<dd><code>call</code> - Call</dd>
<dd><code>unresolvedConstructor</code> - TODO</dd>
<dd><code>resolvedConstructor</code> - TODO</dd>
<dd><code>argTypes</code> - Types of arguments</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Resolved type of constructor</dd>
</dl>
</li>
</ul>
<a name="handleUnresolvedFunction-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlFunction-java.util.List-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleUnresolvedFunction</h4>
<pre><a href="../../../../../org/apache/calcite/runtime/CalciteException.html" title="org.apache.calcite.runtime中的类">CalciteException</a>&nbsp;handleUnresolvedFunction(<a href="../../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a>&nbsp;call,
<a href="../../../../../org/apache/calcite/sql/SqlFunction.html" title="org.apache.calcite.sql中的类">SqlFunction</a>&nbsp;unresolvedFunction,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&gt;&nbsp;argTypes,
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&gt;&nbsp;argNames)</pre>
<div class="block">Handles a call to a function which cannot be resolved. Returns a an
appropriately descriptive error, which caller must throw.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>call</code> - Call</dd>
<dd><code>unresolvedFunction</code> - Overloaded function which is the target of the
call</dd>
<dd><code>argTypes</code> - Types of arguments</dd>
<dd><code>argNames</code> - Names of arguments, or null if call by position</dd>
</dl>
</li>
</ul>
<a name="expandOrderExpr-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>expandOrderExpr</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;expandOrderExpr(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select,
<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;orderExpr)</pre>
<div class="block">Expands an expression in the ORDER BY clause into an expression with the
same semantics as expressions in the SELECT clause.
<p>This is made necessary by a couple of dialect 'features':
<ul>
<li><b>ordinal expressions</b>: In "SELECT x, y FROM t ORDER BY 2", the
expression "2" is shorthand for the 2nd item in the select clause, namely
"y".
<li><b>alias references</b>: In "SELECT x AS a, y FROM t ORDER BY a", the
expression "a" is shorthand for the item in the select clause whose alias
is "a"
</ul></div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - Select statement which contains ORDER BY</dd>
<dd><code>orderExpr</code> - Expression in the ORDER BY clause.</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Expression translated into SELECT clause semantics</dd>
</dl>
</li>
</ul>
<a name="expand-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>expand</h4>
<pre><a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;expand(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;expr,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block">Expands an expression.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>expr</code> - Expression</dd>
<dd><code>scope</code> - Scope</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Expanded expression</dd>
</dl>
</li>
</ul>
<a name="isSystemField-org.apache.calcite.rel.type.RelDataTypeField-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSystemField</h4>
<pre>boolean&nbsp;isSystemField(<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeField</a>&nbsp;field)</pre>
<div class="block">Returns whether a field is a system field. Such fields may have
particular properties such as sortedness and nullability.
<p>In the default implementation, always returns <code>false</code>.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>field</code> - Field</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether field is a system field</dd>
</dl>
</li>
</ul>
<a name="getFieldOrigins-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFieldOrigins</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="java.util中的类或接口">List</a>&lt;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&gt;&gt;&nbsp;getFieldOrigins(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;sqlQuery)</pre>
<div class="block">Returns a description of how each field in the row type maps to a
catalog, schema, table and column in the schema.
<p>The returned list is never null, and has one element for each field
in the row type. Each element is a list of four elements (catalog,
schema, table, column), or may be null if the column is an expression.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>sqlQuery</code> - Query</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Description of how each field in the row type maps to a schema
object</dd>
</dl>
</li>
</ul>
<a name="getParameterRowType-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getParameterRowType</h4>
<pre><a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;getParameterRowType(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;sqlQuery)</pre>
<div class="block">Returns a record type that contains the name and type of each parameter.
Returns a record type with no fields if there are no parameters.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>sqlQuery</code> - Query</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Record type</dd>
</dl>
</li>
</ul>
<a name="getOverScope-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOverScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getOverScope(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Returns the scope of an OVER or VALUES node.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>node</code> - Node</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Scope</dd>
</dl>
</li>
</ul>
<a name="validateModality-org.apache.calcite.sql.SqlSelect-org.apache.calcite.sql.validate.SqlModality-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateModality</h4>
<pre>boolean&nbsp;validateModality(<a href="../../../../../org/apache/calcite/sql/SqlSelect.html" title="org.apache.calcite.sql中的类">SqlSelect</a>&nbsp;select,
<a href="../../../../../org/apache/calcite/sql/validate/SqlModality.html" title="org.apache.calcite.sql.validate中的枚举">SqlModality</a>&nbsp;modality,
boolean&nbsp;fail)</pre>
<div class="block">Validates that a query is capable of producing a return of given modality
(relational or streaming).</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>select</code> - Query</dd>
<dd><code>modality</code> - Modality (streaming or relational)</dd>
<dd><code>fail</code> - Whether to throw a user error if does not support required
modality</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether query supports the given modality</dd>
</dl>
</li>
</ul>
<a name="validateWith-org.apache.calcite.sql.SqlWith-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateWith</h4>
<pre>void&nbsp;validateWith(<a href="../../../../../org/apache/calcite/sql/SqlWith.html" title="org.apache.calcite.sql中的类">SqlWith</a>&nbsp;with,
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
</li>
</ul>
<a name="validateWithItem-org.apache.calcite.sql.SqlWithItem-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateWithItem</h4>
<pre>void&nbsp;validateWithItem(<a href="../../../../../org/apache/calcite/sql/SqlWithItem.html" title="org.apache.calcite.sql中的类">SqlWithItem</a>&nbsp;withItem)</pre>
</li>
</ul>
<a name="validateSequenceValue-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.SqlIdentifier-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validateSequenceValue</h4>
<pre>void&nbsp;validateSequenceValue(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope,
<a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a>&nbsp;id)</pre>
</li>
</ul>
<a name="getWithScope-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWithScope</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;getWithScope(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;withItem)</pre>
</li>
</ul>
<a name="setLenientOperatorLookup-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLenientOperatorLookup</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a>&nbsp;setLenientOperatorLookup(boolean&nbsp;lenient)</pre>
<div class="block">Sets whether this validator should be lenient upon encountering an unknown
function.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>lenient</code> - Whether to be lenient when encountering an unknown function</dd>
</dl>
</li>
</ul>
<a name="isLenientOperatorLookup--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLenientOperatorLookup</h4>
<pre>boolean&nbsp;isLenientOperatorLookup()</pre>
<div class="block">Returns whether this validator should be lenient upon encountering an
unknown function.
<p>If true, if a statement contains a call to a function that is not
present in the operator table, or if the call does not have the required
number or types of operands, the validator nevertheless regards the
statement as valid. The type of the function call will be
<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html#getUnknownType--"><code>UNKNOWN</code></a>.
<p>If false (the default behavior), an unknown function call causes a
validation error to be thrown.</div>
</li>
</ul>
<a name="setEnableTypeCoercion-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEnableTypeCoercion</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a>&nbsp;setEnableTypeCoercion(boolean&nbsp;enabled)</pre>
<div class="block">Sets enable or disable implicit type coercion when the validator does validation.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>enabled</code> - if enable the type coercion, default is true</dd>
<dt><span class="seeLabel">另请参阅:</span></dt>
<dd><a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercionImpl.html" title="org.apache.calcite.sql.validate.implicit中的类"><code>TypeCoercionImpl</code></a></dd>
</dl>
</li>
</ul>
<a name="isTypeCoercionEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isTypeCoercionEnabled</h4>
<pre>boolean&nbsp;isTypeCoercionEnabled()</pre>
<div class="block">Returns if this validator supports implicit type coercion.</div>
</li>
</ul>
<a name="setTypeCoercion-org.apache.calcite.sql.validate.implicit.TypeCoercion-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTypeCoercion</h4>
<pre>void&nbsp;setTypeCoercion(<a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercion.html" title="org.apache.calcite.sql.validate.implicit中的接口">TypeCoercion</a>&nbsp;typeCoercion)</pre>
<div class="block">Sets an instance of type coercion, you can customize the coercion rules to
override the default ones defined in
<a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercionImpl.html" title="org.apache.calcite.sql.validate.implicit中的类"><code>TypeCoercionImpl</code></a>.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>typeCoercion</code> - <a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercion.html" title="org.apache.calcite.sql.validate.implicit中的接口"><code>TypeCoercion</code></a> instance</dd>
</dl>
</li>
</ul>
<a name="getTypeCoercion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeCoercion</h4>
<pre><a href="../../../../../org/apache/calcite/sql/validate/implicit/TypeCoercion.html" title="org.apache.calcite.sql.validate.implicit中的接口">TypeCoercion</a>&nbsp;getTypeCoercion()</pre>
<div class="block">Get the type coercion instance.</div>
</li>
</ul>
<a name="setSqlTypeCoercionRules-org.apache.calcite.sql.type.SqlTypeCoercionRule-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setSqlTypeCoercionRules</h4>
<pre>void&nbsp;setSqlTypeCoercionRules(<a href="../../../../../org/apache/calcite/sql/type/SqlTypeCoercionRule.html" title="org.apache.calcite.sql.type中的类">SqlTypeCoercionRule</a>&nbsp;typeCoercionRules)</pre>
<div class="block">Sets the <a href="../../../../../org/apache/calcite/sql/type/SqlTypeCoercionRule.html" title="org.apache.calcite.sql.type中的类"><code>SqlTypeCoercionRule</code></a> instance which defines the type conversion matrix
for the explicit type coercion.
<p>The <code>typeCoercionRules</code> setting should be thread safe.
In the default implementation,
the <code>typeCoercionRules</code> is set to a ThreadLocal variable.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>typeCoercionRules</code> - The <a href="../../../../../org/apache/calcite/sql/type/SqlTypeCoercionRule.html" title="org.apache.calcite.sql.type中的类"><code>SqlTypeCoercionRule</code></a> instance, see its documentation
for how to customize the rules.</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/SqlUserDefinedTableMacro.html" title="org.apache.calcite.sql.validate中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.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/SqlValidator.html" target="_top">框架</a></li>
<li><a href="SqlValidator.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>概要:&nbsp;</li>
<li>嵌套&nbsp;|&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</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 &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>