blob: a343664fe07e8f2ff57e095937b205100ddbf06f [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UnionWriterImpl (Drill : 1.20.3 API)</title>
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="UnionWriterImpl (Drill : 1.20.3 API)";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10,"i33":10,"i34":10,"i35":10,"i36":10,"i37":10,"i38":10,"i39":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/UnionWriterImpl.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">
<li><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionVectorShim.html" title="class in org.apache.drill.exec.vector.accessor.writer"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html" target="_top">Frames</a></li>
<li><a href="UnionWriterImpl.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.apache.drill.exec.vector.accessor.writer</div>
<h2 title="Class UnionWriterImpl" class="title">Class UnionWriterImpl</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li>org.apache.drill.exec.vector.accessor.writer.UnionWriterImpl</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a>, <a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a>, <a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a>, <a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html" title="interface in org.apache.drill.exec.vector.accessor">WriterPosition</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">UnionWriterImpl</span>
extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
implements <a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a>, <a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></pre>
<div class="block">Writer to a union vector.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Class and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer">UnionWriterImpl.UnionShim</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.VariantObjectWriter.html" title="class in org.apache.drill.exec.vector.accessor.writer">UnionWriterImpl.VariantObjectWriter</a></span></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.drill.exec.vector.accessor.VariantWriter">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.drill.exec.vector.accessor.<a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></h3>
<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.VariantWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter.VariantWriterListener</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.drill.exec.vector.accessor.writer.WriterEvents">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface&nbsp;org.apache.drill.exec.vector.accessor.writer.<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></h3>
<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.ColumnWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents.ColumnWriterListener</a>, <a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.State.html" title="enum in org.apache.drill.exec.vector.accessor.writer">WriterEvents.State</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#UnionWriterImpl-org.apache.drill.exec.record.metadata.ColumnMetadata-">UnionWriterImpl</a></span>(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;schema)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#UnionWriterImpl-org.apache.drill.exec.record.metadata.ColumnMetadata-org.apache.drill.exec.vector.complex.UnionVector-org.apache.drill.exec.vector.accessor.writer.AbstractObjectWriter:A-">UnionWriterImpl</a></span>(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;schema,
<a href="../../../../../../../org/apache/drill/exec/vector/complex/UnionVector.html" title="class in org.apache.drill.exec.vector.complex">UnionVector</a>&nbsp;vector,
<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/AbstractObjectWriter.html" title="class in org.apache.drill.exec.vector.accessor.writer">AbstractObjectWriter</a>[]&nbsp;variants)</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</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="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#addMember-org.apache.drill.exec.vector.accessor.writer.AbstractObjectWriter-">addMember</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/AbstractObjectWriter.html" title="class in org.apache.drill.exec.vector.accessor.writer">AbstractObjectWriter</a>&nbsp;writer)</code>
<div class="block">Add a column writer to an existing union writer.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#addMember-org.apache.drill.exec.record.metadata.ColumnMetadata-">addMember</a></span>(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;colSchema)</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#addMember-org.apache.drill.common.types.TypeProtos.MinorType-">addMember</a></span>(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ArrayWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ArrayWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#array--">array</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#bindIndex-org.apache.drill.exec.vector.accessor.ColumnWriterIndex-">bindIndex</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriterIndex.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriterIndex</a>&nbsp;index)</code>
<div class="block">Bind the writer to a writer index.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#bindListener-org.apache.drill.exec.vector.accessor.VariantWriter.VariantWriterListener-">bindListener</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.VariantWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter.VariantWriterListener</a>&nbsp;listener)</code>&nbsp;</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#bindListener-org.apache.drill.exec.vector.accessor.writer.WriterEvents.ColumnWriterListener-">bindListener</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.ColumnWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents.ColumnWriterListener</a>&nbsp;listener)</code>
<div class="block">Bind a listener to the underlying vector writer.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#bindShim-org.apache.drill.exec.vector.accessor.writer.UnionWriterImpl.UnionShim-">bindShim</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer">UnionWriterImpl.UnionShim</a>&nbsp;shim)</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#copy-org.apache.drill.exec.vector.accessor.ColumnReader-">copy</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnReader.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnReader</a>&nbsp;from)</code>
<div class="block">Copy a single value from the given reader, which must be of the
same type as this writer.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#dump-org.apache.drill.exec.vector.accessor.impl.HierarchicalFormatter-">dump</a></span>(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/impl/HierarchicalFormatter.html" title="interface in org.apache.drill.exec.vector.accessor.impl">HierarchicalFormatter</a>&nbsp;format)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html" title="interface in org.apache.drill.exec.vector.accessor">WriterPosition</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#elementPosition--">elementPosition</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#endArrayValue--">endArrayValue</a></span>()</code>
<div class="block">End a value.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#endWrite--">endWrite</a></span>()</code>
<div class="block">End a batch: finalize any vector values.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#hasType-org.apache.drill.common.types.TypeProtos.MinorType-">hasType</a></span>(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>
<div class="block">Determine if the union vector has materialized storage for the
given type.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriterIndex.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriterIndex</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#index--">index</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#isProjected--">isProjected</a></span>()</code>
<div class="block">Whether this writer is projected (is backed by a materialized vector),
or is unprojected (is just a dummy writer.) In most cases, clients can
ignore whether the column is projected and just write to the writer.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#lastWriteIndex--">lastWriteIndex</a></span>()</code>
<div class="block">Return the last write position in the vector.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.VariantWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter.VariantWriterListener</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#listener--">listener</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#member-org.apache.drill.common.types.TypeProtos.MinorType-">member</a></span>(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>
<div class="block">Set the type of the present value and get the writer for
that type.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#memberWriter-org.apache.drill.common.types.TypeProtos.MinorType-">memberWriter</a></span>(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>
<div class="block">Create or retrieve a writer for the given type.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#nullable--">nullable</a></span>()</code>
<div class="block">Whether this writer allows nulls.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#postRollover--">postRollover</a></span>()</code>
<div class="block">The vectors backing this writer rolled over.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#preRollover--">preRollover</a></span>()</code>
<div class="block">The vectors backing this vector are about to roll over.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#restartRow--">restartRow</a></span>()</code>
<div class="block">During a writer to a row, rewind the the current index position to
restart the row.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#rowStartIndex--">rowStartIndex</a></span>()</code>
<div class="block">Position within the vector of the first value for the current row.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#saveRow--">saveRow</a></span>()</code>
<div class="block">Saves a row.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ScalarWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ScalarWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#scalar-org.apache.drill.common.types.TypeProtos.MinorType-">scalar</a></span>(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>&nbsp;</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#schema--">schema</a></span>()</code>
<div class="block">Returns the schema of the column associated with this writer.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#setNull--">setNull</a></span>()</code>
<div class="block">Set the current value to null.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#setObject-java.lang.Object-">setObject</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</code>
<div class="block">Generic technique to write data as a generic Java object.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#setType-org.apache.drill.common.types.TypeProtos.MinorType-">setType</a></span>(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</code>
<div class="block">Explicitly set the type of the present value.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer">UnionWriterImpl.UnionShim</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#shim--">shim</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#size--">size</a></span>()</code>
<div class="block">Returns the number of types in the variant.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#startRow--">startRow</a></span>()</code>
<div class="block">Start a new row.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#startWrite--">startWrite</a></span>()</code>
<div class="block">Start a write (batch) operation.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.State.html" title="enum in org.apache.drill.exec.vector.accessor.writer">WriterEvents.State</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#state--">state</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/TupleWriter.html" title="interface in org.apache.drill.exec.vector.accessor">TupleWriter</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#tuple--">tuple</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectType.html" title="enum in org.apache.drill.exec.vector.accessor">ObjectType</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#type--">type</a></span>()</code>
<div class="block">Return the object (structure) type of this writer.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="../../../../../../../org/apache/drill/exec/record/metadata/VariantMetadata.html" title="interface in org.apache.drill.exec.record.metadata">VariantMetadata</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#variantSchema--">variantSchema</a></span>()</code>
<div class="block">Metadata description of the variant that includes the set of
types, along with extended properties of the types such as
expected allocations sizes, expected array cardinality, etc.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html#writeIndex--">writeIndex</a></span>()</code>
<div class="block">Current write index for the writer.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="UnionWriterImpl-org.apache.drill.exec.record.metadata.ColumnMetadata-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>UnionWriterImpl</h4>
<pre>public&nbsp;UnionWriterImpl(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;schema)</pre>
</li>
</ul>
<a name="UnionWriterImpl-org.apache.drill.exec.record.metadata.ColumnMetadata-org.apache.drill.exec.vector.complex.UnionVector-org.apache.drill.exec.vector.accessor.writer.AbstractObjectWriter:A-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>UnionWriterImpl</h4>
<pre>public&nbsp;UnionWriterImpl(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;schema,
<a href="../../../../../../../org/apache/drill/exec/vector/complex/UnionVector.html" title="class in org.apache.drill.exec.vector.complex">UnionVector</a>&nbsp;vector,
<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/AbstractObjectWriter.html" title="class in org.apache.drill.exec.vector.accessor.writer">AbstractObjectWriter</a>[]&nbsp;variants)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="bindIndex-org.apache.drill.exec.vector.accessor.ColumnWriterIndex-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bindIndex</h4>
<pre>public&nbsp;void&nbsp;bindIndex(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriterIndex.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriterIndex</a>&nbsp;index)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#bindIndex-org.apache.drill.exec.vector.accessor.ColumnWriterIndex-">WriterEvents</a></code></span></div>
<div class="block">Bind the writer to a writer index.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#bindIndex-org.apache.drill.exec.vector.accessor.ColumnWriterIndex-">bindIndex</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - the writer index (top level or nested for
arrays)</dd>
</dl>
</li>
</ul>
<a name="bindListener-org.apache.drill.exec.vector.accessor.VariantWriter.VariantWriterListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bindListener</h4>
<pre>public&nbsp;void&nbsp;bindListener(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.VariantWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter.VariantWriterListener</a>&nbsp;listener)</pre>
</li>
</ul>
<a name="bindListener-org.apache.drill.exec.vector.accessor.writer.WriterEvents.ColumnWriterListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bindListener</h4>
<pre>public&nbsp;void&nbsp;bindListener(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.ColumnWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents.ColumnWriterListener</a>&nbsp;listener)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#bindListener-org.apache.drill.exec.vector.accessor.writer.WriterEvents.ColumnWriterListener-">WriterEvents</a></code></span></div>
<div class="block">Bind a listener to the underlying vector writer. This listener reports on vector
events (overflow, growth), and so is called only when the writer is backed by
a vector. The listener is ignored (and never called) for dummy (non-projected)
columns. If the column is compound (such as for a nullable or repeated column,
or for a map), then the writer is bound to the individual components.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#bindListener-org.apache.drill.exec.vector.accessor.writer.WriterEvents.ColumnWriterListener-">bindListener</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the vector event listener to bind</dd>
</dl>
</li>
</ul>
<a name="state--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>state</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.State.html" title="enum in org.apache.drill.exec.vector.accessor.writer">WriterEvents.State</a>&nbsp;state()</pre>
</li>
</ul>
<a name="index--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>index</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriterIndex.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriterIndex</a>&nbsp;index()</pre>
</li>
</ul>
<a name="listener--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listener</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.VariantWriterListener.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter.VariantWriterListener</a>&nbsp;listener()</pre>
</li>
</ul>
<a name="shim--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>shim</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer">UnionWriterImpl.UnionShim</a>&nbsp;shim()</pre>
</li>
</ul>
<a name="elementPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>elementPosition</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html" title="interface in org.apache.drill.exec.vector.accessor">WriterPosition</a>&nbsp;elementPosition()</pre>
</li>
</ul>
<a name="bindShim-org.apache.drill.exec.vector.accessor.writer.UnionWriterImpl.UnionShim-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>bindShim</h4>
<pre>public&nbsp;void&nbsp;bindShim(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer">UnionWriterImpl.UnionShim</a>&nbsp;shim)</pre>
</li>
</ul>
<a name="type--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>type</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectType.html" title="enum in org.apache.drill.exec.vector.accessor">ObjectType</a>&nbsp;type()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#type--">ColumnWriter</a></code></span></div>
<div class="block">Return the object (structure) type of this writer.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#type--">type</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>type indicating if this is a scalar, tuple or array</dd>
</dl>
</li>
</ul>
<a name="nullable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nullable</h4>
<pre>public&nbsp;boolean&nbsp;nullable()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#nullable--">ColumnWriter</a></code></span></div>
<div class="block">Whether this writer allows nulls. This is not as simple as checking
for the <a href="../../../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html#OPTIONAL"><code>TypeProtos.DataMode.OPTIONAL</code></a> type in the schema. List entries
are nullable, if they are primitive, but not if they are maps or lists.
Unions are nullable, regardless of cardinality.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#nullable--">nullable</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if a call to <a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#setNull--"><code>ColumnWriter.setNull()</code></a> is supported, false
if not</dd>
</dl>
</li>
</ul>
<a name="schema--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>schema</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;schema()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#schema--">ColumnWriter</a></code></span></div>
<div class="block">Returns the schema of the column associated with this writer.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#schema--">schema</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>schema for this writer's column</dd>
</dl>
</li>
</ul>
<a name="variantSchema--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>variantSchema</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/record/metadata/VariantMetadata.html" title="interface in org.apache.drill.exec.record.metadata">VariantMetadata</a>&nbsp;variantSchema()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#variantSchema--">VariantWriter</a></code></span></div>
<div class="block">Metadata description of the variant that includes the set of
types, along with extended properties of the types such as
expected allocations sizes, expected array cardinality, etc.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#variantSchema--">variantSchema</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>metadata for the variant</dd>
</dl>
</li>
</ul>
<a name="size--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>size</h4>
<pre>public&nbsp;int&nbsp;size()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#size--">VariantWriter</a></code></span></div>
<div class="block">Returns the number of types in the variant. Some implementations
(such as lists) impart special meaning to a variant with a single type.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#size--">size</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>number of types in the variant</dd>
</dl>
</li>
</ul>
<a name="hasType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasType</h4>
<pre>public&nbsp;boolean&nbsp;hasType(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#hasType-org.apache.drill.common.types.TypeProtos.MinorType-">VariantWriter</a></code></span></div>
<div class="block">Determine if the union vector has materialized storage for the
given type. (The storage will be created as needed during writing.)</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#hasType-org.apache.drill.common.types.TypeProtos.MinorType-">hasType</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - data type</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if a value of the given type has been written
and storage allocated (or storage was allocated implicitly),
<code>false</code> otherwise</dd>
</dl>
</li>
</ul>
<a name="setNull--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNull</h4>
<pre>public&nbsp;void&nbsp;setNull()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#setNull--">ColumnWriter</a></code></span></div>
<div class="block">Set the current value to null. Support depends on the underlying
implementation: only nullable types support this operation.
throws IllegalStateException if called on a non-nullable value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#setNull--">setNull</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="memberWriter-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>memberWriter</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a>&nbsp;memberWriter(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#memberWriter-org.apache.drill.common.types.TypeProtos.MinorType-">VariantWriter</a></code></span></div>
<div class="block">Create or retrieve a writer for the given type. Use this form when
caching writers. This form <i>does not</i> set the type of the current
row; call <code>#setType(MinorType)</code> per row when the writers are
cached. This method can be called at any time as it does not depend
on an active batch.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#memberWriter-org.apache.drill.common.types.TypeProtos.MinorType-">memberWriter</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - the type of the writer to cache</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the writer for that type without setting the type of the
current row.</dd>
</dl>
</li>
</ul>
<a name="member-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>member</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a>&nbsp;member(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#member-org.apache.drill.common.types.TypeProtos.MinorType-">VariantWriter</a></code></span></div>
<div class="block">Set the type of the present value and get the writer for
that type. Available only when a batch is active. Use this form to
declare the type of the current row, and retrieve a writer for that
value.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#member-org.apache.drill.common.types.TypeProtos.MinorType-">member</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - type to set for the current row</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>writer for the type just set</dd>
</dl>
</li>
</ul>
<a name="setType-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setType</h4>
<pre>public&nbsp;void&nbsp;setType(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#setType-org.apache.drill.common.types.TypeProtos.MinorType-">VariantWriter</a></code></span></div>
<div class="block">Explicitly set the type of the present value. Use this when
the writers are cached. The writer must already exist.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#setType-org.apache.drill.common.types.TypeProtos.MinorType-">setType</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - type to set for the current row</dd>
</dl>
</li>
</ul>
<a name="addMember-org.apache.drill.exec.record.metadata.ColumnMetadata-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMember</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a>&nbsp;addMember(<a href="../../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;colSchema)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#addMember-org.apache.drill.exec.record.metadata.ColumnMetadata-">addMember</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="addMember-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMember</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ObjectWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ObjectWriter</a>&nbsp;addMember(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#addMember-org.apache.drill.common.types.TypeProtos.MinorType-">addMember</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="addMember-org.apache.drill.exec.vector.accessor.writer.AbstractObjectWriter-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMember</h4>
<pre>protected&nbsp;void&nbsp;addMember(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/AbstractObjectWriter.html" title="class in org.apache.drill.exec.vector.accessor.writer">AbstractObjectWriter</a>&nbsp;writer)</pre>
<div class="block">Add a column writer to an existing union writer. Used for implementations
that support "live" schema evolution: column discovery while writing.
The corresponding metadata must already have been added to the schema.
Called by the shim's <tt>addMember</tt> to do writer-level tasks.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>writer</code> - the column writer to add</dd>
</dl>
</li>
</ul>
<a name="scalar-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>scalar</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ScalarWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ScalarWriter</a>&nbsp;scalar(<a href="../../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#scalar-org.apache.drill.common.types.TypeProtos.MinorType-">scalar</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="tuple--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>tuple</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/TupleWriter.html" title="interface in org.apache.drill.exec.vector.accessor">TupleWriter</a>&nbsp;tuple()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#tuple--">tuple</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="array--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>array</h4>
<pre>public&nbsp;<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ArrayWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ArrayWriter</a>&nbsp;array()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html#array--">array</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/VariantWriter.html" title="interface in org.apache.drill.exec.vector.accessor">VariantWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="isProjected--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isProjected</h4>
<pre>public&nbsp;boolean&nbsp;isProjected()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#isProjected--">ColumnWriter</a></code></span></div>
<div class="block">Whether this writer is projected (is backed by a materialized vector),
or is unprojected (is just a dummy writer.) In most cases, clients can
ignore whether the column is projected and just write to the writer.
This flag handles those special cases where it is helpful to know if
the column is projected or not.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#isProjected--">isProjected</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
</dl>
</li>
</ul>
<a name="startWrite--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startWrite</h4>
<pre>public&nbsp;void&nbsp;startWrite()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#startWrite--">WriterEvents</a></code></span></div>
<div class="block">Start a write (batch) operation. Performs any vector initialization
required at the start of a batch (especially for offset vectors.)</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#startWrite--">startWrite</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="startRow--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>startRow</h4>
<pre>public&nbsp;void&nbsp;startRow()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#startRow--">WriterEvents</a></code></span></div>
<div class="block">Start a new row. To be called only when a row is not active. To
restart a row, call <a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#restartRow--"><code>WriterEvents.restartRow()</code></a> instead.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#startRow--">startRow</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="endArrayValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>endArrayValue</h4>
<pre>public&nbsp;void&nbsp;endArrayValue()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#endArrayValue--">WriterEvents</a></code></span></div>
<div class="block">End a value. Similar to <a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#saveRow--"><code>WriterEvents.saveRow()</code></a>, but the save of a value
is conditional on saving the row. This version is primarily of use
in tuples nested inside arrays: it saves each tuple within the array,
advancing to a new position in the array. The update of the array's
offset vector based on the cumulative value saves is done when
saving the row.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#endArrayValue--">endArrayValue</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="restartRow--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>restartRow</h4>
<pre>public&nbsp;void&nbsp;restartRow()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#restartRow--">WriterEvents</a></code></span></div>
<div class="block">During a writer to a row, rewind the the current index position to
restart the row.
Done when abandoning the current row, such as when filtering out
a row at read time.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#restartRow--">restartRow</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="saveRow--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>saveRow</h4>
<pre>public&nbsp;void&nbsp;saveRow()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#saveRow--">WriterEvents</a></code></span></div>
<div class="block">Saves a row. Commits offset vector locations and advances each to
the next position. Can be called only when a row is active.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#saveRow--">saveRow</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="preRollover--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>preRollover</h4>
<pre>public&nbsp;void&nbsp;preRollover()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#preRollover--">WriterEvents</a></code></span></div>
<div class="block">The vectors backing this vector are about to roll over. Finish
the current batch up to, but not including, the current row.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#preRollover--">preRollover</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="postRollover--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>postRollover</h4>
<pre>public&nbsp;void&nbsp;postRollover()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#postRollover--">WriterEvents</a></code></span></div>
<div class="block">The vectors backing this writer rolled over. This means that data
for the current row has been rolled over into a new vector. Offsets
and indexes should be shifted based on the understanding that data
for the current row now resides at the start of a new vector instead
of its previous location elsewhere in an old vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#postRollover--">postRollover</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="endWrite--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>endWrite</h4>
<pre>public&nbsp;void&nbsp;endWrite()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#endWrite--">WriterEvents</a></code></span></div>
<div class="block">End a batch: finalize any vector values.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#endWrite--">endWrite</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
<a name="lastWriteIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>lastWriteIndex</h4>
<pre>public&nbsp;int&nbsp;lastWriteIndex()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html#lastWriteIndex--">WriterPosition</a></code></span></div>
<div class="block">Return the last write position in the vector. This may be the
same as the writer index position (if the vector was written at
that point), or an earlier point. In either case, this value
points to the last valid value in the vector.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html#lastWriteIndex--">lastWriteIndex</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html" title="interface in org.apache.drill.exec.vector.accessor">WriterPosition</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>index of the last valid value in the vector</dd>
</dl>
</li>
</ul>
<a name="rowStartIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>rowStartIndex</h4>
<pre>public&nbsp;int&nbsp;rowStartIndex()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html#rowStartIndex--">WriterPosition</a></code></span></div>
<div class="block">Position within the vector of the first value for the current row.
Note that this is always the first value for the row, even for a
writer deeply nested within a hierarchy of arrays. (The first
position for the current array is not exposed in this API.)</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html#rowStartIndex--">rowStartIndex</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html" title="interface in org.apache.drill.exec.vector.accessor">WriterPosition</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the vector offset of the first value for the current
row</dd>
</dl>
</li>
</ul>
<a name="writeIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>writeIndex</h4>
<pre>public&nbsp;int&nbsp;writeIndex()</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html#writeIndex--">WriterPosition</a></code></span></div>
<div class="block">Current write index for the writer. This is the global
array location for arrays, same as the row index for top-level
columns.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html#writeIndex--">writeIndex</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/WriterPosition.html" title="interface in org.apache.drill.exec.vector.accessor">WriterPosition</a></code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>current write index</dd>
</dl>
</li>
</ul>
<a name="copy-org.apache.drill.exec.vector.accessor.ColumnReader-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre>public&nbsp;void&nbsp;copy(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnReader.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnReader</a>&nbsp;from)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#copy-org.apache.drill.exec.vector.accessor.ColumnReader-">ColumnWriter</a></code></span></div>
<div class="block">Copy a single value from the given reader, which must be of the
same type as this writer.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#copy-org.apache.drill.exec.vector.accessor.ColumnReader-">copy</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>from</code> - reader to provide the data</dd>
</dl>
</li>
</ul>
<a name="setObject-java.lang.Object-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setObject</h4>
<pre>public&nbsp;void&nbsp;setObject(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>&nbsp;value)</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#setObject-java.lang.Object-">ColumnWriter</a></code></span></div>
<div class="block">Generic technique to write data as a generic Java object. The
type of the object must match the target writer.
Primarily for testing.
<ul>
<li>Scalar: The type of the Java object must match the type of
the target vector. <tt>String</tt> or <tt>byte[]</tt> can be
used for Varchar vectors.</li>
<li>Array: Write the array given an array of values. The object
must be a Java array. The type of the array must match the type of
element in the repeated vector. That is, if the vector is
a <tt>Repeated Int</tt>, provide an <tt>int[]</tt> array.</tt></li>
<li>Tuple (map or row): The Java object must be an array of objects
in which the members of the array have a 1:1 correspondence with the
members of the tuple in the order defined by the writer metadata.
That is, if the map is (Int, Varchar), provide a <tt>Object[]</tt>
array like this: <tt>{10, "fred"}</tt>.</li>
<li>Union: Uses the Java object type to determine the type of the
backing vector. Creates a vector
of the required type if needed.</li></div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html#setObject-java.lang.Object-">setObject</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/ColumnWriter.html" title="interface in org.apache.drill.exec.vector.accessor">ColumnWriter</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - value to write to the vector. The Java type of the
object indicates the Drill storage type</dd>
</dl>
</li>
</ul>
<a name="dump-org.apache.drill.exec.vector.accessor.impl.HierarchicalFormatter-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>dump</h4>
<pre>public&nbsp;void&nbsp;dump(<a href="../../../../../../../org/apache/drill/exec/vector/accessor/impl/HierarchicalFormatter.html" title="interface in org.apache.drill.exec.vector.accessor.impl">HierarchicalFormatter</a>&nbsp;format)</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html#dump-org.apache.drill.exec.vector.accessor.impl.HierarchicalFormatter-">dump</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/WriterEvents.html" title="interface in org.apache.drill.exec.vector.accessor.writer">WriterEvents</a></code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/UnionWriterImpl.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">
<li><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionVectorShim.html" title="class in org.apache.drill.exec.vector.accessor.writer"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../../org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.UnionShim.html" title="interface in org.apache.drill.exec.vector.accessor.writer"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../index.html?org/apache/drill/exec/vector/accessor/writer/UnionWriterImpl.html" target="_top">Frames</a></li>
<li><a href="UnionWriterImpl.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses-noframe.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>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright &#169; 1970 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p>
</body>
</html>