blob: 09003b6a72706161a02c5756349188285670f03f [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>RexBuilder (Apache Calcite API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RexBuilder (Apache Calcite API)";
}
}
catch(err) {
}
//-->
var data = {"i0":42,"i1":10,"i2":9,"i3":10,"i4":9,"i5":42,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":42,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10,"i40":10,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":42,"i51":42,"i52":42,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":42,"i61":10,"i62":42,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":9,"i71":9,"i72":9,"i73":9,"i74":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";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/RexBuilder.html">Use</a></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>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&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 id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.apache.calcite.rex</a></div>
<h2 title="Class RexBuilder" class="title">Class RexBuilder</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.rex.RexBuilder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">RexBuilder</span>
extends java.lang.Object</pre>
<div class="block">Factory for row expressions.
<p>Some common literal values (NULL, TRUE, FALSE, 0, 1, '') are cached.</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#booleanFalse">booleanFalse</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#booleanTrue">booleanTrue</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#charEmpty">charEmpty</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#constantNull">constantNull</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../sql/SqlSpecialOperator.html" title="class in org.apache.calcite.sql">SqlSpecialOperator</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#GET_OPERATOR">GET_OPERATOR</a></span></code></th>
<td class="colLast">
<div class="block">Special operator that accesses an unadvertised field of an input record.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.math.BigDecimal</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#INT_MAX">INT_MAX</a></span></code></th>
<td class="colLast">
<div class="block">The largest valid <code>int</code> value, as a <code>BigDecimal</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private static java.math.BigDecimal</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#INT_MIN">INT_MIN</a></span></code></th>
<td class="colLast">
<div class="block">The smallest valid <code>int</code> value, as a <code>BigDecimal</code>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private <a href="../sql/fun/SqlStdOperatorTable.html" title="class in org.apache.calcite.sql.fun">SqlStdOperatorTable</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#opTab">opTab</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#typeFactory">typeFactory</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(org.apache.calcite.rel.type.RelDataTypeFactory)">RexBuilder</a></span>&#8203;(<a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a>&nbsp;typeFactory)</code></th>
<td class="colLast">
<div class="block">Creates a RexBuilder.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<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="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAggCall(org.apache.calcite.rel.core.AggregateCall,int,boolean,java.util.List,java.util.Map,java.util.List)">addAggCall</a></span>&#8203;(<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&nbsp;aggCall,
int&nbsp;groupCount,
boolean&nbsp;indicator,
java.util.List&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&gt;&nbsp;aggCalls,
java.util.Map&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>,&#8203;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;aggCallMapping,
java.util.List&lt;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&gt;&nbsp;aggArgTypes)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addAggCall(org.apache.calcite.rel.core.AggregateCall,int,java.util.List,java.util.Map,java.util.List)">addAggCall</a></span>&#8203;(<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&nbsp;aggCall,
int&nbsp;groupCount,
java.util.List&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&gt;&nbsp;aggCalls,
java.util.Map&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>,&#8203;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;aggCallMapping,
java.util.List&lt;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&gt;&nbsp;aggArgTypes)</code></th>
<td class="colLast">
<div class="block">Creates a reference to an aggregate call, checking for repeated calls.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>protected static org.apache.calcite.avatica.util.TimeUnit</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#baseUnit(org.apache.calcite.sql.type.SqlTypeName)">baseUnit</a></span>&#8203;(<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;unit)</code></th>
<td class="colLast">
<div class="block">Returns the lowest granularity unit for the given unit.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>(package private) boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canRemoveCastFromLiteral(org.apache.calcite.rel.type.RelDataType,java.lang.Comparable,org.apache.calcite.sql.type.SqlTypeName)">canRemoveCastFromLiteral</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
java.lang.Comparable&nbsp;value,
<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;fromTypeName)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>private static java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clean(java.lang.Object,org.apache.calcite.rel.type.RelDataType)">clean</a></span>&#8203;(java.lang.Object&nbsp;o,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Converts the type of a value to comply with
<a href="RexLiteral.html#valueMatchesType(java.lang.Comparable,org.apache.calcite.sql.type.SqlTypeName,boolean)"><code>RexLiteral.valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean)</code></a>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#constantNull()">constantNull</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)"><code>makeNullLiteral(RelDataType)</code></a>, which produces a
NULL of the correct type</div>
</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#copy(org.apache.calcite.rex.RexNode)">copy</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr)</code></th>
<td class="colLast">
<div class="block">Creates a copy of an expression, which may have been created using a
different RexBuilder and/or <a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type"><code>RelDataTypeFactory</code></a>, using this
RexBuilder.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#decodeIntervalOrDecimal(org.apache.calcite.rex.RexNode)">decodeIntervalOrDecimal</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;node)</code></th>
<td class="colLast">
<div class="block">Retrieves an interval or decimal node's integer representation</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#deriveReturnType(org.apache.calcite.sql.SqlOperator,java.util.List)">deriveReturnType</a></span>&#8203;(<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
java.util.List&lt;? extends <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</code></th>
<td class="colLast">
<div class="block">Derives the return type of a call to an operator.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#encodeIntervalOrDecimal(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataType,boolean)">encodeIntervalOrDecimal</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;value,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
boolean&nbsp;checkOverflow)</code></th>
<td class="colLast">
<div class="block">Casts a decimal's integer representation to a decimal node.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ensureType(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,boolean)">ensureType</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;node,
boolean&nbsp;matchNullability)</code></th>
<td class="colLast">
<div class="block">Ensures expression is interpreted as a specified type.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code><a href="../sql/fun/SqlStdOperatorTable.html" title="class in org.apache.calcite.sql.fun">SqlStdOperatorTable</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getOpTab()">getOpTab</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns this RexBuilder's operator table</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTypeFactory()">getTypeFactory</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns this RexBuilder's type factory</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>private <a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#guessType(java.lang.Object)">guessType</a></span>&#8203;(java.lang.Object&nbsp;value)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>java.util.List&lt;? extends <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#identityProjects(org.apache.calcite.rel.type.RelDataType)">identityProjects</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;rowType)</code></th>
<td class="colLast">
<div class="block">Creates a list of <a href="RexInputRef.html" title="class in org.apache.calcite.rex"><code>RexInputRef</code></a> expressions,
projecting the fields of a given record type.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeAbstractCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">makeAbstractCast</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</code></th>
<td class="colLast">
<div class="block">Creates a call to the CAST operator.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeApproxLiteral(java.math.BigDecimal)">makeApproxLiteral</a></span>&#8203;(java.math.BigDecimal&nbsp;bd)</code></th>
<td class="colLast">
<div class="block">Creates a double-precision literal.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeApproxLiteral(java.math.BigDecimal,org.apache.calcite.rel.type.RelDataType)">makeApproxLiteral</a></span>&#8203;(java.math.BigDecimal&nbsp;bd,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Creates an approximate numeric literal (double or float).</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeBigintLiteral(java.math.BigDecimal)">makeBigintLiteral</a></span>&#8203;(java.math.BigDecimal&nbsp;bd)</code></th>
<td class="colLast">
<div class="block">Creates a BIGINT literal.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeBinaryLiteral(org.apache.calcite.avatica.util.ByteString)">makeBinaryLiteral</a></span>&#8203;(org.apache.calcite.avatica.util.ByteString&nbsp;byteString)</code></th>
<td class="colLast">
<div class="block">Creates a byte array literal.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCall(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlOperator,java.util.List)">makeCall</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;returnType,
<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</code></th>
<td class="colLast">
<div class="block">Creates a call with a list of arguments and a predetermined type.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCall(org.apache.calcite.sql.SqlOperator,java.util.List)">makeCall</a></span>&#8203;(<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
java.util.List&lt;? extends <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</code></th>
<td class="colLast">
<div class="block">Creates a call with an array of arguments.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCall(org.apache.calcite.sql.SqlOperator,org.apache.calcite.rex.RexNode...)">makeCall</a></span>&#8203;(<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>...&nbsp;exprs)</code></th>
<td class="colLast">
<div class="block">Creates a call with a list of arguments.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">makeCast</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</code></th>
<td class="colLast">
<div class="block">Creates a call to the CAST operator.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,boolean)">makeCast</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp,
boolean&nbsp;matchNullability)</code></th>
<td class="colLast">
<div class="block">Creates a call to the CAST operator, expanding if possible, and optionally
also preserving nullability.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>private <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCastBooleanToExact(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">makeCastBooleanToExact</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>private <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCastExactToBoolean(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">makeCastExactToBoolean</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>private <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCastIntervalToExact(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">makeCastIntervalToExact</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCharLiteral(org.apache.calcite.util.NlsString)">makeCharLiteral</a></span>&#8203;(<a href="../util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a>&nbsp;str)</code></th>
<td class="colLast">
<div class="block">Creates a character string literal from an <a href="../util/NlsString.html" title="class in org.apache.calcite.util"><code>NlsString</code></a>.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeCorrel(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rel.core.CorrelationId)">makeCorrel</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../rel/core/CorrelationId.html" title="class in org.apache.calcite.rel.core">CorrelationId</a>&nbsp;id)</code></th>
<td class="colLast">
<div class="block">Creates an expression referencing a correlation variable.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeDateLiteral(java.util.Calendar)">makeDateLiteral</a></span>&#8203;(java.util.Calendar&nbsp;calendar)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeDateLiteral(org.apache.calcite.util.DateString)"><code>makeDateLiteral(DateString)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeDateLiteral(org.apache.calcite.util.DateString)">makeDateLiteral</a></span>&#8203;(<a href="../util/DateString.html" title="class in org.apache.calcite.util">DateString</a>&nbsp;date)</code></th>
<td class="colLast">
<div class="block">Creates a Date literal.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="RexDynamicParam.html" title="class in org.apache.calcite.rex">RexDynamicParam</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeDynamicParam(org.apache.calcite.rel.type.RelDataType,int)">makeDynamicParam</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;index)</code></th>
<td class="colLast">
<div class="block">Creates a reference to a dynamic parameter</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeExactLiteral(java.math.BigDecimal)">makeExactLiteral</a></span>&#8203;(java.math.BigDecimal&nbsp;bd)</code></th>
<td class="colLast">
<div class="block">Creates a numeric literal.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeExactLiteral(java.math.BigDecimal,org.apache.calcite.rel.type.RelDataType)">makeExactLiteral</a></span>&#8203;(java.math.BigDecimal&nbsp;bd,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Creates a numeric literal.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeFieldAccess(org.apache.calcite.rex.RexNode,int)">makeFieldAccess</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr,
int&nbsp;i)</code></th>
<td class="colLast">
<div class="block">Creates an expression accessing a field with a given ordinal from a
record.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeFieldAccess(org.apache.calcite.rex.RexNode,java.lang.String,boolean)">makeFieldAccess</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr,
java.lang.String&nbsp;fieldName,
boolean&nbsp;caseSensitive)</code></th>
<td class="colLast">
<div class="block">Creates an expression accessing a given named field from a record.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>private <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeFieldAccessInternal(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataTypeField)">makeFieldAccessInternal</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr,
<a href="../rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>&nbsp;field)</code></th>
<td class="colLast">
<div class="block">Creates an expression accessing a given field from a record.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeFlag(java.lang.Enum)">makeFlag</a></span>&#8203;(java.lang.Enum&nbsp;flag)</code></th>
<td class="colLast">
<div class="block">Creates a literal representing a flag.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code><a href="RexInputRef.html" title="class in org.apache.calcite.rex">RexInputRef</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeInputRef(org.apache.calcite.rel.RelNode,int)">makeInputRef</a></span>&#8203;(<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;input,
int&nbsp;i)</code></th>
<td class="colLast">
<div class="block">Creates a reference to a given field of the input relational expression.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code><a href="RexInputRef.html" title="class in org.apache.calcite.rex">RexInputRef</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeInputRef(org.apache.calcite.rel.type.RelDataType,int)">makeInputRef</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;i)</code></th>
<td class="colLast">
<div class="block">Creates a reference to a given field of the input record.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeIntervalLiteral(java.math.BigDecimal,org.apache.calcite.sql.SqlIntervalQualifier)">makeIntervalLiteral</a></span>&#8203;(java.math.BigDecimal&nbsp;v,
<a href="../sql/SqlIntervalQualifier.html" title="class in org.apache.calcite.sql">SqlIntervalQualifier</a>&nbsp;intervalQualifier)</code></th>
<td class="colLast">
<div class="block">Creates a literal representing an interval value, for example
<code>INTERVAL '3-7' YEAR TO MONTH</code>.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeIntervalLiteral(org.apache.calcite.sql.SqlIntervalQualifier)">makeIntervalLiteral</a></span>&#8203;(<a href="../sql/SqlIntervalQualifier.html" title="class in org.apache.calcite.sql">SqlIntervalQualifier</a>&nbsp;intervalQualifier)</code></th>
<td class="colLast">
<div class="block">Creates a literal representing an interval type, for example
<code>YEAR TO MONTH</code> or <code>DOW</code>.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeLiteral(boolean)">makeLiteral</a></span>&#8203;(boolean&nbsp;b)</code></th>
<td class="colLast">
<div class="block">Creates a boolean literal.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>protected <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeLiteral(java.lang.Comparable,org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.type.SqlTypeName)">makeLiteral</a></span>&#8203;(java.lang.Comparable&nbsp;o,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName)</code></th>
<td class="colLast">
<div class="block">Internal method to create a call to a literal.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeLiteral(java.lang.Object,org.apache.calcite.rel.type.RelDataType,boolean)">makeLiteral</a></span>&#8203;(java.lang.Object&nbsp;value,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
boolean&nbsp;allowCast)</code></th>
<td class="colLast">
<div class="block">Creates a literal of a given type.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeLiteral(java.lang.String)">makeLiteral</a></span>&#8203;(java.lang.String&nbsp;s)</code></th>
<td class="colLast">
<div class="block">Creates a character string literal.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeNewInvocation(org.apache.calcite.rel.type.RelDataType,java.util.List)">makeNewInvocation</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</code></th>
<td class="colLast">
<div class="block">Creates an invocation of the NEW operator.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeNotNull(org.apache.calcite.rex.RexNode)">makeNotNull</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</code></th>
<td class="colLast">
<div class="block">Makes a cast of a value to NOT NULL;
no-op if the type already has NOT NULL.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)">makeNullLiteral</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Creates a literal whose value is NULL, with a particular type.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeNullLiteral(org.apache.calcite.sql.type.SqlTypeName)">makeNullLiteral</a></span>&#8203;(<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)"><code>makeNullLiteral(RelDataType)</code></a></div>
</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeNullLiteral(org.apache.calcite.sql.type.SqlTypeName,int)">makeNullLiteral</a></span>&#8203;(<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)"><code>makeNullLiteral(RelDataType)</code></a></div>
</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeOver(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlAggFunction,java.util.List,java.util.List,com.google.common.collect.ImmutableList,org.apache.calcite.rex.RexWindowBound,org.apache.calcite.rex.RexWindowBound,boolean,boolean,boolean,boolean)">makeOver</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../sql/SqlAggFunction.html" title="class in org.apache.calcite.sql">SqlAggFunction</a>&nbsp;operator,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;partitionKeys,
com.google.common.collect.ImmutableList&lt;<a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a>&gt;&nbsp;orderKeys,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;lowerBound,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;upperBound,
boolean&nbsp;physical,
boolean&nbsp;allowPartial,
boolean&nbsp;nullWhenCountZero,
boolean&nbsp;distinct)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeOver(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlAggFunction,java.util.List,java.util.List,com.google.common.collect.ImmutableList,org.apache.calcite.rex.RexWindowBound,org.apache.calcite.rex.RexWindowBound,boolean,boolean,boolean,boolean,boolean)">makeOver</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../sql/SqlAggFunction.html" title="class in org.apache.calcite.sql">SqlAggFunction</a>&nbsp;operator,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;partitionKeys,
com.google.common.collect.ImmutableList&lt;<a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a>&gt;&nbsp;orderKeys,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;lowerBound,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;upperBound,
boolean&nbsp;physical,
boolean&nbsp;allowPartial,
boolean&nbsp;nullWhenCountZero,
boolean&nbsp;distinct,
boolean&nbsp;ignoreNulls)</code></th>
<td class="colLast">
<div class="block">Creates a call to a windowed agg.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code><a href="RexPatternFieldRef.html" title="class in org.apache.calcite.rex">RexPatternFieldRef</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makePatternFieldRef(java.lang.String,org.apache.calcite.rel.type.RelDataType,int)">makePatternFieldRef</a></span>&#8203;(java.lang.String&nbsp;alpha,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;i)</code></th>
<td class="colLast">
<div class="block">Creates a reference to a given field of the pattern.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>protected <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makePreciseStringLiteral(java.lang.String)">makePreciseStringLiteral</a></span>&#8203;(java.lang.String&nbsp;s)</code></th>
<td class="colLast">
<div class="block">Creates a character string literal with type CHAR and default charset and
collation.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>protected <a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makePreciseStringLiteral(org.apache.calcite.avatica.util.ByteString,java.lang.String,org.apache.calcite.sql.SqlCollation)">makePreciseStringLiteral</a></span>&#8203;(org.apache.calcite.avatica.util.ByteString&nbsp;value,
java.lang.String&nbsp;charsetName,
<a href="../sql/SqlCollation.html" title="class in org.apache.calcite.sql">SqlCollation</a>&nbsp;collation)</code></th>
<td class="colLast">
<div class="block">Creates a character string literal with type CHAR.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeRangeReference(org.apache.calcite.rel.RelNode)">makeRangeReference</a></span>&#8203;(<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;input)</code></th>
<td class="colLast">
<div class="block">Creates a reference to all the fields in the row.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code><a href="RexRangeRef.html" title="class in org.apache.calcite.rex">RexRangeRef</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeRangeReference(org.apache.calcite.rel.type.RelDataType,int,boolean)">makeRangeReference</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;offset,
boolean&nbsp;nullable)</code></th>
<td class="colLast">
<div class="block">Creates a reference to all the fields in the row.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeReinterpretCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">makeReinterpretCast</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;checkOverflow)</code></th>
<td class="colLast">
<div class="block">Makes a reinterpret cast.</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTimeLiteral(java.util.Calendar,int)">makeTimeLiteral</a></span>&#8203;(java.util.Calendar&nbsp;calendar,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeTimeLiteral(org.apache.calcite.util.TimeString,int)"><code>makeTimeLiteral(TimeString, int)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTimeLiteral(org.apache.calcite.util.TimeString,int)">makeTimeLiteral</a></span>&#8203;(<a href="../util/TimeString.html" title="class in org.apache.calcite.util">TimeString</a>&nbsp;time,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block">Creates a Time literal.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTimestampLiteral(java.util.Calendar,int)">makeTimestampLiteral</a></span>&#8203;(java.util.Calendar&nbsp;calendar,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeTimestampLiteral(org.apache.calcite.util.TimestampString,int)"><code>makeTimestampLiteral(TimestampString, int)</code></a>.</div>
</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTimestampLiteral(org.apache.calcite.util.TimestampString,int)">makeTimestampLiteral</a></span>&#8203;(<a href="../util/TimestampString.html" title="class in org.apache.calcite.util">TimestampString</a>&nbsp;timestamp,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block">Creates a Timestamp literal.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTimestampWithLocalTimeZoneLiteral(org.apache.calcite.util.TimestampString,int)">makeTimestampWithLocalTimeZoneLiteral</a></span>&#8203;(<a href="../util/TimestampString.html" title="class in org.apache.calcite.util">TimestampString</a>&nbsp;timestamp,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block">Creates a Timestamp with local time-zone literal.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code><a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeTimeWithLocalTimeZoneLiteral(org.apache.calcite.util.TimeString,int)">makeTimeWithLocalTimeZoneLiteral</a></span>&#8203;(<a href="../util/TimeString.html" title="class in org.apache.calcite.util">TimeString</a>&nbsp;time,
int&nbsp;precision)</code></th>
<td class="colLast">
<div class="block">Creates a Time with local time-zone literal.</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code><a href="RexWindow.html" title="class in org.apache.calcite.rex">RexWindow</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeWindow(java.util.List,com.google.common.collect.ImmutableList,org.apache.calcite.rex.RexWindowBound,org.apache.calcite.rex.RexWindowBound,boolean)">makeWindow</a></span>&#8203;(java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;partitionKeys,
com.google.common.collect.ImmutableList&lt;<a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a>&gt;&nbsp;orderKeys,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;lowerBound,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;upperBound,
boolean&nbsp;isRows)</code></th>
<td class="colLast">
<div class="block">Creates a window specification.</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#makeZeroLiteral(org.apache.calcite.rel.type.RelDataType)">makeZeroLiteral</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Creates a literal of the default value for the given type.</div>
</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code><a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#matchNullability(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">matchNullability</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Ensures that a type's nullability matches a value's nullability.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code><a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#multiplyDivide(org.apache.calcite.rex.RexNode,java.math.BigDecimal,java.math.BigDecimal)">multiplyDivide</a></span>&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;e,
java.math.BigDecimal&nbsp;multiplier,
java.math.BigDecimal&nbsp;divider)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>private static java.util.List&lt;java.lang.Integer&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#nullableArgs(java.util.List,java.util.List)">nullableArgs</a></span>&#8203;(java.util.List&lt;java.lang.Integer&gt;&nbsp;list0,
java.util.List&lt;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&gt;&nbsp;types)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>private static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#padRight(java.lang.String,int)">padRight</a></span>&#8203;(java.lang.String&nbsp;s,
int&nbsp;length)</code></th>
<td class="colLast">
<div class="block">Returns a string padded with spaces to make it at least a given length.</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>private static org.apache.calcite.avatica.util.ByteString</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#padRight(org.apache.calcite.avatica.util.ByteString,int)">padRight</a></span>&#8203;(org.apache.calcite.avatica.util.ByteString&nbsp;s,
int&nbsp;length)</code></th>
<td class="colLast">
<div class="block">Returns a byte-string padded with zero bytes to make it at least a given
length,</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>private static <a href="../util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#padRight(org.apache.calcite.util.NlsString,int)">padRight</a></span>&#8203;(<a href="../util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a>&nbsp;s,
int&nbsp;length)</code></th>
<td class="colLast">
<div class="block">Returns an <a href="../util/NlsString.html" title="class in org.apache.calcite.util"><code>NlsString</code></a> with spaces to make it at least a given
length.</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>private static java.lang.Comparable</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#zeroValue(org.apache.calcite.rel.type.RelDataType)">zeroValue</a></span>&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="GET_OPERATOR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GET_OPERATOR</h4>
<pre>public static final&nbsp;<a href="../sql/SqlSpecialOperator.html" title="class in org.apache.calcite.sql">SqlSpecialOperator</a> GET_OPERATOR</pre>
<div class="block">Special operator that accesses an unadvertised field of an input record.
This operator cannot be used in SQL queries; it is introduced temporarily
during sql-to-rel translation, then replaced during the process that
trims unwanted fields.</div>
</li>
</ul>
<a id="INT_MIN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INT_MIN</h4>
<pre>private static final&nbsp;java.math.BigDecimal INT_MIN</pre>
<div class="block">The smallest valid <code>int</code> value, as a <code>BigDecimal</code>.</div>
</li>
</ul>
<a id="INT_MAX">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INT_MAX</h4>
<pre>private static final&nbsp;java.math.BigDecimal INT_MAX</pre>
<div class="block">The largest valid <code>int</code> value, as a <code>BigDecimal</code>.</div>
</li>
</ul>
<a id="typeFactory">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>typeFactory</h4>
<pre>protected final&nbsp;<a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a> typeFactory</pre>
</li>
</ul>
<a id="booleanTrue">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>booleanTrue</h4>
<pre>private final&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a> booleanTrue</pre>
</li>
</ul>
<a id="booleanFalse">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>booleanFalse</h4>
<pre>private final&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a> booleanFalse</pre>
</li>
</ul>
<a id="charEmpty">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>charEmpty</h4>
<pre>private final&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a> charEmpty</pre>
</li>
</ul>
<a id="constantNull">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>constantNull</h4>
<pre>private final&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a> constantNull</pre>
</li>
</ul>
<a id="opTab">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>opTab</h4>
<pre>private final&nbsp;<a href="../sql/fun/SqlStdOperatorTable.html" title="class in org.apache.calcite.sql.fun">SqlStdOperatorTable</a> opTab</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.apache.calcite.rel.type.RelDataTypeFactory)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RexBuilder</h4>
<pre>public&nbsp;RexBuilder&#8203;(<a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a>&nbsp;typeFactory)</pre>
<div class="block">Creates a RexBuilder.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>typeFactory</code> - Type factory</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="identityProjects(org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>identityProjects</h4>
<pre class="methodSignature">public&nbsp;java.util.List&lt;? extends <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;identityProjects&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;rowType)</pre>
<div class="block">Creates a list of <a href="RexInputRef.html" title="class in org.apache.calcite.rex"><code>RexInputRef</code></a> expressions,
projecting the fields of a given record type.</div>
</li>
</ul>
<a id="getTypeFactory()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTypeFactory</h4>
<pre class="methodSignature">public&nbsp;<a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type">RelDataTypeFactory</a>&nbsp;getTypeFactory()</pre>
<div class="block">Returns this RexBuilder's type factory</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>type factory</dd>
</dl>
</li>
</ul>
<a id="getOpTab()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getOpTab</h4>
<pre class="methodSignature">public&nbsp;<a href="../sql/fun/SqlStdOperatorTable.html" title="class in org.apache.calcite.sql.fun">SqlStdOperatorTable</a>&nbsp;getOpTab()</pre>
<div class="block">Returns this RexBuilder's operator table</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>operator table</dd>
</dl>
</li>
</ul>
<a id="makeFieldAccess(org.apache.calcite.rex.RexNode,java.lang.String,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeFieldAccess</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeFieldAccess&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr,
java.lang.String&nbsp;fieldName,
boolean&nbsp;caseSensitive)</pre>
<div class="block">Creates an expression accessing a given named field from a record.
<p>NOTE: Be careful choosing the value of <code>caseSensitive</code>.
If the field name was supplied by an end-user (e.g. as a column alias in
SQL), use your session's case-sensitivity setting.
Only hard-code <code>true</code> if you are sure that the field name is
internally generated.
Hard-coding <code>false</code> is almost certainly wrong.</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expr</code> - Expression yielding a record</dd>
<dd><code>fieldName</code> - Name of field in record</dd>
<dd><code>caseSensitive</code> - Whether match is case-sensitive</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Expression accessing a given named field</dd>
</dl>
</li>
</ul>
<a id="makeFieldAccess(org.apache.calcite.rex.RexNode,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeFieldAccess</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeFieldAccess&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr,
int&nbsp;i)</pre>
<div class="block">Creates an expression accessing a field with a given ordinal from a
record.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expr</code> - Expression yielding a record</dd>
<dd><code>i</code> - Ordinal of field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Expression accessing given field</dd>
</dl>
</li>
</ul>
<a id="makeFieldAccessInternal(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataTypeField)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeFieldAccessInternal</h4>
<pre class="methodSignature">private&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeFieldAccessInternal&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr,
<a href="../rel/type/RelDataTypeField.html" title="interface in org.apache.calcite.rel.type">RelDataTypeField</a>&nbsp;field)</pre>
<div class="block">Creates an expression accessing a given field from a record.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expr</code> - Expression yielding a record</dd>
<dd><code>field</code> - Field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Expression accessing given field</dd>
</dl>
</li>
</ul>
<a id="makeCall(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlOperator,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCall</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCall&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;returnType,
<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</pre>
<div class="block">Creates a call with a list of arguments and a predetermined type.</div>
</li>
</ul>
<a id="makeCall(org.apache.calcite.sql.SqlOperator,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCall</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCall&#8203;(<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
java.util.List&lt;? extends <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</pre>
<div class="block">Creates a call with an array of arguments.
<p>If you already know the return type of the call, then
<a href="#makeCall(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlOperator,java.util.List)"><code>makeCall(org.apache.calcite.rel.type.RelDataType, org.apache.calcite.sql.SqlOperator, java.util.List)</code></a>
is preferred.</p></div>
</li>
</ul>
<a id="makeCall(org.apache.calcite.sql.SqlOperator,org.apache.calcite.rex.RexNode...)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCall</h4>
<pre class="methodSignature">public final&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCall&#8203;(<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>...&nbsp;exprs)</pre>
<div class="block">Creates a call with a list of arguments.
<p>Equivalent to
<code>makeCall(op, exprList.toArray(new RexNode[exprList.size()]))</code>.</div>
</li>
</ul>
<a id="deriveReturnType(org.apache.calcite.sql.SqlOperator,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>deriveReturnType</h4>
<pre class="methodSignature">public&nbsp;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;deriveReturnType&#8203;(<a href="../sql/SqlOperator.html" title="class in org.apache.calcite.sql">SqlOperator</a>&nbsp;op,
java.util.List&lt;? extends <a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</pre>
<div class="block">Derives the return type of a call to an operator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>op</code> - the operator being called</dd>
<dd><code>exprs</code> - actual operands</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>derived type</dd>
</dl>
</li>
</ul>
<a id="addAggCall(org.apache.calcite.rel.core.AggregateCall,int,java.util.List,java.util.Map,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAggCall</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;addAggCall&#8203;(<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&nbsp;aggCall,
int&nbsp;groupCount,
java.util.List&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&gt;&nbsp;aggCalls,
java.util.Map&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>,&#8203;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;aggCallMapping,
java.util.List&lt;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&gt;&nbsp;aggArgTypes)</pre>
<div class="block">Creates a reference to an aggregate call, checking for repeated calls.
<p>Argument types help to optimize for repeated aggregates.
For instance count(42) is equivalent to count(*).</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>aggCall</code> - aggregate call to be added</dd>
<dd><code>groupCount</code> - number of groups in the aggregate relation</dd>
<dd><code>aggCalls</code> - destination list of aggregate calls</dd>
<dd><code>aggCallMapping</code> - the dictionary of already added calls</dd>
<dd><code>aggArgTypes</code> - Argument types, not null</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Rex expression for the given aggregate call</dd>
</dl>
</li>
</ul>
<a id="addAggCall(org.apache.calcite.rel.core.AggregateCall,int,boolean,java.util.List,java.util.Map,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addAggCall</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;addAggCall&#8203;(<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&nbsp;aggCall,
int&nbsp;groupCount,
boolean&nbsp;indicator,
java.util.List&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>&gt;&nbsp;aggCalls,
java.util.Map&lt;<a href="../rel/core/AggregateCall.html" title="class in org.apache.calcite.rel.core">AggregateCall</a>,&#8203;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;aggCallMapping,
java.util.List&lt;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&gt;&nbsp;aggArgTypes)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Creates a reference to an aggregate call, checking for repeated calls.</div>
</li>
</ul>
<a id="nullableArgs(java.util.List,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nullableArgs</h4>
<pre class="methodSignature">private static&nbsp;java.util.List&lt;java.lang.Integer&gt;&nbsp;nullableArgs&#8203;(java.util.List&lt;java.lang.Integer&gt;&nbsp;list0,
java.util.List&lt;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&gt;&nbsp;types)</pre>
</li>
</ul>
<a id="makeOver(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlAggFunction,java.util.List,java.util.List,com.google.common.collect.ImmutableList,org.apache.calcite.rex.RexWindowBound,org.apache.calcite.rex.RexWindowBound,boolean,boolean,boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeOver</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeOver&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../sql/SqlAggFunction.html" title="class in org.apache.calcite.sql">SqlAggFunction</a>&nbsp;operator,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;partitionKeys,
com.google.common.collect.ImmutableList&lt;<a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a>&gt;&nbsp;orderKeys,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;lowerBound,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;upperBound,
boolean&nbsp;physical,
boolean&nbsp;allowPartial,
boolean&nbsp;nullWhenCountZero,
boolean&nbsp;distinct)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
</li>
</ul>
<a id="makeOver(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.SqlAggFunction,java.util.List,java.util.List,com.google.common.collect.ImmutableList,org.apache.calcite.rex.RexWindowBound,org.apache.calcite.rex.RexWindowBound,boolean,boolean,boolean,boolean,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeOver</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeOver&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../sql/SqlAggFunction.html" title="class in org.apache.calcite.sql">SqlAggFunction</a>&nbsp;operator,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;partitionKeys,
com.google.common.collect.ImmutableList&lt;<a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a>&gt;&nbsp;orderKeys,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;lowerBound,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;upperBound,
boolean&nbsp;physical,
boolean&nbsp;allowPartial,
boolean&nbsp;nullWhenCountZero,
boolean&nbsp;distinct,
boolean&nbsp;ignoreNulls)</pre>
<div class="block">Creates a call to a windowed agg.</div>
</li>
</ul>
<a id="makeWindow(java.util.List,com.google.common.collect.ImmutableList,org.apache.calcite.rex.RexWindowBound,org.apache.calcite.rex.RexWindowBound,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeWindow</h4>
<pre class="methodSignature">public&nbsp;<a href="RexWindow.html" title="class in org.apache.calcite.rex">RexWindow</a>&nbsp;makeWindow&#8203;(java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;partitionKeys,
com.google.common.collect.ImmutableList&lt;<a href="RexFieldCollation.html" title="class in org.apache.calcite.rex">RexFieldCollation</a>&gt;&nbsp;orderKeys,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;lowerBound,
<a href="RexWindowBound.html" title="class in org.apache.calcite.rex">RexWindowBound</a>&nbsp;upperBound,
boolean&nbsp;isRows)</pre>
<div class="block">Creates a window specification.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>partitionKeys</code> - Partition keys</dd>
<dd><code>orderKeys</code> - Order keys</dd>
<dd><code>lowerBound</code> - Lower bound</dd>
<dd><code>upperBound</code> - Upper bound</dd>
<dd><code>isRows</code> - Whether physical. True if row-based, false if
range-based</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>window specification</dd>
</dl>
</li>
</ul>
<a id="constantNull()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>constantNull</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;constantNull()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)"><code>makeNullLiteral(RelDataType)</code></a>, which produces a
NULL of the correct type</div>
</div>
<div class="block">Creates a constant for the SQL <code>NULL</code> value.</div>
</li>
</ul>
<a id="makeCorrel(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rel.core.CorrelationId)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCorrel</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCorrel&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../rel/core/CorrelationId.html" title="class in org.apache.calcite.rel.core">CorrelationId</a>&nbsp;id)</pre>
<div class="block">Creates an expression referencing a correlation variable.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>id</code> - Name of variable</dd>
<dd><code>type</code> - Type of variable</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Correlation variable</dd>
</dl>
</li>
</ul>
<a id="makeNewInvocation(org.apache.calcite.rel.type.RelDataType,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNewInvocation</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeNewInvocation&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
java.util.List&lt;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&gt;&nbsp;exprs)</pre>
<div class="block">Creates an invocation of the NEW operator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type to be instantiated</dd>
<dd><code>exprs</code> - Arguments to NEW operator</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Expression invoking NEW operator</dd>
</dl>
</li>
</ul>
<a id="makeCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCast</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCast&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</pre>
<div class="block">Creates a call to the CAST operator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type to cast to</dd>
<dd><code>exp</code> - Expression being cast</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Call to CAST operator</dd>
</dl>
</li>
</ul>
<a id="makeCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCast</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCast&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp,
boolean&nbsp;matchNullability)</pre>
<div class="block">Creates a call to the CAST operator, expanding if possible, and optionally
also preserving nullability.
<p>Tries to expand the cast, and therefore the result may be something
other than a <a href="RexCall.html" title="class in org.apache.calcite.rex"><code>RexCall</code></a> to the CAST operator, such as a
<a href="RexLiteral.html" title="class in org.apache.calcite.rex"><code>RexLiteral</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type to cast to</dd>
<dd><code>exp</code> - Expression being cast</dd>
<dd><code>matchNullability</code> - Whether to ensure the result has the same
nullability as <code>type</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Call to CAST operator</dd>
</dl>
</li>
</ul>
<a id="baseUnit(org.apache.calcite.sql.type.SqlTypeName)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>baseUnit</h4>
<pre class="methodSignature">protected static&nbsp;org.apache.calcite.avatica.util.TimeUnit&nbsp;baseUnit&#8203;(<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;unit)</pre>
<div class="block">Returns the lowest granularity unit for the given unit.
YEAR and MONTH intervals are stored as months;
HOUR, MINUTE, SECOND intervals are stored as milliseconds.</div>
</li>
</ul>
<a id="canRemoveCastFromLiteral(org.apache.calcite.rel.type.RelDataType,java.lang.Comparable,org.apache.calcite.sql.type.SqlTypeName)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canRemoveCastFromLiteral</h4>
<pre class="methodSignature">boolean&nbsp;canRemoveCastFromLiteral&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
java.lang.Comparable&nbsp;value,
<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;fromTypeName)</pre>
</li>
</ul>
<a id="makeCastExactToBoolean(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCastExactToBoolean</h4>
<pre class="methodSignature">private&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCastExactToBoolean&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</pre>
</li>
</ul>
<a id="makeCastBooleanToExact(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCastBooleanToExact</h4>
<pre class="methodSignature">private&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCastBooleanToExact&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</pre>
</li>
</ul>
<a id="makeCastIntervalToExact(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCastIntervalToExact</h4>
<pre class="methodSignature">private&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeCastIntervalToExact&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;toType,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</pre>
</li>
</ul>
<a id="multiplyDivide(org.apache.calcite.rex.RexNode,java.math.BigDecimal,java.math.BigDecimal)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>multiplyDivide</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;multiplyDivide&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;e,
java.math.BigDecimal&nbsp;multiplier,
java.math.BigDecimal&nbsp;divider)</pre>
</li>
</ul>
<a id="encodeIntervalOrDecimal(org.apache.calcite.rex.RexNode,org.apache.calcite.rel.type.RelDataType,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>encodeIntervalOrDecimal</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;encodeIntervalOrDecimal&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;value,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
boolean&nbsp;checkOverflow)</pre>
<div class="block">Casts a decimal's integer representation to a decimal node. If the
expression is not the expected integer type, then it is casted first.
<p>An overflow check may be requested to ensure the internal value
does not exceed the maximum value of the decimal type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - integer representation of decimal</dd>
<dd><code>type</code> - type integer will be reinterpreted as</dd>
<dd><code>checkOverflow</code> - indicates whether an overflow check is required
when reinterpreting this particular value as the
decimal type. A check usually not required for
arithmetic, but is often required for rounding and
explicit casts.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the integer reinterpreted as an opaque decimal type</dd>
</dl>
</li>
</ul>
<a id="decodeIntervalOrDecimal(org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>decodeIntervalOrDecimal</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;decodeIntervalOrDecimal&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;node)</pre>
<div class="block">Retrieves an interval or decimal node's integer representation</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>node</code> - the interval or decimal value as an opaque type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an integer representation of the decimal value</dd>
</dl>
</li>
</ul>
<a id="makeAbstractCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeAbstractCast</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeAbstractCast&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</pre>
<div class="block">Creates a call to the CAST operator.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type to cast to</dd>
<dd><code>exp</code> - Expression being cast</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Call to CAST operator</dd>
</dl>
</li>
</ul>
<a id="makeReinterpretCast(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeReinterpretCast</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeReinterpretCast&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;checkOverflow)</pre>
<div class="block">Makes a reinterpret cast.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - type returned by the cast</dd>
<dd><code>exp</code> - expression to be casted</dd>
<dd><code>checkOverflow</code> - whether an overflow check is required</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a RexCall with two operands and a special return type</dd>
</dl>
</li>
</ul>
<a id="makeNotNull(org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNotNull</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeNotNull&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;exp)</pre>
<div class="block">Makes a cast of a value to NOT NULL;
no-op if the type already has NOT NULL.</div>
</li>
</ul>
<a id="makeRangeReference(org.apache.calcite.rel.RelNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeRangeReference</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeRangeReference&#8203;(<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;input)</pre>
<div class="block">Creates a reference to all the fields in the row. That is, the whole row
as a single record object.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>input</code> - Input relational expression</dd>
</dl>
</li>
</ul>
<a id="makeRangeReference(org.apache.calcite.rel.type.RelDataType,int,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeRangeReference</h4>
<pre class="methodSignature">public&nbsp;<a href="RexRangeRef.html" title="class in org.apache.calcite.rex">RexRangeRef</a>&nbsp;makeRangeReference&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;offset,
boolean&nbsp;nullable)</pre>
<div class="block">Creates a reference to all the fields in the row.
<p>For example, if the input row has type <code>T{f0,f1,f2,f3,f4}</code>
then <code>makeRangeReference(T{f0,f1,f2,f3,f4}, S{f3,f4}, 3)</code> is
an expression which yields the last 2 fields.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type of the resulting range record.</dd>
<dd><code>offset</code> - Index of first field.</dd>
<dd><code>nullable</code> - Whether the record is nullable.</dd>
</dl>
</li>
</ul>
<a id="makeInputRef(org.apache.calcite.rel.type.RelDataType,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeInputRef</h4>
<pre class="methodSignature">public&nbsp;<a href="RexInputRef.html" title="class in org.apache.calcite.rex">RexInputRef</a>&nbsp;makeInputRef&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;i)</pre>
<div class="block">Creates a reference to a given field of the input record.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type of field</dd>
<dd><code>i</code> - Ordinal of field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Reference to field</dd>
</dl>
</li>
</ul>
<a id="makeInputRef(org.apache.calcite.rel.RelNode,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeInputRef</h4>
<pre class="methodSignature">public&nbsp;<a href="RexInputRef.html" title="class in org.apache.calcite.rex">RexInputRef</a>&nbsp;makeInputRef&#8203;(<a href="../rel/RelNode.html" title="interface in org.apache.calcite.rel">RelNode</a>&nbsp;input,
int&nbsp;i)</pre>
<div class="block">Creates a reference to a given field of the input relational expression.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>input</code> - Input relational expression</dd>
<dd><code>i</code> - Ordinal of field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Reference to field</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#identityProjects(org.apache.calcite.rel.type.RelDataType)"><code>identityProjects(RelDataType)</code></a></dd>
</dl>
</li>
</ul>
<a id="makePatternFieldRef(java.lang.String,org.apache.calcite.rel.type.RelDataType,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makePatternFieldRef</h4>
<pre class="methodSignature">public&nbsp;<a href="RexPatternFieldRef.html" title="class in org.apache.calcite.rex">RexPatternFieldRef</a>&nbsp;makePatternFieldRef&#8203;(java.lang.String&nbsp;alpha,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;i)</pre>
<div class="block">Creates a reference to a given field of the pattern.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>alpha</code> - the pattern name</dd>
<dd><code>type</code> - Type of field</dd>
<dd><code>i</code> - Ordinal of field</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Reference to field of pattern</dd>
</dl>
</li>
</ul>
<a id="makeFlag(java.lang.Enum)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeFlag</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeFlag&#8203;(java.lang.Enum&nbsp;flag)</pre>
<div class="block">Creates a literal representing a flag.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flag</code> - Flag value</dd>
</dl>
</li>
</ul>
<a id="makeLiteral(java.lang.Comparable,org.apache.calcite.rel.type.RelDataType,org.apache.calcite.sql.type.SqlTypeName)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeLiteral</h4>
<pre class="methodSignature">protected&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeLiteral&#8203;(java.lang.Comparable&nbsp;o,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName)</pre>
<div class="block">Internal method to create a call to a literal. Code outside this package
should call one of the type-specific methods such as
<a href="#makeDateLiteral(org.apache.calcite.util.DateString)"><code>makeDateLiteral(DateString)</code></a>, <a href="#makeLiteral(boolean)"><code>makeLiteral(boolean)</code></a>,
<a href="#makeLiteral(java.lang.String)"><code>makeLiteral(String)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>o</code> - Value of literal, must be appropriate for the type</dd>
<dd><code>type</code> - Type of literal</dd>
<dd><code>typeName</code> - SQL type of literal</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Literal</dd>
</dl>
</li>
</ul>
<a id="makeLiteral(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeLiteral&#8203;(boolean&nbsp;b)</pre>
<div class="block">Creates a boolean literal.</div>
</li>
</ul>
<a id="makeExactLiteral(java.math.BigDecimal)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeExactLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeExactLiteral&#8203;(java.math.BigDecimal&nbsp;bd)</pre>
<div class="block">Creates a numeric literal.</div>
</li>
</ul>
<a id="makeBigintLiteral(java.math.BigDecimal)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeBigintLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeBigintLiteral&#8203;(java.math.BigDecimal&nbsp;bd)</pre>
<div class="block">Creates a BIGINT literal.</div>
</li>
</ul>
<a id="makeExactLiteral(java.math.BigDecimal,org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeExactLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeExactLiteral&#8203;(java.math.BigDecimal&nbsp;bd,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
<div class="block">Creates a numeric literal.</div>
</li>
</ul>
<a id="makeBinaryLiteral(org.apache.calcite.avatica.util.ByteString)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeBinaryLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeBinaryLiteral&#8203;(org.apache.calcite.avatica.util.ByteString&nbsp;byteString)</pre>
<div class="block">Creates a byte array literal.</div>
</li>
</ul>
<a id="makeApproxLiteral(java.math.BigDecimal)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeApproxLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeApproxLiteral&#8203;(java.math.BigDecimal&nbsp;bd)</pre>
<div class="block">Creates a double-precision literal.</div>
</li>
</ul>
<a id="makeApproxLiteral(java.math.BigDecimal,org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeApproxLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeApproxLiteral&#8203;(java.math.BigDecimal&nbsp;bd,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
<div class="block">Creates an approximate numeric literal (double or float).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>bd</code> - literal value</dd>
<dd><code>type</code> - approximate numeric type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new literal</dd>
</dl>
</li>
</ul>
<a id="makeLiteral(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeLiteral&#8203;(java.lang.String&nbsp;s)</pre>
<div class="block">Creates a character string literal.</div>
</li>
</ul>
<a id="makePreciseStringLiteral(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makePreciseStringLiteral</h4>
<pre class="methodSignature">protected&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makePreciseStringLiteral&#8203;(java.lang.String&nbsp;s)</pre>
<div class="block">Creates a character string literal with type CHAR and default charset and
collation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - String value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Character string literal</dd>
</dl>
</li>
</ul>
<a id="makePreciseStringLiteral(org.apache.calcite.avatica.util.ByteString,java.lang.String,org.apache.calcite.sql.SqlCollation)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makePreciseStringLiteral</h4>
<pre class="methodSignature">protected&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makePreciseStringLiteral&#8203;(org.apache.calcite.avatica.util.ByteString&nbsp;value,
java.lang.String&nbsp;charsetName,
<a href="../sql/SqlCollation.html" title="class in org.apache.calcite.sql">SqlCollation</a>&nbsp;collation)</pre>
<div class="block">Creates a character string literal with type CHAR.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - String value in bytes</dd>
<dd><code>charsetName</code> - SQL-level charset name</dd>
<dd><code>collation</code> - Sql collation</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String literal</dd>
</dl>
</li>
</ul>
<a id="ensureType(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ensureType</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;ensureType&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;node,
boolean&nbsp;matchNullability)</pre>
<div class="block">Ensures expression is interpreted as a specified type. The returned
expression may be wrapped with a cast.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - desired type</dd>
<dd><code>node</code> - expression</dd>
<dd><code>matchNullability</code> - whether to correct nullability of specified
type to match the expression; this usually should
be true, except for explicit casts which can
override default nullability</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a casted expression or the original expression</dd>
</dl>
</li>
</ul>
<a id="matchNullability(org.apache.calcite.rel.type.RelDataType,org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>matchNullability</h4>
<pre class="methodSignature">public&nbsp;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;matchNullability&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;value)</pre>
<div class="block">Ensures that a type's nullability matches a value's nullability.</div>
</li>
</ul>
<a id="makeCharLiteral(org.apache.calcite.util.NlsString)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeCharLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeCharLiteral&#8203;(<a href="../util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a>&nbsp;str)</pre>
<div class="block">Creates a character string literal from an <a href="../util/NlsString.html" title="class in org.apache.calcite.util"><code>NlsString</code></a>.
<p>If the string's charset and collation are not set, uses the system
defaults.</div>
</li>
</ul>
<a id="makeDateLiteral(java.util.Calendar)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeDateLiteral</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeDateLiteral&#8203;(java.util.Calendar&nbsp;calendar)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeDateLiteral(org.apache.calcite.util.DateString)"><code>makeDateLiteral(DateString)</code></a>.</div>
</div>
</li>
</ul>
<a id="makeDateLiteral(org.apache.calcite.util.DateString)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeDateLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeDateLiteral&#8203;(<a href="../util/DateString.html" title="class in org.apache.calcite.util">DateString</a>&nbsp;date)</pre>
<div class="block">Creates a Date literal.</div>
</li>
</ul>
<a id="makeTimeLiteral(java.util.Calendar,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeTimeLiteral</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeTimeLiteral&#8203;(java.util.Calendar&nbsp;calendar,
int&nbsp;precision)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeTimeLiteral(org.apache.calcite.util.TimeString,int)"><code>makeTimeLiteral(TimeString, int)</code></a>.</div>
</div>
</li>
</ul>
<a id="makeTimeLiteral(org.apache.calcite.util.TimeString,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeTimeLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeTimeLiteral&#8203;(<a href="../util/TimeString.html" title="class in org.apache.calcite.util">TimeString</a>&nbsp;time,
int&nbsp;precision)</pre>
<div class="block">Creates a Time literal.</div>
</li>
</ul>
<a id="makeTimeWithLocalTimeZoneLiteral(org.apache.calcite.util.TimeString,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeTimeWithLocalTimeZoneLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeTimeWithLocalTimeZoneLiteral&#8203;(<a href="../util/TimeString.html" title="class in org.apache.calcite.util">TimeString</a>&nbsp;time,
int&nbsp;precision)</pre>
<div class="block">Creates a Time with local time-zone literal.</div>
</li>
</ul>
<a id="makeTimestampLiteral(java.util.Calendar,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeTimestampLiteral</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeTimestampLiteral&#8203;(java.util.Calendar&nbsp;calendar,
int&nbsp;precision)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeTimestampLiteral(org.apache.calcite.util.TimestampString,int)"><code>makeTimestampLiteral(TimestampString, int)</code></a>.</div>
</div>
</li>
</ul>
<a id="makeTimestampLiteral(org.apache.calcite.util.TimestampString,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeTimestampLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeTimestampLiteral&#8203;(<a href="../util/TimestampString.html" title="class in org.apache.calcite.util">TimestampString</a>&nbsp;timestamp,
int&nbsp;precision)</pre>
<div class="block">Creates a Timestamp literal.</div>
</li>
</ul>
<a id="makeTimestampWithLocalTimeZoneLiteral(org.apache.calcite.util.TimestampString,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeTimestampWithLocalTimeZoneLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeTimestampWithLocalTimeZoneLiteral&#8203;(<a href="../util/TimestampString.html" title="class in org.apache.calcite.util">TimestampString</a>&nbsp;timestamp,
int&nbsp;precision)</pre>
<div class="block">Creates a Timestamp with local time-zone literal.</div>
</li>
</ul>
<a id="makeIntervalLiteral(org.apache.calcite.sql.SqlIntervalQualifier)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeIntervalLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeIntervalLiteral&#8203;(<a href="../sql/SqlIntervalQualifier.html" title="class in org.apache.calcite.sql">SqlIntervalQualifier</a>&nbsp;intervalQualifier)</pre>
<div class="block">Creates a literal representing an interval type, for example
<code>YEAR TO MONTH</code> or <code>DOW</code>.</div>
</li>
</ul>
<a id="makeIntervalLiteral(java.math.BigDecimal,org.apache.calcite.sql.SqlIntervalQualifier)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeIntervalLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeIntervalLiteral&#8203;(java.math.BigDecimal&nbsp;v,
<a href="../sql/SqlIntervalQualifier.html" title="class in org.apache.calcite.sql">SqlIntervalQualifier</a>&nbsp;intervalQualifier)</pre>
<div class="block">Creates a literal representing an interval value, for example
<code>INTERVAL '3-7' YEAR TO MONTH</code>.</div>
</li>
</ul>
<a id="makeDynamicParam(org.apache.calcite.rel.type.RelDataType,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeDynamicParam</h4>
<pre class="methodSignature">public&nbsp;<a href="RexDynamicParam.html" title="class in org.apache.calcite.rex">RexDynamicParam</a>&nbsp;makeDynamicParam&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
int&nbsp;index)</pre>
<div class="block">Creates a reference to a dynamic parameter</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type of dynamic parameter</dd>
<dd><code>index</code> - Index of dynamic parameter</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Expression referencing dynamic parameter</dd>
</dl>
</li>
</ul>
<a id="makeNullLiteral(org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNullLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexLiteral.html" title="class in org.apache.calcite.rex">RexLiteral</a>&nbsp;makeNullLiteral&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
<div class="block">Creates a literal whose value is NULL, with a particular type.
<p>The typing is necessary because RexNodes are strictly typed. For
example, in the Rex world the <code>NULL</code> parameter to <code>
SUBSTRING(NULL FROM 2 FOR 4)</code> must have a valid VARCHAR type so
that the result type can be determined.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type to cast NULL to</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>NULL literal of given type</dd>
</dl>
</li>
</ul>
<a id="makeNullLiteral(org.apache.calcite.sql.type.SqlTypeName,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNullLiteral</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeNullLiteral&#8203;(<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName,
int&nbsp;precision)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)"><code>makeNullLiteral(RelDataType)</code></a></div>
</div>
</li>
</ul>
<a id="makeNullLiteral(org.apache.calcite.sql.type.SqlTypeName)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeNullLiteral</h4>
<pre class="methodSignature">@Deprecated
public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeNullLiteral&#8203;(<a href="../sql/type/SqlTypeName.html" title="enum in org.apache.calcite.sql.type">SqlTypeName</a>&nbsp;typeName)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#makeNullLiteral(org.apache.calcite.rel.type.RelDataType)"><code>makeNullLiteral(RelDataType)</code></a></div>
</div>
</li>
</ul>
<a id="copy(org.apache.calcite.rex.RexNode)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;copy&#8203;(<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;expr)</pre>
<div class="block">Creates a copy of an expression, which may have been created using a
different RexBuilder and/or <a href="../rel/type/RelDataTypeFactory.html" title="interface in org.apache.calcite.rel.type"><code>RelDataTypeFactory</code></a>, using this
RexBuilder.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>expr</code> - Expression</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Copy of expression</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../rel/type/RelDataTypeFactory.html#copyType(org.apache.calcite.rel.type.RelDataType)"><code>RelDataTypeFactory.copyType(RelDataType)</code></a></dd>
</dl>
</li>
</ul>
<a id="makeZeroLiteral(org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeZeroLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeZeroLiteral&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
<div class="block">Creates a literal of the default value for the given type.
<p>This value is:</p>
<ul>
<li>0 for numeric types;
<li>FALSE for BOOLEAN;
<li>The epoch for TIMESTAMP and DATE;
<li>Midnight for TIME;
<li>The empty string for string types (CHAR, BINARY, VARCHAR, VARBINARY).
</ul></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - Type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Simple literal, or cast simple literal</dd>
</dl>
</li>
</ul>
<a id="zeroValue(org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>zeroValue</h4>
<pre class="methodSignature">private static&nbsp;java.lang.Comparable&nbsp;zeroValue&#8203;(<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
</li>
</ul>
<a id="makeLiteral(java.lang.Object,org.apache.calcite.rel.type.RelDataType,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>makeLiteral</h4>
<pre class="methodSignature">public&nbsp;<a href="RexNode.html" title="class in org.apache.calcite.rex">RexNode</a>&nbsp;makeLiteral&#8203;(java.lang.Object&nbsp;value,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type,
boolean&nbsp;allowCast)</pre>
<div class="block">Creates a literal of a given type. The value is assumed to be
compatible with the type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - Value</dd>
<dd><code>type</code> - Type</dd>
<dd><code>allowCast</code> - Whether to allow a cast. If false, value is always a
<a href="RexLiteral.html" title="class in org.apache.calcite.rex"><code>RexLiteral</code></a> but may not be the exact type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Simple literal, or cast simple literal</dd>
</dl>
</li>
</ul>
<a id="clean(java.lang.Object,org.apache.calcite.rel.type.RelDataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clean</h4>
<pre class="methodSignature">private static&nbsp;java.lang.Object&nbsp;clean&#8203;(java.lang.Object&nbsp;o,
<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;type)</pre>
<div class="block">Converts the type of a value to comply with
<a href="RexLiteral.html#valueMatchesType(java.lang.Comparable,org.apache.calcite.sql.type.SqlTypeName,boolean)"><code>RexLiteral.valueMatchesType(java.lang.Comparable, org.apache.calcite.sql.type.SqlTypeName, boolean)</code></a>.</div>
</li>
</ul>
<a id="guessType(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>guessType</h4>
<pre class="methodSignature">private&nbsp;<a href="../rel/type/RelDataType.html" title="interface in org.apache.calcite.rel.type">RelDataType</a>&nbsp;guessType&#8203;(java.lang.Object&nbsp;value)</pre>
</li>
</ul>
<a id="padRight(org.apache.calcite.util.NlsString,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>padRight</h4>
<pre class="methodSignature">private static&nbsp;<a href="../util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a>&nbsp;padRight&#8203;(<a href="../util/NlsString.html" title="class in org.apache.calcite.util">NlsString</a>&nbsp;s,
int&nbsp;length)</pre>
<div class="block">Returns an <a href="../util/NlsString.html" title="class in org.apache.calcite.util"><code>NlsString</code></a> with spaces to make it at least a given
length.</div>
</li>
</ul>
<a id="padRight(java.lang.String,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>padRight</h4>
<pre class="methodSignature">private static&nbsp;java.lang.String&nbsp;padRight&#8203;(java.lang.String&nbsp;s,
int&nbsp;length)</pre>
<div class="block">Returns a string padded with spaces to make it at least a given length.</div>
</li>
</ul>
<a id="padRight(org.apache.calcite.avatica.util.ByteString,int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>padRight</h4>
<pre class="methodSignature">private static&nbsp;org.apache.calcite.avatica.util.ByteString&nbsp;padRight&#8203;(org.apache.calcite.avatica.util.ByteString&nbsp;s,
int&nbsp;length)</pre>
<div class="block">Returns a byte-string padded with zero bytes to make it at least a given
length,</div>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/RexBuilder.html">Use</a></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>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.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>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&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 id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
<p class="legalCopy"><small>Copyright &#169; 2012&#x2013;2019 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</footer>
</body>
</html>