| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="zh"> |
| <head> |
| <!-- Generated by javadoc --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>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","所有方法"],1:["t1","静态方法"],8:["t4","具体方法"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>您的浏览器已禁用 JavaScript。</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="导航"> |
| <li><a href="../../../../overview-summary.html">概览</a></li> |
| <li><a href="package-summary.html">程序包</a></li> |
| <li class="navBarCell1Rev">类</li> |
| <li><a href="package-tree.html">树</a></li> |
| <li><a href="../../../../deprecated-list.html">已过时</a></li> |
| <li><a href="../../../../index-all.html">索引</a></li> |
| <li><a href="../../../../help-doc.html">帮助</a></li> |
| </ul> |
| <div class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/calcite/sql/SqlUserDefinedTypeNameSpec.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../org/apache/calcite/sql/SqlUtil.DatabaseMetaDataInvocationHandler.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/sql/SqlUtil.html" target="_top">框架</a></li> |
| <li><a href="SqlUtil.html" target="_top">无框架</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../allclasses-noframe.html">所有类</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>概要: </li> |
| <li><a href="#nested.class.summary">嵌套</a> | </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.summary">构造器</a> | </li> |
| <li><a href="#method.summary">方法</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>详细资料: </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.detail">构造器</a> | </li> |
| <li><a href="#method.detail">方法</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.calcite.sql</div> |
| <h2 title="类 SqlUtil" class="title">类 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="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="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>嵌套类概要</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="嵌套类概要表, 列表嵌套类和解释"> |
| <caption><span>嵌套类</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">限定符和类型</th> |
| <th class="colLast" scope="col">类和说明</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="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="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="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>构造器概要</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释"> |
| <caption><span>构造器</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colOne" scope="col">构造器和说明</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>方法概要</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释"> |
| <caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">静态方法</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">限定符和类型</th> |
| <th class="colLast" scope="col">方法和说明</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../org/apache/calcite/rel/RelNode.html" title="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="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/hint/RelHint.html" title="org.apache.calcite.rel.hint中的类">RelHint</a>> hints, |
| <a href="../../../../org/apache/calcite/rel/hint/Hintable.html" title="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="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="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="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="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../org/apache/calcite/util/NlsString.html" title="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="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="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="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="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="java.lang中的类或接口">String</a> opName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="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="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="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="java.util.function中的类或接口">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="java.util.function中的类或接口">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="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="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="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="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="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="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="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="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/hint/RelHint.html" title="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="org.apache.calcite.rel.hint中的类">HintStrategyTable</a> hintStrategies, |
| <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="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="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="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="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="org.apache.calcite.sql中的类">SqlNode</a> node, |
| <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="org.apache.calcite.sql中的类">SqlOperator</a> operator)</code> |
| <div class="block">Returns whether a <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>node</code></a> is a <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类"><code>call</code></a> to a |
| given <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="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="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="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="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="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="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="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="org.apache.calcite.sql中的接口">SqlOperatorTable</a> opTab, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="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="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="org.apache.calcite.sql中的枚举">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="org.apache.calcite.sql中的枚举">SqlSyntax</a> syntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="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="java.util中的类或接口">Iterator</a><<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="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="org.apache.calcite.sql中的接口">SqlOperatorTable</a> opTab, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="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="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="org.apache.calcite.sql中的枚举">SqlSyntax</a> sqlSyntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="org.apache.calcite.sql中的枚举">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="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="org.apache.calcite.sql中的接口">SqlOperatorTable</a> opTab, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>> argTypes, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="org.apache.calcite.sql中的枚举">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="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="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="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="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="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="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="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="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="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="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="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="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="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="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="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="org.apache.calcite.sql中的类">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a> call, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="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="org.apache.calcite.sql中的类">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="org.apache.calcite.sql中的接口">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="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="org.apache.calcite.sql中的接口">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="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>从类继承的方法 java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="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="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="java.lang中的类或接口">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="java.lang中的类或接口">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="java.lang中的类或接口">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="java.lang中的类或接口">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="java.lang中的类或接口">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="java.lang中的类或接口">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="java.lang中的类或接口">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="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="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>构造器详细资料</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>方法详细资料</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="org.apache.calcite.sql中的类">SqlNode</a> getFromNode(<a href="../../../../org/apache/calcite/sql/SqlSelect.html" title="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="org.apache.calcite.sql中的类">SqlNodeList</a> toNodeList(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="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="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="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="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">参数:</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">返回:</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="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">参数:</span></dt> |
| <dd><code>node</code> - The node, never null.</dd> |
| <dt><span class="returnLabel">返回:</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="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">参数:</span></dt> |
| <dd><code>node</code> - The node, never null.</dd> |
| <dt><span class="returnLabel">返回:</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="org.apache.calcite.sql中的类">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="org.apache.calcite.sql中的接口">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="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">参数:</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="org.apache.calcite.sql中的接口">SqlWriter</a> writer, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="org.apache.calcite.sql中的类">SqlIdentifier</a> identifier, |
| boolean asFunctionID)</pre> |
| <div class="block">Unparse a SqlIdentifier syntax.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</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="org.apache.calcite.sql中的类">SqlOperator</a> operator, |
| <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类">SqlCall</a> call, |
| <a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="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="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="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">参数:</span></dt> |
| <dd><code>lits</code> - an array of <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类"><code>SqlLiteral</code></a>, not empty, all of the same |
| class</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>a new <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="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">抛出:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="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="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="org.apache.calcite.sql中的类">SqlOperator</a> lookupRoutine(<a href="../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="org.apache.calcite.sql中的接口">SqlOperatorTable</a> opTab, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="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="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="org.apache.calcite.sql中的枚举">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="org.apache.calcite.sql中的枚举">SqlSyntax</a> syntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="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">参数:</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">返回:</span></dt> |
| <dd>matching routine, or null if none found</dd> |
| <dt><span class="seeLabel">另请参阅:</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="java.util中的类或接口">Iterator</a><<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="org.apache.calcite.sql中的类">SqlOperator</a>> lookupSubjectRoutines(<a href="../../../../org/apache/calcite/sql/SqlOperatorTable.html" title="org.apache.calcite.sql中的接口">SqlOperatorTable</a> opTab, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="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="java.util中的类或接口">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>> argNames, |
| <a href="../../../../org/apache/calcite/sql/SqlSyntax.html" title="org.apache.calcite.sql中的枚举">SqlSyntax</a> sqlSyntax, |
| <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a> sqlKind, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="org.apache.calcite.sql中的枚举">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="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">参数:</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">返回:</span></dt> |
| <dd>list of matching routines</dd> |
| <dt><span class="seeLabel">另请参阅:</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="org.apache.calcite.sql中的接口">SqlOperatorTable</a> opTab, |
| <a href="../../../../org/apache/calcite/sql/SqlIdentifier.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>> argTypes, |
| <a href="../../../../org/apache/calcite/sql/SqlFunctionCategory.html" title="org.apache.calcite.sql中的枚举">SqlFunctionCategory</a> category, |
| <a href="../../../../org/apache/calcite/sql/validate/SqlNameMatcher.html" title="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">参数:</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">返回:</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="org.apache.calcite.sql中的类">SqlNode</a> getSelectListItem(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="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="java.lang中的类或接口">String</a> getOperatorSignature(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="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="java.util中的类或接口">List</a><?> typeList)</pre> |
| <div class="block">Constructs an operator signature from a type list.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</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="java.lang中的类或接口"><code>String</code></a>, <a href="../../../../org/apache/calcite/sql/type/SqlTypeFamily.html" title="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="java.lang中的类或接口"><code>Object.toString()</code></a> method.</dd> |
| <dt><span class="returnLabel">返回:</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="java.lang中的类或接口">String</a> getAliasedSignature(<a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="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="java.lang中的类或接口">String</a> opName, |
| <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="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">参数:</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="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="java.lang中的类或接口"><code>String</code></a> to use for |
| operands</dd> |
| <dt><span class="returnLabel">返回:</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="org.apache.calcite.runtime中的类">CalciteException</a> newContextException(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="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="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="org.apache.calcite.runtime中的类">CalciteContextException</a> newContextException(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="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="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="org.apache.calcite.sql中的类">SqlNode</a> node, |
| <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="org.apache.calcite.sql中的类">SqlOperator</a> operator)</pre> |
| <div class="block">Returns whether a <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>node</code></a> is a <a href="../../../../org/apache/calcite/sql/SqlCall.html" title="org.apache.calcite.sql中的类"><code>call</code></a> to a |
| given <a href="../../../../org/apache/calcite/sql/SqlOperator.html" title="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="org.apache.calcite.rel.type中的接口">RelDataType</a> createNlsStringType(<a href="../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a> typeFactory, |
| <a href="../../../../org/apache/calcite/util/NlsString.html" title="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="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="java.nio.charset中的类或接口"><code>Charset</code></a> and |
| <a href="../../../../org/apache/calcite/sql/SqlCollation.html" title="org.apache.calcite.sql中的类"><code>SqlCollation</code></a>, if they are set, otherwise it gets the system |
| defaults.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>typeFactory</code> - Type factory</dd> |
| <dd><code>str</code> - String</dd> |
| <dt><span class="returnLabel">返回:</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="java.lang中的类或接口">String</a> translateCharacterSetName(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="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">参数:</span></dt> |
| <dd><code>name</code> - SQL-level name</dd> |
| <dt><span class="returnLabel">返回:</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="java.nio.charset中的类或接口">Charset</a> getCharset(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="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="java.nio.charset中的类或接口"><code>Charset</code></a> based on given SQL-level name.</div> |
| <dl> |
| <dt><span class="paramLabel">参数:</span></dt> |
| <dd><code>charsetName</code> - Sql charset name, must not be null.</dd> |
| <dt><span class="returnLabel">返回:</span></dt> |
| <dd>charset, or default charset if charsetName is null.</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/UnsupportedCharsetException.html?is-external=true" title="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="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">参数:</span></dt> |
| <dd><code>value</code> - nls string in byte array</dd> |
| <dd><code>charset</code> - charset</dd> |
| <dt><span class="throwsLabel">抛出:</span></dt> |
| <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/RuntimeException.html?is-external=true" title="java.lang中的类或接口">RuntimeException</a></code> - If the 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="org.apache.calcite.sql中的类">SqlNode</a> stripAs(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="org.apache.calcite.sql中的类">SqlNodeList</a> stripListAs(<a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="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">另请参阅:</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="org.apache.calcite.sql中的类">SqlNode</a>> getAncestry(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="java.util.function中的类或接口">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="java.util.function中的类或接口">Predicate</a><<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/hint/RelHint.html" title="org.apache.calcite.rel.hint中的类">RelHint</a>> getRelHint(<a href="../../../../org/apache/calcite/rel/hint/HintStrategyTable.html" title="org.apache.calcite.rel.hint中的类">HintStrategyTable</a> hintStrategies, |
| <a href="../../../../org/apache/calcite/sql/SqlNodeList.html" title="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="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">参数:</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">返回:</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="org.apache.calcite.rel中的接口">RelNode</a> attachRelHint(<a href="../../../../org/apache/calcite/rel/hint/HintStrategyTable.html" title="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="java.util中的类或接口">List</a><<a href="../../../../org/apache/calcite/rel/hint/RelHint.html" title="org.apache.calcite.rel.hint中的类">RelHint</a>> hints, |
| <a href="../../../../org/apache/calcite/rel/hint/Hintable.html" title="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">参数:</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">返回:</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="跳过导航链接">跳过导航链接</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="导航"> |
| <li><a href="../../../../overview-summary.html">概览</a></li> |
| <li><a href="package-summary.html">程序包</a></li> |
| <li class="navBarCell1Rev">类</li> |
| <li><a href="package-tree.html">树</a></li> |
| <li><a href="../../../../deprecated-list.html">已过时</a></li> |
| <li><a href="../../../../index-all.html">索引</a></li> |
| <li><a href="../../../../help-doc.html">帮助</a></li> |
| </ul> |
| <div class="aboutLanguage"><b>Apache Calcite</b></div> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../org/apache/calcite/sql/SqlUserDefinedTypeNameSpec.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">上一个类</span></a></li> |
| <li><a href="../../../../org/apache/calcite/sql/SqlUtil.DatabaseMetaDataInvocationHandler.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">下一个类</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../index.html?org/apache/calcite/sql/SqlUtil.html" target="_top">框架</a></li> |
| <li><a href="SqlUtil.html" target="_top">无框架</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../allclasses-noframe.html">所有类</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>概要: </li> |
| <li><a href="#nested.class.summary">嵌套</a> | </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.summary">构造器</a> | </li> |
| <li><a href="#method.summary">方法</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>详细资料: </li> |
| <li>字段 | </li> |
| <li><a href="#constructor.detail">构造器</a> | </li> |
| <li><a href="#method.detail">方法</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p> |
| </body> |
| </html> |