| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>SqlValidatorUtil (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="SqlValidatorUtil (Apache Calcite calcite API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":41,"i25":9,"i26":9,"i27":41,"i28":9,"i29":9,"i30":41,"i31":9,"i32":41,"i33":9,"i34":9,"i35":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</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 class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorTable.html" title="interface in org.apache.calcite.sql.validate"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.DeepCopier.html" title="class in org.apache.calcite.sql.validate"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/calcite/sql/validate/SqlValidatorUtil.html" target="_top">Frames</a></li> |
| <li><a href="SqlValidatorUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</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>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</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="Class SqlValidatorUtil" class="title">Class SqlValidatorUtil</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.calcite.sql.validate.SqlValidatorUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public class <span class="typeNameLabel">SqlValidatorUtil</span> |
| extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Utility methods related to validation.</div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="nested.class.summary"> |
| <!-- --> |
| </a> |
| <h3>Nested Class Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> |
| <caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Class and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static class </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.DeepCopier.html" title="class in org.apache.calcite.sql.validate">SqlValidatorUtil.DeepCopier</a></span></code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static interface </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a></span></code> |
| <div class="block">Suggests candidates for unique names, given the number of attempts so far |
| and the number of expressions in the project list.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#ATTEMPT_SUGGESTER">ATTEMPT_SUGGESTER</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#EXPR_SUGGESTER">EXPR_SUGGESTER</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#F_SUGGESTER">F_SUGGESTER</a></span></code> </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#addAlias-org.apache.calcite.sql.SqlNode-java.lang.String-">addAlias</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> expr, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> alias)</code> |
| <div class="block">Converts an expression "expr" into "expr AS alias".</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#analyzeGroupItem-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.validate.SqlValidatorUtil.GroupAnalyzer-com.google.common.collect.ImmutableList.Builder-org.apache.calcite.sql.SqlNode-">analyzeGroupItem</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope, |
| org.apache.calcite.sql.validate.SqlValidatorUtil.GroupAnalyzer groupAnalyzer, |
| com.google.common.collect.ImmutableList.Builder<com.google.common.collect.ImmutableList<<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>>> topBuilder, |
| <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> groupExpr)</code> |
| <div class="block">Analyzes an expression in a GROUP BY clause.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#checkCharsetAndCollateConsistentIfCharType-org.apache.calcite.rel.type.RelDataType-">checkCharsetAndCollateConsistentIfCharType</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type)</code> </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#containsMonotonic-org.apache.calcite.sql.validate.SqlValidatorScope-">containsMonotonic</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope)</code> |
| <div class="block">Returns whether there are any input columns that are sorted.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#createJoinType-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-java.util.List-java.util.List-">createJoinType</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> leftType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rightType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fieldNameList, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> systemFieldList)</code> |
| <div class="block">Returns the type the row which results when two relations are joined.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/prepare/CalciteCatalogReader.html" title="class in org.apache.calcite.prepare">CalciteCatalogReader</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#createSingleTableCatalogReader-boolean-java.lang.String-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.rel.type.RelDataType-">createSingleTableCatalogReader</a></span>(boolean caseSensitive, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tableName, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType)</code> |
| <div class="block">Creates a catalog reader that contains a single <a href="../../../../../org/apache/calcite/schema/Table.html" title="interface in org.apache.calcite.schema"><code>Table</code></a> with temporary table name |
| and specified <code>rowType</code>.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#createTypeFromProjection-org.apache.calcite.rel.type.RelDataType-java.util.List-org.apache.calcite.rel.type.RelDataTypeFactory-boolean-">createTypeFromProjection</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> columnNameList, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| boolean caseSensitive)</code> </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static com.google.common.collect.ImmutableList<<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#cube-java.util.List-">cube</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>> bitSets)</code> |
| <div class="block">Computes the cube of bit sets.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#deriveJoinRowType-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.core.JoinRelType-org.apache.calcite.rel.type.RelDataTypeFactory-java.util.List-java.util.List-">deriveJoinRowType</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> leftType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rightType, |
| <a href="../../../../../org/apache/calcite/rel/core/JoinRelType.html" title="enum in org.apache.calcite.rel.core">JoinRelType</a> joinType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fieldNameList, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> systemFieldList)</code> |
| <div class="block">Derives the type of a join relational expression.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#deriveNaturalJoinColumnList-org.apache.calcite.sql.validate.SqlNameMatcher-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-">deriveNaturalJoinColumnList</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> leftRowType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rightRowType)</code> |
| <div class="block">Derives the list of column names suitable for NATURAL JOIN.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getAlias-org.apache.calcite.sql.SqlNode-int-">getAlias</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| int ordinal)</code> |
| <div class="block">Derives an alias for a node, and invents a mangled identifier if it |
| cannot.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/AggregatingSelectScope.html" title="class in org.apache.calcite.sql.validate">AggregatingSelectScope</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getEnclosingAggregateSelectScope-org.apache.calcite.sql.validate.SqlValidatorScope-">getEnclosingAggregateSelectScope</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope)</code> </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SelectScope.html" title="class in org.apache.calcite.sql.validate">SelectScope</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getEnclosingSelectScope-org.apache.calcite.sql.validate.SqlValidatorScope-">getEnclosingSelectScope</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope)</code> </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getExtendedColumns-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorTable-org.apache.calcite.sql.SqlNodeList-">getExtendedColumns</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="interface in org.apache.calcite.sql.validate">SqlValidator</a> validator, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorTable.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorTable</a> table, |
| <a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> extendedColumns)</code> |
| <div class="block">Gets a list of extended columns with field indices to the underlying table.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static com.google.common.collect.ImmutableMap<<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getIndexToFieldMap-java.util.List-org.apache.calcite.rel.type.RelDataType-">getIndexToFieldMap</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> sourceFields, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> targetFields)</code> |
| <div class="block">Gets a map of indexes from the source to fields in the target for the |
| intersecting set of source and target fields.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getOrdinalBitSet-org.apache.calcite.rel.type.RelDataType-java.util.Map-">getOrdinalBitSet</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> sourceRowType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> indexToField)</code> |
| <div class="block">Gets the bit-set to the column ordinals in the source for columns that |
| intersect in the target.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getOrdinalBitSet-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-">getOrdinalBitSet</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> sourceRowType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> targetRowType)</code> |
| <div class="block">Gets the bit-set to the column ordinals in the source for columns that intersect in the target.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/plan/RelOptTable.html" title="interface in org.apache.calcite.plan">RelOptTable</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getRelOptTable-org.apache.calcite.sql.validate.SqlValidatorNamespace-org.apache.calcite.prepare.Prepare.CatalogReader-java.lang.String-boolean:A-">getRelOptTable</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a> namespace, |
| <a href="../../../../../org/apache/calcite/prepare/Prepare.CatalogReader.html" title="interface in org.apache.calcite.prepare">Prepare.CatalogReader</a> catalogReader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> datasetName, |
| boolean[] usedDataset)</code> |
| <div class="block">Converts a <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidatorScope</code></a> into a <a href="../../../../../org/apache/calcite/plan/RelOptTable.html" title="interface in org.apache.calcite.plan"><code>RelOptTable</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getSchema-org.apache.calcite.jdbc.CalciteSchema-java.lang.Iterable-org.apache.calcite.sql.validate.SqlNameMatcher-">getSchema</a></span>(<a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> rootSchema, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> schemaPath, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher)</code> |
| <div class="block">Finds and returns <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc"><code>CalciteSchema</code></a> nested to the given rootSchema |
| with specified schemaPath.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getSchemaObjectMonikers-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-java.util.List-java.util.List-">getSchemaObjectMonikers</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> names, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/sql/validate/SqlMoniker.html" title="interface in org.apache.calcite.sql.validate">SqlMoniker</a>> hints)</code> </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TableEntry.html" title="class in org.apache.calcite.jdbc">CalciteSchema.TableEntry</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getTableEntry-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-java.util.List-">getTableEntry</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> names)</code> |
| <div class="block">Finds a <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TableEntry.html" title="class in org.apache.calcite.jdbc"><code>CalciteSchema.TableEntry</code></a> in a |
| given catalog reader whose table has the given name, possibly qualified.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getTargetField-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-org.apache.calcite.plan.RelOptTable-">getTargetField</a></span>(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> id, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="../../../../../org/apache/calcite/plan/RelOptTable.html" title="interface in org.apache.calcite.plan">RelOptTable</a> table)</code> |
| <div class="block">Resolve a target column name in the target table.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TypeEntry.html" title="class in org.apache.calcite.jdbc">CalciteSchema.TypeEntry</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#getTypeEntry-org.apache.calcite.jdbc.CalciteSchema-org.apache.calcite.sql.SqlIdentifier-">getTypeEntry</a></span>(<a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> rootSchema, |
| <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> typeName)</code> |
| <div class="block">Finds a <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TypeEntry.html" title="class in org.apache.calcite.jdbc"><code>CalciteSchema.TypeEntry</code></a> in a |
| given schema whose type has the given name, possibly qualified.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#lookup-org.apache.calcite.sql.validate.SqlValidatorScope-java.util.List-">lookup</a></span>(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> names)</code> |
| <div class="block">Resolves a multi-part identifier such as "SCHEMA.EMP.EMPNO" to a |
| namespace.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#lookupField-boolean-org.apache.calcite.rel.type.RelDataType-java.lang.String-">lookupField</a></span>(boolean caseSensitive, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> columnName)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#lookupSqlFunctionByID-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.SqlFunctionCategory-">lookupSqlFunctionByID</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> opTab, |
| <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> funName, |
| <a href="../../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> funcType)</code> |
| <div class="block">Lookup sql function by sql identifier and function category.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#mapNameToIndex-java.util.List-">mapNameToIndex</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> fields)</code> |
| <div class="block">Returns a map from field names to indexes.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorWithHints.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorWithHints</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><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-">newValidator</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> opTab, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorWithHints.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorWithHints</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><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.SqlValidator.Config-">newValidator</a></span>(<a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> opTab, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a> config)</code> |
| <div class="block">Factory method for <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidator</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static com.google.common.collect.ImmutableList<<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#rollup-java.util.List-">rollup</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>> bitSets)</code> |
| <div class="block">Computes the rollup of bit sets.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.util.List-">uniquify</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.util.List-boolean-">uniquify</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList, |
| boolean caseSensitive)</code> |
| <div class="block">Makes sure that the names in a list are unique.</div> |
| </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.util.List-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-">uniquify</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> suggester)</code> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> |
| <div class="block"><span class="deprecationComment">Use <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.util.List-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-boolean-"><code>uniquify(List, Suggester, boolean)</code></a></span></div> |
| </div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.util.List-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-boolean-">uniquify</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> suggester, |
| boolean caseSensitive)</code> |
| <div class="block">Makes sure that the names in a list are unique.</div> |
| </td> |
| </tr> |
| <tr id="i34" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.lang.String-java.util.Set-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-">uniquify</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> usedNames, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> suggester)</code> |
| <div class="block">Makes a name distinct from other names which have already been used, adds |
| it to the list, and returns it.</div> |
| </td> |
| </tr> |
| <tr id="i35" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/calcite/util/Pair.html" title="class in org.apache.calcite.util">Pair</a><<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#validateExprWithRowType-boolean-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.sql.SqlNode-">validateExprWithRowType</a></span>(boolean caseSensitive, |
| <a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> operatorTable, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType, |
| <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> expr)</code> |
| <div class="block">Validate the sql node with specified base table row type.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="EXPR_SUGGESTER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EXPR_SUGGESTER</h4> |
| <pre>public static final <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> EXPR_SUGGESTER</pre> |
| </li> |
| </ul> |
| <a name="F_SUGGESTER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>F_SUGGESTER</h4> |
| <pre>public static final <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> F_SUGGESTER</pre> |
| </li> |
| </ul> |
| <a name="ATTEMPT_SUGGESTER"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>ATTEMPT_SUGGESTER</h4> |
| <pre>public static final <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> ATTEMPT_SUGGESTER</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getRelOptTable-org.apache.calcite.sql.validate.SqlValidatorNamespace-org.apache.calcite.prepare.Prepare.CatalogReader-java.lang.String-boolean:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRelOptTable</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/plan/RelOptTable.html" title="interface in org.apache.calcite.plan">RelOptTable</a> getRelOptTable(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a> namespace, |
| <a href="../../../../../org/apache/calcite/prepare/Prepare.CatalogReader.html" title="interface in org.apache.calcite.prepare">Prepare.CatalogReader</a> catalogReader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> datasetName, |
| boolean[] usedDataset)</pre> |
| <div class="block">Converts a <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidatorScope</code></a> into a <a href="../../../../../org/apache/calcite/plan/RelOptTable.html" title="interface in org.apache.calcite.plan"><code>RelOptTable</code></a>. This is |
| only possible if the scope represents an identifier, such as "sales.emp". |
| Otherwise, returns null.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>namespace</code> - Namespace</dd> |
| <dd><code>catalogReader</code> - Schema</dd> |
| <dd><code>datasetName</code> - Name of sample dataset to substitute, or null to use |
| the regular table</dd> |
| <dd><code>usedDataset</code> - Output parameter which is set to true if a sample |
| dataset is found; may be null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getExtendedColumns-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorTable-org.apache.calcite.sql.SqlNodeList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getExtendedColumns</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> getExtendedColumns(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="interface in org.apache.calcite.sql.validate">SqlValidator</a> validator, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorTable.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorTable</a> table, |
| <a href="../../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> extendedColumns)</pre> |
| <div class="block">Gets a list of extended columns with field indices to the underlying table.</div> |
| </li> |
| </ul> |
| <a name="getIndexToFieldMap-java.util.List-org.apache.calcite.rel.type.RelDataType-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getIndexToFieldMap</h4> |
| <pre>public static com.google.common.collect.ImmutableMap<<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> getIndexToFieldMap(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> sourceFields, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> targetFields)</pre> |
| <div class="block">Gets a map of indexes from the source to fields in the target for the |
| intersecting set of source and target fields.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sourceFields</code> - The source of column names that determine indexes</dd> |
| <dd><code>targetFields</code> - The target fields to be indexed</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getOrdinalBitSet-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getOrdinalBitSet</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a> getOrdinalBitSet(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> sourceRowType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> targetRowType)</pre> |
| <div class="block">Gets the bit-set to the column ordinals in the source for columns that intersect in the target.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sourceRowType</code> - The source upon which to ordinate the bit set.</dd> |
| <dd><code>targetRowType</code> - The target to overlay on the source to create the bit set.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getOrdinalBitSet-org.apache.calcite.rel.type.RelDataType-java.util.Map-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getOrdinalBitSet</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a> getOrdinalBitSet(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> sourceRowType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> indexToField)</pre> |
| <div class="block">Gets the bit-set to the column ordinals in the source for columns that |
| intersect in the target.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>sourceRowType</code> - The source upon which to ordinate the bit set.</dd> |
| <dd><code>indexToField</code> - The map of ordinals to target fields.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="mapNameToIndex-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mapNameToIndex</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> mapNameToIndex(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> fields)</pre> |
| <div class="block">Returns a map from field names to indexes.</div> |
| </li> |
| </ul> |
| <a name="lookupField-boolean-org.apache.calcite.rel.type.RelDataType-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lookupField</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public static <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a> lookupField(boolean caseSensitive, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> columnName)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| </li> |
| </ul> |
| <a name="checkCharsetAndCollateConsistentIfCharType-org.apache.calcite.rel.type.RelDataType-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>checkCharsetAndCollateConsistentIfCharType</h4> |
| <pre>public static void checkCharsetAndCollateConsistentIfCharType(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type)</pre> |
| </li> |
| </ul> |
| <a name="addAlias-org.apache.calcite.sql.SqlNode-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>addAlias</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> addAlias(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> expr, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> alias)</pre> |
| <div class="block">Converts an expression "expr" into "expr AS alias".</div> |
| </li> |
| </ul> |
| <a name="getAlias-org.apache.calcite.sql.SqlNode-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAlias</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getAlias(<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| int ordinal)</pre> |
| <div class="block">Derives an alias for a node, and invents a mangled identifier if it |
| cannot. |
| |
| <p>Examples: |
| |
| <ul> |
| <li>Alias: "1 + 2 as foo" yields "foo" |
| <li>Identifier: "foo.bar.baz" yields "baz" |
| <li>Anything else yields "expr$<i>ordinal</i>" |
| </ul></div> |
| <dl> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>An alias, if one can be derived; or a synthetic alias |
| "expr$<i>ordinal</i>" if ordinal < 0; otherwise null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="newValidator-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.sql.validate.SqlValidator.Config-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newValidator</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorWithHints.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorWithHints</a> newValidator(<a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> opTab, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.Config.html" title="interface in org.apache.calcite.sql.validate">SqlValidator.Config</a> config)</pre> |
| <div class="block">Factory method for <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidator</code></a>.</div> |
| </li> |
| </ul> |
| <a name="newValidator-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-org.apache.calcite.rel.type.RelDataTypeFactory-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newValidator</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorWithHints.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorWithHints</a> newValidator(<a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> opTab, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Factory method for <a href="../../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="interface in org.apache.calcite.sql.validate"><code>SqlValidator</code></a>, with default conformance.</div> |
| </li> |
| </ul> |
| <a name="uniquify-java.lang.String-java.util.Set-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>uniquify</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> uniquify(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> name, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> usedNames, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> suggester)</pre> |
| <div class="block">Makes a name distinct from other names which have already been used, adds |
| it to the list, and returns it.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - Suggested name, may not be unique</dd> |
| <dd><code>usedNames</code> - Collection of names already used</dd> |
| <dd><code>suggester</code> - Base for name when input name is null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Unique name</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="uniquify-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>uniquify</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> uniquify(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> |
| <div class="block">Makes sure that the names in a list are unique. |
| |
| <p>Does not modify the input list. Returns the input list if the strings |
| are unique, otherwise allocates a new list. Deprecated in favor of caseSensitive |
| aware version.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nameList</code> - List of strings</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of unique strings</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="uniquify-java.util.List-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>uniquify</h4> |
| <pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> |
| public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> uniquify(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> suggester)</pre> |
| <div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Use <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.html#uniquify-java.util.List-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-boolean-"><code>uniquify(List, Suggester, boolean)</code></a></span></div> |
| <div class="block">Makes sure that the names in a list are unique. |
| |
| <p>Does not modify the input list. Returns the input list if the strings |
| are unique, otherwise allocates a new list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nameList</code> - List of strings</dd> |
| <dd><code>suggester</code> - How to generate new names if duplicate names are found</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of unique strings</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="uniquify-java.util.List-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>uniquify</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> uniquify(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList, |
| boolean caseSensitive)</pre> |
| <div class="block">Makes sure that the names in a list are unique. |
| |
| <p>Does not modify the input list. Returns the input list if the strings |
| are unique, otherwise allocates a new list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nameList</code> - List of strings</dd> |
| <dd><code>caseSensitive</code> - Whether upper and lower case names are considered |
| distinct</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of unique strings</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="uniquify-java.util.List-org.apache.calcite.sql.validate.SqlValidatorUtil.Suggester-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>uniquify</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> uniquify(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> nameList, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.Suggester.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorUtil.Suggester</a> suggester, |
| boolean caseSensitive)</pre> |
| <div class="block">Makes sure that the names in a list are unique. |
| |
| <p>Does not modify the input list. Returns the input list if the strings |
| are unique, otherwise allocates a new list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nameList</code> - List of strings</dd> |
| <dd><code>suggester</code> - How to generate new names if duplicate names are found</dd> |
| <dd><code>caseSensitive</code> - Whether upper and lower case names are considered |
| distinct</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of unique strings</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="deriveJoinRowType-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.core.JoinRelType-org.apache.calcite.rel.type.RelDataTypeFactory-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>deriveJoinRowType</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> deriveJoinRowType(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> leftType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rightType, |
| <a href="../../../../../org/apache/calcite/rel/core/JoinRelType.html" title="enum in org.apache.calcite.rel.core">JoinRelType</a> joinType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fieldNameList, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> systemFieldList)</pre> |
| <div class="block">Derives the type of a join relational expression.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>leftType</code> - Row type of left input to join</dd> |
| <dd><code>rightType</code> - Row type of right input to join</dd> |
| <dd><code>joinType</code> - Type of join</dd> |
| <dd><code>typeFactory</code> - Type factory</dd> |
| <dd><code>fieldNameList</code> - List of names of fields; if null, field names are |
| inherited and made unique</dd> |
| <dd><code>systemFieldList</code> - List of system fields that will be prefixed to |
| output row type; typically empty but must not be |
| null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>join type</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createJoinType-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createJoinType</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> createJoinType(<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> leftType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rightType, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fieldNameList, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>> systemFieldList)</pre> |
| <div class="block">Returns the type the row which results when two relations are joined. |
| |
| <p>The resulting row type consists of |
| the system fields (if any), followed by |
| the fields of the left type, followed by |
| the fields of the right type. The field name list, if present, overrides |
| the original names of the fields.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>typeFactory</code> - Type factory</dd> |
| <dd><code>leftType</code> - Type of left input to join</dd> |
| <dd><code>rightType</code> - Type of right input to join, or null for semi-join</dd> |
| <dd><code>fieldNameList</code> - If not null, overrides the original names of the |
| fields</dd> |
| <dd><code>systemFieldList</code> - List of system fields that will be prefixed to |
| output row type; typically empty but must not be |
| null</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>type of row which results when two relations are joined</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTargetField-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-org.apache.calcite.plan.RelOptTable-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTargetField</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a> getTargetField(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> id, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="../../../../../org/apache/calcite/plan/RelOptTable.html" title="interface in org.apache.calcite.plan">RelOptTable</a> table)</pre> |
| <div class="block">Resolve a target column name in the target table.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>rowType</code> - the target row type</dd> |
| <dd><code>id</code> - the target column identifier</dd> |
| <dd><code>table</code> - the target table or null if it is not a RelOptTable instance</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the target field or null if the name cannot be resolved</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="lookup-org.apache.calcite.sql.validate.SqlValidatorScope-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lookup</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorNamespace.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorNamespace</a> lookup(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> names)</pre> |
| <div class="block">Resolves a multi-part identifier such as "SCHEMA.EMP.EMPNO" to a |
| namespace. The returned namespace, never null, may represent a |
| schema, table, column, etc.</div> |
| </li> |
| </ul> |
| <a name="getSchemaObjectMonikers-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-java.util.List-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSchemaObjectMonikers</h4> |
| <pre>public static void getSchemaObjectMonikers(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> names, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/sql/validate/SqlMoniker.html" title="interface in org.apache.calcite.sql.validate">SqlMoniker</a>> hints)</pre> |
| </li> |
| </ul> |
| <a name="getEnclosingSelectScope-org.apache.calcite.sql.validate.SqlValidatorScope-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEnclosingSelectScope</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/sql/validate/SelectScope.html" title="class in org.apache.calcite.sql.validate">SelectScope</a> getEnclosingSelectScope(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope)</pre> |
| </li> |
| </ul> |
| <a name="getEnclosingAggregateSelectScope-org.apache.calcite.sql.validate.SqlValidatorScope-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getEnclosingAggregateSelectScope</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/sql/validate/AggregatingSelectScope.html" title="class in org.apache.calcite.sql.validate">AggregatingSelectScope</a> getEnclosingAggregateSelectScope(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope)</pre> |
| </li> |
| </ul> |
| <a name="deriveNaturalJoinColumnList-org.apache.calcite.sql.validate.SqlNameMatcher-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rel.type.RelDataType-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>deriveNaturalJoinColumnList</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> deriveNaturalJoinColumnList(<a href="../../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> leftRowType, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rightRowType)</pre> |
| <div class="block">Derives the list of column names suitable for NATURAL JOIN. These are the |
| columns that occur exactly once on each side of the join.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>nameMatcher</code> - Whether matches are case-sensitive</dd> |
| <dd><code>leftRowType</code> - Row type of left input to the join</dd> |
| <dd><code>rightRowType</code> - Row type of right input to the join</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>List of columns that occur once on each side</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createTypeFromProjection-org.apache.calcite.rel.type.RelDataType-java.util.List-org.apache.calcite.rel.type.RelDataTypeFactory-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createTypeFromProjection</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> createTypeFromProjection(<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> type, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> columnNameList, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| boolean caseSensitive)</pre> |
| </li> |
| </ul> |
| <a name="analyzeGroupItem-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.validate.SqlValidatorUtil.GroupAnalyzer-com.google.common.collect.ImmutableList.Builder-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>analyzeGroupItem</h4> |
| <pre>public static void analyzeGroupItem(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope, |
| org.apache.calcite.sql.validate.SqlValidatorUtil.GroupAnalyzer groupAnalyzer, |
| com.google.common.collect.ImmutableList.Builder<com.google.common.collect.ImmutableList<<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>>> topBuilder, |
| <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> groupExpr)</pre> |
| <div class="block">Analyzes an expression in a GROUP BY clause. |
| |
| <p>It may be an expression, an empty list (), or a call to |
| <code>GROUPING SETS</code>, <code>CUBE</code>, <code>ROLLUP</code>, |
| <code>TUMBLE</code>, <code>HOP</code> or <code>SESSION</code>. |
| |
| <p>Each group item produces a list of group sets, which are written to |
| <code>topBuilder</code>. To find the grouping sets of the query, we will take |
| the cartesian product of the group sets.</div> |
| </li> |
| </ul> |
| <a name="rollup-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>rollup</h4> |
| <pre>public static com.google.common.collect.ImmutableList<<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>> rollup(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>> bitSets)</pre> |
| <div class="block">Computes the rollup of bit sets. |
| |
| <p>For example, <code>rollup({0}, {1})</code> |
| returns <code>({0, 1}, {0}, {})</code>. |
| |
| <p>Bit sets are not necessarily singletons: |
| <code>rollup({0, 2}, {3, 5})</code> |
| returns <code>({0, 2, 3, 5}, {0, 2}, {})</code>.</div> |
| </li> |
| </ul> |
| <a name="cube-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>cube</h4> |
| <pre>public static com.google.common.collect.ImmutableList<<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>> cube(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../../org/apache/calcite/util/ImmutableBitSet.html" title="class in org.apache.calcite.util">ImmutableBitSet</a>> bitSets)</pre> |
| <div class="block">Computes the cube of bit sets. |
| |
| <p>For example, <code>rollup({0}, {1})</code> |
| returns <code>({0, 1}, {0}, {})</code>. |
| |
| <p>Bit sets are not necessarily singletons: |
| <code>rollup({0, 2}, {3, 5})</code> |
| returns <code>({0, 2, 3, 5}, {0, 2}, {})</code>.</div> |
| </li> |
| </ul> |
| <a name="getTypeEntry-org.apache.calcite.jdbc.CalciteSchema-org.apache.calcite.sql.SqlIdentifier-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTypeEntry</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TypeEntry.html" title="class in org.apache.calcite.jdbc">CalciteSchema.TypeEntry</a> getTypeEntry(<a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> rootSchema, |
| <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> typeName)</pre> |
| <div class="block">Finds a <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TypeEntry.html" title="class in org.apache.calcite.jdbc"><code>CalciteSchema.TypeEntry</code></a> in a |
| given schema whose type has the given name, possibly qualified.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>rootSchema</code> - root schema</dd> |
| <dd><code>typeName</code> - name of the type, may be qualified or fully-qualified</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>TypeEntry with a table with the given name, or null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getTableEntry-org.apache.calcite.sql.validate.SqlValidatorCatalogReader-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTableEntry</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TableEntry.html" title="class in org.apache.calcite.jdbc">CalciteSchema.TableEntry</a> getTableEntry(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorCatalogReader.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorCatalogReader</a> catalogReader, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> names)</pre> |
| <div class="block">Finds a <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.TableEntry.html" title="class in org.apache.calcite.jdbc"><code>CalciteSchema.TableEntry</code></a> in a |
| given catalog reader whose table has the given name, possibly qualified. |
| |
| <p>Uses the case-sensitivity policy of the specified catalog reader. |
| |
| <p>If not found, returns null.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>catalogReader</code> - accessor to the table metadata</dd> |
| <dd><code>names</code> - Name of table, may be qualified or fully-qualified</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>TableEntry with a table with the given name, or null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSchema-org.apache.calcite.jdbc.CalciteSchema-java.lang.Iterable-org.apache.calcite.sql.validate.SqlNameMatcher-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSchema</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> getSchema(<a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc">CalciteSchema</a> rootSchema, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> schemaPath, |
| <a href="../../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher)</pre> |
| <div class="block">Finds and returns <a href="../../../../../org/apache/calcite/jdbc/CalciteSchema.html" title="class in org.apache.calcite.jdbc"><code>CalciteSchema</code></a> nested to the given rootSchema |
| with specified schemaPath. |
| |
| <p>Uses the case-sensitivity policy of specified nameMatcher. |
| |
| <p>If not found, returns null.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>rootSchema</code> - root schema</dd> |
| <dd><code>schemaPath</code> - full schema path of required schema</dd> |
| <dd><code>nameMatcher</code> - name matcher</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>CalciteSchema that corresponds specified schemaPath</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="containsMonotonic-org.apache.calcite.sql.validate.SqlValidatorScope-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>containsMonotonic</h4> |
| <pre>public static boolean containsMonotonic(<a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a> scope)</pre> |
| <div class="block">Returns whether there are any input columns that are sorted. |
| |
| <p>If so, it can be the default ORDER BY clause for a WINDOW specification. |
| (This is an extension to the SQL standard for streaming.)</div> |
| </li> |
| </ul> |
| <a name="lookupSqlFunctionByID-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-org.apache.calcite.sql.SqlFunctionCategory-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lookupSqlFunctionByID</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> lookupSqlFunctionByID(<a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> opTab, |
| <a href="../../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> funName, |
| <a href="../../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> funcType)</pre> |
| <div class="block">Lookup sql function by sql identifier and function category.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>opTab</code> - operator table to look up</dd> |
| <dd><code>funName</code> - function name</dd> |
| <dd><code>funcType</code> - function category</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A sql function if and only if there is one operator matches, else null</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validateExprWithRowType-boolean-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateExprWithRowType</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/util/Pair.html" title="class in org.apache.calcite.util">Pair</a><<a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>,<a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> validateExprWithRowType(boolean caseSensitive, |
| <a href="../../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="interface in org.apache.calcite.sql">SqlOperatorTable</a> operatorTable, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType, |
| <a href="../../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> expr)</pre> |
| <div class="block">Validate the sql node with specified base table row type. For "base table", we mean the |
| table that the sql node expression references fields with.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>caseSensitive</code> - whether to match the catalog case-sensitively</dd> |
| <dd><code>operatorTable</code> - operator table</dd> |
| <dd><code>typeFactory</code> - type factory</dd> |
| <dd><code>rowType</code> - the table row type that has fields referenced by the expression</dd> |
| <dd><code>expr</code> - the expression to validate</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>pair of a validated expression sql node and its data type, |
| usually a SqlUnresolvedFunction is converted to a resolved function</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="createSingleTableCatalogReader-boolean-java.lang.String-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.rel.type.RelDataType-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>createSingleTableCatalogReader</h4> |
| <pre>public static <a href="../../../../../org/apache/calcite/prepare/CalciteCatalogReader.html" title="class in org.apache.calcite.prepare">CalciteCatalogReader</a> createSingleTableCatalogReader(boolean caseSensitive, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> tableName, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> rowType)</pre> |
| <div class="block">Creates a catalog reader that contains a single <a href="../../../../../org/apache/calcite/schema/Table.html" title="interface in org.apache.calcite.schema"><code>Table</code></a> with temporary table name |
| and specified <code>rowType</code>. |
| |
| <p>Make this method public so that other systems can also use it.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>caseSensitive</code> - whether to match case sensitively</dd> |
| <dd><code>tableName</code> - table name to register with</dd> |
| <dd><code>typeFactory</code> - type factory</dd> |
| <dd><code>rowType</code> - table row type</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <a href="../../../../../org/apache/calcite/prepare/CalciteCatalogReader.html" title="class in org.apache.calcite.prepare"><code>CalciteCatalogReader</code></a> instance</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="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</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 class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorTable.html" title="interface in org.apache.calcite.sql.validate"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/calcite/sql/validate/SqlValidatorUtil.DeepCopier.html" title="class in org.apache.calcite.sql.validate"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/calcite/sql/validate/SqlValidatorUtil.html" target="_top">Frames</a></li> |
| <li><a href="SqlValidatorUtil.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All 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> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li><a href="#nested.class.summary">Nested</a> | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p> |
| </body> |
| </html> |