| <!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>SqlUtil (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="SqlUtil (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":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete 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/SqlUserDefinedTypeNameSpec.html" title="class in org.apache.calcite.sql"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/calcite/sql/SqlUtil.DatabaseMetaDataInvocationHandler.html" title="class in org.apache.calcite.sql"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/sql/SqlUtil.html" target="_top">Frames</a></li> |
| <li><a href="SqlUtil.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>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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</div> |
| <h2 title="Class SqlUtil" class="title">Class SqlUtil</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.SqlUtil</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">SqlUtil</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">Contains utility functions related to SQL parsing, all static.</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/SqlUtil.DatabaseMetaDataInvocationHandler.html" title="class in org.apache.calcite.sql">SqlUtil.DatabaseMetaDataInvocationHandler</a></span></code> |
| <div class="block">Handles particular <a href="https://docs.oracle.com/javase/8/docs/api/java/sql/DatabaseMetaData.html?is-external=true" title="class or interface in java.sql"><code>DatabaseMetaData</code></a> methods; invocations of other |
| methods will fall through to the base class, |
| <a href="../../../../org/apache/calcite/util/BarfingInvocationHandler.html" title="class in org.apache.calcite.util"><code>BarfingInvocationHandler</code></a>, which will throw |
| an error.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colOne"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#SqlUtil--">SqlUtil</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></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/rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#attachRelHint-org.apache.calcite.rel.hint.HintStrategyTable-java.util.List-org.apache.calcite.rel.hint.Hintable-">attachRelHint</a></span>(<a href="../../../../org/apache/calcite/rel/hint/HintStrategyTable.html" title="class in org.apache.calcite.rel.hint">HintStrategyTable</a> hintStrategies, |
| <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/hint/RelHint.html" title="class in org.apache.calcite.rel.hint">RelHint</a>> hints, |
| <a href="../../../../org/apache/calcite/rel/hint/Hintable.html" title="interface in org.apache.calcite.rel.hint">Hintable</a> rel)</code> |
| <div class="block">Attach the <code>hints</code> to <code>rel</code> with specified hint strategies.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="class in org.apache.calcite.sql">SqlLiteral</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#concatenateLiterals-java.util.List-">concatenateLiterals</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/sql/SqlLiteral.html" title="class in org.apache.calcite.sql">SqlLiteral</a>> lits)</code> |
| <div class="block">Concatenates string literals.</div> |
| </td> |
| </tr> |
| <tr id="i2" 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/SqlUtil.html#createNlsStringType-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.util.NlsString-">createNlsStringType</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/util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a> str)</code> |
| <div class="block">Creates the type of an <a href="../../../../org/apache/calcite/util/NlsString.html" title="class in org.apache.calcite.util"><code>NlsString</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <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/SqlUtil.html#deriveAliasFromOrdinal-int-">deriveAliasFromOrdinal</a></span>(int ordinal)</code> </td> |
| </tr> |
| <tr id="i4" 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/SqlUtil.html#getAliasedSignature-org.apache.calcite.sql.SqlOperator-java.lang.String-java.util.List-">getAliasedSignature</a></span>(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> op, |
| <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> opName, |
| <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><?> typeList)</code> |
| <div class="block">Constructs an operator signature from a type list, substituting an alias |
| for the operator name.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static com.google.common.collect.ImmutableList<<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/SqlUtil.html#getAncestry-org.apache.calcite.sql.SqlNode-java.util.function.Predicate-java.util.function.Predicate-">getAncestry</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> root, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>> predicate, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>> postPredicate)</code> |
| <div class="block">Returns a list of ancestors of <code>predicate</code> within a given |
| <code>SqlNode</code> tree.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#getCharset-java.lang.String-">getCharset</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> charsetName)</code> |
| <div class="block">Returns the Java-level <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a> based on given SQL-level name.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <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/SqlUtil.html#getFromNode-org.apache.calcite.sql.SqlSelect-int-">getFromNode</a></span>(<a href="../../../../org/apache/calcite/sql/SqlSelect.html" title="class in org.apache.calcite.sql">SqlSelect</a> query, |
| int ordinal)</code> |
| <div class="block">Returns the <code>n</code>th (0-based) input to a join expression.</div> |
| </td> |
| </tr> |
| <tr id="i8" 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/SqlUtil.html#getOperatorSignature-org.apache.calcite.sql.SqlOperator-java.util.List-">getOperatorSignature</a></span>(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> op, |
| <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><?> typeList)</code> |
| <div class="block">Constructs an operator signature from a type list.</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="../../../../org/apache/calcite/rel/hint/RelHint.html" title="class in org.apache.calcite.rel.hint">RelHint</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#getRelHint-org.apache.calcite.rel.hint.HintStrategyTable-org.apache.calcite.sql.SqlNodeList-">getRelHint</a></span>(<a href="../../../../org/apache/calcite/rel/hint/HintStrategyTable.html" title="class in org.apache.calcite.rel.hint">HintStrategyTable</a> hintStrategies, |
| <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> sqlHints)</code> |
| <div class="block">Returns an immutable list of <a href="../../../../org/apache/calcite/rel/hint/RelHint.html" title="class in org.apache.calcite.rel.hint"><code>RelHint</code></a> from sql hints, with a given |
| inherit path from the root node.</div> |
| </td> |
| </tr> |
| <tr id="i10" 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/SqlUtil.html#getSelectListItem-org.apache.calcite.sql.SqlNode-int-">getSelectListItem</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> query, |
| int i)</code> |
| <div class="block">Returns the <code>i</code>th select-list item of a query.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#isCallTo-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.SqlOperator-">isCallTo</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> operator)</code> |
| <div class="block">Returns whether a <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql"><code>node</code></a> is a <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="class in org.apache.calcite.sql"><code>call</code></a> to a |
| given <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql"><code>operator</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#isLiteral-org.apache.calcite.sql.SqlNode-">isLiteral</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</code> |
| <div class="block">Returns whether a node is a literal.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#isLiteral-org.apache.calcite.sql.SqlNode-boolean-">isLiteral</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| boolean allowCast)</code> |
| <div class="block">Returns whether a node is a literal.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#isLiteralChain-org.apache.calcite.sql.SqlNode-">isLiteralChain</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</code> |
| <div class="block">Returns whether a node is a literal chain which is used to represent a |
| continued string literal.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#isNull-org.apache.calcite.sql.SqlNode-">isNull</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</code> |
| <div class="block">Returns whether a node represents the NULL value or a series of nested |
| <code>CAST(NULL AS type)</code> calls.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#isNullLiteral-org.apache.calcite.sql.SqlNode-boolean-">isNullLiteral</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| boolean allowCast)</code> |
| <div class="block">Returns whether a node represents the NULL value.</div> |
| </td> |
| </tr> |
| <tr id="i17" 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/SqlUtil.html#lookupRoutine-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-java.util.List-java.util.List-org.apache.calcite.sql.SqlFunctionCategory-org.apache.calcite.sql.SqlSyntax-org.apache.calcite.sql.SqlKind-org.apache.calcite.sql.validate.SqlNameMatcher-boolean-">lookupRoutine</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> funcName, |
| <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/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> argTypes, |
| <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>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="enum in org.apache.calcite.sql">SqlSyntax</a> syntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="enum in org.apache.calcite.sql">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher, |
| boolean coerce)</code> |
| <div class="block">Looks up a (possibly overloaded) routine based on name and argument |
| types.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<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/SqlUtil.html#lookupSubjectRoutines-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-java.util.List-java.util.List-org.apache.calcite.sql.SqlSyntax-org.apache.calcite.sql.SqlKind-org.apache.calcite.sql.SqlFunctionCategory-org.apache.calcite.sql.validate.SqlNameMatcher-boolean-">lookupSubjectRoutines</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> funcName, |
| <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/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> argTypes, |
| <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>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="enum in org.apache.calcite.sql">SqlSyntax</a> sqlSyntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="enum in org.apache.calcite.sql">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher, |
| boolean coerce)</code> |
| <div class="block">Looks up all subject routines matching the given name and argument types.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#matchRoutinesByParameterCount-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-java.util.List-org.apache.calcite.sql.SqlFunctionCategory-org.apache.calcite.sql.validate.SqlNameMatcher-">matchRoutinesByParameterCount</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> funcName, |
| <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/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> argTypes, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher)</code> |
| <div class="block">Determines whether there is a routine matching the given name and number |
| of arguments.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/runtime/CalciteContextException.html" title="class in org.apache.calcite.runtime">CalciteContextException</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#newContextException-int-int-int-int-org.apache.calcite.runtime.Resources.ExInst-">newContextException</a></span>(int line, |
| int col, |
| int endLine, |
| int endCol, |
| org.apache.calcite.runtime.Resources.ExInst<?> e)</code> |
| <div class="block">Wraps an exception with context.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/runtime/CalciteContextException.html" title="class in org.apache.calcite.runtime">CalciteContextException</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#newContextException-org.apache.calcite.sql.parser.SqlParserPos-org.apache.calcite.runtime.Resources.ExInst-">newContextException</a></span>(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a> pos, |
| org.apache.calcite.runtime.Resources.ExInst<?> e)</code> |
| <div class="block">Wraps an exception with context.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/runtime/CalciteException.html" title="class in org.apache.calcite.runtime">CalciteException</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#newContextException-org.apache.calcite.sql.parser.SqlParserPos-org.apache.calcite.runtime.Resources.ExInst-java.lang.String-">newContextException</a></span>(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a> pos, |
| org.apache.calcite.runtime.Resources.ExInst<?> e, |
| <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> inputText)</code> |
| <div class="block">Wraps an exception with context.</div> |
| </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <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/SqlUtil.html#stripAs-org.apache.calcite.sql.SqlNode-">stripAs</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</code> |
| <div class="block">If a node is "AS", returns the underlying expression; otherwise returns |
| the node.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#stripListAs-org.apache.calcite.sql.SqlNodeList-">stripListAs</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> nodeList)</code> |
| <div class="block">Modifies a list of nodes, removing AS from each if present.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#toNodeList-org.apache.calcite.sql.SqlNode:A-">toNodeList</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>[] operands)</code> |
| <div class="block">Converts an SqlNode array to a SqlNodeList</div> |
| </td> |
| </tr> |
| <tr id="i26" 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/SqlUtil.html#translateCharacterSetName-java.lang.String-">translateCharacterSetName</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)</code> |
| <div class="block">Translates a character set name from a SQL-level name into a Java-level |
| name.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#unparseBinarySyntax-org.apache.calcite.sql.SqlOperator-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlWriter-int-int-">unparseBinarySyntax</a></span>(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="class in org.apache.calcite.sql">SqlCall</a> call, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="interface in org.apache.calcite.sql">SqlWriter</a> writer, |
| int leftPrec, |
| int rightPrec)</code> </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#unparseFunctionSyntax-org.apache.calcite.sql.SqlOperator-org.apache.calcite.sql.SqlWriter-org.apache.calcite.sql.SqlCall-">unparseFunctionSyntax</a></span>(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="interface in org.apache.calcite.sql">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="class in org.apache.calcite.sql">SqlCall</a> call)</code> |
| <div class="block">Unparses a call to an operator which has function syntax.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#unparseSqlIdentifierSyntax-org.apache.calcite.sql.SqlWriter-org.apache.calcite.sql.SqlIdentifier-boolean-">unparseSqlIdentifierSyntax</a></span>(<a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="interface in org.apache.calcite.sql">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> identifier, |
| boolean asFunctionID)</code> |
| <div class="block">Unparse a SqlIdentifier syntax.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static void</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlUtil.html#validateCharset-org.apache.calcite.avatica.util.ByteString-java.nio.charset.Charset-">validateCharset</a></span>(org.apache.calcite.avatica.util.ByteString value, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> charset)</code> |
| <div class="block">Validate if value can be decoded by given charset.</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"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="SqlUtil--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>SqlUtil</h4> |
| <pre>public SqlUtil()</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="getFromNode-org.apache.calcite.sql.SqlSelect-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getFromNode</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> getFromNode(<a href="../../../../org/apache/calcite/sql/SqlSelect.html" title="class in org.apache.calcite.sql">SqlSelect</a> query, |
| int ordinal)</pre> |
| <div class="block">Returns the <code>n</code>th (0-based) input to a join expression.</div> |
| </li> |
| </ul> |
| <a name="toNodeList-org.apache.calcite.sql.SqlNode:A-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toNodeList</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> toNodeList(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>[] operands)</pre> |
| <div class="block">Converts an SqlNode array to a SqlNodeList</div> |
| </li> |
| </ul> |
| <a name="isNullLiteral-org.apache.calcite.sql.SqlNode-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNullLiteral</h4> |
| <pre>public static boolean isNullLiteral(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| boolean allowCast)</pre> |
| <div class="block">Returns whether a node represents the NULL value. |
| |
| <p>Examples: |
| |
| <ul> |
| <li>For <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="class in org.apache.calcite.sql"><code>SqlLiteral</code></a> Unknown, returns false. |
| <li>For <code>CAST(NULL AS <i>type</i>)</code>, returns true if <code> |
| allowCast</code> is true, false otherwise. |
| <li>For <code>CAST(CAST(NULL AS <i>type</i>) AS <i>type</i>))</code>, |
| returns false. |
| </ul></div> |
| </li> |
| </ul> |
| <a name="isNull-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isNull</h4> |
| <pre>public static boolean isNull(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</pre> |
| <div class="block">Returns whether a node represents the NULL value or a series of nested |
| <code>CAST(NULL AS type)</code> calls. For example: |
| <code>isNull(CAST(CAST(NULL as INTEGER) AS VARCHAR(1)))</code> |
| returns <code>true</code>.</div> |
| </li> |
| </ul> |
| <a name="isLiteral-org.apache.calcite.sql.SqlNode-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isLiteral</h4> |
| <pre>public static boolean isLiteral(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| boolean allowCast)</pre> |
| <div class="block">Returns whether a node is a literal. |
| |
| <p>Examples: |
| |
| <ul> |
| <li>For <code>CAST(literal AS <i>type</i>)</code>, returns true if <code> |
| allowCast</code> is true, false otherwise. |
| <li>For <code>CAST(CAST(literal AS <i>type</i>) AS <i>type</i>))</code>, |
| returns false. |
| </ul></div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - The node, never null.</dd> |
| <dd><code>allowCast</code> - whether to regard CAST(literal) as a literal</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Whether the node is a literal</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isLiteral-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isLiteral</h4> |
| <pre>public static boolean isLiteral(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</pre> |
| <div class="block">Returns whether a node is a literal. |
| |
| <p>Many constructs which require literals also accept <code>CAST(NULL AS |
| <i>type</i>)</code>. This method does not accept casts, so you should |
| call <a href="../../../../org/apache/calcite/sql/SqlUtil.html#isNullLiteral-org.apache.calcite.sql.SqlNode-boolean-"><code>isNullLiteral(org.apache.calcite.sql.SqlNode, boolean)</code></a> first.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - The node, never null.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Whether the node is a literal</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="isLiteralChain-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isLiteralChain</h4> |
| <pre>public static boolean isLiteralChain(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</pre> |
| <div class="block">Returns whether a node is a literal chain which is used to represent a |
| continued string literal.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>node</code> - The node, never null.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Whether the node is a literal chain</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="unparseFunctionSyntax-org.apache.calcite.sql.SqlOperator-org.apache.calcite.sql.SqlWriter-org.apache.calcite.sql.SqlCall-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>unparseFunctionSyntax</h4> |
| <pre>public static void unparseFunctionSyntax(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="interface in org.apache.calcite.sql">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="class in org.apache.calcite.sql">SqlCall</a> call)</pre> |
| <div class="block">Unparses a call to an operator which has function syntax.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>operator</code> - The operator</dd> |
| <dd><code>writer</code> - Writer</dd> |
| <dd><code>call</code> - List of 0 or more operands</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="unparseSqlIdentifierSyntax-org.apache.calcite.sql.SqlWriter-org.apache.calcite.sql.SqlIdentifier-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>unparseSqlIdentifierSyntax</h4> |
| <pre>public static void unparseSqlIdentifierSyntax(<a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="interface in org.apache.calcite.sql">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="class in org.apache.calcite.sql">SqlIdentifier</a> identifier, |
| boolean asFunctionID)</pre> |
| <div class="block">Unparse a SqlIdentifier syntax.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>writer</code> - Writer</dd> |
| <dd><code>identifier</code> - SqlIdentifier</dd> |
| <dd><code>asFunctionID</code> - Whether this identifier comes from a SqlFunction</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="unparseBinarySyntax-org.apache.calcite.sql.SqlOperator-org.apache.calcite.sql.SqlCall-org.apache.calcite.sql.SqlWriter-int-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>unparseBinarySyntax</h4> |
| <pre>public static void unparseBinarySyntax(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="class in org.apache.calcite.sql">SqlCall</a> call, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="interface in org.apache.calcite.sql">SqlWriter</a> writer, |
| int leftPrec, |
| int rightPrec)</pre> |
| </li> |
| </ul> |
| <a name="concatenateLiterals-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>concatenateLiterals</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="class in org.apache.calcite.sql">SqlLiteral</a> concatenateLiterals(<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/SqlLiteral.html" title="class in org.apache.calcite.sql">SqlLiteral</a>> lits)</pre> |
| <div class="block">Concatenates string literals. |
| |
| <p>This method takes an array of arguments, since pairwise concatenation |
| means too much string copying.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>lits</code> - an array of <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="class in org.apache.calcite.sql"><code>SqlLiteral</code></a>, not empty, all of the same |
| class</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>a new <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="class in org.apache.calcite.sql"><code>SqlLiteral</code></a>, of that same class, whose value is the |
| string concatenation of the values of the literals</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the lits are not homogeneous.</dd> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ArrayIndexOutOfBoundsException.html?is-external=true" title="class or interface in java.lang">ArrayIndexOutOfBoundsException</a></code> - if lits is an empty array.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="lookupRoutine-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-java.util.List-java.util.List-org.apache.calcite.sql.SqlFunctionCategory-org.apache.calcite.sql.SqlSyntax-org.apache.calcite.sql.SqlKind-org.apache.calcite.sql.validate.SqlNameMatcher-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lookupRoutine</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> lookupRoutine(<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> funcName, |
| <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/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> argTypes, |
| <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>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="enum in org.apache.calcite.sql">SqlSyntax</a> syntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="enum in org.apache.calcite.sql">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher, |
| boolean coerce)</pre> |
| <div class="block">Looks up a (possibly overloaded) routine based on name and argument |
| types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>opTab</code> - operator table to search</dd> |
| <dd><code>funcName</code> - name of function being invoked</dd> |
| <dd><code>argTypes</code> - argument types</dd> |
| <dd><code>argNames</code> - argument names, or null if call by position</dd> |
| <dd><code>category</code> - whether a function or a procedure. (If a procedure is |
| being invoked, the overload rules are simpler.)</dd> |
| <dd><code>nameMatcher</code> - Whether to look up the function case-sensitively</dd> |
| <dd><code>coerce</code> - Whether to allow type coercion when do filter routines |
| by parameter types</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>matching routine, or null if none found</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/calcite/util/Glossary.html#SQL99"><code>SQL:1999 Part 2 Section 10.4</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="lookupSubjectRoutines-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-java.util.List-java.util.List-org.apache.calcite.sql.SqlSyntax-org.apache.calcite.sql.SqlKind-org.apache.calcite.sql.SqlFunctionCategory-org.apache.calcite.sql.validate.SqlNameMatcher-boolean-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lookupSubjectRoutines</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>> lookupSubjectRoutines(<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> funcName, |
| <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/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> argTypes, |
| <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>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="enum in org.apache.calcite.sql">SqlSyntax</a> sqlSyntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="enum in org.apache.calcite.sql">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher, |
| boolean coerce)</pre> |
| <div class="block">Looks up all subject routines matching the given name and argument types.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>opTab</code> - operator table to search</dd> |
| <dd><code>funcName</code> - name of function being invoked</dd> |
| <dd><code>argTypes</code> - argument types</dd> |
| <dd><code>argNames</code> - argument names, or null if call by position</dd> |
| <dd><code>sqlSyntax</code> - the SqlSyntax of the SqlOperator being looked up</dd> |
| <dd><code>sqlKind</code> - the SqlKind of the SqlOperator being looked up</dd> |
| <dd><code>category</code> - Category of routine to look up</dd> |
| <dd><code>nameMatcher</code> - Whether to look up the function case-sensitively</dd> |
| <dd><code>coerce</code> - Whether to allow type coercion when do filter routine |
| by parameter types</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>list of matching routines</dd> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/calcite/util/Glossary.html#SQL99"><code>SQL:1999 Part 2 Section 10.4</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="matchRoutinesByParameterCount-org.apache.calcite.sql.SqlOperatorTable-org.apache.calcite.sql.SqlIdentifier-java.util.List-org.apache.calcite.sql.SqlFunctionCategory-org.apache.calcite.sql.validate.SqlNameMatcher-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>matchRoutinesByParameterCount</h4> |
| <pre>public static boolean matchRoutinesByParameterCount(<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> funcName, |
| <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/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>> argTypes, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="enum in org.apache.calcite.sql">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="interface in org.apache.calcite.sql.validate">SqlNameMatcher</a> nameMatcher)</pre> |
| <div class="block">Determines whether there is a routine matching the given name and number |
| of arguments.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>opTab</code> - operator table to search</dd> |
| <dd><code>funcName</code> - name of function being invoked</dd> |
| <dd><code>argTypes</code> - argument types</dd> |
| <dd><code>category</code> - category of routine to look up</dd> |
| <dd><code>nameMatcher</code> - Whether to look up the function case-sensitively</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>true if match found</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getSelectListItem-org.apache.calcite.sql.SqlNode-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSelectListItem</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> getSelectListItem(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> query, |
| int i)</pre> |
| <div class="block">Returns the <code>i</code>th select-list item of a query.</div> |
| </li> |
| </ul> |
| <a name="deriveAliasFromOrdinal-int-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>deriveAliasFromOrdinal</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> deriveAliasFromOrdinal(int ordinal)</pre> |
| </li> |
| </ul> |
| <a name="getOperatorSignature-org.apache.calcite.sql.SqlOperator-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getOperatorSignature</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> getOperatorSignature(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> op, |
| <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><?> typeList)</pre> |
| <div class="block">Constructs an operator signature from a type list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>op</code> - operator</dd> |
| <dd><code>typeList</code> - list of types to use for operands. Types may be |
| represented as <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a>, <a href="../../../../org/apache/calcite/sql/type/SqlTypeFamily.html" title="enum in org.apache.calcite.sql.type"><code>SqlTypeFamily</code></a>, or |
| any object with a valid <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"><code>Object.toString()</code></a> method.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>constructed signature</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAliasedSignature-org.apache.calcite.sql.SqlOperator-java.lang.String-java.util.List-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAliasedSignature</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> getAliasedSignature(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> op, |
| <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> opName, |
| <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><?> typeList)</pre> |
| <div class="block">Constructs an operator signature from a type list, substituting an alias |
| for the operator name.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>op</code> - operator</dd> |
| <dd><code>opName</code> - name to use for operator</dd> |
| <dd><code>typeList</code> - list of <a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type"><code>SqlTypeName</code></a> or <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> to use for |
| operands</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>constructed signature</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="newContextException-org.apache.calcite.sql.parser.SqlParserPos-org.apache.calcite.runtime.Resources.ExInst-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newContextException</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/runtime/CalciteException.html" title="class in org.apache.calcite.runtime">CalciteException</a> newContextException(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a> pos, |
| org.apache.calcite.runtime.Resources.ExInst<?> e, |
| <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> inputText)</pre> |
| <div class="block">Wraps an exception with context.</div> |
| </li> |
| </ul> |
| <a name="newContextException-org.apache.calcite.sql.parser.SqlParserPos-org.apache.calcite.runtime.Resources.ExInst-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newContextException</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/runtime/CalciteContextException.html" title="class in org.apache.calcite.runtime">CalciteContextException</a> newContextException(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a> pos, |
| org.apache.calcite.runtime.Resources.ExInst<?> e)</pre> |
| <div class="block">Wraps an exception with context.</div> |
| </li> |
| </ul> |
| <a name="newContextException-int-int-int-int-org.apache.calcite.runtime.Resources.ExInst-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>newContextException</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/runtime/CalciteContextException.html" title="class in org.apache.calcite.runtime">CalciteContextException</a> newContextException(int line, |
| int col, |
| int endLine, |
| int endCol, |
| org.apache.calcite.runtime.Resources.ExInst<?> e)</pre> |
| <div class="block">Wraps an exception with context.</div> |
| </li> |
| </ul> |
| <a name="isCallTo-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.SqlOperator-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isCallTo</h4> |
| <pre>public static boolean isCallTo(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node, |
| <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a> operator)</pre> |
| <div class="block">Returns whether a <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql"><code>node</code></a> is a <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="class in org.apache.calcite.sql"><code>call</code></a> to a |
| given <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="class in org.apache.calcite.sql"><code>operator</code></a>.</div> |
| </li> |
| </ul> |
| <a name="createNlsStringType-org.apache.calcite.rel.type.RelDataTypeFactory-org.apache.calcite.util.NlsString-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>createNlsStringType</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a> createNlsStringType(<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/util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a> str)</pre> |
| <div class="block">Creates the type of an <a href="../../../../org/apache/calcite/util/NlsString.html" title="class in org.apache.calcite.util"><code>NlsString</code></a>. |
| |
| <p>The type inherits the The NlsString's <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a> and |
| <a href="../../../../org/apache/calcite/sql/SqlCollation.html" title="class in org.apache.calcite.sql"><code>SqlCollation</code></a>, if they are set, otherwise it gets the system |
| defaults.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>typeFactory</code> - Type factory</dd> |
| <dd><code>str</code> - String</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Type, including collation and charset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="translateCharacterSetName-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>translateCharacterSetName</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> translateCharacterSetName(<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)</pre> |
| <div class="block">Translates a character set name from a SQL-level name into a Java-level |
| name.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>name</code> - SQL-level name</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>Java-level name, or null if SQL-level name is unknown</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getCharset-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getCharset</h4> |
| <pre>public static <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> getCharset(<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> charsetName)</pre> |
| <div class="block">Returns the Java-level <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset"><code>Charset</code></a> based on given SQL-level name.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>charsetName</code> - Sql charset name, must not be null.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>charset, or default charset if charsetName is null.</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/UnsupportedCharsetException.html?is-external=true" title="class or interface in java.nio.charset">UnsupportedCharsetException</a></code> - If no support for the named charset |
| is available in this instance of the Java virtual machine</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="validateCharset-org.apache.calcite.avatica.util.ByteString-java.nio.charset.Charset-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>validateCharset</h4> |
| <pre>public static void validateCharset(org.apache.calcite.avatica.util.ByteString value, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html?is-external=true" title="class or interface in java.nio.charset">Charset</a> charset)</pre> |
| <div class="block">Validate if value can be decoded by given charset.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>value</code> - nls string in byte array</dd> |
| <dd><code>charset</code> - charset</dd> |
| <dt><span class="throwsLabel">Throws:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="class or interface in java.lang">RuntimeException</a></code> - If the given value cannot be represented in the |
| given charset</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="stripAs-org.apache.calcite.sql.SqlNode-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>stripAs</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> stripAs(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> node)</pre> |
| <div class="block">If a node is "AS", returns the underlying expression; otherwise returns |
| the node.</div> |
| </li> |
| </ul> |
| <a name="stripListAs-org.apache.calcite.sql.SqlNodeList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>stripListAs</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> stripListAs(<a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> nodeList)</pre> |
| <div class="block">Modifies a list of nodes, removing AS from each if present.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../org/apache/calcite/sql/SqlUtil.html#stripAs-org.apache.calcite.sql.SqlNode-"><code>stripAs(org.apache.calcite.sql.SqlNode)</code></a></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="getAncestry-org.apache.calcite.sql.SqlNode-java.util.function.Predicate-java.util.function.Predicate-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getAncestry</h4> |
| <pre>public static com.google.common.collect.ImmutableList<<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>> getAncestry(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a> root, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>> predicate, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/function/Predicate.html?is-external=true" title="class or interface in java.util.function">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>> postPredicate)</pre> |
| <div class="block">Returns a list of ancestors of <code>predicate</code> within a given |
| <code>SqlNode</code> tree. |
| |
| <p>The first element of the list is <code>root</code>, and the last is |
| the node that matched <code>predicate</code>. Throws if no node matches.</div> |
| </li> |
| </ul> |
| <a name="getRelHint-org.apache.calcite.rel.hint.HintStrategyTable-org.apache.calcite.sql.SqlNodeList-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRelHint</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/hint/RelHint.html" title="class in org.apache.calcite.rel.hint">RelHint</a>> getRelHint(<a href="../../../../org/apache/calcite/rel/hint/HintStrategyTable.html" title="class in org.apache.calcite.rel.hint">HintStrategyTable</a> hintStrategies, |
| <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="class in org.apache.calcite.sql">SqlNodeList</a> sqlHints)</pre> |
| <div class="block">Returns an immutable list of <a href="../../../../org/apache/calcite/rel/hint/RelHint.html" title="class in org.apache.calcite.rel.hint"><code>RelHint</code></a> from sql hints, with a given |
| inherit path from the root node. |
| |
| <p>The inherit path would be empty list.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>hintStrategies</code> - The hint strategies to validate the sql hints</dd> |
| <dd><code>sqlHints</code> - The sql hints nodes</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the <code>RelHint</code> list</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="attachRelHint-org.apache.calcite.rel.hint.HintStrategyTable-java.util.List-org.apache.calcite.rel.hint.Hintable-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>attachRelHint</h4> |
| <pre>public static <a href="../../../../org/apache/calcite/rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a> attachRelHint(<a href="../../../../org/apache/calcite/rel/hint/HintStrategyTable.html" title="class in org.apache.calcite.rel.hint">HintStrategyTable</a> hintStrategies, |
| <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/hint/RelHint.html" title="class in org.apache.calcite.rel.hint">RelHint</a>> hints, |
| <a href="../../../../org/apache/calcite/rel/hint/Hintable.html" title="interface in org.apache.calcite.rel.hint">Hintable</a> rel)</pre> |
| <div class="block">Attach the <code>hints</code> to <code>rel</code> with specified hint strategies.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>hintStrategies</code> - The strategies to filter the hints</dd> |
| <dd><code>hints</code> - The original hints to be attached</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>A copy of <code>rel</code> if there are any hints can be attached given |
| the hint strategies, or the original node if such hints don't exist</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/SqlUserDefinedTypeNameSpec.html" title="class in org.apache.calcite.sql"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../org/apache/calcite/sql/SqlUtil.DatabaseMetaDataInvocationHandler.html" title="class in org.apache.calcite.sql"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/sql/SqlUtil.html" target="_top">Frames</a></li> |
| <li><a href="SqlUtil.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>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </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> |