blob: 1e05e9530ceae6ef8ecdaba5d5878bb1ead77169 [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>Primitive (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="Primitive (Apache Calcite API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":10,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":9,"i25":9,"i26":9,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":9,"i34":10,"i35":10,"i36":9,"i37":9,"i38":9,"i39":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete 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/Primitive.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><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#enum.constant.summary">Enum Constants</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#enum.constant.detail">Enum Constants</a>&nbsp;|&nbsp;</li>
<li><a href="#field.detail">Field</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.linq4j.tree</a></div>
<h2 title="Enum Primitive" class="title">Enum Primitive</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>java.lang.Enum&lt;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt;</li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.linq4j.tree.Primitive</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code>java.io.Serializable</code>, <code>java.lang.Comparable&lt;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt;</code></dd>
</dl>
<hr>
<pre>public enum <span class="typeNameLabel">Primitive</span>
extends java.lang.Enum&lt;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt;</pre>
<div class="block">Enumeration of Java's primitive types.
<p>There are fields for the native class (e.g. <code>int</code>, also
known as <code>Integer.TYPE</code>) and the boxing class
(e.g. <code>Integer</code>).</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Primitive.Flavor.html" title="enum in org.apache.calcite.linq4j.tree">Primitive.Flavor</a></span></code></th>
<td class="colLast">
<div class="block">What kind of type?</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a></span></code></th>
<td class="colLast">
<div class="block">A place to send a value.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Primitive.Source.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Source</a></span></code></th>
<td class="colLast">
<div class="block">A place from which to read a value.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="enum.constant.summary">
<!-- -->
</a>
<h3>Enum Constant Summary</h3>
<table class="memberSummary">
<caption><span>Enum Constants</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Enum Constant</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#BOOLEAN">BOOLEAN</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#BYTE">BYTE</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#CHAR">CHAR</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#DOUBLE">DOUBLE</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#FLOAT">FLOAT</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#INT">INT</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#LONG">LONG</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#OTHER">OTHER</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#SHORT">SHORT</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<th class="colFirst" scope="row"><code><span class="memberNameLink"><a href="#VOID">VOID</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== 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 static java.util.Map&lt;java.lang.Class,&#8203;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#BOX_MAP">BOX_MAP</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Class</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#boxClass">boxClass</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#boxName">boxName</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#defaultValue">defaultValue</a></span></code></th>
<td class="colLast">
<div class="block">The default value of this primitive class.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#family">family</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#max">max</a></span></code></th>
<td class="colLast">
<div class="block">The maximum value of this primitive class.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxNegative">maxNegative</a></span></code></th>
<td class="colLast">
<div class="block">The largest value that is less than zero.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#min">min</a></span></code></th>
<td class="colLast">
<div class="block">The minimum value of this primitive class.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minPositive">minPositive</a></span></code></th>
<td class="colLast">
<div class="block">The smallest value that is greater than zero.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>private static java.util.Map&lt;java.lang.Class,&#8203;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PRIMITIVE_MAP">PRIMITIVE_MAP</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.Class</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#primitiveClass">primitiveClass</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#primitiveName">primitiveName</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#size">size</a></span></code></th>
<td class="colLast">
<div class="block">The size of a value of this type, in bits.</div>
</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">Modifier</th>
<th class="colSecond" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>private </code></td>
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(java.lang.Class,java.lang.Class,int,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,int)">Primitive</a></span>&#8203;(java.lang.Class&nbsp;primitiveClass,
java.lang.Class&nbsp;boxClass,
int&nbsp;family,
java.lang.Object&nbsp;defaultValue,
java.lang.Object&nbsp;min,
java.lang.Object&nbsp;maxNegative,
java.lang.Object&nbsp;minPositive,
java.lang.Object&nbsp;max,
int&nbsp;size)</code></th>
<td class="colLast">&nbsp;</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></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>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#arrayItem(java.lang.Object,int)">arrayItem</a></span>&#8203;(java.lang.Object&nbsp;dataSet,
int&nbsp;ordinal)</code></th>
<td class="colLast">
<div class="block">Gets an item from an array.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#arrayItem(java.lang.Object,int,org.apache.calcite.linq4j.tree.Primitive.Sink)">arrayItem</a></span>&#8203;(java.lang.Object&nbsp;dataSet,
int&nbsp;ordinal,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)</code></th>
<td class="colLast">
<div class="block">Sends to a sink an from an array.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#arrayItem(org.apache.calcite.linq4j.tree.Primitive.Source,java.lang.Object,int)">arrayItem</a></span>&#8203;(<a href="Primitive.Source.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Source</a>&nbsp;source,
java.lang.Object&nbsp;dataSet,
int&nbsp;ordinal)</code></th>
<td class="colLast">
<div class="block">Reads value from a source into an array.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#arrayToString(java.lang.Object)">arrayToString</a></span>&#8203;(java.lang.Object&nbsp;array)</code></th>
<td class="colLast">
<div class="block">Converts an array to a string.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Boolean&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(boolean%5B%5D)">asList</a></span>&#8203;(boolean[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>boolean</code> into a <code>List</code> of
<code>Boolean</code>.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Byte&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(byte%5B%5D)">asList</a></span>&#8203;(byte[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>byte</code> into a <code>List</code> of
<code>Byte</code>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Character&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(char%5B%5D)">asList</a></span>&#8203;(char[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>char</code> into a <code>List</code> of
<code>Character</code>.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Double&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(double%5B%5D)">asList</a></span>&#8203;(double[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>double</code> into a <code>List</code> of
<code>Double</code>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Float&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(float%5B%5D)">asList</a></span>&#8203;(float[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>float</code> into a <code>List</code> of
<code>Float</code>.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Integer&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(int%5B%5D)">asList</a></span>&#8203;(int[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>int</code> into a <code>List</code> of
<code>Integer</code>.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Long&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(long%5B%5D)">asList</a></span>&#8203;(long[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>long</code> into a <code>List</code> of
<code>Long</code>.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Short&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(short%5B%5D)">asList</a></span>&#8203;(short[]&nbsp;elements)</code></th>
<td class="colLast">
<div class="block">Adapts an array of <code>short</code> into a <code>List</code> of
<code>Short</code>.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;?&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asList(java.lang.Object)">asList</a></span>&#8203;(java.lang.Object&nbsp;array)</code></th>
<td class="colLast">
<div class="block">Adapts a primitive array into a <code>List</code>.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#assignableFrom(org.apache.calcite.linq4j.tree.Primitive)">assignableFrom</a></span>&#8203;(<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&nbsp;primitive)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static java.lang.Class</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#box(java.lang.Class)">box</a></span>&#8203;(java.lang.Class&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Converts a primitive class to a boxed class; returns other classes
unchanged.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static java.lang.reflect.Type</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#box(java.lang.reflect.Type)">box</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Converts a primitive type to a boxed type; returns other types
unchanged.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static <a href="Primitive.Flavor.html" title="enum in org.apache.calcite.linq4j.tree">Primitive.Flavor</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#flavor(java.lang.reflect.Type)">flavor</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Returns whether this type is a primitive, box or other type.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#is(java.lang.reflect.Type)">is</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Returns whether a given type is primitive.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isBox(java.lang.reflect.Type)">isBox</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Returns whether a given type is a box type (e.g.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isFixedNumeric()">isFixedNumeric</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether this Primitive is a fixed-point numeric type.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isNumeric()">isNumeric</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether this Primitive is a numeric type.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#jdbc(java.sql.ResultSet,int,org.apache.calcite.linq4j.tree.Primitive.Sink)">jdbc</a></span>&#8203;(java.sql.ResultSet&nbsp;resultSet,
int&nbsp;i,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)</code></th>
<td class="colLast">
<div class="block">Sends to a sink a value from a given column in a JDBC result set.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#jdbcGet(java.sql.ResultSet,int)">jdbcGet</a></span>&#8203;(java.sql.ResultSet&nbsp;resultSet,
int&nbsp;i)</code></th>
<td class="colLast">
<div class="block">Gets a value from a given column in a JDBC result set.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>java.lang.Number</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#number(java.lang.Number)">number</a></span>&#8203;(java.lang.Number&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Creates a number value of this primitive's box type.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>static <a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#of(java.lang.reflect.Type)">of</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Returns the Primitive object for a given primitive class.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>static <a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofBox(java.lang.reflect.Type)">ofBox</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Returns the Primitive object for a given boxing class.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>static <a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofBoxOr(java.lang.reflect.Type)">ofBoxOr</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Returns the Primitive object for a given primitive or boxing class.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#parse(java.lang.String)">parse</a></span>&#8203;(java.lang.String&nbsp;stringValue)</code></th>
<td class="colLast">
<div class="block">Calls the appropriate <code>valueOf(String)</code>
method.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#permute(java.lang.Object,int%5B%5D)">permute</a></span>&#8203;(java.lang.Object&nbsp;array,
int[]&nbsp;sources)</code></th>
<td class="colLast">
<div class="block">Permutes an array.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#send(java.lang.reflect.Field,java.lang.Object,org.apache.calcite.linq4j.tree.Primitive.Sink)">send</a></span>&#8203;(java.lang.reflect.Field&nbsp;field,
java.lang.Object&nbsp;o,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)</code></th>
<td class="colLast">
<div class="block">Sends a field value to a sink.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#send(org.apache.calcite.linq4j.tree.Primitive.Source,org.apache.calcite.linq4j.tree.Primitive.Sink)">send</a></span>&#8203;(<a href="Primitive.Source.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Source</a>&nbsp;source,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)</code></th>
<td class="colLast">
<div class="block">Sends a value from a source to a sink.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortArray(java.lang.Object)">sortArray</a></span>&#8203;(java.lang.Object&nbsp;array)</code></th>
<td class="colLast">
<div class="block">Sorts an array of this primitive type.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortArray(java.lang.Object,int,int)">sortArray</a></span>&#8203;(java.lang.Object&nbsp;array,
int&nbsp;fromIndex,
int&nbsp;toIndex)</code></th>
<td class="colLast">
<div class="block">Sorts a specified range of an array of this primitive type.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>private static void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#sortBooleanArray(boolean%5B%5D,int,int)">sortBooleanArray</a></span>&#8203;(boolean[]&nbsp;booleans,
int&nbsp;fromIndex,
int&nbsp;toIndex)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toArray(java.util.Collection)">toArray</a></span>&#8203;(java.util.Collection&nbsp;collection)</code></th>
<td class="colLast">
<div class="block">Converts a collection of boxed primitives into an array of primitives.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toArray2(java.util.Collection)">toArray2</a></span>&#8203;(java.util.Collection&lt;java.lang.Number&gt;&nbsp;collection)</code></th>
<td class="colLast">
<div class="block">Converts a collection of <code>Number</code> to a primitive array.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>static java.lang.Class</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unbox(java.lang.Class)">unbox</a></span>&#8203;(java.lang.Class&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Converts a boxed class to a primitive class; returns other types
unchanged.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>static java.lang.reflect.Type</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#unbox(java.lang.reflect.Type)">unbox</a></span>&#8203;(java.lang.reflect.Type&nbsp;type)</code></th>
<td class="colLast">
<div class="block">Converts a boxed type to a primitive type; returns other types
unchanged.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>static <a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#valueOf(java.lang.String)">valueOf</a></span>&#8203;(java.lang.String&nbsp;name)</code></th>
<td class="colLast">
<div class="block">Returns the enum constant of this type with the specified name.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>static <a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#values()">values</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Enum">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Enum</h3>
<code>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf</code></li>
</ul>
<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>getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ ENUM CONSTANT DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="enum.constant.detail">
<!-- -->
</a>
<h3>Enum Constant Detail</h3>
<a id="BOOLEAN">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BOOLEAN</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> BOOLEAN</pre>
</li>
</ul>
<a id="BYTE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>BYTE</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> BYTE</pre>
</li>
</ul>
<a id="CHAR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>CHAR</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> CHAR</pre>
</li>
</ul>
<a id="SHORT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SHORT</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> SHORT</pre>
</li>
</ul>
<a id="INT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>INT</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> INT</pre>
</li>
</ul>
<a id="LONG">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LONG</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> LONG</pre>
</li>
</ul>
<a id="FLOAT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>FLOAT</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> FLOAT</pre>
</li>
</ul>
<a id="DOUBLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DOUBLE</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> DOUBLE</pre>
</li>
</ul>
<a id="VOID">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>VOID</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> VOID</pre>
</li>
</ul>
<a id="OTHER">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>OTHER</h4>
<pre>public static final&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a> OTHER</pre>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="primitiveClass">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>primitiveClass</h4>
<pre>public final&nbsp;java.lang.Class primitiveClass</pre>
</li>
</ul>
<a id="boxClass">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>boxClass</h4>
<pre>public final&nbsp;java.lang.Class boxClass</pre>
</li>
</ul>
<a id="primitiveName">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>primitiveName</h4>
<pre>public final&nbsp;java.lang.String primitiveName</pre>
</li>
</ul>
<a id="boxName">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>boxName</h4>
<pre>public final&nbsp;java.lang.String boxName</pre>
</li>
</ul>
<a id="family">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>family</h4>
<pre>private final&nbsp;int family</pre>
</li>
</ul>
<a id="defaultValue">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultValue</h4>
<pre>public final&nbsp;java.lang.Object defaultValue</pre>
<div class="block">The default value of this primitive class. This is the value
taken by uninitialized fields, for instance; 0 for <code>int</code>, false for
<code>boolean</code>, etc.</div>
</li>
</ul>
<a id="min">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>min</h4>
<pre>public final&nbsp;java.lang.Object min</pre>
<div class="block">The minimum value of this primitive class.</div>
</li>
</ul>
<a id="maxNegative">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>maxNegative</h4>
<pre>public final&nbsp;java.lang.Object maxNegative</pre>
<div class="block">The largest value that is less than zero. Null if not applicable for this
type.</div>
</li>
</ul>
<a id="minPositive">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>minPositive</h4>
<pre>public final&nbsp;java.lang.Object minPositive</pre>
<div class="block">The smallest value that is greater than zero. Null if not applicable for
this type.</div>
</li>
</ul>
<a id="max">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>max</h4>
<pre>public final&nbsp;java.lang.Object max</pre>
<div class="block">The maximum value of this primitive class.</div>
</li>
</ul>
<a id="size">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public final&nbsp;int size</pre>
<div class="block">The size of a value of this type, in bits. Null if not applicable for this
type.</div>
</li>
</ul>
<a id="PRIMITIVE_MAP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PRIMITIVE_MAP</h4>
<pre>private static final&nbsp;java.util.Map&lt;java.lang.Class,&#8203;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt; PRIMITIVE_MAP</pre>
</li>
</ul>
<a id="BOX_MAP">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>BOX_MAP</h4>
<pre>private static final&nbsp;java.util.Map&lt;java.lang.Class,&#8203;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&gt; BOX_MAP</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;(java.lang.Class,java.lang.Class,int,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,java.lang.Object,int)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Primitive</h4>
<pre>private&nbsp;Primitive&#8203;(java.lang.Class&nbsp;primitiveClass,
java.lang.Class&nbsp;boxClass,
int&nbsp;family,
java.lang.Object&nbsp;defaultValue,
java.lang.Object&nbsp;min,
java.lang.Object&nbsp;maxNegative,
java.lang.Object&nbsp;minPositive,
java.lang.Object&nbsp;max,
int&nbsp;size)</pre>
</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="values()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre class="methodSignature">public static&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>[]&nbsp;values()</pre>
<div class="block">Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
<pre>
for (Primitive c : Primitive.values())
&nbsp; System.out.println(c);
</pre></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>an array containing the constants of this enum type, in the order they are declared</dd>
</dl>
</li>
</ul>
<a id="valueOf(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>valueOf</h4>
<pre class="methodSignature">public static&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&nbsp;valueOf&#8203;(java.lang.String&nbsp;name)</pre>
<div class="block">Returns the enum constant of this type with the specified name.
The string must match <i>exactly</i> an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the name of the enum constant to be returned.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the enum constant with the specified name</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - if this enum type has no constant with the specified name</dd>
<dd><code>java.lang.NullPointerException</code> - if the argument is null</dd>
</dl>
</li>
</ul>
<a id="of(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>of</h4>
<pre class="methodSignature">public static&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&nbsp;of&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Returns the Primitive object for a given primitive class.
<p>For example, <code>of(long.class)</code> returns <a href="#LONG"><code>LONG</code></a>.
Returns <code>null</code> when applied to a boxing or other class; for example
<code>of(Long.class)</code> and <code>of(String.class)</code> return
<code>null</code>.</div>
</li>
</ul>
<a id="ofBox(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofBox</h4>
<pre class="methodSignature">public static&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&nbsp;ofBox&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Returns the Primitive object for a given boxing class.
<p>For example, <code>ofBox(java.util.Long.class)</code>
returns <a href="#LONG"><code>LONG</code></a>.</div>
</li>
</ul>
<a id="ofBoxOr(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofBoxOr</h4>
<pre class="methodSignature">public static&nbsp;<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&nbsp;ofBoxOr&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Returns the Primitive object for a given primitive or boxing class.
<p>For example, <code>ofBoxOr(Long.class)</code> and
<code>ofBoxOr(long.class)</code> both return <a href="#LONG"><code>LONG</code></a>.</div>
</li>
</ul>
<a id="is(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>is</h4>
<pre class="methodSignature">public static&nbsp;boolean&nbsp;is&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Returns whether a given type is primitive.</div>
</li>
</ul>
<a id="isBox(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isBox</h4>
<pre class="methodSignature">public static&nbsp;boolean&nbsp;isBox&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Returns whether a given type is a box type (e.g. <code>Integer</code>).</div>
</li>
</ul>
<a id="flavor(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>flavor</h4>
<pre class="methodSignature">public static&nbsp;<a href="Primitive.Flavor.html" title="enum in org.apache.calcite.linq4j.tree">Primitive.Flavor</a>&nbsp;flavor&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Returns whether this type is a primitive, box or other type. Useful for
switch statements.</div>
</li>
</ul>
<a id="isNumeric()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isNumeric</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isNumeric()</pre>
<div class="block">Returns whether this Primitive is a numeric type.</div>
</li>
</ul>
<a id="isFixedNumeric()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isFixedNumeric</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;isFixedNumeric()</pre>
<div class="block">Returns whether this Primitive is a fixed-point numeric type.</div>
</li>
</ul>
<a id="box(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>box</h4>
<pre class="methodSignature">public static&nbsp;java.lang.reflect.Type&nbsp;box&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Converts a primitive type to a boxed type; returns other types
unchanged.</div>
</li>
</ul>
<a id="box(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>box</h4>
<pre class="methodSignature">public static&nbsp;java.lang.Class&nbsp;box&#8203;(java.lang.Class&nbsp;type)</pre>
<div class="block">Converts a primitive class to a boxed class; returns other classes
unchanged.</div>
</li>
</ul>
<a id="unbox(java.lang.reflect.Type)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unbox</h4>
<pre class="methodSignature">public static&nbsp;java.lang.reflect.Type&nbsp;unbox&#8203;(java.lang.reflect.Type&nbsp;type)</pre>
<div class="block">Converts a boxed type to a primitive type; returns other types
unchanged.</div>
</li>
</ul>
<a id="unbox(java.lang.Class)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unbox</h4>
<pre class="methodSignature">public static&nbsp;java.lang.Class&nbsp;unbox&#8203;(java.lang.Class&nbsp;type)</pre>
<div class="block">Converts a boxed class to a primitive class; returns other types
unchanged.</div>
</li>
</ul>
<a id="asList(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;?&gt;&nbsp;asList&#8203;(java.lang.Object&nbsp;array)</pre>
<div class="block">Adapts a primitive array into a <code>List</code>. For example,
<code>asList(new double[2])</code> returns a <code>List&amp;lt;Double&amp;gt;</code>.</div>
</li>
</ul>
<a id="asList(boolean[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Boolean&gt;&nbsp;asList&#8203;(boolean[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>boolean</code> into a <code>List</code> of
<code>Boolean</code>.</div>
</li>
</ul>
<a id="asList(byte[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Byte&gt;&nbsp;asList&#8203;(byte[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>byte</code> into a <code>List</code> of
<code>Byte</code>.</div>
</li>
</ul>
<a id="asList(char[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Character&gt;&nbsp;asList&#8203;(char[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>char</code> into a <code>List</code> of
<code>Character</code>.</div>
</li>
</ul>
<a id="asList(short[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Short&gt;&nbsp;asList&#8203;(short[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>short</code> into a <code>List</code> of
<code>Short</code>.</div>
</li>
</ul>
<a id="asList(int[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Integer&gt;&nbsp;asList&#8203;(int[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>int</code> into a <code>List</code> of
<code>Integer</code>.</div>
</li>
</ul>
<a id="asList(long[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Long&gt;&nbsp;asList&#8203;(long[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>long</code> into a <code>List</code> of
<code>Long</code>.</div>
</li>
</ul>
<a id="asList(float[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Float&gt;&nbsp;asList&#8203;(float[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>float</code> into a <code>List</code> of
<code>Float</code>.</div>
</li>
</ul>
<a id="asList(double[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>asList</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Double&gt;&nbsp;asList&#8203;(double[]&nbsp;elements)</pre>
<div class="block">Adapts an array of <code>double</code> into a <code>List</code> of
<code>Double</code>.</div>
</li>
</ul>
<a id="toArray(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toArray</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;toArray&#8203;(java.util.Collection&nbsp;collection)</pre>
<div class="block">Converts a collection of boxed primitives into an array of primitives.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>collection</code> - Collection of boxed primitives</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>array of primitives</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.ClassCastException</code> - if any element is not of the box type</dd>
<dd><code>java.lang.NullPointerException</code> - if any element is null</dd>
</dl>
</li>
</ul>
<a id="toArray2(java.util.Collection)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toArray2</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;toArray2&#8203;(java.util.Collection&lt;java.lang.Number&gt;&nbsp;collection)</pre>
<div class="block">Converts a collection of <code>Number</code> to a primitive array.</div>
</li>
</ul>
<a id="permute(java.lang.Object,int[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>permute</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;permute&#8203;(java.lang.Object&nbsp;array,
int[]&nbsp;sources)</pre>
<div class="block">Permutes an array.</div>
</li>
</ul>
<a id="arrayToString(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayToString</h4>
<pre class="methodSignature">public&nbsp;java.lang.String&nbsp;arrayToString&#8203;(java.lang.Object&nbsp;array)</pre>
<div class="block">Converts an array to a string.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - Array of this primitive type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>String representation of array</dd>
</dl>
</li>
</ul>
<a id="sortArray(java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sortArray</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;sortArray&#8203;(java.lang.Object&nbsp;array)</pre>
<div class="block">Sorts an array of this primitive type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - Array of this primitive type</dd>
</dl>
</li>
</ul>
<a id="sortArray(java.lang.Object,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sortArray</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;sortArray&#8203;(java.lang.Object&nbsp;array,
int&nbsp;fromIndex,
int&nbsp;toIndex)</pre>
<div class="block">Sorts a specified range of an array of this primitive type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>array</code> - Array of this primitive type</dd>
<dd><code>fromIndex</code> - the index of the first element, inclusive, to be sorted</dd>
<dd><code>toIndex</code> - the index of the last element, exclusive, to be sorted</dd>
</dl>
</li>
</ul>
<a id="sortBooleanArray(boolean[],int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>sortBooleanArray</h4>
<pre class="methodSignature">private static&nbsp;void&nbsp;sortBooleanArray&#8203;(boolean[]&nbsp;booleans,
int&nbsp;fromIndex,
int&nbsp;toIndex)</pre>
</li>
</ul>
<a id="send(java.lang.reflect.Field,java.lang.Object,org.apache.calcite.linq4j.tree.Primitive.Sink)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>send</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;send&#8203;(java.lang.reflect.Field&nbsp;field,
java.lang.Object&nbsp;o,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)
throws java.lang.IllegalAccessException</pre>
<div class="block">Sends a field value to a sink.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalAccessException</code></dd>
</dl>
</li>
</ul>
<a id="arrayItem(java.lang.Object,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayItem</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;arrayItem&#8203;(java.lang.Object&nbsp;dataSet,
int&nbsp;ordinal)</pre>
<div class="block">Gets an item from an array.</div>
</li>
</ul>
<a id="arrayItem(org.apache.calcite.linq4j.tree.Primitive.Source,java.lang.Object,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayItem</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;arrayItem&#8203;(<a href="Primitive.Source.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Source</a>&nbsp;source,
java.lang.Object&nbsp;dataSet,
int&nbsp;ordinal)</pre>
<div class="block">Reads value from a source into an array.</div>
</li>
</ul>
<a id="arrayItem(java.lang.Object,int,org.apache.calcite.linq4j.tree.Primitive.Sink)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>arrayItem</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;arrayItem&#8203;(java.lang.Object&nbsp;dataSet,
int&nbsp;ordinal,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)</pre>
<div class="block">Sends to a sink an from an array.</div>
</li>
</ul>
<a id="jdbcGet(java.sql.ResultSet,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>jdbcGet</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;jdbcGet&#8203;(java.sql.ResultSet&nbsp;resultSet,
int&nbsp;i)
throws java.sql.SQLException</pre>
<div class="block">Gets a value from a given column in a JDBC result set.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>resultSet</code> - Result set</dd>
<dd><code>i</code> - Ordinal of column (1-based, per JDBC)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a id="jdbc(java.sql.ResultSet,int,org.apache.calcite.linq4j.tree.Primitive.Sink)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>jdbc</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;jdbc&#8203;(java.sql.ResultSet&nbsp;resultSet,
int&nbsp;i,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)
throws java.sql.SQLException</pre>
<div class="block">Sends to a sink a value from a given column in a JDBC result set.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>resultSet</code> - Result set</dd>
<dd><code>i</code> - Ordinal of column (1-based, per JDBC)</dd>
<dd><code>sink</code> - Sink</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.sql.SQLException</code></dd>
</dl>
</li>
</ul>
<a id="send(org.apache.calcite.linq4j.tree.Primitive.Source,org.apache.calcite.linq4j.tree.Primitive.Sink)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>send</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;send&#8203;(<a href="Primitive.Source.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Source</a>&nbsp;source,
<a href="Primitive.Sink.html" title="interface in org.apache.calcite.linq4j.tree">Primitive.Sink</a>&nbsp;sink)</pre>
<div class="block">Sends a value from a source to a sink.</div>
</li>
</ul>
<a id="parse(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parse</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;parse&#8203;(java.lang.String&nbsp;stringValue)</pre>
<div class="block">Calls the appropriate <code>valueOf(String)</code>
method.</div>
</li>
</ul>
<a id="assignableFrom(org.apache.calcite.linq4j.tree.Primitive)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>assignableFrom</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;assignableFrom&#8203;(<a href="Primitive.html" title="enum in org.apache.calcite.linq4j.tree">Primitive</a>&nbsp;primitive)</pre>
</li>
</ul>
<a id="number(java.lang.Number)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>number</h4>
<pre class="methodSignature">public&nbsp;java.lang.Number&nbsp;number&#8203;(java.lang.Number&nbsp;value)</pre>
<div class="block">Creates a number value of this primitive's box type. For example,
<code>SHORT.number(Integer(0))</code> will return <code>Short(0)</code>.</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/Primitive.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><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#enum.constant.summary">Enum Constants</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#enum.constant.detail">Enum Constants</a>&nbsp;|&nbsp;</li>
<li><a href="#field.detail">Field</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>