blob: 66b9d9bd5f5ff44dad1fe1addd4aee62ff80571f [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>SqlValidatorNamespace (Apache Calcite API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="SqlValidatorNamespace (Apache Calcite API)";
}
}
catch(err) {
}
//-->
var data = {"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":38,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SqlValidatorNamespace.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.sql.validate</a></div>
<h2 title="Interface SqlValidatorNamespace" class="title">Interface SqlValidatorNamespace</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="AbstractNamespace.html" title="class in org.apache.calcite.sql.validate">AbstractNamespace</a></code>, <code><a href="AliasNamespace.html" title="class in org.apache.calcite.sql.validate">AliasNamespace</a></code>, <code><a href="CollectNamespace.html" title="class in org.apache.calcite.sql.validate">CollectNamespace</a></code>, <code><a href="DelegatingNamespace.html" title="class in org.apache.calcite.sql.validate">DelegatingNamespace</a></code>, <code><a href="FieldNamespace.html" title="class in org.apache.calcite.sql.validate">FieldNamespace</a></code>, <code><a href="IdentifierNamespace.html" title="class in org.apache.calcite.sql.validate">IdentifierNamespace</a></code>, <code><a href="JoinNamespace.html" title="class in org.apache.calcite.sql.validate">JoinNamespace</a></code>, <code><a href="MatchRecognizeNamespace.html" title="class in org.apache.calcite.sql.validate">MatchRecognizeNamespace</a></code>, <code><a href="ParameterNamespace.html" title="class in org.apache.calcite.sql.validate">ParameterNamespace</a></code>, <code><a href="ProcedureNamespace.html" title="class in org.apache.calcite.sql.validate">ProcedureNamespace</a></code>, <code><a href="SchemaNamespace.html" title="class in org.apache.calcite.sql.validate">SchemaNamespace</a></code>, <code><a href="SelectNamespace.html" title="class in org.apache.calcite.sql.validate">SelectNamespace</a></code>, <code><a href="SetopNamespace.html" title="class in org.apache.calcite.sql.validate">SetopNamespace</a></code>, <code><a href="SqlValidatorImpl.DeleteNamespace.html" title="class in org.apache.calcite.sql.validate">SqlValidatorImpl.DeleteNamespace</a></code>, <code><a href="SqlValidatorImpl.DmlNamespace.html" title="class in org.apache.calcite.sql.validate">SqlValidatorImpl.DmlNamespace</a></code>, <code><a href="SqlValidatorImpl.InsertNamespace.html" title="class in org.apache.calcite.sql.validate">SqlValidatorImpl.InsertNamespace</a></code>, <code><a href="SqlValidatorImpl.MergeNamespace.html" title="class in org.apache.calcite.sql.validate">SqlValidatorImpl.MergeNamespace</a></code>, <code><a href="SqlValidatorImpl.UpdateNamespace.html" title="class in org.apache.calcite.sql.validate">SqlValidatorImpl.UpdateNamespace</a></code>, <code><a href="TableConstructorNamespace.html" title="class in org.apache.calcite.sql.validate">TableConstructorNamespace</a></code>, <code><a href="TableNamespace.html" title="class in org.apache.calcite.sql.validate">TableNamespace</a></code>, <code><a href="UnnestNamespace.html" title="class in org.apache.calcite.sql.validate">UnnestNamespace</a></code>, <code><a href="WithItemNamespace.html" title="class in org.apache.calcite.sql.validate">WithItemNamespace</a></code>, <code><a href="WithNamespace.html" title="class in org.apache.calcite.sql.validate">WithNamespace</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">SqlValidatorNamespace</span></pre>
<div class="block">A namespace describes the relation returned by a section of a SQL query.
<p>For example, in the query <code>SELECT emp.deptno, age FROM emp,
dept</code>, the FROM clause forms a namespace consisting of two tables EMP
and DEPT, and a row type consisting of the combined columns of those tables.
<p>Other examples of namespaces include a table in the from list (the
namespace contains the constituent columns) and a sub-query (the namespace
contains the columns in the SELECT clause of the sub-query).
<p>These various kinds of namespace are implemented by classes
<a href="IdentifierNamespace.html" title="class in org.apache.calcite.sql.validate"><code>IdentifierNamespace</code></a> for table names, <a href="SelectNamespace.html" title="class in org.apache.calcite.sql.validate"><code>SelectNamespace</code></a> for
SELECT queries, <a href="SetopNamespace.html" title="class in org.apache.calcite.sql.validate"><code>SetopNamespace</code></a> for UNION, EXCEPT and INTERSECT, and
so forth. But if you are looking at a SELECT query and call
<a href="SqlValidator.html#getNamespace(org.apache.calcite.sql.SqlNode)"><code>SqlValidator.getNamespace(org.apache.calcite.sql.SqlNode)</code></a>, you may
not get a SelectNamespace. Why? Because the validator is allowed to wrap
namespaces in other objects which implement
<a href="SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidatorNamespace</code></a>. Your SelectNamespace will be there somewhere,
but might be one or two levels deep. Don't try to cast the namespace or use
<code>instanceof</code>; use <a href="#unwrap(java.lang.Class)"><code>unwrap(Class)</code></a> and
<a href="#isWrapperFor(java.lang.Class)"><code>isWrapperFor(Class)</code></a> instead.</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="SqlValidator.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidator</code></a>,
<a href="SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidatorScope</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fieldExists(java.lang.String)">fieldExists</a></span>&#8203;(java.lang.String&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Returns whether this namespace has a field of a given name.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getEnclosingNode()">getEnclosingNode</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the parse tree node that at is at the root of this namespace and
includes all decorations.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.util.List&lt;<a href="../../util/Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;<a href="../SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>,&#8203;<a href="SqlMonotonicity.html" title="enum in org.apache.calcite.sql.validate">SqlMonotonicity</a>&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMonotonicExprs()">getMonotonicExprs</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns a list of expressions which are monotonic in this namespace.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="SqlMonotonicity.html" title="enum in org.apache.calcite.sql.validate">SqlMonotonicity</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMonotonicity(java.lang.String)">getMonotonicity</a></span>&#8203;(java.lang.String&nbsp;columnName)</code></th>
<td class="colLast">
<div class="block">Returns whether and how a given column is sorted.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNode()">getNode</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the parse tree node at the root of this namespace.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRowType()">getRowType</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the row type of this namespace, which comprises a list of names
and types of the output columns.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRowTypeSansSystemColumns()">getRowTypeSansSystemColumns</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the row type of this namespace, sans any system columns.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="SqlValidatorTable.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorTable</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTable()">getTable</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the underlying table, or null if there is none.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getType()">getType</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the type of this namespace.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="SqlValidator.html" title="interface in org.apache.calcite.sql.validate">SqlValidator</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getValidator()">getValidator</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the validator.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isWrapperFor(java.lang.Class)">isWrapperFor</a></span>&#8203;(java.lang.Class&lt;?&gt;&nbsp;clazz)</code></th>
<td class="colLast">
<div class="block">Returns whether this namespace implements a given interface, or wraps a
class which does.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#lookupChild(java.lang.String)">lookupChild</a></span>&#8203;(java.lang.String&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Looks up a child namespace of a given name.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeNullable()">makeNullable</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code><a href="SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#resolve()">resolve</a></span>()</code></th>
<td class="colLast">
<div class="block">If this namespace resolves to another namespace, returns that namespace,
following links to the end of the chain.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setType(org.apache.calcite.rel.type.RelDataType)">setType</a></span>&#8203;(<a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Sets the type of this namespace.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#supportsModality(org.apache.calcite.sql.validate.SqlModality)">supportsModality</a></span>&#8203;(<a href="SqlModality.html" title="enum in org.apache.calcite.sql.validate">SqlModality</a>&nbsp;modality)</code></th>
<td class="colLast">
<div class="block">Returns whether this namespace is capable of giving results of the desired
modality.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unwrap(java.lang.Class)">unwrap</a></span>&#8203;(java.lang.Class&lt;T&gt;&nbsp;clazz)</code></th>
<td class="colLast">
<div class="block">Returns this namespace, or a wrapped namespace, cast to a particular
class.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#validate(org.apache.calcite.rel.type.RelDataType)">validate</a></span>&#8203;(<a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;targetRowType)</code></th>
<td class="colLast">
<div class="block">Validates this namespace.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getValidator()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValidator</h4>
<pre class="methodSignature"><a href="SqlValidator.html" title="interface in org.apache.calcite.sql.validate">SqlValidator</a>&nbsp;getValidator()</pre>
<div class="block">Returns the validator.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>validator</dd>
</dl>
</li>
</ul>
<a id="getTable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTable</h4>
<pre class="methodSignature"><a href="SqlValidatorTable.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorTable</a>&nbsp;getTable()</pre>
<div class="block">Returns the underlying table, or null if there is none.</div>
</li>
</ul>
<a id="getRowType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRowType</h4>
<pre class="methodSignature"><a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;getRowType()</pre>
<div class="block">Returns the row type of this namespace, which comprises a list of names
and types of the output columns. If the scope's type has not yet been
derived, derives it.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Row type of this namespace, never null, always a struct</dd>
</dl>
</li>
</ul>
<a id="getType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getType</h4>
<pre class="methodSignature"><a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;getType()</pre>
<div class="block">Returns the type of this namespace.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Row type converted to struct</dd>
</dl>
</li>
</ul>
<a id="setType(org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setType</h4>
<pre class="methodSignature">void&nbsp;setType&#8203;(<a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
<div class="block">Sets the type of this namespace.
<p>Allows the type for the namespace to be explicitly set, but usually is
called during <a href="#validate(org.apache.calcite.rel.type.RelDataType)"><code>validate(RelDataType)</code></a>.</p>
<p>Implicitly also sets the row type. If the type is not a struct, then
the row type is the type wrapped as a struct with a single column,
otherwise the type and row type are the same.</p></div>
</li>
</ul>
<a id="getRowTypeSansSystemColumns()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRowTypeSansSystemColumns</h4>
<pre class="methodSignature"><a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;getRowTypeSansSystemColumns()</pre>
<div class="block">Returns the row type of this namespace, sans any system columns.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Row type sans system columns</dd>
</dl>
</li>
</ul>
<a id="validate(org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validate</h4>
<pre class="methodSignature">void&nbsp;validate&#8203;(<a href="../../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;targetRowType)</pre>
<div class="block">Validates this namespace.
<p>If the scope has already been validated, does nothing.</p>
<p>Please call <a href="SqlValidatorImpl.html#validateNamespace(org.apache.calcite.sql.validate.SqlValidatorNamespace,org.apache.calcite.rel.type.RelDataType)"><code>SqlValidatorImpl.validateNamespace(org.apache.calcite.sql.validate.SqlValidatorNamespace, org.apache.calcite.rel.type.RelDataType)</code></a> rather than
calling this method directly.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>targetRowType</code> - Desired row type, must not be null, may be the data
type 'unknown'.</dd>
</dl>
</li>
</ul>
<a id="getNode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNode</h4>
<pre class="methodSignature"><a href="../SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>&nbsp;getNode()</pre>
<div class="block">Returns the parse tree node at the root of this namespace.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>parse tree node; null for <a href="TableNamespace.html" title="class in org.apache.calcite.sql.validate"><code>TableNamespace</code></a></dd>
</dl>
</li>
</ul>
<a id="getEnclosingNode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEnclosingNode</h4>
<pre class="methodSignature"><a href="../SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>&nbsp;getEnclosingNode()</pre>
<div class="block">Returns the parse tree node that at is at the root of this namespace and
includes all decorations. If there are no decorations, returns the same
as <a href="#getNode()"><code>getNode()</code></a>.</div>
</li>
</ul>
<a id="lookupChild(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lookupChild</h4>
<pre class="methodSignature"><a href="SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a>&nbsp;lookupChild&#8203;(java.lang.String&nbsp;name)</pre>
<div class="block">Looks up a child namespace of a given name.
<p>For example, in the query <code>select e.name from emps as e</code>,
<code>e</code> is an <a href="IdentifierNamespace.html" title="class in org.apache.calcite.sql.validate"><code>IdentifierNamespace</code></a> which has a child <code>
name</code> which is a <a href="FieldNamespace.html" title="class in org.apache.calcite.sql.validate"><code>FieldNamespace</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Name of namespace</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Namespace</dd>
</dl>
</li>
</ul>
<a id="fieldExists(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fieldExists</h4>
<pre class="methodSignature">boolean&nbsp;fieldExists&#8203;(java.lang.String&nbsp;name)</pre>
<div class="block">Returns whether this namespace has a field of a given name.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - Field name</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether field exists</dd>
</dl>
</li>
</ul>
<a id="getMonotonicExprs()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMonotonicExprs</h4>
<pre class="methodSignature">java.util.List&lt;<a href="../../util/Pair.html" title="class in org.apache.calcite.util">Pair</a>&lt;<a href="../SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>,&#8203;<a href="SqlMonotonicity.html" title="enum in org.apache.calcite.sql.validate">SqlMonotonicity</a>&gt;&gt;&nbsp;getMonotonicExprs()</pre>
<div class="block">Returns a list of expressions which are monotonic in this namespace. For
example, if the namespace represents a relation ordered by a column
called "TIMESTAMP", then the list would contain a
<a href="../SqlIdentifier.html" title="class in org.apache.calcite.sql"><code>SqlIdentifier</code></a> called "TIMESTAMP".</div>
</li>
</ul>
<a id="getMonotonicity(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMonotonicity</h4>
<pre class="methodSignature"><a href="SqlMonotonicity.html" title="enum in org.apache.calcite.sql.validate">SqlMonotonicity</a>&nbsp;getMonotonicity&#8203;(java.lang.String&nbsp;columnName)</pre>
<div class="block">Returns whether and how a given column is sorted.</div>
</li>
</ul>
<a id="makeNullable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNullable</h4>
<pre class="methodSignature">@Deprecated
void&nbsp;makeNullable()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
</li>
</ul>
<a id="unwrap(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unwrap</h4>
<pre class="methodSignature">&lt;T&gt;&nbsp;T&nbsp;unwrap&#8203;(java.lang.Class&lt;T&gt;&nbsp;clazz)</pre>
<div class="block">Returns this namespace, or a wrapped namespace, cast to a particular
class.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - Desired type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>This namespace cast to desired type</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.ClassCastException</code> - if no such interface is available</dd>
</dl>
</li>
</ul>
<a id="isWrapperFor(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isWrapperFor</h4>
<pre class="methodSignature">boolean&nbsp;isWrapperFor&#8203;(java.lang.Class&lt;?&gt;&nbsp;clazz)</pre>
<div class="block">Returns whether this namespace implements a given interface, or wraps a
class which does.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>clazz</code> - Interface</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether namespace implements given interface</dd>
</dl>
</li>
</ul>
<a id="resolve()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resolve</h4>
<pre class="methodSignature"><a href="SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a>&nbsp;resolve()</pre>
<div class="block">If this namespace resolves to another namespace, returns that namespace,
following links to the end of the chain.
<p>A <code>WITH</code>) clause defines table names that resolve to queries
(the body of the with-item). An <a href="IdentifierNamespace.html" title="class in org.apache.calcite.sql.validate"><code>IdentifierNamespace</code></a> typically
resolves to a <a href="TableNamespace.html" title="class in org.apache.calcite.sql.validate"><code>TableNamespace</code></a>.</p>
<p>You must not call this method before <a href="#validate(org.apache.calcite.rel.type.RelDataType)"><code>validate(RelDataType)</code></a> has
completed.</p></div>
</li>
</ul>
<a id="supportsModality(org.apache.calcite.sql.validate.SqlModality)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>supportsModality</h4>
<pre class="methodSignature">boolean&nbsp;supportsModality&#8203;(<a href="SqlModality.html" title="enum in org.apache.calcite.sql.validate">SqlModality</a>&nbsp;modality)</pre>
<div class="block">Returns whether this namespace is capable of giving results of the desired
modality. <code>true</code> means streaming, <code>false</code> means relational.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>modality</code> - Modality</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/SqlValidatorNamespace.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses.html">All&nbsp;Classes</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>