blob: d605ee38388ca6650eaf41b2124668b37dbe3e44 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="zh">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RexLiteral (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="RexLiteral (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10,"i5":9,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":9,"i16":10,"i17":10,"i18":10,"i19":9,"i20":10,"i21":9,"i22":9,"i23":9,"i24":9};
var tabs = {65535:["t0","所有方法"],1:["t1","静态方法"],2:["t2","实例方法"],8:["t4","具体方法"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>您的浏览器已禁用 JavaScript。</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-all.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/rex/RexInterpreter.html" title="org.apache.calcite.rex中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/rex/RexLocalRef.html" title="org.apache.calcite.rex中的类"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/rex/RexLiteral.html" target="_top">框架</a></li>
<li><a href="RexLiteral.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.calcite.rex.RexNode">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.calcite.rex.RexNode">字段</a>&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.calcite.rex</div>
<h2 title="类 RexLiteral" class="title">类 RexLiteral</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">org.apache.calcite.rex.RexNode</a></li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.rex.RexLiteral</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">RexLiteral</span>
extends <a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></pre>
<div class="block">Constant value in a row-expression.
<p>There are several methods for creating literals in <a href="../../../../org/apache/calcite/rex/RexBuilder.html" title="org.apache.calcite.rex中的类"><code>RexBuilder</code></a>:
<a href="../../../../org/apache/calcite/rex/RexBuilder.html#makeLiteral-boolean-"><code>RexBuilder.makeLiteral(boolean)</code></a> and so forth.</p>
<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/rex/RexLiteral.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/rex/RexLiteral.html#getValue2--"><code>getValue2()</code></a> and
<a href="../../../../org/apache/calcite/rex/RexLiteral.html#toJavaString-java.lang.Comparable-org.apache.calcite.sql.type.SqlTypeName-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.rex.RexDigestIncludeType-"><code>toJavaString(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, org.apache.calcite.rel.type.RelDataType, org.apache.calcite.rex.RexDigestIncludeType)</code></a>.</p>
<p>The allowable types and combinations are:</p>
<table>
<caption>Allowable types for RexLiteral instances</caption>
<tr>
<th>TypeName</th>
<th>Meaning</th>
<th>Value type</th>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#NULL"><code>SqlTypeName.NULL</code></a></td>
<td>The null value. It has its own special type.</td>
<td>null</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#BOOLEAN"><code>SqlTypeName.BOOLEAN</code></a></td>
<td>Boolean, namely <code>TRUE</code>, <code>FALSE</code> or <code>
UNKNOWN</code>.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Boolean.html?is-external=true" title="java.lang中的类或接口"><code>Boolean</code></a>, or null represents the UNKNOWN value</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#DECIMAL"><code>SqlTypeName.DECIMAL</code></a></td>
<td>Exact number, for example <code>0</code>, <code>-.5</code>, <code>
12345</code>.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#DOUBLE"><code>SqlTypeName.DOUBLE</code></a></td>
<td>Approximate number, for example <code>6.023E-23</code>.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a></td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#DATE"><code>SqlTypeName.DATE</code></a></td>
<td>Date, for example <code>DATE '1969-04'29'</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a>;
also <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a> (UTC time zone)
and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口"><code>Integer</code></a> (days since POSIX epoch)</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#TIME"><code>SqlTypeName.TIME</code></a></td>
<td>Time, for example <code>TIME '18:37:42.567'</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a>;
also <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a> (UTC time zone)
and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口"><code>Integer</code></a> (milliseconds since midnight)</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="../../../../org/apache/calcite/util/TimestampString.html" title="org.apache.calcite.util中的类"><code>TimestampString</code></a>;
also <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a> (UTC time zone)
and <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="java.lang中的类或接口"><code>Long</code></a> (milliseconds since POSIX epoch)</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_DAY"><code>SqlTypeName.INTERVAL_DAY</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_DAY_HOUR"><code>SqlTypeName.INTERVAL_DAY_HOUR</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_DAY_MINUTE"><code>SqlTypeName.INTERVAL_DAY_MINUTE</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_DAY_SECOND"><code>SqlTypeName.INTERVAL_DAY_SECOND</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_HOUR"><code>SqlTypeName.INTERVAL_HOUR</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_HOUR_MINUTE"><code>SqlTypeName.INTERVAL_HOUR_MINUTE</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_HOUR_SECOND"><code>SqlTypeName.INTERVAL_HOUR_SECOND</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_MINUTE"><code>SqlTypeName.INTERVAL_MINUTE</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_MINUTE_SECOND"><code>SqlTypeName.INTERVAL_MINUTE_SECOND</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 '4:3:2' HOUR TO SECOND</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a>;
also <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="java.lang中的类或接口"><code>Long</code></a> (milliseconds)</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_YEAR_MONTH"><code>SqlTypeName.INTERVAL_YEAR_MONTH</code></a>,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#INTERVAL_MONTH"><code>SqlTypeName.INTERVAL_MONTH</code></a></td>
<td>Interval, for example <code>INTERVAL '2-3' YEAR TO MONTH</code></td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a>;
also <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口"><code>Integer</code></a> (months)</td>
</tr>
<tr>
<td><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html#CHAR"><code>SqlTypeName.CHAR</code></a></td>
<td>Character constant, for example <code>'Hello, world!'</code>, <code>
''</code>, <code>_N'Bonjour'</code>, <code>_ISO-8859-1'It''s superman!'
COLLATE SHIFT_JIS$ja_JP$2</code>. These are always CHAR, never VARCHAR.</td>
<td><a href="../../../../org/apache/calcite/util/NlsString.html" title="org.apache.calcite.util中的类"><code>NlsString</code></a>;
also <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口"><code>String</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'7F34'</code>. (The number of hexits
must be even; see above.) These constants are always BINARY, never
VARBINARY.</td>
<td><a href="https://docs.oracle.com/javase/8/docs/api/java/nio/ByteBuffer.html?is-external=true" title="java.nio中的类或接口"><code>ByteBuffer</code></a>;
also <code>byte[]</code></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 flag,
such as the LEADING flag in a call to the function <code>
TRIM([LEADING|TRAILING|BOTH] chars FROM string)</code>.</td>
<td>An enum class</td>
</tr>
</table></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>嵌套类概要</h3>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.calcite.rex.RexNode">
<!-- -->
</a>
<h3>从类继承的嵌套类/接口&nbsp;org.apache.calcite.rex.<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></h3>
<code><a href="../../../../org/apache/calcite/rex/RexNode.Closeable.html" title="org.apache.calcite.rex中的接口">RexNode.Closeable</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>字段概要</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.calcite.rex.RexNode">
<!-- -->
</a>
<h3>从类继承的字段&nbsp;org.apache.calcite.rex.<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></h3>
<code><a href="../../../../org/apache/calcite/rex/RexNode.html#digest">digest</a></code></li>
</ul>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">静态方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">实例方法</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">具体方法</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">限定符和类型</th>
<th class="colLast" scope="col">方法和说明</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>&lt;R,P&gt;&nbsp;R</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#accept-org.apache.calcite.rex.RexBiVisitor-P-">accept</a></span>(<a href="../../../../org/apache/calcite/rex/RexBiVisitor.html" title="org.apache.calcite.rex中的接口">RexBiVisitor</a>&lt;R,P&gt;&nbsp;visitor,
P&nbsp;arg)</code>
<div class="block">Accepts a visitor with a payload, dispatching to the right overloaded
<a href="../../../../org/apache/calcite/rex/RexBiVisitor.html#visitInputRef-org.apache.calcite.rex.RexInputRef-P-"><code>RexBiVisitor.visitInputRef(RexInputRef, Object)</code></a> visitXxx} method.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>&lt;R&gt;&nbsp;R</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#accept-org.apache.calcite.rex.RexVisitor-">accept</a></span>(<a href="../../../../org/apache/calcite/rex/RexVisitor.html" title="org.apache.calcite.rex中的接口">RexVisitor</a>&lt;R&gt;&nbsp;visitor)</code>
<div class="block">Accepts a visitor, dispatching to the right overloaded
<a href="../../../../org/apache/calcite/rex/RexVisitor.html#visitInputRef-org.apache.calcite.rex.RexInputRef-"><code>visitXxx</code></a> method.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#booleanValue-org.apache.calcite.rex.RexNode-">booleanValue</a></span>(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#computeDigest-org.apache.calcite.rex.RexDigestIncludeType-">computeDigest</a></span>(<a href="../../../../org/apache/calcite/rex/RexDigestIncludeType.html" title="org.apache.calcite.rex中的枚举">RexDigestIncludeType</a>&nbsp;includeType)</code>
<div class="block">Returns a string which concisely describes the definition of this
rex literal.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;obj)</code>
<div class="block">
Every node must implement <a href="../../../../org/apache/calcite/rex/RexNode.html#equals-java.lang.Object-"><code>RexNode.equals(java.lang.Object)</code></a> based on its content</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="../../../../org/apache/calcite/rex/RexLiteral.html" title="org.apache.calcite.rex中的类">RexLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#fromJdbcString-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.sql.type.SqlTypeName-java.lang.String-">fromJdbcString</a></span>(<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;type,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;literal)</code>
<div class="block">Converts a Jdbc string into a RexLiteral.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getKind--">getKind</a></span>()</code>
<div class="block">Returns the kind of node this is.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getType--">getType</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getTypeName--">getTypeName</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getValue--">getValue</a></span>()</code>
<div class="block">Returns the value of this literal.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getValue2--">getValue2</a></span>()</code>
<div class="block">Returns the value of this literal, in the form that the calculator
program builder wants it.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getValue3--">getValue3</a></span>()</code>
<div class="block">Returns the value of this literal, in the form that the rex-to-lix
translator wants it.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#getValue4--">getValue4</a></span>()</code>
<div class="block">Returns the value of this literal, in the form that <a href="../../../../org/apache/calcite/rex/RexInterpreter.html" title="org.apache.calcite.rex中的类"><code>RexInterpreter</code></a>
wants it.</div>
</td>
</tr>
<tr id="i13" 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/rex/RexLiteral.html#getValueAs-java.lang.Class-">getValueAs</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;clazz)</code>
<div class="block">Returns the value of this literal as an instance of the specified class.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#hashCode--">hashCode</a></span>()</code>
<div class="block">
Every node must implement <a href="../../../../org/apache/calcite/rex/RexNode.html#hashCode--"><code>RexNode.hashCode()</code></a> consistent with
<a href="../../../../org/apache/calcite/rex/RexNode.html#equals-java.lang.Object-"><code>RexNode.equals(java.lang.Object)</code></a></div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#intValue-org.apache.calcite.rex.RexNode-">intValue</a></span>(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#isAlwaysFalse--">isAlwaysFalse</a></span>()</code>
<div class="block">Returns whether this expression always returns false.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#isAlwaysTrue--">isAlwaysTrue</a></span>()</code>
<div class="block">Returns whether this expression always returns true.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#isNull--">isNull</a></span>()</code>
<div class="block">Returns whether this literal's value is null.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#isNullLiteral-org.apache.calcite.rex.RexNode-">isNullLiteral</a></span>(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</code>&nbsp;</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#printAsJava-java.io.PrintWriter-">printAsJava</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="java.io中的类或接口">PrintWriter</a>&nbsp;pw)</code>
<div class="block">Prints the value this literal as a Java string constant.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#stringValue-org.apache.calcite.rex.RexNode-">stringValue</a></span>(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</code>&nbsp;</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#validConstant-java.lang.Object-org.apache.calcite.util.Litmus-">validConstant</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;o,
<a href="../../../../org/apache/calcite/util/Litmus.html" title="org.apache.calcite.util中的接口">Litmus</a>&nbsp;litmus)</code>
<div class="block">Returns whether a value is valid as a constant value, using the same
criteria as <a href="../../../../org/apache/calcite/rex/RexLiteral.html#valueMatchesType-java.lang.Comparable-org.apache.calcite.sql.type.SqlTypeName-boolean-"><code>valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean)</code></a>.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>static <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#value-org.apache.calcite.rex.RexNode-">value</a></span>(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</code>&nbsp;</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/rex/RexLiteral.html#valueMatchesType-java.lang.Comparable-org.apache.calcite.sql.type.SqlTypeName-boolean-">valueMatchesType</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName,
boolean&nbsp;strict)</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.rex.RexNode">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;org.apache.calcite.rex.<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></h3>
<code><a href="../../../../org/apache/calcite/rex/RexNode.html#isA-java.util.Collection-">isA</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#isA-org.apache.calcite.sql.SqlKind-">isA</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#needNormalize--">needNormalize</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#nodeCount--">nodeCount</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#skipNormalize--">skipNormalize</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#toString--">toString</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#toStringRaw--">toStringRaw</a>, <a href="../../../../org/apache/calcite/rex/RexNode.html#withNormalize-boolean-">withNormalize</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="java.lang中的类或接口">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="java.lang中的类或接口">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="java.lang中的类或接口">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="java.lang中的类或接口">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="java.lang中的类或接口">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="java.lang中的类或接口">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="computeDigest-org.apache.calcite.rex.RexDigestIncludeType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>computeDigest</h4>
<pre>public final&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;computeDigest(<a href="../../../../org/apache/calcite/rex/RexDigestIncludeType.html" title="org.apache.calcite.rex中的枚举">RexDigestIncludeType</a>&nbsp;includeType)</pre>
<div class="block">Returns a string which concisely describes the definition of this
rex literal. Two literals are equivalent if and only if their digests are the same.
<p>The digest does not contain the expression's identity, but does include the identity
of children.
<p>Technically speaking 1:INT differs from 1:FLOAT, so we need data type in the literal's
digest, however we want to avoid extra verbosity of the <a href="../../../../org/apache/calcite/plan/RelOptNode.html#getDigest--"><code>RelOptNode.getDigest()</code></a> for
readability purposes, so we omit type info in certain cases.
For instance, 1:INT becomes 1 (INT is implied by default), however 1:BIGINT always holds
the type
<p>Here's a non-exhaustive list of the "well known cases":
<ul><li>Hide "NOT NULL" for not null literals
<li>Hide INTEGER, BOOLEAN, SYMBOL, TIME(0), TIMESTAMP(0), DATE(0) types
<li>Hide collation when it matches IMPLICIT/COERCIBLE
<li>Hide charset when it matches default
<li>Hide CHAR(xx) when literal length is equal to the precision of the type.
In other words, use 'Bob' instead of 'Bob':CHAR(3)
<li>Hide BOOL for AND/OR arguments. In other words, AND(true, null) means
null is BOOL.
<li>Hide types for literals in simple binary operations (e.g. +, -, *, /,
comparison) when type of the other argument is clear.
See <a href="../../../../org/apache/calcite/rex/RexCall.html#computeDigest-boolean-"><code>RexCall.computeDigest(boolean)</code></a>
For instance: =(true. null) means null is BOOL. =($0, null) means the type
of null matches the type of $0.
</ul></div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>includeType</code> - whether the digest should include type or not</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>digest</dd>
</dl>
</li>
</ul>
<a name="valueMatchesType-java.lang.Comparable-org.apache.calcite.sql.type.SqlTypeName-boolean-">
<!-- -->
</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/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&nbsp;value,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName,
boolean&nbsp;strict)</pre>
<dl>
<dt><span class="returnLabel">返回:</span></dt>
<dd>whether value is appropriate for its type (we have rules about
these things)</dd>
</dl>
</li>
</ul>
<a name="validConstant-java.lang.Object-org.apache.calcite.util.Litmus-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>validConstant</h4>
<pre>public static&nbsp;boolean&nbsp;validConstant(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;o,
<a href="../../../../org/apache/calcite/util/Litmus.html" title="org.apache.calcite.util中的接口">Litmus</a>&nbsp;litmus)</pre>
<div class="block">Returns whether a value is valid as a constant value, using the same
criteria as <a href="../../../../org/apache/calcite/rex/RexLiteral.html#valueMatchesType-java.lang.Comparable-org.apache.calcite.sql.type.SqlTypeName-boolean-"><code>valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean)</code></a>.</div>
</li>
</ul>
<a name="printAsJava-java.io.PrintWriter-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printAsJava</h4>
<pre>public&nbsp;void&nbsp;printAsJava(<a href="https://docs.oracle.com/javase/8/docs/api/java/io/PrintWriter.html?is-external=true" title="java.io中的类或接口">PrintWriter</a>&nbsp;pw)</pre>
<div class="block">Prints the value this literal as a Java string constant.</div>
</li>
</ul>
<a name="fromJdbcString-org.apache.calcite.rel.type.RelDataType-org.apache.calcite.sql.type.SqlTypeName-java.lang.String-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromJdbcString</h4>
<pre>public static&nbsp;<a href="../../../../org/apache/calcite/rex/RexLiteral.html" title="org.apache.calcite.rex中的类">RexLiteral</a>&nbsp;fromJdbcString(<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;type,
<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;typeName,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;literal)</pre>
<div class="block">Converts a Jdbc string into a RexLiteral. This method accepts a string,
as returned by the Jdbc method ResultSet.getString(), and restores the
string into an equivalent RexLiteral. It allows one to use Jdbc strings
as a common format for data.
<p>If a null literal is provided, then a null pointer will be returned.</div>
<dl>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>type</code> - data type of literal to be read</dd>
<dd><code>typeName</code> - type family of literal</dd>
<dd><code>literal</code> - the (non-SQL encoded) string representation, as returned
by the Jdbc call to return a column as a string</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>a typed RexLiteral, or null</dd>
</dl>
</li>
</ul>
<a name="getTypeName--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeName</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/type/SqlTypeName.html" title="org.apache.calcite.sql.type中的枚举">SqlTypeName</a>&nbsp;getTypeName()</pre>
</li>
</ul>
<a name="getType--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getType</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;getType()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#getType--">getType</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
</dl>
</li>
</ul>
<a name="getKind--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getKind</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/sql/SqlKind.html" title="org.apache.calcite.sql中的枚举">SqlKind</a>&nbsp;getKind()</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#getKind--">RexNode</a></code></span></div>
<div class="block">Returns the kind of node this is.</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#getKind--">getKind</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Node kind, never null</dd>
</dl>
</li>
</ul>
<a name="isNull--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNull</h4>
<pre>public&nbsp;boolean&nbsp;isNull()</pre>
<div class="block">Returns whether this literal's value is null.</div>
</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/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&nbsp;getValue()</pre>
<div class="block">Returns the value of this literal.
<p>For backwards compatibility, returns DATE. TIME and TIMESTAMP as a
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a> value in UTC time zone.</div>
</li>
</ul>
<a name="getValue2--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue2</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;getValue2()</pre>
<div class="block">Returns the value of this literal, in the form that the calculator
program builder wants it.</div>
</li>
</ul>
<a name="getValue3--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue3</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;getValue3()</pre>
<div class="block">Returns the value of this literal, in the form that the rex-to-lix
translator wants it.</div>
</li>
</ul>
<a name="getValue4--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValue4</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&nbsp;getValue4()</pre>
<div class="block">Returns the value of this literal, in the form that <a href="../../../../org/apache/calcite/rex/RexInterpreter.html" title="org.apache.calcite.rex中的类"><code>RexInterpreter</code></a>
wants it.</div>
</li>
</ul>
<a name="getValueAs-java.lang.Class-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getValueAs</h4>
<pre>public&nbsp;&lt;T&gt;&nbsp;T&nbsp;getValueAs(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="java.lang中的类或接口">Class</a>&lt;T&gt;&nbsp;clazz)</pre>
<div class="block">Returns the value of this literal as an instance of the specified class.
<p>The following SQL types allow more than one form:
<ul>
<li>CHAR as <a href="../../../../org/apache/calcite/util/NlsString.html" title="org.apache.calcite.util中的类"><code>NlsString</code></a> or <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口"><code>String</code></a>
<li>TIME as <a href="../../../../org/apache/calcite/util/TimeString.html" title="org.apache.calcite.util中的类"><code>TimeString</code></a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口"><code>Integer</code></a> (milliseconds since midnight),
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a> (in UTC)
<li>DATE as <a href="../../../../org/apache/calcite/util/DateString.html" title="org.apache.calcite.util中的类"><code>DateString</code></a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口"><code>Integer</code></a> (days since 1970-01-01),
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a>
<li>TIMESTAMP as <a href="../../../../org/apache/calcite/util/TimestampString.html" title="org.apache.calcite.util中的类"><code>TimestampString</code></a>,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="java.lang中的类或接口"><code>Long</code></a> (milliseconds since 1970-01-01 00:00:00),
<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Calendar.html?is-external=true" title="java.util中的类或接口"><code>Calendar</code></a>
<li>DECIMAL as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口"><code>BigDecimal</code></a> or <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="java.lang中的类或接口"><code>Long</code></a>
</ul>
<p>Called with <code>clazz</code> = <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口"><code>Comparable</code></a>, returns the value in
its native form.</div>
<dl>
<dt><span class="paramLabel">类型参数:</span></dt>
<dd><code>T</code> - Return type</dd>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>clazz</code> - Desired return type</dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>Value of this literal in the desired type</dd>
</dl>
</li>
</ul>
<a name="booleanValue-org.apache.calcite.rex.RexNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>booleanValue</h4>
<pre>public static&nbsp;boolean&nbsp;booleanValue(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</pre>
</li>
</ul>
<a name="isAlwaysTrue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAlwaysTrue</h4>
<pre>public&nbsp;boolean&nbsp;isAlwaysTrue()</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#isAlwaysTrue--">RexNode</a></code></span></div>
<div class="block">Returns whether this expression always returns true. (Such as if this
expression is equal to the literal <code>TRUE</code>.)</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#isAlwaysTrue--">isAlwaysTrue</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
</dl>
</li>
</ul>
<a name="isAlwaysFalse--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isAlwaysFalse</h4>
<pre>public&nbsp;boolean&nbsp;isAlwaysFalse()</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#isAlwaysFalse--">RexNode</a></code></span></div>
<div class="block">Returns whether this expression always returns false. (Such as if this
expression is equal to the literal <code>FALSE</code>.)</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#isAlwaysFalse--">isAlwaysFalse</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
</dl>
</li>
</ul>
<a name="equals-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public&nbsp;boolean&nbsp;equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a>&nbsp;obj)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#equals-java.lang.Object-">RexNode</a></code></span></div>
<div class="block">
<p>Every node must implement <a href="../../../../org/apache/calcite/rex/RexNode.html#equals-java.lang.Object-"><code>RexNode.equals(java.lang.Object)</code></a> based on its content</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#equals-java.lang.Object-">equals</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</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>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#hashCode--">RexNode</a></code></span></div>
<div class="block">
<p>Every node must implement <a href="../../../../org/apache/calcite/rex/RexNode.html#hashCode--"><code>RexNode.hashCode()</code></a> consistent with
<a href="../../../../org/apache/calcite/rex/RexNode.html#equals-java.lang.Object-"><code>RexNode.equals(java.lang.Object)</code></a></div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#hashCode--">hashCode</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
</dl>
</li>
</ul>
<a name="value-org.apache.calcite.rex.RexNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>value</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html?is-external=true" title="java.lang中的类或接口">Comparable</a>&nbsp;value(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</pre>
</li>
</ul>
<a name="intValue-org.apache.calcite.rex.RexNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>intValue</h4>
<pre>public static&nbsp;int&nbsp;intValue(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</pre>
</li>
</ul>
<a name="stringValue-org.apache.calcite.rex.RexNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stringValue</h4>
<pre>public static&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;stringValue(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</pre>
</li>
</ul>
<a name="isNullLiteral-org.apache.calcite.rex.RexNode-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNullLiteral</h4>
<pre>public static&nbsp;boolean&nbsp;isNullLiteral(<a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a>&nbsp;node)</pre>
</li>
</ul>
<a name="accept-org.apache.calcite.rex.RexVisitor-">
<!-- -->
</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/rex/RexVisitor.html" title="org.apache.calcite.rex中的接口">RexVisitor</a>&lt;R&gt;&nbsp;visitor)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#accept-org.apache.calcite.rex.RexVisitor-">RexNode</a></code></span></div>
<div class="block">Accepts a visitor, dispatching to the right overloaded
<a href="../../../../org/apache/calcite/rex/RexVisitor.html#visitInputRef-org.apache.calcite.rex.RexInputRef-"><code>visitXxx</code></a> method.
<p>Also see <a href="../../../../org/apache/calcite/rex/RexUtil.html#apply-org.apache.calcite.rex.RexVisitor-java.util.List-org.apache.calcite.rex.RexNode-"><code>RexUtil.apply(RexVisitor, java.util.List, RexNode)</code></a>,
which applies a visitor to several expressions simultaneously.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#accept-org.apache.calcite.rex.RexVisitor-">accept</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
</dl>
</li>
</ul>
<a name="accept-org.apache.calcite.rex.RexBiVisitor-java.lang.Object-">
<!-- -->
</a><a name="accept-org.apache.calcite.rex.RexBiVisitor-P-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>accept</h4>
<pre>public&nbsp;&lt;R,P&gt;&nbsp;R&nbsp;accept(<a href="../../../../org/apache/calcite/rex/RexBiVisitor.html" title="org.apache.calcite.rex中的接口">RexBiVisitor</a>&lt;R,P&gt;&nbsp;visitor,
P&nbsp;arg)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html#accept-org.apache.calcite.rex.RexBiVisitor-P-">RexNode</a></code></span></div>
<div class="block">Accepts a visitor with a payload, dispatching to the right overloaded
<a href="../../../../org/apache/calcite/rex/RexBiVisitor.html#visitInputRef-org.apache.calcite.rex.RexInputRef-P-"><code>RexBiVisitor.visitInputRef(RexInputRef, Object)</code></a> visitXxx} method.</div>
<dl>
<dt><span class="overrideSpecifyLabel">指定者:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/rex/RexNode.html#accept-org.apache.calcite.rex.RexBiVisitor-P-">accept</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/rex/RexNode.html" title="org.apache.calcite.rex中的类">RexNode</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-all.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/rex/RexInterpreter.html" title="org.apache.calcite.rex中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/rex/RexLocalRef.html" title="org.apache.calcite.rex中的类"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/rex/RexLiteral.html" target="_top">框架</a></li>
<li><a href="RexLiteral.html" target="_top">无框架</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">所有类</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>概要:&nbsp;</li>
<li><a href="#nested.classes.inherited.from.class.org.apache.calcite.rex.RexNode">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.calcite.rex.RexNode">字段</a>&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li>构造器&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>