blob: 79f160fe00166e4785f6441398c88957a51a9f9b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>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","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/sql/SqlLateralOperator.html" title="class in org.apache.calcite.sql"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.html" title="interface in org.apache.calcite.sql"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/sql/SqlLiteral.html" target="_top">Frames</a></li>
<li><a href="SqlLiteral.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.calcite.sql</div>
<h2 title="Class SqlLiteral" class="title">Class 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="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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>All Implemented Interfaces:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="class or interface in java.lang">Cloneable</a></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../org/apache/calcite/sql/SqlAbstractDateTimeLiteral.html" title="class in org.apache.calcite.sql">SqlAbstractDateTimeLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlBinaryStringLiteral.html" title="class in org.apache.calcite.sql">SqlBinaryStringLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlCharStringLiteral.html" title="class in org.apache.calcite.sql">SqlCharStringLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlIntervalLiteral.html" title="class in org.apache.calcite.sql">SqlIntervalLiteral</a>, <a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="class in 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="class in 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="class or interface in 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="class or interface in 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="class or interface in 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="class or interface in 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="class or interface in 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="class or interface in 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="class in 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="class in 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="class or interface in 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="class in 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>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.html" title="interface in org.apache.calcite.sql">SqlLiteral.SqlSymbol</a></span></code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></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>Fields inherited from class&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</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="class or interface in java.lang">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</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="interface in 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="class or interface in 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="class or interface in 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="class in 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="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;charSet,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.util">Calendar</a>&nbsp;calendar,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlDateLiteral.html" title="class in 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="class in org.apache.calcite.util">DateString</a>&nbsp;date,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;intervalStr,
<a href="../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="class in org.apache.calcite.sql">SqlIntervalQualifier</a>&nbsp;intervalQualifier,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class in org.apache.calcite.sql">SqlNumericLiteral</a>&nbsp;num,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class in 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="class in 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="class in org.apache.calcite.sql">SqlSampleSpec</a>&nbsp;sampleSpec,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="interface in 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="interface in 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="class in 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="class or interface in java.lang">Enum</a>&lt;?&gt;&nbsp;o,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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!')</code>.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="class in 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="class or interface in java.util">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="class in 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="class in org.apache.calcite.util">TimeString</a>&nbsp;t,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.util">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlTimestampLiteral.html" title="class in 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="class in org.apache.calcite.util">TimestampString</a>&nbsp;ts,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class in 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="class or interface in 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="class in org.apache.calcite.sql">SqlNode</a>&nbsp;node,
<a href="../../../../org/apache/calcite/util/Litmus.html" title="interface in 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="enum in 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="enum in 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="interface in 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="class or interface in 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">Deprecated.</span>&nbsp;</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="enum in 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="class or interface in 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="class or interface in 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="class in 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="class in org.apache.calcite.sql">SqlNode</a>&nbsp;node)</code>
<div class="block">Extracts the <a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="class in 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">Deprecated.</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="class or interface in 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="class in org.apache.calcite.sql">SqlNode</a>&nbsp;node)</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="class or interface in 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">Deprecated.</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="class or interface in 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="class or interface in 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="class or interface in 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!
12.34
{null}
1969-04-29
</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="class in org.apache.calcite.sql">SqlLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unchain-org.apache.calcite.sql.SqlNode-">unchain</a></span>(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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="class in 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="interface in 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="interface in org.apache.calcite.sql.validate">SqlValidator</a>&nbsp;validator,
<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in 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="class or interface in 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="class in 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="class or interface in java.lang">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="enum in 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>Methods inherited from class&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="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="class or interface in 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>Constructor Detail</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="class or interface in java.lang">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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>Method Detail</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="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;getTypeName()</pre>
<dl>
<dt><span class="returnLabel">Returns:</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="class or interface in java.lang">Object</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName)</pre>
<dl>
<dt><span class="returnLabel">Returns:</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="class in org.apache.calcite.sql">SqlLiteral</a>&nbsp;clone(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">clone</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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="enum in org.apache.calcite.sql">SqlKind</a>&nbsp;getKind()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#getKind--">getKind</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a <a href="../../../../org/apache/calcite/sql/SqlKind.html" title="enum in org.apache.calcite.sql"><code>SqlKind</code></a> value, never null</dd>
<dt><span class="seeLabel">See Also:</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="class or interface in 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">See Also:</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="class or interface in 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="class or interface in 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="class or interface in java.lang">Enum</a>&lt;E&gt;&gt;&nbsp;E&nbsp;symbolValue_()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="class or interface in 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="class or interface in 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="class in org.apache.calcite.sql">SqlSampleSpec</a>&nbsp;sampleValue(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>&nbsp;node)</pre>
<div class="block">Extracts the <a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="class in org.apache.calcite.sql"><code>SqlSampleSpec</code></a> value from a symbol literal.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/ClassCastException.html?is-external=true" title="class or interface in java.lang">ClassCastException</a></code> - if the value is not a symbol literal</dd>
<dt><span class="seeLabel">See Also:</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="class or interface in java.lang">Comparable</a>&nbsp;value(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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="class or interface in 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="class in 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="class or interface in java.math"><code>BigDecimal</code></a>.
<li>If the node is a <a href="../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="class in 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="enum in 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="enum in 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="class or interface in java.lang"><code>IllegalArgumentException</code></a>.
</ul></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in 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="class or interface in 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="class or interface in java.lang">String</a>&nbsp;stringValue(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a>&nbsp;node)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="class in org.apache.calcite.sql">SqlLiteral</a>&nbsp;unchain(<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in 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="class or interface in 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">Returns:</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="interface in org.apache.calcite.sql.validate">SqlValidator</a>&nbsp;validator,
<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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">Specified by:</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;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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="interface in org.apache.calcite.sql.util">SqlVisitor</a>&lt;R&gt;&nbsp;visitor)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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="interface in 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">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#accept-org.apache.calcite.sql.util.SqlVisitor-">accept</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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="class in org.apache.calcite.sql">SqlNode</a>&nbsp;node,
<a href="../../../../org/apache/calcite/util/Litmus.html" title="interface in org.apache.calcite.util">Litmus</a>&nbsp;litmus)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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">Specified by:</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;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in 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="enum in org.apache.calcite.sql.validate">SqlMonotonicity</a>&nbsp;getMonotonicity(<a href="../../../../org/apache/calcite/sql/validate/SqlValidatorScope.html" title="interface in org.apache.calcite.sql.validate">SqlValidatorScope</a>&nbsp;scope)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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">Overrides:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#getMonotonicity-org.apache.calcite.sql.validate.SqlValidatorScope-">getMonotonicity</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a></code></dd>
<dt><span class="paramLabel">Parameters:</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="class in org.apache.calcite.sql">SqlLiteral</a>&nbsp;createNull(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in org.apache.calcite.sql">SqlLiteral</a>&nbsp;createBoolean(boolean&nbsp;b,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in org.apache.calcite.sql">SqlLiteral</a>&nbsp;createUnknown(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">Enum</a>&lt;?&gt;&nbsp;o,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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">See Also:</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="class in org.apache.calcite.sql">SqlLiteral</a>&nbsp;createSample(<a href="../../../../org/apache/calcite/sql/SqlSampleSpec.html" title="class in org.apache.calcite.sql">SqlSampleSpec</a>&nbsp;sampleSpec,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class or interface in java.lang">Object</a>&nbsp;obj)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</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="class or interface in java.lang">equals</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></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">Overrides:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></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">Parameters:</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">Returns:</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">Parameters:</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">Returns:</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="class or interface in java.lang">@Deprecated</a>
public&nbsp;int&nbsp;signum()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Returns sign of value.</div>
<dl>
<dt><span class="returnLabel">Returns:</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="class or interface in 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="class or interface in 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="class or interface in java.lang">@Deprecated</a>
public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;getStringValue()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="interface in org.apache.calcite.sql">SqlWriter</a>&nbsp;writer,
int&nbsp;leftPrec,
int&nbsp;rightPrec)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from class:&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">Specified by:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlNode.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">unparse</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="class in org.apache.calcite.sql">SqlNode</a></code></dd>
<dt><span class="paramLabel">Parameters:</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="class in 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="class in 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="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;createSqlType(<a href="../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="interface in 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="class or interface in java.lang">@Deprecated</a>
public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlDateLiteral.html" title="class in 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="class or interface in java.util">Calendar</a>&nbsp;calendar,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="class in org.apache.calcite.sql">SqlDateLiteral</a>&nbsp;createDate(<a href="../../../../org/apache/calcite/util/DateString.html" title="class in org.apache.calcite.util">DateString</a>&nbsp;date,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class or interface in java.lang">@Deprecated</a>
public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlTimestampLiteral.html" title="class in 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="class or interface in java.util">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="class in org.apache.calcite.sql">SqlTimestampLiteral</a>&nbsp;createTimestamp(<a href="../../../../org/apache/calcite/util/TimestampString.html" title="class in org.apache.calcite.util">TimestampString</a>&nbsp;ts,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class or interface in java.lang">@Deprecated</a>
public static&nbsp;<a href="../../../../org/apache/calcite/sql/SqlTimeLiteral.html" title="class in 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="class or interface in java.util">Calendar</a>&nbsp;calendar,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</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="class in org.apache.calcite.sql">SqlTimeLiteral</a>&nbsp;createTime(<a href="../../../../org/apache/calcite/util/TimeString.html" title="class in org.apache.calcite.util">TimeString</a>&nbsp;t,
int&nbsp;precision,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;intervalStr,
<a href="../../../../org/apache/calcite/sql/SqlIntervalQualifier.html" title="class in org.apache.calcite.sql">SqlIntervalQualifier</a>&nbsp;intervalQualifier,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in org.apache.calcite.sql.parser">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block">Creates an interval literal.</div>
<dl>
<dt><span class="paramLabel">Parameters:</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="class in org.apache.calcite.sql">SqlNumericLiteral</a>&nbsp;createNegative(<a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="class in org.apache.calcite.sql">SqlNumericLiteral</a>&nbsp;num,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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="class in org.apache.calcite.sql">SqlBinaryStringLiteral</a>&nbsp;createBinaryString(byte[]&nbsp;bytes,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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">Parameters:</span></dt>
<dd><code>bytes</code> - Contents of binary literal</dd>
<dd><code>pos</code> - Parser position</dd>
<dt><span class="returnLabel">Returns:</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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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">Parameters:</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="class in 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="class or interface in java.lang">String</a>&nbsp;s,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;charSet,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="class in 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">Parameters:</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">Returns:</span></dt>
<dd>A string literal</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/charset/UnsupportedCharsetException.html?is-external=true" title="class or interface in java.nio.charset">UnsupportedCharsetException</a></code> - if 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="class in 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">Parameters:</span></dt>
<dd><code>unicodeEscapeChar</code> - escape character (e.g. backslash) for Unicode
numeric sequences; 0 implies no transformation</dd>
<dt><span class="returnLabel">Returns:</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="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/sql/SqlLateralOperator.html" title="class in org.apache.calcite.sql"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.html" title="interface in org.apache.calcite.sql"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/sql/SqlLiteral.html" target="_top">Frames</a></li>
<li><a href="SqlLiteral.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>