blob: 1df5042851bc361d7593e12367c7d87887253e20 [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>SqlNumericLiteral (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="SqlNumericLiteral (Apache Calcite calcite API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10};
var tabs = {65535:["t0","所有方法"],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/sql/SqlNullTreatmentOperator.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/sql/SqlOperandCountRange.html" title="org.apache.calcite.sql中的接口"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/sql/SqlNumericLiteral.html" target="_top">框架</a></li>
<li><a href="SqlNumericLiteral.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.sql.SqlLiteral">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.calcite.sql.SqlLiteral">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.calcite.sql</div>
<h2 title="类 SqlNumericLiteral" class="title">类 SqlNumericLiteral</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">org.apache.calcite.sql.SqlNode</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">org.apache.calcite.sql.SqlLiteral</a></li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.sql.SqlNumericLiteral</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>所有已实现的接口:</dt>
<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Cloneable.html?is-external=true" title="java.lang中的类或接口">Cloneable</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">SqlNumericLiteral</span>
extends <a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></pre>
<div class="block">A numeric SQL literal.</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.sql.SqlLiteral">
<!-- -->
</a>
<h3>从类继承的嵌套类/接口&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.SqlSymbol.html" title="org.apache.calcite.sql中的接口">SqlLiteral.SqlSymbol</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.sql.SqlLiteral">
<!-- -->
</a>
<h3>从类继承的字段&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value">value</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.apache.calcite.sql.SqlNode">
<!-- -->
</a>
<h3>从类继承的字段&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#EMPTY_ARRAY">EMPTY_ARRAY</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#pos">pos</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>构造器概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="构造器概要表, 列表构造器和解释">
<caption><span>构造器</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">限定符</th>
<th class="colLast" scope="col">构造器和说明</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#SqlNumericLiteral-java.math.BigDecimal-java.lang.Integer-java.lang.Integer-boolean-org.apache.calcite.sql.parser.SqlParserPos-">SqlNumericLiteral</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口">BigDecimal</a>&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&nbsp;prec,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&nbsp;scale,
boolean&nbsp;isExact,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>方法概要</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="方法概要表, 列表方法和解释">
<caption><span id="t0" class="activeTableTab"><span>所有方法</span><span class="tabEnd">&nbsp;</span></span><span id="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><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">clone</a></span>(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</code>
<div class="block">Clones a SqlNode with a different position.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#createSqlType-org.apache.calcite.rel.type.RelDataTypeFactory-">createSqlType</a></span>(<a href="../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a>&nbsp;typeFactory)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#getPrec--">getPrec</a></span>()</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/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#getScale--">getScale</a></span>()</code>&nbsp;</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/sql/SqlNumericLiteral.html#isExact--">isExact</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#isInteger--">isInteger</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.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>SqlLiteral.unparse(org.apache.calcite.sql.SqlWriter, int, int)</code></a>
Typical values:
Hello, world!</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/calcite/sql/SqlNumericLiteral.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">unparse</a></span>(<a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="org.apache.calcite.sql中的接口">SqlWriter</a>&nbsp;writer,
int&nbsp;leftPrec,
int&nbsp;rightPrec)</code>
<div class="block">Writes a SQL representation of this node to a writer.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.sql.SqlLiteral">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#accept-org.apache.calcite.sql.util.SqlVisitor-">accept</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#bigDecimalValue--">bigDecimalValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#booleanValue--">booleanValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createApproxNumeric-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createApproxNumeric</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createBinaryString-byte:A-org.apache.calcite.sql.parser.SqlParserPos-">createBinaryString</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createBinaryString-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createBinaryString</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createBoolean-boolean-org.apache.calcite.sql.parser.SqlParserPos-">createBoolean</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createCharString-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createCharString</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createCharString-java.lang.String-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createCharString</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createDate-java.util.Calendar-org.apache.calcite.sql.parser.SqlParserPos-">createDate</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createDate-org.apache.calcite.util.DateString-org.apache.calcite.sql.parser.SqlParserPos-">createDate</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createExactNumeric-java.lang.String-org.apache.calcite.sql.parser.SqlParserPos-">createExactNumeric</a>, <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>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createNegative-org.apache.calcite.sql.SqlNumericLiteral-org.apache.calcite.sql.parser.SqlParserPos-">createNegative</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createNull-org.apache.calcite.sql.parser.SqlParserPos-">createNull</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createSample-org.apache.calcite.sql.SqlSampleSpec-org.apache.calcite.sql.parser.SqlParserPos-">createSample</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createSymbol-java.lang.Enum-org.apache.calcite.sql.parser.SqlParserPos-">createSymbol</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTime-java.util.Calendar-int-org.apache.calcite.sql.parser.SqlParserPos-">createTime</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTime-org.apache.calcite.util.TimeString-int-org.apache.calcite.sql.parser.SqlParserPos-">createTime</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTimestamp-java.util.Calendar-int-org.apache.calcite.sql.parser.SqlParserPos-">createTimestamp</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createTimestamp-org.apache.calcite.util.TimestampString-int-org.apache.calcite.sql.parser.SqlParserPos-">createTimestamp</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createUnknown-org.apache.calcite.sql.parser.SqlParserPos-">createUnknown</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#equals-java.lang.Object-">equals</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#equalsDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">equalsDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getKind--">getKind</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getMonotonicity-org.apache.calcite.sql.validate.SqlValidatorScope-">getMonotonicity</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getStringValue--">getStringValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getTypeName--">getTypeName</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getValue--">getValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#getValueAs-java.lang.Class-">getValueAs</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#hashCode--">hashCode</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#intValue-boolean-">intValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#longValue-boolean-">longValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#sampleValue-org.apache.calcite.sql.SqlNode-">sampleValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#signum--">signum</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#stringValue-org.apache.calcite.sql.SqlNode-">stringValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#symbolValue_--">symbolValue_</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#symbolValue-java.lang.Class-">symbolValue</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unchain-org.apache.calcite.sql.SqlNode-">unchain</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unescapeUnicode-char-">unescapeUnicode</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#validate-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">validate</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#value-org.apache.calcite.sql.SqlNode-">value</a>, <a href="../../../../org/apache/calcite/sql/SqlLiteral.html#valueMatchesType-java.lang.Object-org.apache.calcite.sql.type.SqlTypeName-">valueMatchesType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.apache.calcite.sql.SqlNode">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;org.apache.calcite.sql.<a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类">SqlNode</a></h3>
<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#clone--">clone</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#clone-E-">clone</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#cloneArray-org.apache.calcite.sql.SqlNode:A-">cloneArray</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#equalDeep-java.util.List-java.util.List-org.apache.calcite.util.Litmus-">equalDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#equalDeep-org.apache.calcite.sql.SqlNode-org.apache.calcite.sql.SqlNode-org.apache.calcite.util.Litmus-">equalDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#equalsDeep-org.apache.calcite.sql.SqlNode-boolean-">equalsDeep</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#findValidOptions-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-org.apache.calcite.sql.parser.SqlParserPos-java.util.Collection-">findValidOptions</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#getParserPosition--">getParserPosition</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#isA-java.util.Set-">isA</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-org.apache.calcite.sql.SqlDialect-">toSqlString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-org.apache.calcite.sql.SqlDialect-boolean-">toSqlString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toSqlString-java.util.function.UnaryOperator-">toSqlString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#toString--">toString</a>, <a href="../../../../org/apache/calcite/sql/SqlNode.html#validateExpr-org.apache.calcite.sql.validate.SqlValidator-org.apache.calcite.sql.validate.SqlValidatorScope-">validateExpr</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>从类继承的方法&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="java.lang中的类或接口">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="java.lang中的类或接口">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="java.lang中的类或接口">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="java.lang中的类或接口">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="java.lang中的类或接口">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="java.lang中的类或接口">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="java.lang中的类或接口">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>构造器详细资料</h3>
<a name="SqlNumericLiteral-java.math.BigDecimal-java.lang.Integer-java.lang.Integer-boolean-org.apache.calcite.sql.parser.SqlParserPos-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SqlNumericLiteral</h4>
<pre>protected&nbsp;SqlNumericLiteral(<a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="java.math中的类或接口">BigDecimal</a>&nbsp;value,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&nbsp;prec,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&nbsp;scale,
boolean&nbsp;isExact,
<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>方法详细资料</h3>
<a name="getPrec--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPrec</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&nbsp;getPrec()</pre>
</li>
</ul>
<a name="getScale--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScale</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Integer.html?is-external=true" title="java.lang中的类或接口">Integer</a>&nbsp;getScale()</pre>
</li>
</ul>
<a name="isExact--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isExact</h4>
<pre>public&nbsp;boolean&nbsp;isExact()</pre>
</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/SqlNumericLiteral.html" title="org.apache.calcite.sql中的类">SqlNumericLiteral</a>&nbsp;clone(<a href="../../../../org/apache/calcite/sql/parser/SqlParserPos.html" title="org.apache.calcite.sql.parser中的类">SqlParserPos</a>&nbsp;pos)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">SqlNode</a></code></span></div>
<div class="block">Clones a SqlNode with a different position.</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#clone-org.apache.calcite.sql.parser.SqlParserPos-">clone</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></code></dd>
</dl>
</li>
</ul>
<a name="unparse-org.apache.calcite.sql.SqlWriter-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unparse</h4>
<pre>public&nbsp;void&nbsp;unparse(<a href="../../../../org/apache/calcite/sql/SqlWriter.html" title="org.apache.calcite.sql中的接口">SqlWriter</a>&nbsp;writer,
int&nbsp;leftPrec,
int&nbsp;rightPrec)</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlNode.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">SqlNode</a></code></span></div>
<div class="block">Writes a SQL representation of this node to a writer.
<p>The <code>leftPrec</code> and <code>rightPrec</code> parameters give
us enough context to decide whether we need to enclose the expression in
parentheses. For example, we need parentheses around "2 + 3" if preceded
by "5 *". This is because the precedence of the "*" operator is greater
than the precedence of the "+" operator.
<p>The algorithm handles left- and right-associative operators by giving
them slightly different left- and right-precedence.
<p>If <a href="../../../../org/apache/calcite/sql/SqlWriter.html#isAlwaysUseParentheses--"><code>SqlWriter.isAlwaysUseParentheses()</code></a> is true, we use
parentheses even when they are not required by the precedence rules.
<p>For the details of this algorithm, see <a href="../../../../org/apache/calcite/sql/SqlCall.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-"><code>SqlCall.unparse(org.apache.calcite.sql.SqlWriter, int, int)</code></a>.</div>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#unparse-org.apache.calcite.sql.SqlWriter-int-int-">unparse</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></code></dd>
<dt><span class="paramLabel">参数:</span></dt>
<dd><code>writer</code> - Target writer</dd>
<dd><code>leftPrec</code> - The precedence of the <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>SqlNode</code></a> immediately
preceding this node in a depth-first scan of the parse
tree</dd>
<dd><code>rightPrec</code> - The precedence of the <a href="../../../../org/apache/calcite/sql/SqlNode.html" title="org.apache.calcite.sql中的类"><code>SqlNode</code></a> immediately</dd>
</dl>
</li>
</ul>
<a name="toValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toValue</h4>
<pre>public&nbsp;<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="java.lang中的类或接口">String</a>&nbsp;toValue()</pre>
<div class="block"><span class="descfrmTypeLabel">从类复制的说明:&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#toValue--">SqlLiteral</a></code></span></div>
<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>SqlLiteral.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="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#toValue--">toValue</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></code></dd>
<dt><span class="returnLabel">返回:</span></dt>
<dd>string representation of the value</dd>
</dl>
</li>
</ul>
<a name="createSqlType-org.apache.calcite.rel.type.RelDataTypeFactory-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createSqlType</h4>
<pre>public&nbsp;<a href="../../../../org/apache/calcite/rel/type/RelDataType.html" title="org.apache.calcite.rel.type中的接口">RelDataType</a>&nbsp;createSqlType(<a href="../../../../org/apache/calcite/rel/type/RelDataTypeFactory.html" title="org.apache.calcite.rel.type中的接口">RelDataTypeFactory</a>&nbsp;typeFactory)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">覆盖:</span></dt>
<dd><code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html#createSqlType-org.apache.calcite.rel.type.RelDataTypeFactory-">createSqlType</a></code>&nbsp;在类中&nbsp;<code><a href="../../../../org/apache/calcite/sql/SqlLiteral.html" title="org.apache.calcite.sql中的类">SqlLiteral</a></code></dd>
</dl>
</li>
</ul>
<a name="isInteger--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>isInteger</h4>
<pre>public&nbsp;boolean&nbsp;isInteger()</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="跳过导航链接">跳过导航链接</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="导航">
<li><a href="../../../../overview-summary.html">概览</a></li>
<li><a href="package-summary.html">程序包</a></li>
<li class="navBarCell1Rev"></li>
<li><a href="package-tree.html"></a></li>
<li><a href="../../../../deprecated-list.html">已过时</a></li>
<li><a href="../../../../index-all.html">索引</a></li>
<li><a href="../../../../help-doc.html">帮助</a></li>
</ul>
<div class="aboutLanguage"><b>Apache Calcite</b></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/apache/calcite/sql/SqlNullTreatmentOperator.html" title="org.apache.calcite.sql中的类"><span class="typeNameLink">上一个类</span></a></li>
<li><a href="../../../../org/apache/calcite/sql/SqlOperandCountRange.html" title="org.apache.calcite.sql中的接口"><span class="typeNameLink">下一个类</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/calcite/sql/SqlNumericLiteral.html" target="_top">框架</a></li>
<li><a href="SqlNumericLiteral.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.sql.SqlLiteral">嵌套</a>&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.apache.calcite.sql.SqlLiteral">字段</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">方法</a></li>
</ul>
<ul class="subNavList">
<li>详细资料:&nbsp;</li>
<li>字段&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">构造器</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">方法</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &copy; 2012-2020 Apache Software Foundation. All Rights Reserved.</small></p>
</body>
</html>