blob: a9ee8ec362e67072d5bfeb5f758b0b292b2a8d6b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>SqlLiteral (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="SqlLiteral (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":41,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":10,"i18":9,"i19":41,"i20":9,"i21":41,"i22":9,"i23":9,"i24":10,"i25":10,"i26":10,"i27":10,"i28":42,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":9,"i36":42,"i37":41,"i38":42,"i39":10,"i40":10,"i41":9,"i42":10,"i43":10,"i44":10,"i45":9,"i46":9};
var tabs = {65535:["t0","所有方法"],1:["t1","静态方法"],2:["t2","实例方法"],8:["t4","具体方法"],32:["t6","已过时的方法"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-all.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/sql/SqlLateralOperator.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.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/SqlLiteral.html" target="_top">框架</a></li>
<li><a href="SqlLiteral.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li><a href="#nested.class.summary">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li><a href="#field.detail">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.calcite.sql</div>
<h2 title="类 SqlLiteral" class="title">类 SqlLiteral</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><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">org.apache.calcite.sql.SqlNode</a></li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.sql.SqlLiteral</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>所有已实现的接口:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="java.lang中的类或接口">Cloneable</a></dd>
</dl>
<dl>
<dt>直接已知子类:</dt>
<dd><a href="../../../../org/apache/calcite/sql/SqlAbstractDateTimeLiteral.html" title="org.apache.calcite.sql中的类">SqlAbstractDateTimeLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlBinaryStringLiteral.html" title="org.apache.calcite.sql中的类">SqlBinaryStringLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlCharStringLiteral.html" title="org.apache.calcite.sql中的类">SqlCharStringLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlIntervalLiteral.html" title="org.apache.calcite.sql中的类">SqlIntervalLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">SqlLiteral</span>
extends <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></pre>
<div class="block">A <code>SqlLiteral</code> is a constant. It is, appropriately, immutable.
<p>How is the value stored? In that respect, the class is somewhat of a black
box. There is a <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getValue--"><code>getValue()</code></a> method which returns the value as an
object, but the type of that value is implementation detail, and it is best
that your code does not depend upon that knowledge. It is better to use
task-oriented methods such as <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-org.apache.calcite.sql.SqlDialect-"><code>SqlNode.toSqlString(SqlDialect)</code></a> and
<a href="../../../../org/apache/calcite/sql/SqlLiteral.html#toValue--"><code>toValue()</code></a>.</p>
<p>If you really need to access the value directly, you should switch on the
value of the <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#typeName"><code>typeName</code></a> field, rather than making assumptions about
the runtime type of the <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value"><code>value</code></a>.</p>
<p>The allowable types and combinations are:
<table>
<caption>Allowable types for SqlLiteral</caption>
<tr>
<th>TypeName</th>
<th>Meaing</th>
<th>Value type</th>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#NULL"><code>SqlTypeName.NULL</code></a></td>
<td>The null value. It has its own special type.</td>
<td>null</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#BOOLEAN"><code>SqlTypeName.BOOLEAN</code></a></td>
<td>Boolean, namely <code>TRUE</code>, <code>FALSE</code> or <code>
UNKNOWN</code>.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="java.lang中的类或接口"><code>Boolean</code></a>, or null represents the UNKNOWN value</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#DECIMAL"><code>SqlTypeName.DECIMAL</code></a></td>
<td>Exact number, for example <code>0</code>, <code>-.5</code>, <code>
12345</code>.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#DOUBLE"><code>SqlTypeName.DOUBLE</code></a></td>
<td>Approximate number, for example <code>6.023E-23</code>.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#DATE"><code>SqlTypeName.DATE</code></a></td>
<td>Date, for example <code>DATE '1969-04'29'</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#TIME"><code>SqlTypeName.TIME</code></a></td>
<td>Time, for example <code>TIME '18:37:42.567'</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#TIMESTAMP"><code>SqlTypeName.TIMESTAMP</code></a></td>
<td>Timestamp, for example <code>TIMESTAMP '1969-04-29
18:37:42.567'</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#CHAR"><code>SqlTypeName.CHAR</code></a></td>
<td>Character constant, for example <code>'Hello, world!'</code>, <code>
''</code>, <code>_N'Bonjour'</code>, <code>_ISO-8859-1'It''s superman!'
COLLATE SHIFT_JIS$ja_JP$2</code>. These are always CHAR, never VARCHAR.</td>
<td><a href="../../../../org/apache/calcite/util/NlsString.html" title="org.apache.calcite.util中的类"><code>NlsString</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#BINARY"><code>SqlTypeName.BINARY</code></a></td>
<td>Binary constant, for example <code>X'ABC'</code>, <code>X'7F'</code>.
Note that strings with an odd number of hexits will later become values of
the BIT datatype, because they have an incomplete number of bytes. But here,
they are all binary constants, because that's how they were written. These
constants are always BINARY, never VARBINARY.</td>
<td><a href="../../../../org/apache/calcite/util/BitString.html" title="org.apache.calcite.util中的类"><code>BitString</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#SYMBOL"><code>SqlTypeName.SYMBOL</code></a></td>
<td>A symbol is a special type used to make parsing easier; it is not part of
the SQL standard, and is not exposed to end-users. It is used to hold a
symbol, such as the LEADING flag in a call to the function <code>
TRIM([LEADING|TRAILING|BOTH] chars FROM string)</code>.</td>
<td>An <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口"><code>Enum</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_YEAR"><code>SqlTypeName.INTERVAL_YEAR</code></a>
.. <a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_SECOND"><code>SqlTypeName.INTERVAL_SECOND</code></a></td>
<td>Interval, for example <code>INTERVAL '1:34' HOUR</code>.</td>
<td><a href="../../../../org/apache/calcite/sql/SqlIntervalLiteral.IntervalValue.html" title="org.apache.calcite.sql中的类"><code>SqlIntervalLiteral.IntervalValue</code></a>.</td>
</tr>
</table></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">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">类和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.html" title="org.apache.calcite.sql中的接口">SqlLiteral.SqlSymbol</a></span></code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>字段概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="字段概要表, 列表字段和解释">
<caption><span>字段</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">字段和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value">value</a></span></code>
<div class="block">The value of this literal.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.calcite.sql.SqlNode">
<!-- -->
</a>
<h3>从类继承的字段&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#EMPTY_ARRAY">EMPTY_ARRAY</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#pos">pos</a></code></li>
</ul>
</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">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符</th>
<th class="colLast" scope="col">构造器和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#SqlLiteral-java.lang.Object-org.apache.calcite.sql.type.SqlTypeName-org.apache.calcite.sql.parser.SqlParserPos-">SqlLiteral</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a <code>SqlLiteral</code>.</div>
</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">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">静态方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">已过时的方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>&lt;R&gt;&nbsp;R</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#accept-org.apache.calcite.sql.util.SqlVisitor-">accept</a></span>(<a href="../../../../org/apache/calcite/sql/util/SqlVisitor.html" title="org.apache.calcite.sql.util中的接口">SqlVisitor</a>&lt;R&gt;&nbsp;visitor)</code>
<div class="block">Accepts a generic visitor.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口">BigDecimal</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#bigDecimalValue--">bigDecimalValue</a></span>()</code>
<div class="block">Returns a numeric literal's value as a <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#booleanValue--">booleanValue</a></span>()</code>
<div class="block">Returns the value as a boolean.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><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/SqlLiteral.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">clone</a></span>(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Clones a SqlNode with a different position.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createApproxNumeric-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createApproxNumeric</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlBinaryStringLiteral.html" title="org.apache.calcite.sql中的类">SqlBinaryStringLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createBinaryString-byte:A-org.apache.calcite.sql.parser.SqlParserPos-">createBinaryString</a></span>(byte[]&nbsp;bytes,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a literal like X'ABAB' from an array of bytes.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlBinaryStringLiteral.html" title="org.apache.calcite.sql中的类">SqlBinaryStringLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createBinaryString-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createBinaryString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a literal like X'ABAB'.</div>
</td>
</tr>
<tr id="i7" 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/SqlLiteral.html#createBoolean-boolean-org.apache.calcite.sql.parser.SqlParserPos-">createBoolean</a></span>(boolean&nbsp;b,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a boolean literal.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlCharStringLiteral.html" title="org.apache.calcite.sql中的类">SqlCharStringLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createCharString-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createCharString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a string literal in the system character set.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlCharStringLiteral.html" title="org.apache.calcite.sql中的类">SqlCharStringLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createCharString-java.lang.String-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createCharString</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;charSet,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a string literal, with optional character-set.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlDateLiteral.html" title="org.apache.calcite.sql中的类">SqlDateLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createDate-java.util.Calendar-org.apache.calcite.sql.parser.SqlParserPos-">createDate</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口">Calendar</a>&nbsp;calendar,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlDateLiteral.html" title="org.apache.calcite.sql中的类">SqlDateLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createDate-org.apache.calcite.util.DateString-org.apache.calcite.sql.parser.SqlParserPos-">createDate</a></span>(<a href="../../../../org/apache/calcite/util/DateString.html" title="org.apache.calcite.util中的类">DateString</a>&nbsp;date,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createExactNumeric-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createExactNumeric</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlIntervalLiteral.html" title="org.apache.calcite.sql中的类">SqlIntervalLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createInterval-int-java.lang.String-org.apache.calcite.sql.SqlIntervalQualifier-org.apache.calcite.sql.parser.SqlParserPos-">createInterval</a></span>(int&nbsp;sign,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;intervalStr,
<a href="../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类">SqlIntervalQualifier</a>&nbsp;intervalQualifier,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates an interval literal.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createNegative-org.apache.calcite.sql.SqlNumericLiteral-org.apache.calcite.sql.parser.SqlParserPos-">createNegative</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a>&nbsp;num,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i15" 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/SqlLiteral.html#createNull-org.apache.calcite.sql.parser.SqlParserPos-">createNull</a></span>(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a NULL literal.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<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/SqlLiteral.html#createSample-org.apache.calcite.sql.SqlSampleSpec-org.apache.calcite.sql.parser.SqlParserPos-">createSample</a></span>(<a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="org.apache.calcite.sql中的类">SqlSampleSpec</a>&nbsp;sampleSpec,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a literal which represents a sample specification.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createSqlType-org.apache.calcite.rel.type.RelDataTypeFactory-">createSqlType</a></span>(<a href="../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a>&nbsp;typeFactory)</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<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/SqlLiteral.html#createSymbol-java.lang.Enum-org.apache.calcite.sql.parser.SqlParserPos-">createSymbol</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口">Enum</a>&lt;?&gt;&nbsp;o,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Creates a literal which represents a parser symbol, for example the
<code>TRAILING</code> keyword in the call <code>Trim(TRAILING 'x' FROM
'Hello world!')</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="org.apache.calcite.sql中的类">SqlTimeLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTime-java.util.Calendar-int-org.apache.calcite.sql.parser.SqlParserPos-">createTime</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="org.apache.calcite.sql中的类">SqlTimeLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTime-org.apache.calcite.util.TimeString-int-org.apache.calcite.sql.parser.SqlParserPos-">createTime</a></span>(<a href="../../../../org/apache/calcite/util/TimeString.html" title="org.apache.calcite.util中的类">TimeString</a>&nbsp;t,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimestampLiteral.html" title="org.apache.calcite.sql中的类">SqlTimestampLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTimestamp-java.util.Calendar-int-org.apache.calcite.sql.parser.SqlParserPos-">createTimestamp</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimestampLiteral.html" title="org.apache.calcite.sql中的类">SqlTimestampLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTimestamp-org.apache.calcite.util.TimestampString-int-org.apache.calcite.sql.parser.SqlParserPos-">createTimestamp</a></span>(<a href="../../../../org/apache/calcite/util/TimestampString.html" title="org.apache.calcite.util中的类">TimestampString</a>&nbsp;ts,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i23" 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/SqlLiteral.html#createUnknown-org.apache.calcite.sql.parser.SqlParserPos-">createUnknown</a></span>(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;obj)</code>&nbsp;</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#equalsDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">equalsDeep</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
<a href="../../../../org/apache/calcite/util/Litmus.html" title="org.apache.calcite.util中的接口">Litmus</a>&nbsp;litmus)</code>
<div class="block">Returns whether this node is structurally equivalent to another node.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getKind--">getKind</a></span>()</code>
<div class="block">Returns the type of node this is, or
<a href="../../../../org/apache/calcite/sql/SqlKind.html#OTHER"><code>SqlKind.OTHER</code></a> if it's nothing special.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/validate/SqlMonotonicity.html" title="org.apache.calcite.sql.validate中的枚举">SqlMonotonicity</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getMonotonicity-org.apache.calcite.sql.validate.SqlValidatorScope-">getMonotonicity</a></span>(<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Returns whether expression is always ascending, descending or constant.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getStringValue--">getStringValue</a></span>()</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getTypeName--">getTypeName</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getValue--">getValue</a></span>()</code>
<div class="block">Returns the value of this literal.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>&lt;T&gt;&nbsp;T</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getValueAs-java.lang.Class-">getValueAs</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;clazz)</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#hashCode--">hashCode</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#intValue-boolean-">intValue</a></span>(boolean&nbsp;exact)</code>
<div class="block">Returns the integer value of this literal.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>long</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#longValue-boolean-">longValue</a></span>(boolean&nbsp;exact)</code>
<div class="block">Returns the long value of this literal.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="org.apache.calcite.sql中的类">SqlSampleSpec</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#sampleValue-org.apache.calcite.sql.SqlNode-">sampleValue</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Extracts the <a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="org.apache.calcite.sql中的类"><code>SqlSampleSpec</code></a> value from a symbol literal.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#signum--">signum</a></span>()</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i37" 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/SqlLiteral.html#stringValue-org.apache.calcite.sql.SqlNode-">stringValue</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;
<div class="block"><span class="deprecationComment">Use <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value-org.apache.calcite.sql.SqlNode-"><code>value(SqlNode)</code></a></span></div>
</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>&lt;E extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口">Enum</a>&lt;E&gt;&gt;<br>E</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#symbolValue_--">symbolValue_</a></span>()</code>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>&lt;E extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口">Enum</a>&lt;E&gt;&gt;<br>E</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#symbolValue-java.lang.Class-">symbolValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;E&gt;&nbsp;class_)</code>
<div class="block">Returns the value as a symbol.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#toValue--">toValue</a></span>()</code>
<div class="block">For calc program builder - value may be different than <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-"><code>unparse(org.apache.calcite.sql.SqlWriter, int, int)</code></a>
Typical values:
Hello, world!</div>
</td>
</tr>
<tr id="i41" 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/SqlLiteral.html#unchain-org.apache.calcite.sql.SqlNode-">unchain</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Converts a chained string literals into regular literals; returns regular
literals unchanged.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code><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/SqlLiteral.html#unescapeUnicode-char-">unescapeUnicode</a></span>(char&nbsp;unicodeEscapeChar)</code>
<div class="block">Transforms this literal (which must be of type character) into a new one
in which 4-digit Unicode escape sequences have been replaced with the
corresponding Unicode characters.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">unparse</a></span>(<a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="org.apache.calcite.sql中的接口">SqlWriter</a>&nbsp;writer,
int&nbsp;leftPrec,
int&nbsp;rightPrec)</code>
<div class="block">Writes a SQL representation of this node to a writer.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">validate</a></span>(<a href="../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a>&nbsp;validator,
<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</code>
<div class="block">Validates this node.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value-org.apache.calcite.sql.SqlNode-">value</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</code>
<div class="block">Extracts the value from a literal.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#valueMatchesType-java.lang.Object-org.apache.calcite.sql.type.SqlTypeName-">valueMatchesType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.sql.SqlNode">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#clone--">clone</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#clone-E-">clone</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#cloneArray-org.apache.calcite.sql.SqlNode:A-">cloneArray</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#equalDeep-java.util.List-java.util.List-org.apache.calcite.util.Litmus-">equalDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#equalDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">equalDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#equalsDeep-org.apache.calcite.sql.SqlNode-boolean-">equalsDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#findValidOptions-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.parser.SqlParserPos-java.util.Collection-">findValidOptions</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#getParserPosition--">getParserPosition</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#isA-java.util.Set-">isA</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-org.apache.calcite.sql.SqlDialect-">toSqlString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-org.apache.calcite.sql.SqlDialect-boolean-">toSqlString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-java.util.function.UnaryOperator-">toSqlString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toString--">toString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#validateExpr-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">validateExpr</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;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#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#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#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">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>字段详细资料</h3>
<a name="value">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>value</h4>
<pre>protected final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a> value</pre>
<div class="block">The value of this literal. The type of the value must be appropriate for
the typeName, as defined by the <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#valueMatchesType-java.lang.Object-org.apache.calcite.sql.type.SqlTypeName-"><code>valueMatchesType(java.lang.Object, org.apache.calcite.sql.type.SqlTypeName)</code></a> method.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>构造器详细资料</h3>
<a name="SqlLiteral-java.lang.Object-org.apache.calcite.sql.type.SqlTypeName-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SqlLiteral</h4>
<pre>protected&nbsp;SqlLiteral(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a <code>SqlLiteral</code>.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="getTypeName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeName</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;getTypeName()</pre>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>value of <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#typeName"><code>typeName</code></a></dd>
</dl>
</li>
</ul>
<a name="valueMatchesType-java.lang.Object-org.apache.calcite.sql.type.SqlTypeName-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valueMatchesType</h4>
<pre>public static&nbsp;boolean&nbsp;valueMatchesType(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName)</pre>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether value is appropriate for its type (we have rules about
these things)</dd>
</dl>
</li>
</ul>
<a name="clone-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clone</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;clone(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">SqlNode</a></code></span></div>
<div class="block">Clones a SqlNode with a different position.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">clone</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
</dl>
</li>
</ul>
<a name="getKind--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKind</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a>&nbsp;getKind()</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#getKind--">SqlNode</a></code></span></div>
<div class="block">Returns the type of node this is, or
<a href="../../../../org/apache/calcite/sql/SqlKind.html#OTHER"><code>SqlKind.OTHER</code></a> if it's nothing special.</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#getKind--">getKind</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>a <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举"><code>SqlKind</code></a> value, never null</dd>
<dt><span class="seeLabel">另请参阅:</span></dt>
<dd><a href="../../../../org/apache/calcite/sql/SqlNode.html#isA-java.util.Set-"><code>SqlNode.isA(java.util.Set&lt;org.apache.calcite.sql.SqlKind&gt;)</code></a></dd>
</dl>
</li>
</ul>
<a name="getValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;getValue()</pre>
<div class="block">Returns the value of this literal.
<p>Try not to use this method! There are so many different kinds of
values, it's better to to let SqlLiteral do whatever it is you want to
do.</div>
<dl>
<dt><span class="seeLabel">另请参阅:</span></dt>
<dd><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#booleanValue--"><code>booleanValue()</code></a>,
<a href="../../../../org/apache/calcite/sql/SqlLiteral.html#symbolValue-java.lang.Class-"><code>symbolValue(Class)</code></a></dd>
</dl>
</li>
</ul>
<a name="getValueAs-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueAs</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;getValueAs(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;clazz)</pre>
</li>
</ul>
<a name="symbolValue_--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>symbolValue_</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public&nbsp;&lt;E extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口">Enum</a>&lt;E&gt;&gt;&nbsp;E&nbsp;symbolValue_()</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
<div class="block">Returns the value as a symbol.</div>
</li>
</ul>
<a name="symbolValue-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>symbolValue</h4>
<pre>public&nbsp;&lt;E extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口">Enum</a>&lt;E&gt;&gt;&nbsp;E&nbsp;symbolValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;E&gt;&nbsp;class_)</pre>
<div class="block">Returns the value as a symbol.</div>
</li>
</ul>
<a name="booleanValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>booleanValue</h4>
<pre>public&nbsp;boolean&nbsp;booleanValue()</pre>
<div class="block">Returns the value as a boolean.</div>
</li>
</ul>
<a name="sampleValue-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sampleValue</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="org.apache.calcite.sql中的类">SqlSampleSpec</a>&nbsp;sampleValue(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Extracts the <a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="org.apache.calcite.sql中的类"><code>SqlSampleSpec</code></a> value from a symbol literal.</div>
<dl>
<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 value is not a symbol literal</dd>
<dt><span class="seeLabel">另请参阅:</span></dt>
<dd><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createSymbol-java.lang.Enum-org.apache.calcite.sql.parser.SqlParserPos-"><code>createSymbol(Enum, SqlParserPos)</code></a></dd>
</dl>
</li>
</ul>
<a name="value-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>value</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&nbsp;value(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)
throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="java.lang中的类或接口">IllegalArgumentException</a></pre>
<div class="block">Extracts the value from a literal.
<p>Cases:
<ul>
<li>If the node is a character literal, a chain of string
literals, or a CAST of a character literal, returns the value as a
<a href="../../../../org/apache/calcite/util/NlsString.html" title="org.apache.calcite.util中的类"><code>NlsString</code></a>.
<li>If the node is a numeric literal, or a negated numeric literal,
returns the value as a <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a>.
<li>If the node is a <a href="../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类"><code>SqlIntervalQualifier</code></a>,
returns its <code>TimeUnitRange</code>.
<li>If the node is INTERVAL_DAY_TIME_ in <a href="../../../../org/apache/calcite/sql/type/SqlTypeFamily.html" title="org.apache.calcite.sql.type中的枚举"><code>SqlTypeFamily</code></a>,
returns its sign multiplied by its millisecond equivalent value
<li>If the node is INTERVAL_YEAR_MONTH_ in <a href="../../../../org/apache/calcite/sql/type/SqlTypeFamily.html" title="org.apache.calcite.sql.type中的枚举"><code>SqlTypeFamily</code></a>,
returns its sign multiplied by its months equivalent value
<li>Otherwise throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="java.lang中的类或接口"><code>IllegalArgumentException</code></a>.
</ul></div>
<dl>
<dt><span class="throwsLabel">抛出:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="java.lang中的类或接口">IllegalArgumentException</a></code></dd>
</dl>
</li>
</ul>
<a name="stringValue-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringValue</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;stringValue(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;<span class="deprecationComment">Use <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value-org.apache.calcite.sql.SqlNode-"><code>value(SqlNode)</code></a></span></div>
<div class="block">Extracts the string value from a string literal, a chain of string
literals, or a CAST of a string literal.</div>
</li>
</ul>
<a name="unchain-org.apache.calcite.sql.SqlNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unchain</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;unchain(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node)</pre>
<div class="block">Converts a chained string literals into regular literals; returns regular
literals unchanged.</div>
<dl>
<dt><span class="throwsLabel">抛出:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="java.lang中的类或接口">IllegalArgumentException</a></code> - if <code>node</code> is not a string literal
and cannot be unchained.</dd>
</dl>
</li>
</ul>
<a name="toValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toValue</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;toValue()</pre>
<div class="block">For calc program builder - value may be different than <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-"><code>unparse(org.apache.calcite.sql.SqlWriter, int, int)</code></a>
Typical values:
<ul>
<li>Hello, world!</li>
<li>12.34</li>
<li>{null}</li>
<li>1969-04-29</li>
</ul></div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>string representation of the value</dd>
</dl>
</li>
</ul>
<a name="validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validate</h4>
<pre>public&nbsp;void&nbsp;validate(<a href="../../../../org/apache/calcite/sql/validate/SqlValidator.html" title="org.apache.calcite.sql.validate中的接口">SqlValidator</a>&nbsp;validator,
<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">SqlNode</a></code></span></div>
<div class="block">Validates this node.
<p>The typical implementation of this method will make a callback to the
validator appropriate to the node type and context. The validator has
methods such as <a href="../../../../org/apache/calcite/sql/validate/SqlValidator.html#validateLiteral-org.apache.calcite.sql.SqlLiteral-"><code>SqlValidator.validateLiteral(org.apache.calcite.sql.SqlLiteral)</code></a> for these purposes.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">validate</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
<dd><code>scope</code> - Validator</dd>
</dl>
</li>
</ul>
<a name="accept-org.apache.calcite.sql.util.SqlVisitor-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>accept</h4>
<pre>public&nbsp;&lt;R&gt;&nbsp;R&nbsp;accept(<a href="../../../../org/apache/calcite/sql/util/SqlVisitor.html" title="org.apache.calcite.sql.util中的接口">SqlVisitor</a>&lt;R&gt;&nbsp;visitor)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#accept-org.apache.calcite.sql.util.SqlVisitor-">SqlNode</a></code></span></div>
<div class="block">Accepts a generic visitor.
<p>Implementations of this method in subtypes simply call the appropriate
<code>visit</code> method on the
<a href="../../../../org/apache/calcite/sql/util/SqlVisitor.html" title="org.apache.calcite.sql.util中的接口"><code>visitor object</code></a>.
<p>The type parameter <code>R</code> must be consistent with the type
parameter of the visitor.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#accept-org.apache.calcite.sql.util.SqlVisitor-">accept</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
</dl>
</li>
</ul>
<a name="equalsDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equalsDeep</h4>
<pre>public&nbsp;boolean&nbsp;equalsDeep(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a>&nbsp;node,
<a href="../../../../org/apache/calcite/util/Litmus.html" title="org.apache.calcite.util中的接口">Litmus</a>&nbsp;litmus)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#equalsDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">SqlNode</a></code></span></div>
<div class="block">Returns whether this node is structurally equivalent to another node.
Some examples:
<ul>
<li>1 + 2 is structurally equivalent to 1 + 2</li>
<li>1 + 2 + 3 is structurally equivalent to (1 + 2) + 3, but not to 1 +
(2 + 3), because the '+' operator is left-associative</li>
</ul></div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#equalsDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">equalsDeep</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
</dl>
</li>
</ul>
<a name="getMonotonicity-org.apache.calcite.sql.validate.SqlValidatorScope-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMonotonicity</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/validate/SqlMonotonicity.html" title="org.apache.calcite.sql.validate中的枚举">SqlMonotonicity</a>&nbsp;getMonotonicity(<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="org.apache.calcite.sql.validate中的接口">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#getMonotonicity-org.apache.calcite.sql.validate.SqlValidatorScope-">SqlNode</a></code></span></div>
<div class="block">Returns whether expression is always ascending, descending or constant.
This property is useful because it allows to safely aggregate infinite
streams of values.
<p>The default implementation returns
<a href="../../../../org/apache/calcite/sql/validate/SqlMonotonicity.html#NOT_MONOTONIC"><code>SqlMonotonicity.NOT_MONOTONIC</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#getMonotonicity-org.apache.calcite.sql.validate.SqlValidatorScope-">getMonotonicity</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>scope</code> - Scope</dd>
</dl>
</li>
</ul>
<a name="createNull-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createNull</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;createNull(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a NULL literal.
<p>There's no singleton constant for a NULL literal. Instead, nulls must
be instantiated via createNull(), because different instances have
different context-dependent types.</div>
</li>
</ul>
<a name="createBoolean-boolean-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createBoolean</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;createBoolean(boolean&nbsp;b,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a boolean literal.</div>
</li>
</ul>
<a name="createUnknown-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createUnknown</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;createUnknown(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createSymbol-java.lang.Enum-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSymbol</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;createSymbol(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html?is-external=true" title="java.lang中的类或接口">Enum</a>&lt;?&gt;&nbsp;o,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a literal which represents a parser symbol, for example the
<code>TRAILING</code> keyword in the call <code>Trim(TRAILING 'x' FROM
'Hello world!')</code>.</div>
<dl>
<dt><span class="seeLabel">另请参阅:</span></dt>
<dd><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#symbolValue-java.lang.Class-"><code>symbolValue(Class)</code></a></dd>
</dl>
</li>
</ul>
<a name="createSample-org.apache.calcite.sql.SqlSampleSpec-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSample</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;createSample(<a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="org.apache.calcite.sql中的类">SqlSampleSpec</a>&nbsp;sampleSpec,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a literal which represents a sample specification.</div>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;obj)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><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></code>&nbsp;在类中&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="hashCode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="java.lang中的类或接口">hashCode</a></code>&nbsp;在类中&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></code></dd>
</dl>
</li>
</ul>
<a name="intValue-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intValue</h4>
<pre>public&nbsp;int&nbsp;intValue(boolean&nbsp;exact)</pre>
<div class="block">Returns the integer value of this literal.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>exact</code> - Whether the value has to be exact. If true, and the literal
is a fraction (e.g. 3.14), throws. If false, discards the
fractional part of the value.</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Integer value of this literal</dd>
</dl>
</li>
</ul>
<a name="longValue-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>longValue</h4>
<pre>public&nbsp;long&nbsp;longValue(boolean&nbsp;exact)</pre>
<div class="block">Returns the long value of this literal.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>exact</code> - Whether the value has to be exact. If true, and the literal
is a fraction (e.g. 3.14), throws. If false, discards the
fractional part of the value.</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Long value of this literal</dd>
</dl>
</li>
</ul>
<a name="signum--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>signum</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public&nbsp;int&nbsp;signum()</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
<div class="block">Returns sign of value.</div>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>-1, 0 or 1</dd>
</dl>
</li>
</ul>
<a name="bigDecimalValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bigDecimalValue</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口">BigDecimal</a>&nbsp;bigDecimalValue()</pre>
<div class="block">Returns a numeric literal's value as a <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a>.</div>
</li>
</ul>
<a name="getStringValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getStringValue</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;getStringValue()</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</li>
</ul>
<a name="unparse-org.apache.calcite.sql.SqlWriter-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unparse</h4>
<pre>public&nbsp;void&nbsp;unparse(<a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="org.apache.calcite.sql中的接口">SqlWriter</a>&nbsp;writer,
int&nbsp;leftPrec,
int&nbsp;rightPrec)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">SqlNode</a></code></span></div>
<div class="block">Writes a SQL representation of this node to a writer.
<p>The <code>leftPrec</code> and <code>rightPrec</code> parameters give
us enough context to decide whether we need to enclose the expression in
parentheses. For example, we need parentheses around "2 + 3" if preceded
by "5 *". This is because the precedence of the "*" operator is greater
than the precedence of the "+" operator.
<p>The algorithm handles left- and right-associative operators by giving
them slightly different left- and right-precedence.
<p>If <a href="../../../../org/apache/calcite/sql/SqlWriter.html#isAlwaysUseParentheses--"><code>SqlWriter.isAlwaysUseParentheses()</code></a> is true, we use
parentheses even when they are not required by the precedence rules.
<p>For the details of this algorithm, see <a href="../../../../org/apache/calcite/sql/SqlCall.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-"><code>SqlCall.unparse(org.apache.calcite.sql.SqlWriter, int, int)</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">unparse</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></code></dd>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>writer</code> - Target writer</dd>
<dd><code>leftPrec</code> - The precedence of the <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>SqlNode</code></a> immediately
preceding this node in a depth-first scan of the parse
tree</dd>
<dd><code>rightPrec</code> - The precedence of the <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>SqlNode</code></a> immediately</dd>
</dl>
</li>
</ul>
<a name="createSqlType-org.apache.calcite.rel.type.RelDataTypeFactory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSqlType</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;createSqlType(<a href="../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a>&nbsp;typeFactory)</pre>
</li>
</ul>
<a name="createDate-java.util.Calendar-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createDate</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlDateLiteral.html" title="org.apache.calcite.sql中的类">SqlDateLiteral</a>&nbsp;createDate(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口">Calendar</a>&nbsp;calendar,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</li>
</ul>
<a name="createDate-org.apache.calcite.util.DateString-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createDate</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlDateLiteral.html" title="org.apache.calcite.sql中的类">SqlDateLiteral</a>&nbsp;createDate(<a href="../../../../org/apache/calcite/util/DateString.html" title="org.apache.calcite.util中的类">DateString</a>&nbsp;date,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createTimestamp-java.util.Calendar-int-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTimestamp</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlTimestampLiteral.html" title="org.apache.calcite.sql中的类">SqlTimestampLiteral</a>&nbsp;createTimestamp(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</li>
</ul>
<a name="createTimestamp-org.apache.calcite.util.TimestampString-int-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTimestamp</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlTimestampLiteral.html" title="org.apache.calcite.sql中的类">SqlTimestampLiteral</a>&nbsp;createTimestamp(<a href="../../../../org/apache/calcite/util/TimestampString.html" title="org.apache.calcite.util中的类">TimestampString</a>&nbsp;ts,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createTime-java.util.Calendar-int-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTime</h4>
<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="java.lang中的类或接口">@Deprecated</a>
public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="org.apache.calcite.sql中的类">SqlTimeLiteral</a>&nbsp;createTime(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="deprecatedLabel">已过时。</span>&nbsp;</div>
</li>
</ul>
<a name="createTime-org.apache.calcite.util.TimeString-int-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTime</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="org.apache.calcite.sql中的类">SqlTimeLiteral</a>&nbsp;createTime(<a href="../../../../org/apache/calcite/util/TimeString.html" title="org.apache.calcite.util中的类">TimeString</a>&nbsp;t,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createInterval-int-java.lang.String-org.apache.calcite.sql.SqlIntervalQualifier-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createInterval</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlIntervalLiteral.html" title="org.apache.calcite.sql中的类">SqlIntervalLiteral</a>&nbsp;createInterval(int&nbsp;sign,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;intervalStr,
<a href="../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="org.apache.calcite.sql中的类">SqlIntervalQualifier</a>&nbsp;intervalQualifier,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates an interval literal.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>intervalStr</code> - input string of '1:23:04'</dd>
<dd><code>intervalQualifier</code> - describes the interval type and precision</dd>
<dd><code>pos</code> - Parser position</dd>
</dl>
</li>
</ul>
<a name="createNegative-org.apache.calcite.sql.SqlNumericLiteral-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createNegative</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a>&nbsp;createNegative(<a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a>&nbsp;num,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createExactNumeric-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createExactNumeric</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a>&nbsp;createExactNumeric(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createApproxNumeric-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createApproxNumeric</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a>&nbsp;createApproxNumeric(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
<a name="createBinaryString-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createBinaryString</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlBinaryStringLiteral.html" title="org.apache.calcite.sql中的类">SqlBinaryStringLiteral</a>&nbsp;createBinaryString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a literal like X'ABAB'. Although it matters when we derive a type
for this beastie, we don't care at this point whether the number of
hexits is odd or even.</div>
</li>
</ul>
<a name="createBinaryString-byte:A-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createBinaryString</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlBinaryStringLiteral.html" title="org.apache.calcite.sql中的类">SqlBinaryStringLiteral</a>&nbsp;createBinaryString(byte[]&nbsp;bytes,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a literal like X'ABAB' from an array of bytes.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>bytes</code> - Contents of binary literal</dd>
<dd><code>pos</code> - Parser position</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Binary string literal</dd>
</dl>
</li>
</ul>
<a name="createCharString-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCharString</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlCharStringLiteral.html" title="org.apache.calcite.sql中的类">SqlCharStringLiteral</a>&nbsp;createCharString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a string literal in the system character set.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>s</code> - a string (without the sql single quotes)</dd>
<dd><code>pos</code> - Parser position</dd>
</dl>
</li>
</ul>
<a name="createCharString-java.lang.String-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createCharString</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlCharStringLiteral.html" title="org.apache.calcite.sql中的类">SqlCharStringLiteral</a>&nbsp;createCharString(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;s,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;charSet,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates a string literal, with optional character-set.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>s</code> - a string (without the sql single quotes)</dd>
<dd><code>charSet</code> - character set name, null means take system default</dd>
<dd><code>pos</code> - Parser position</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>A string literal</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 charSet is not null but there is
no character set with that name in this
environment</dd>
</dl>
</li>
</ul>
<a name="unescapeUnicode-char-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>unescapeUnicode</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a>&nbsp;unescapeUnicode(char&nbsp;unicodeEscapeChar)</pre>
<div class="block">Transforms this literal (which must be of type character) into a new one
in which 4-digit Unicode escape sequences have been replaced with the
corresponding Unicode characters.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>unicodeEscapeChar</code> - escape character (e.g. backslash) for Unicode
numeric sequences; 0 implies no transformation</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>transformed literal</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/SqlLateralOperator.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.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/SqlLiteral.html" target="_top">框架</a></li>
<li><a href="SqlLiteral.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li><a href="#nested.class.summary">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li><a href="#field.detail">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>