<li><ahref="../../../org/mozilla/mentat/ScalarResultHandler.html"title="interface in org.mozilla.mentat"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../org/mozilla/mentat/TupleResultHandler.html"title="interface in org.mozilla.mentat"><spanclass="typeNameLink">Next Class</span></a></li>
<li><ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<dd><ahref="https://developer.android.com/reference/java/lang/AutoCloseable.html?is-external=true"title="class or interface in java.lang">AutoCloseable</a></dd>
<dd><ahref="../../../org/mozilla/mentat/CollResult.html"title="class in org.mozilla.mentat">CollResult</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="typeNameLabel">TupleResult</span>
extends <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></pre>
<divclass="block">Wraps a `Tuple` result from a Mentat query.
A `Tuple` result is a single row <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a>s.
Values for individual fields can be fetched as <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> or converted into a requested type.
<p>
Field values can be fetched as one of the following types:
<ul>
<li><ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a></li>
<li>long</li>
<li>Entid (as long)</li>
<li>Keyword (as String)</li>
<li>boolean</li>
<li>double</li>
<li><ahref="https://developer.android.com/reference/java/util/Date.html?is-external=true"title="class or interface in java.util"><code>Date</code></a></li>
<li><ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang"><code>String</code></a></li>
<li><ahref="https://developer.android.com/reference/java/util/UUID.html?is-external=true"title="class or interface in java.util"><code>UUID</code></a></li>
</ul>
<p>
To iterate over the result set use standard iteration flows.</div>
<tdclass="colOne"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#TupleResult-org.mozilla.mentat.JNA.TypedValueList-">TupleResult</a></span>(<ahref="../../../org/mozilla/mentat/JNA.TypedValueList.html"title="class in org.mozilla.mentat">JNA.TypedValueList</a> pointer)</code> </td>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang">Boolean</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asBool-java.lang.Integer-">asBool</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang"><code>Boolean</code></a> at the specified index.</div>
</td>
</tr>
<trid="i1"class="rowColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/util/Date.html?is-external=true"title="class or interface in java.util">Date</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asDate-java.lang.Integer-">asDate</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/util/Date.html?is-external=true"title="class or interface in java.util"><code>Date</code></a> at the specified index.</div>
</td>
</tr>
<trid="i2"class="altColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/lang/Double.html?is-external=true"title="class or interface in java.lang">Double</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asDouble-java.lang.Integer-">asDouble</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/Double.html?is-external=true"title="class or interface in java.lang"><code>Double</code></a> at the specified index.</div>
</td>
</tr>
<trid="i3"class="rowColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang">Long</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asEntid-java.lang.Integer-">asEntid</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the Entid at the specified index.</div>
</td>
</tr>
<trid="i4"class="altColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asKeyword-java.lang.Integer-">asKeyword</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the keyword <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang"><code>String</code></a> at the specified index.</div>
</td>
</tr>
<trid="i5"class="rowColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang">Long</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asLong-java.lang.Integer-">asLong</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang"><code>Long</code></a> at the specified index.</div>
</td>
</tr>
<trid="i6"class="altColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asString-java.lang.Integer-">asString</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang"><code>String</code></a> at the specified index.</div>
</td>
</tr>
<trid="i7"class="rowColor">
<tdclass="colFirst"><code><ahref="https://developer.android.com/reference/java/util/UUID.html?is-external=true"title="class or interface in java.util">UUID</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#asUUID-java.lang.Integer-">asUUID</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/util/UUID.html?is-external=true"title="class or interface in java.util"><code>UUID</code></a> at the specified index.</div>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#destroyPointer-org.mozilla.mentat.JNA.TypedValueList-">destroyPointer</a></span>(<ahref="../../../org/mozilla/mentat/JNA.TypedValueList.html"title="class in org.mozilla.mentat">JNA.TypedValueList</a> p)</code> </td>
<tdclass="colFirst"><code><ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat">TypedValue</a></code></td>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../org/mozilla/mentat/TupleResult.html#get-java.lang.Integer-">get</a></span>(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</code>
<divclass="block">Return the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at the specified index.</div>
<h3>Methods inherited from class java.lang.<ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#clone--"title="class or interface in java.lang">clone</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals-java.lang.Object-"title="class or interface in java.lang">equals</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass--"title="class or interface in java.lang">getClass</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode--"title="class or interface in java.lang">hashCode</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify--"title="class or interface in java.lang">notify</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll--"title="class or interface in java.lang">notifyAll</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString--"title="class or interface in java.lang">toString</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait--"title="class or interface in java.lang">wait</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-"title="class or interface in java.lang">wait</a>, <ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait-long-int-"title="class or interface in java.lang">wait</a></code></li>
<pre>public TupleResult(<ahref="../../../org/mozilla/mentat/JNA.TypedValueList.html"title="class in org.mozilla.mentat">JNA.TypedValueList</a> pointer)</pre>
<pre>public <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat">TypedValue</a> get(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at that index.</dd>
</dl>
</li>
</ul>
<aname="asLong-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asLong</h4>
<pre>public <ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang">Long</a> asLong(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang"><code>Long</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Long` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang"><code>Long</code></a> at that index.</dd>
</dl>
</li>
</ul>
<aname="asEntid-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asEntid</h4>
<pre>public <ahref="https://developer.android.com/reference/java/lang/Long.html?is-external=true"title="class or interface in java.lang">Long</a> asEntid(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the Entid at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Ref` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The Entid at that index.</dd>
</dl>
</li>
</ul>
<aname="asKeyword-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asKeyword</h4>
<pre>public <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> asKeyword(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the keyword <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang"><code>String</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Keyword` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The keyword at that index.</dd>
</dl>
</li>
</ul>
<aname="asBool-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asBool</h4>
<pre>public <ahref="https://developer.android.com/reference/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang">Boolean</a> asBool(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang"><code>Boolean</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Boolean` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="https://developer.android.com/reference/java/lang/Boolean.html?is-external=true"title="class or interface in java.lang"><code>Boolean</code></a> at that index.</dd>
</dl>
</li>
</ul>
<aname="asDouble-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asDouble</h4>
<pre>public <ahref="https://developer.android.com/reference/java/lang/Double.html?is-external=true"title="class or interface in java.lang">Double</a> asDouble(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/Double.html?is-external=true"title="class or interface in java.lang"><code>Double</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Double` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="https://developer.android.com/reference/java/lang/Double.html?is-external=true"title="class or interface in java.lang"><code>Double</code></a> at that index.</dd>
</dl>
</li>
</ul>
<aname="asDate-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asDate</h4>
<pre>public <ahref="https://developer.android.com/reference/java/util/Date.html?is-external=true"title="class or interface in java.util">Date</a> asDate(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/util/Date.html?is-external=true"title="class or interface in java.util"><code>Date</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Instant` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="https://developer.android.com/reference/java/util/Date.html?is-external=true"title="class or interface in java.util"><code>Date</code></a> at that index.</dd>
</dl>
</li>
</ul>
<aname="asString-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asString</h4>
<pre>public <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> asString(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang"><code>String</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `String` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="https://developer.android.com/reference/java/lang/String.html?is-external=true"title="class or interface in java.lang"><code>String</code></a> at that index.</dd>
</dl>
</li>
</ul>
<aname="asUUID-java.lang.Integer-">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>asUUID</h4>
<pre>public <ahref="https://developer.android.com/reference/java/util/UUID.html?is-external=true"title="class or interface in java.util">UUID</a> asUUID(<ahref="https://developer.android.com/reference/java/lang/Integer.html?is-external=true"title="class or interface in java.lang">Integer</a> index)</pre>
<divclass="block">Return the <ahref="https://developer.android.com/reference/java/util/UUID.html?is-external=true"title="class or interface in java.util"><code>UUID</code></a> at the specified index.
If the index is greater than the number of values then this function will crash.
If the value type if the <ahref="../../../org/mozilla/mentat/TypedValue.html"title="class in org.mozilla.mentat"><code>TypedValue</code></a> at this index is not `Uuid` then this function will crash.</div>
<dd><code>index</code> - The index of the value to fetch.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The <ahref="https://developer.android.com/reference/java/util/UUID.html?is-external=true"title="class or interface in java.util"><code>UUID</code></a> at that index.</dd>
<pre>protected void destroyPointer(<ahref="../../../org/mozilla/mentat/JNA.TypedValueList.html"title="class in org.mozilla.mentat">JNA.TypedValueList</a> p)</pre>
<dd><code><ahref="https://developer.android.com/reference/java/lang/AutoCloseable.html?is-external=true#close--"title="class or interface in java.lang">close</a></code> in interface <code><ahref="https://developer.android.com/reference/java/lang/AutoCloseable.html?is-external=true"title="class or interface in java.lang">AutoCloseable</a></code></dd>
<dd><code><ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize--"title="class or interface in java.lang">finalize</a></code> in class <code><ahref="https://developer.android.com/reference/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></code></dd>
<li><ahref="../../../org/mozilla/mentat/ScalarResultHandler.html"title="interface in org.mozilla.mentat"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../org/mozilla/mentat/TupleResultHandler.html"title="interface in org.mozilla.mentat"><spanclass="typeNameLink">Next Class</span></a></li>