blob: d56067bc616805972793ae26f338cacf3419a3e5 [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>DictBuilder (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="DictBuilder (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};
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/DictBuilder.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/record/metadata/ColumnMetadata.StructureType.html" title="enum in org.apache.drill.exec.record.metadata"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../org/apache/drill/exec/record/metadata/DictColumnMetadata.html" title="class in org.apache.drill.exec.record.metadata"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/drill/exec/record/metadata/DictBuilder.html" target="_top">Frames</a></li>
<li><a href="DictBuilder.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>Nested&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.record.metadata</div>
<h2 title="Class DictBuilder" class="title">Class DictBuilder</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.record.metadata.DictBuilder</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">DictBuilder</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></pre>
<div class="block">Internal structure for building a dict. Dict is an array of key-value pairs
with defined types for key and value (key and value fields are defined within <a href="../../../../../../org/apache/drill/exec/record/metadata/TupleSchema.html" title="class in org.apache.drill.exec.record.metadata"><code>TupleSchema</code></a>).
Key can be <a href="../../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html#REQUIRED"><code>TypeProtos.DataMode.REQUIRED</code></a> primitive,
while value can be primitive or complex.
<p>Column is added to the parent container during creation
and all <tt>resumeXXX</tt> methods return qualified parent container.</p></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/drill/exec/vector/complex/DictVector.html" title="class in org.apache.drill.exec.vector.complex"><code>DictVector</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== 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/record/metadata/DictBuilder.html#DictBuilder-org.apache.drill.exec.record.metadata.SchemaContainer-java.lang.String-org.apache.drill.common.types.TypeProtos.DataMode-">DictBuilder</a></span>(org.apache.drill.exec.record.metadata.SchemaContainer&nbsp;parent,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode)</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>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#addColumn-org.apache.drill.exec.record.metadata.ColumnMetadata-">addColumn</a></span>(<a href="../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;column)</code>&nbsp;</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#build--">build</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictColumnMetadata.html" title="class in org.apache.drill.exec.record.metadata">DictColumnMetadata</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#buildColumn--">buildColumn</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#dictArrayValue--">dictArrayValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#dictValue--">dictValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#key-org.apache.drill.common.types.TypeProtos.MajorType-">key</a></span>(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Use this method to set types with width or scale and precision,
e.g.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#key-org.apache.drill.common.types.TypeProtos.MinorType-">key</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="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/UnionBuilder.html" title="class in org.apache.drill.exec.record.metadata">UnionBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#listValue--">listValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/MapBuilder.html" title="class in org.apache.drill.exec.record.metadata">MapBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#mapArrayValue--">mapArrayValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/MapBuilder.html" title="class in org.apache.drill.exec.record.metadata">MapBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#mapValue--">mapValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#nullableValue-org.apache.drill.common.types.TypeProtos.MinorType-">nullableValue</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="i11" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/RepeatedListBuilder.html" title="class in org.apache.drill.exec.record.metadata">RepeatedListBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#repeatedListValue--">repeatedListValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#repeatedValue-org.apache.drill.common.types.TypeProtos.MinorType-">repeatedValue</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="i13" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#resumeDict--">resumeDict</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/RepeatedListBuilder.html" title="class in org.apache.drill.exec.record.metadata">RepeatedListBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#resumeList--">resumeList</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/MapBuilder.html" title="class in org.apache.drill.exec.record.metadata">MapBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#resumeMap--">resumeMap</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/SchemaBuilder.html" title="class in org.apache.drill.exec.record.metadata">SchemaBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#resumeSchema--">resumeSchema</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/UnionBuilder.html" title="class in org.apache.drill.exec.record.metadata">UnionBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#resumeUnion--">resumeUnion</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/UnionBuilder.html" title="class in org.apache.drill.exec.record.metadata">UnionBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#unionValue--">unionValue</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#value-org.apache.drill.common.types.TypeProtos.MajorType-">value</a></span>(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</code>
<div class="block">Define non-complex value type.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#value-org.apache.drill.common.types.TypeProtos.MinorType-">value</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>
</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="DictBuilder-org.apache.drill.exec.record.metadata.SchemaContainer-java.lang.String-org.apache.drill.common.types.TypeProtos.DataMode-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DictBuilder</h4>
<pre>public&nbsp;DictBuilder(org.apache.drill.exec.record.metadata.SchemaContainer&nbsp;parent,
<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name,
<a href="../../../../../../org/apache/drill/common/types/TypeProtos.DataMode.html" title="enum in org.apache.drill.common.types">TypeProtos.DataMode</a>&nbsp;mode)</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="addColumn-org.apache.drill.exec.record.metadata.ColumnMetadata-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addColumn</h4>
<pre>public&nbsp;void&nbsp;addColumn(<a href="../../../../../../org/apache/drill/exec/record/metadata/ColumnMetadata.html" title="interface in org.apache.drill.exec.record.metadata">ColumnMetadata</a>&nbsp;column)</pre>
</li>
</ul>
<a name="key-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>key</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;key(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="key-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>key</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;key(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Use this method to set types with width or scale and precision,
e.g. <a href="../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html#VARDECIMAL"><code>TypeProtos.MinorType.VARDECIMAL</code></a> with scale and precision or
<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html#VARCHAR"><code>TypeProtos.MinorType.VARCHAR</code></a> etc.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - desired type for key</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> builder</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if key field is already set</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>type</code> is not supported (either complex or nullable)</dd>
</dl>
</li>
</ul>
<a name="value-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>value</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;value(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="nullableValue-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>nullableValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;nullableValue(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="repeatedValue-org.apache.drill.common.types.TypeProtos.MinorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>repeatedValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;repeatedValue(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MinorType.html" title="enum in org.apache.drill.common.types">TypeProtos.MinorType</a>&nbsp;type)</pre>
</li>
</ul>
<a name="value-org.apache.drill.common.types.TypeProtos.MajorType-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>value</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;value(<a href="../../../../../../org/apache/drill/common/types/TypeProtos.MajorType.html" title="class in org.apache.drill.common.types">TypeProtos.MajorType</a>&nbsp;type)</pre>
<div class="block">Define non-complex value type. For complex types use <a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#mapValue--"><code>mapValue()</code></a>, <a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#mapArrayValue--"><code>mapArrayValue()</code></a> etc.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>type</code> - desired non-complex type for value.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>this</code> builder</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalStateException.html?is-external=true" title="class or interface in java.lang">IllegalStateException</a></code> - if value is already set</dd>
<dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if <code>type</code> is either <code>MAP</code>,
<code>LIST</code>, <code>DICT</code> or <code>UNION</code>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#mapValue--"><code>method to define value as {@code MAP}</code></a>,
<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#mapArrayValue--"><code>method to define value as {@code REPEATED MAP}</code></a>,
<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#listValue--"><code>method to define value as {@code LIST}</code></a>,
<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#unionValue--"><code>method to define value as {@code UNION}</code></a>,
<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#dictValue--"><code>method to define value as {@code DICT}</code></a>,
<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html#dictArrayValue--"><code>method to define value as {@code REPEATED DICT}</code></a></dd>
</dl>
</li>
</ul>
<a name="mapValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/MapBuilder.html" title="class in org.apache.drill.exec.record.metadata">MapBuilder</a>&nbsp;mapValue()</pre>
</li>
</ul>
<a name="mapArrayValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>mapArrayValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/MapBuilder.html" title="class in org.apache.drill.exec.record.metadata">MapBuilder</a>&nbsp;mapArrayValue()</pre>
</li>
</ul>
<a name="dictValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dictValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;dictValue()</pre>
</li>
</ul>
<a name="dictArrayValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dictArrayValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;dictArrayValue()</pre>
</li>
</ul>
<a name="unionValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>unionValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/UnionBuilder.html" title="class in org.apache.drill.exec.record.metadata">UnionBuilder</a>&nbsp;unionValue()</pre>
</li>
</ul>
<a name="listValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>listValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/UnionBuilder.html" title="class in org.apache.drill.exec.record.metadata">UnionBuilder</a>&nbsp;listValue()</pre>
</li>
</ul>
<a name="repeatedListValue--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>repeatedListValue</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/RepeatedListBuilder.html" title="class in org.apache.drill.exec.record.metadata">RepeatedListBuilder</a>&nbsp;repeatedListValue()</pre>
</li>
</ul>
<a name="buildColumn--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>buildColumn</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictColumnMetadata.html" title="class in org.apache.drill.exec.record.metadata">DictColumnMetadata</a>&nbsp;buildColumn()</pre>
</li>
</ul>
<a name="build--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>build</h4>
<pre>public&nbsp;void&nbsp;build()</pre>
</li>
</ul>
<a name="resumeSchema--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resumeSchema</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/SchemaBuilder.html" title="class in org.apache.drill.exec.record.metadata">SchemaBuilder</a>&nbsp;resumeSchema()</pre>
</li>
</ul>
<a name="resumeMap--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resumeMap</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/MapBuilder.html" title="class in org.apache.drill.exec.record.metadata">MapBuilder</a>&nbsp;resumeMap()</pre>
</li>
</ul>
<a name="resumeList--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resumeList</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/RepeatedListBuilder.html" title="class in org.apache.drill.exec.record.metadata">RepeatedListBuilder</a>&nbsp;resumeList()</pre>
</li>
</ul>
<a name="resumeUnion--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resumeUnion</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/UnionBuilder.html" title="class in org.apache.drill.exec.record.metadata">UnionBuilder</a>&nbsp;resumeUnion()</pre>
</li>
</ul>
<a name="resumeDict--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>resumeDict</h4>
<pre>public&nbsp;<a href="../../../../../../org/apache/drill/exec/record/metadata/DictBuilder.html" title="class in org.apache.drill.exec.record.metadata">DictBuilder</a>&nbsp;resumeDict()</pre>
</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/DictBuilder.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/record/metadata/ColumnMetadata.StructureType.html" title="enum in org.apache.drill.exec.record.metadata"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../../../org/apache/drill/exec/record/metadata/DictColumnMetadata.html" title="class in org.apache.drill.exec.record.metadata"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/apache/drill/exec/record/metadata/DictBuilder.html" target="_top">Frames</a></li>
<li><a href="DictBuilder.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>Nested&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>