blob: 3cfa76de4c26e0c681ee19b8cc885710f98b909a [file] [log] [blame]
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<title>TypedValue (Apache Calcite Avatica 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="TypedValue (Apache Calcite Avatica API)";
}
}
catch(err) {
}
//-->
var data = {"i0":9,"i1":10,"i2":9,"i3":9,"i4":10,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":10,"i11":10,"i12":10,"i13":9,"i14":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/TypedValue.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>Constr&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>Constr&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.avatica.remote</a></div>
<h2 title="Class TypedValue" class="title">Class TypedValue</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.apache.calcite.avatica.remote.TypedValue</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<pre>public class <span class="typeNameLabel">TypedValue</span>
extends java.lang.Object</pre>
<div class="block">Value and type.
<p>There are 3 representations:
<ul>
<li>JDBC - the representation used by JDBC get and set methods
<li>Serial - suitable for serializing using JSON
<li>Local - used by Calcite for efficient computation
</ul>
<p>The following table shows the Java type(s) that may represent each SQL
type in each representation.
<table>
<caption>SQL types and their representations</caption>
<tr>
<th>Type</th> <th>JDBC</th> <th>Serial</th> <th>Local</th>
</tr>
<tr>
<td>BOOLEAN</td> <td>boolean</td> <td>boolean</td> <td>boolean</td>
</tr>
<tr>
<td>BINARY, VARBINARY</td> <td>byte[]</td>
<td>String (base64)</td> <td><a href="../util/ByteString.html" title="class in org.apache.calcite.avatica.util"><code>ByteString</code></a></td>
</tr>
<tr>
<td>DATE</td> <td><code>Date</code></td>
<td>int</td> <td>int</td>
</tr>
<tr>
<td>TIME</td> <td><code>Time</code></td>
<td>int</td> <td>int</td>
</tr>
<tr>
<td>DATE</td> <td><code>Timestamp</code></td>
<td>long</td> <td>long</td>
</tr>
<tr>
<td>CHAR, VARCHAR</td>
<td>String</td> <td>String</td> <td>String</td>
</tr>
<tr>
<td>TINYINT</td> <td>byte</td> <td>Number</td> <td>byte</td>
</tr>
<tr>
<td>SMALLINT</td> <td>short</td> <td>Number</td> <td>short</td>
</tr>
<tr>
<td>INTEGER</td> <td>int</td> <td>Number</td> <td>int</td>
</tr>
<tr>
<td>BIGINT</td> <td>long</td> <td>Number</td> <td>long</td>
</tr>
<tr>
<td>REAL</td> <td>float</td> <td>Number</td> <td>float</td>
</tr>
<tr>
<td>FLOAT, DOUBLE</td>
<td>double</td> <td>Number</td> <td>double</td>
</tr>
<tr>
<td>DECIMAL</td>
<td>BigDecimal</td> <td>Number</td> <td>BigDecimal</td>
</tr>
<tr>
<td>ARRAY</td>
<td>Array</td> <td>List&lt;Object&gt;</td> <td>List&lt;Object&gt;</td>
</tr>
</table>
<p>Note:
<ul>
<li>The various numeric types (TINYINT, SMALLINT, INTEGER, BIGINT, REAL,
FLOAT, DOUBLE) are represented by <code>Number</code> in serial format because
JSON numbers are not strongly typed. A <code>float</code> value <code>3.0</code> is
transmitted as <code>3</code>, and is therefore decoded as an <code>int</code>.
<li>The date-time types (DATE, TIME, TIMESTAMP) are represented in JDBC as
<code>Date</code>, <code>Time</code>, <code>Timestamp</code>,
all sub-classes of <code>Date</code>. When they are passed to and
from the server, they are interpreted in terms of a time zone, by default
the current connection's time zone. Their serial and local representations
as <code>int</code> (days since 1970-01-01 for DATE, milliseconds since
00:00:00.000 for TIME), and long (milliseconds since 1970-01-01
00:00:00.000 for TIMESTAMP) are easier to work with, because it is clear
that time zone is not involved.
<li>BINARY and VARBINARY values are represented as base64-encoded strings
for serialization over JSON.
</ul></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><a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#componentType">componentType</a></span></code></th>
<td class="colLast">
<div class="block">Non-null for ARRAYs, the type of the values stored in the ARRAY.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EXPLICIT_NULL">EXPLICIT_NULL</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROTO_IMPLICIT_NULL">PROTO_IMPLICIT_NULL</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#type">type</a></span></code></th>
<td class="colLast">
<div class="block">Type of the value.</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="#value">value</a></span></code></th>
<td class="colLast">
<div class="block">Value.</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></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>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#create(java.lang.String,java.lang.Object)">create</a></span>&#8203;(java.lang.String&nbsp;type,
java.lang.Object&nbsp;value)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</a></span>&#8203;(java.lang.Object&nbsp;o)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#fromProto(org.apache.calcite.avatica.proto.Common.TypedValue)">fromProto</a></span>&#8203;(<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;proto)</code></th>
<td class="colLast">
<div class="block">Constructs a <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote"><code>TypedValue</code></a> from the protocol buffer representation.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSerialFromProto(org.apache.calcite.avatica.proto.Common.TypedValue)">getSerialFromProto</a></span>&#8203;(<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;protoValue)</code></th>
<td class="colLast">
<div class="block">Converts the serialized value into the appropriate primitive/object.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofJdbc(java.lang.Object,java.util.Calendar)">ofJdbc</a></span>&#8203;(java.lang.Object&nbsp;value,
java.util.Calendar&nbsp;calendar)</code></th>
<td class="colLast">
<div class="block">Creates a TypedValue from a value in JDBC representation,
deducing its type.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofJdbc(org.apache.calcite.avatica.ColumnMetaData.Rep,java.lang.Object,java.util.Calendar)">ofJdbc</a></span>&#8203;(<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a>&nbsp;rep,
java.lang.Object&nbsp;value,
java.util.Calendar&nbsp;calendar)</code></th>
<td class="colLast">
<div class="block">Creates a TypedValue from a value in JDBC representation.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofLocal(org.apache.calcite.avatica.ColumnMetaData.Rep,java.lang.Object)">ofLocal</a></span>&#8203;(<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a>&nbsp;rep,
java.lang.Object&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Creates a TypedValue from a value in local representation.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#ofSerial(org.apache.calcite.avatica.ColumnMetaData.Rep,java.lang.Object)">ofSerial</a></span>&#8203;(<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a>&nbsp;rep,
java.lang.Object&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Creates a TypedValue from a value in serial representation.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#protoToJdbc(org.apache.calcite.avatica.proto.Common.TypedValue,java.util.Calendar)">protoToJdbc</a></span>&#8203;(<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;protoValue,
java.util.Calendar&nbsp;calendar)</code></th>
<td class="colLast">
<div class="block">Extracts the JDBC value from protobuf-TypedValue representation.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toJdbc(java.util.Calendar)">toJdbc</a></span>&#8203;(java.util.Calendar&nbsp;calendar)</code></th>
<td class="colLast">
<div class="block">Converts the value into the JDBC representation.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>java.lang.Object</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toLocal()">toLocal</a></span>()</code></th>
<td class="colLast">
<div class="block">Converts the value into the local representation.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toProto()">toProto</a></span>()</code></th>
<td class="colLast">
<div class="block">Creates a protocol buffer equivalent object for <code>this</code>.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static <a href="../proto/Common.Rep.html" title="enum in org.apache.calcite.avatica.proto">Common.Rep</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toProto(org.apache.calcite.avatica.proto.Common.TypedValue.Builder,java.lang.Object)">toProto</a></span>&#8203;(<a href="../proto/Common.TypedValue.Builder.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue.Builder</a>&nbsp;builder,
java.lang.Object&nbsp;o)</code></th>
<td class="colLast">
<div class="block">Writes the given object into the Protobuf representation of a TypedValue.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static java.util.List&lt;java.lang.Object&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#values(java.util.List)">values</a></span>&#8203;(java.util.List&lt;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&gt;&nbsp;typedValues)</code></th>
<td class="colLast">
<div class="block">Converts a list of <code>TypedValue</code> to a list of values.</div>
</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, finalize, getClass, 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="EXPLICIT_NULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EXPLICIT_NULL</h4>
<pre>public static final&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a> EXPLICIT_NULL</pre>
</li>
</ul>
<a id="PROTO_IMPLICIT_NULL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PROTO_IMPLICIT_NULL</h4>
<pre>public static final&nbsp;<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a> PROTO_IMPLICIT_NULL</pre>
</li>
</ul>
<a id="type">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>type</h4>
<pre>public final&nbsp;<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a> type</pre>
<div class="block">Type of the value.</div>
</li>
</ul>
<a id="value">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>value</h4>
<pre>public final&nbsp;java.lang.Object value</pre>
<div class="block">Value.
<p>Always in a form that can be serialized to JSON by Jackson.
For example, byte arrays are represented as String.</div>
</li>
</ul>
<a id="componentType">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>componentType</h4>
<pre>public final&nbsp;<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a> componentType</pre>
<div class="block">Non-null for ARRAYs, the type of the values stored in the ARRAY. Null for all other cases.</div>
</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="create(java.lang.String,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>create</h4>
<pre class="methodSignature">public static&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&nbsp;create&#8203;(java.lang.String&nbsp;type,
java.lang.Object&nbsp;value)</pre>
</li>
</ul>
<a id="ofLocal(org.apache.calcite.avatica.ColumnMetaData.Rep,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofLocal</h4>
<pre class="methodSignature">public static&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&nbsp;ofLocal&#8203;(<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a>&nbsp;rep,
java.lang.Object&nbsp;value)</pre>
<div class="block">Creates a TypedValue from a value in local representation.</div>
</li>
</ul>
<a id="ofSerial(org.apache.calcite.avatica.ColumnMetaData.Rep,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofSerial</h4>
<pre class="methodSignature">public static&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&nbsp;ofSerial&#8203;(<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a>&nbsp;rep,
java.lang.Object&nbsp;value)</pre>
<div class="block">Creates a TypedValue from a value in serial representation.</div>
</li>
</ul>
<a id="ofJdbc(org.apache.calcite.avatica.ColumnMetaData.Rep,java.lang.Object,java.util.Calendar)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofJdbc</h4>
<pre class="methodSignature">public static&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&nbsp;ofJdbc&#8203;(<a href="../ColumnMetaData.Rep.html" title="enum in org.apache.calcite.avatica">ColumnMetaData.Rep</a>&nbsp;rep,
java.lang.Object&nbsp;value,
java.util.Calendar&nbsp;calendar)</pre>
<div class="block">Creates a TypedValue from a value in JDBC representation.</div>
</li>
</ul>
<a id="ofJdbc(java.lang.Object,java.util.Calendar)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ofJdbc</h4>
<pre class="methodSignature">public static&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&nbsp;ofJdbc&#8203;(java.lang.Object&nbsp;value,
java.util.Calendar&nbsp;calendar)</pre>
<div class="block">Creates a TypedValue from a value in JDBC representation,
deducing its type.</div>
</li>
</ul>
<a id="toLocal()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toLocal</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;toLocal()</pre>
<div class="block">Converts the value into the local representation.
<p>For example, a byte string is represented as a <a href="../util/ByteString.html" title="class in org.apache.calcite.avatica.util"><code>ByteString</code></a>;
a long is represented as a <code>Long</code> (not just some <code>Number</code>).</div>
</li>
</ul>
<a id="toJdbc(java.util.Calendar)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toJdbc</h4>
<pre class="methodSignature">public&nbsp;java.lang.Object&nbsp;toJdbc&#8203;(java.util.Calendar&nbsp;calendar)</pre>
<div class="block">Converts the value into the JDBC representation.
<p>For example, a byte string is represented as a <a href="../util/ByteString.html" title="class in org.apache.calcite.avatica.util"><code>ByteString</code></a>;
a long is represented as a <code>Long</code> (not just some <code>Number</code>).</div>
</li>
</ul>
<a id="values(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>values</h4>
<pre class="methodSignature">public static&nbsp;java.util.List&lt;java.lang.Object&gt;&nbsp;values&#8203;(java.util.List&lt;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&gt;&nbsp;typedValues)</pre>
<div class="block">Converts a list of <code>TypedValue</code> to a list of values.</div>
</li>
</ul>
<a id="toProto()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toProto</h4>
<pre class="methodSignature">public&nbsp;<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;toProto()</pre>
<div class="block">Creates a protocol buffer equivalent object for <code>this</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A protobuf TypedValue equivalent for <code>this</code></dd>
</dl>
</li>
</ul>
<a id="fromProto(org.apache.calcite.avatica.proto.Common.TypedValue)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromProto</h4>
<pre class="methodSignature">public static&nbsp;<a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote">TypedValue</a>&nbsp;fromProto&#8203;(<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;proto)</pre>
<div class="block">Constructs a <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote"><code>TypedValue</code></a> from the protocol buffer representation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>proto</code> - The protobuf Typedvalue</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>A <a href="TypedValue.html" title="class in org.apache.calcite.avatica.remote"><code>TypedValue</code></a> instance</dd>
</dl>
</li>
</ul>
<a id="getSerialFromProto(org.apache.calcite.avatica.proto.Common.TypedValue)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSerialFromProto</h4>
<pre class="methodSignature">public static&nbsp;java.lang.Object&nbsp;getSerialFromProto&#8203;(<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;protoValue)</pre>
<div class="block">Converts the serialized value into the appropriate primitive/object.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>protoValue</code> - The serialized TypedValue.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The appropriate concrete type for the parameter value (as an Object).</dd>
</dl>
</li>
</ul>
<a id="toProto(org.apache.calcite.avatica.proto.Common.TypedValue.Builder,java.lang.Object)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toProto</h4>
<pre class="methodSignature">public static&nbsp;<a href="../proto/Common.Rep.html" title="enum in org.apache.calcite.avatica.proto">Common.Rep</a>&nbsp;toProto&#8203;(<a href="../proto/Common.TypedValue.Builder.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue.Builder</a>&nbsp;builder,
java.lang.Object&nbsp;o)</pre>
<div class="block">Writes the given object into the Protobuf representation of a TypedValue. The object is
serialized given the type of that object, mapping it to the appropriate representation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>builder</code> - The TypedValue protobuf builder</dd>
<dd><code>o</code> - The object (value)</dd>
</dl>
</li>
</ul>
<a id="protoToJdbc(org.apache.calcite.avatica.proto.Common.TypedValue,java.util.Calendar)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>protoToJdbc</h4>
<pre class="methodSignature">public static&nbsp;java.lang.Object&nbsp;protoToJdbc&#8203;(<a href="../proto/Common.TypedValue.html" title="class in org.apache.calcite.avatica.proto">Common.TypedValue</a>&nbsp;protoValue,
java.util.Calendar&nbsp;calendar)</pre>
<div class="block">Extracts the JDBC value from protobuf-TypedValue representation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>protoValue</code> - Protobuf TypedValue</dd>
<dd><code>calendar</code> - Instance of a calendar</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The JDBC representation of this TypedValue</dd>
</dl>
</li>
</ul>
<a id="hashCode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre class="methodSignature">public&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a id="equals(java.lang.Object)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>equals</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;equals&#8203;(java.lang.Object&nbsp;o)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</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/TypedValue.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>Constr&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>Constr&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>