<!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 (version 1.7.0_51) on Wed Sep 16 15:55:13 PDT 2015 -->
<title>StructType</title>
<meta name="date" content="2015-09-16">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="StructType";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><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="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/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/spark/sql/types/TimestampType.html" title="class in org.apache.spark.sql.types"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/spark/sql/types/StructType.html" target="_top">Frames</a></li>
<li><a href="StructType.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All 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: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </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.spark.sql.types</div>
<h2 title="Class StructType" class="title">Class StructType</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">org.apache.spark.sql.types.DataType</a></li>
<li>
<ul class="inheritance">
<li>org.apache.spark.sql.types.StructType</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.io.Serializable, scala.collection.generic.FilterMonadic<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.generic.GenericTraversableTemplate<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq>, scala.collection.generic.HasNewBuilder<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.GenIterable<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.GenIterableLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.GenSeq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.GenSeqLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.GenTraversable<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.GenTraversableLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.GenTraversableOnce<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.Iterable<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.IterableLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.Parallelizable<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.parallel.ParSeq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.SeqLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.Traversable<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.collection.TraversableLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>>, scala.collection.TraversableOnce<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.Equals, scala.Function1<java.lang.Object,<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.PartialFunction<java.lang.Object,<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.Product</dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">StructType</span>
extends <a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a>
implements scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>, scala.Product, scala.Serializable</pre>
<div class="block">:: DeveloperApi ::
A <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> object can be constructed by
<pre><code>
StructType(fields: Seq[StructField])
</code></pre>
For a <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> object, one or multiple <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><code>StructField</code></a>s can be extracted by names.
If multiple <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><code>StructField</code></a>s are extracted, a <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> object will be returned.
If a provided name does not have a matching field, it will be ignored. For the case
of extracting a single StructField, a <code>null</code> will be returned.
Example:
<pre><code>
import org.apache.spark.sql._
val struct =
StructType(
StructField("a", IntegerType, true) ::
StructField("b", LongType, false) ::
StructField("c", BooleanType, false) :: Nil)
// Extract a single StructField.
val singleField = struct("b")
// singleField: StructField = StructField(b,LongType,false)
// This struct does not have a field called "d". null will be returned.
val nonExisting = struct("d")
// nonExisting: StructField = null
// Extract multiple StructFields. Field names are provided in a set.
// A StructType object will be returned.
val twoFields = struct(Set("b", "c"))
// twoFields: StructType =
// StructType(List(StructField(b,LongType,false), StructField(c,BooleanType,false)))
// Any names without matching fields will be ignored.
// For the case shown below, "d" will be ignored and
// it is treated as struct(Set("b", "c")).
val ignoreNonExisting = struct(Set("b", "c", "d"))
// ignoreNonExisting: StructType =
// StructType(List(StructField(b,LongType,false), StructField(c,BooleanType,false)))
</code></pre>
<p>
A <a href="../../../../../org/apache/spark/sql/Row.html" title="interface in org.apache.spark.sql"><code>Row</code></a> object is used as a value of the StructType.
Example:
<pre><code>
import org.apache.spark.sql._
val innerStruct =
StructType(
StructField("f1", IntegerType, true) ::
StructField("f2", LongType, false) ::
StructField("f3", BooleanType, false) :: Nil)
val struct = StructType(
StructField("a", innerStruct, true) :: Nil)
// Create a Row with the schema defined by struct
val row = Row(Row(1, 2, true))
// row: Row = {@link 1,2,true}
</code></pre></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#org.apache.spark.sql.types.StructType">Serialized Form</a></dd></dl>
</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>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_scala.PartialFunction">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface scala.PartialFunction</h3>
<code>scala.PartialFunction.AndThen<A,B,C>, scala.PartialFunction.Lifted<A,B>, scala.PartialFunction.OrElse<A,B>, scala.PartialFunction.Unlifted<A,B></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_scala.collection.SeqLike">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface scala.collection.SeqLike</h3>
<code>scala.collection.SeqLike.CombinationsItr, scala.collection.SeqLike.PermutationsItr</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_scala.collection.TraversableLike">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface scala.collection.TraversableLike</h3>
<code>scala.collection.TraversableLike.WithFilter</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_scala.collection.TraversableOnce">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from interface scala.collection.TraversableOnce</h3>
<code>scala.collection.TraversableOnce.BufferedCanBuildFrom<A,Coll extends scala.collection.TraversableOnce<java.lang.Object>>, scala.collection.TraversableOnce.FlattenOps<A>, scala.collection.TraversableOnce.ForceImplicitAmbiguity, scala.collection.TraversableOnce.MonadOps<A>, scala.collection.TraversableOnce.OnceCanBuildFrom<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="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#StructType()">StructType</a></strong>()</code>
<div class="block">No-arg constructor for kryo.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#StructType(org.apache.spark.sql.types.StructField[])">StructType</a></strong>(<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>[] fields)</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(java.lang.String, org.apache.spark.sql.types.DataType)">add</a></strong>(java.lang.String name,
<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> dataType)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new nullable field with no metadata.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(java.lang.String, org.apache.spark.sql.types.DataType, boolean)">add</a></strong>(java.lang.String name,
<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> dataType,
boolean nullable)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field with no metadata.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(java.lang.String, org.apache.spark.sql.types.DataType, boolean, org.apache.spark.sql.types.Metadata)">add</a></strong>(java.lang.String name,
<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> dataType,
boolean nullable,
<a href="../../../../../org/apache/spark/sql/types/Metadata.html" title="class in org.apache.spark.sql.types">Metadata</a> metadata)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field and specifying metadata.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(java.lang.String, java.lang.String)">add</a></strong>(java.lang.String name,
java.lang.String dataType)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new nullable field with no metadata where the
dataType is specified as a String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(java.lang.String, java.lang.String, boolean)">add</a></strong>(java.lang.String name,
java.lang.String dataType,
boolean nullable)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field with no metadata where the
dataType is specified as a String.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(java.lang.String, java.lang.String, boolean, org.apache.spark.sql.types.Metadata)">add</a></strong>(java.lang.String name,
java.lang.String dataType,
boolean nullable,
<a href="../../../../../org/apache/spark/sql/types/Metadata.html" title="class in org.apache.spark.sql.types">Metadata</a> metadata)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field and specifying metadata where the
dataType is specified as a String.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#add(org.apache.spark.sql.types.StructField)">add</a></strong>(<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a> field)</code>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#apply(int)">apply</a></strong>(int fieldIndex)</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#apply(scala.collection.immutable.Set)">apply</a></strong>(scala.collection.immutable.Set<java.lang.String> names)</code>
<div class="block">Returns a <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> containing <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><code>StructField</code></a>s of the given names, preserving the
original order of fields.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#apply(java.lang.String)">apply</a></strong>(java.lang.String name)</code>
<div class="block">Extracts a <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><code>StructField</code></a> of the given name.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#defaultSize()">defaultSize</a></strong>()</code>
<div class="block">The default size of a value of the StructType is the total default sizes of all field types.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#fieldIndex(java.lang.String)">fieldIndex</a></strong>(java.lang.String name)</code>
<div class="block">Returns index of a given field</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#fieldNames()">fieldNames</a></strong>()</code>
<div class="block">Returns all field names in an array.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#fields()">fields</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#fromAttributes(scala.collection.Seq)">fromAttributes</a></strong>(scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> attributes)</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>org.apache.spark.sql.catalyst.expressions.InterpretedOrdering</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#interpretedOrdering()">interpretedOrdering</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>scala.collection.Iterator<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#iterator()">iterator</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#length()">length</a></strong>()</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#printTreeString()">printTreeString</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#simpleString()">simpleString</a></strong>()</code>
<div class="block">Readable string representation for the type.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.AttributeReference></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#toAttributes()">toAttributes</a></strong>()</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/spark/sql/types/StructType.html#treeString()">treeString</a></strong>()</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.spark.sql.types.DataType">
<!-- -->
</a>
<h3>Methods inherited from class org.apache.spark.sql.types.<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a></h3>
<code><a href="../../../../../org/apache/spark/sql/types/DataType.html#buildFormattedString(org.apache.spark.sql.types.DataType, java.lang.String, scala.collection.mutable.StringBuilder)">buildFormattedString</a>, <a href="../../../../../org/apache/spark/sql/types/DataType.html#fromCaseClassString(java.lang.String)">fromCaseClassString</a>, <a href="../../../../../org/apache/spark/sql/types/DataType.html#fromJson(java.lang.String)">fromJson</a>, <a href="../../../../../org/apache/spark/sql/types/DataType.html#json()">json</a>, <a href="../../../../../org/apache/spark/sql/types/DataType.html#prettyJson()">prettyJson</a>, <a href="../../../../../org/apache/spark/sql/types/DataType.html#typeName()">typeName</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.Seq">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.Seq</h3>
<code>companion, seq</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.PartialFunction">
<!-- -->
</a>
<h3>Methods inherited from interface scala.PartialFunction</h3>
<code>andThen, applyOrElse, isDefinedAt, lift, orElse, runWith</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.Function1">
<!-- -->
</a>
<h3>Methods inherited from interface scala.Function1</h3>
<code>andThen$mcDD$sp, andThen$mcDF$sp, andThen$mcDI$sp, andThen$mcDJ$sp, andThen$mcFD$sp, andThen$mcFF$sp, andThen$mcFI$sp, andThen$mcFJ$sp, andThen$mcID$sp, andThen$mcIF$sp, andThen$mcII$sp, andThen$mcIJ$sp, andThen$mcJD$sp, andThen$mcJF$sp, andThen$mcJI$sp, andThen$mcJJ$sp, andThen$mcVD$sp, andThen$mcVF$sp, andThen$mcVI$sp, andThen$mcVJ$sp, andThen$mcZD$sp, andThen$mcZF$sp, andThen$mcZI$sp, andThen$mcZJ$sp, apply, apply$mcDD$sp, apply$mcDF$sp, apply$mcDI$sp, apply$mcDJ$sp, apply$mcFD$sp, apply$mcFF$sp, apply$mcFI$sp, apply$mcFJ$sp, apply$mcID$sp, apply$mcIF$sp, apply$mcII$sp, apply$mcIJ$sp, apply$mcJD$sp, apply$mcJF$sp, apply$mcJI$sp, apply$mcJJ$sp, apply$mcVD$sp, apply$mcVF$sp, apply$mcVI$sp, apply$mcVJ$sp, apply$mcZD$sp, apply$mcZF$sp, apply$mcZI$sp, apply$mcZJ$sp, compose, compose$mcDD$sp, compose$mcDF$sp, compose$mcDI$sp, compose$mcDJ$sp, compose$mcFD$sp, compose$mcFF$sp, compose$mcFI$sp, compose$mcFJ$sp, compose$mcID$sp, compose$mcIF$sp, compose$mcII$sp, compose$mcIJ$sp, compose$mcJD$sp, compose$mcJF$sp, compose$mcJI$sp, compose$mcJJ$sp, compose$mcVD$sp, compose$mcVF$sp, compose$mcVI$sp, compose$mcVJ$sp, compose$mcZD$sp, compose$mcZF$sp, compose$mcZI$sp, compose$mcZJ$sp, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.SeqLike">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.SeqLike</h3>
<code>$colon$plus, $plus$colon, combinations, contains, containsSlice, corresponds, diff, distinct, endsWith, indexOfSlice, indexOfSlice, indexWhere, indices, intersect, isEmpty, lastIndexOfSlice, lastIndexOfSlice, lastIndexWhere, lengthCompare, padTo, parCombiner, patch, permutations, reverse, reverseIterator, reverseMap, segmentLength, size, sortBy, sorted, sortWith, startsWith, thisCollection, toCollection, toSeq, toString, union, updated, view, view</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.IterableLike">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.IterableLike</h3>
<code>canEqual, copyToArray, drop, dropRight, exists, find, foldRight, forall, foreach, grouped, head, reduceRight, sameElements, slice, sliding, sliding, take, takeRight, takeWhile, toIterable, toIterator, toStream, zip, zipAll, zipWithIndex</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.TraversableLike">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.TraversableLike</h3>
<code>$plus$plus, $plus$plus$colon, $plus$plus$colon, collect, dropWhile, filter, filterNot, flatMap, groupBy, hasDefiniteSize, headOption, init, inits, isTraversableAgain, last, lastOption, map, partition, repr, scan, scanLeft, scanRight, sliceWithKnownBound, sliceWithKnownDelta, span, splitAt, stringPrefix, tail, tails, to, toTraversable, withFilter</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.TraversableOnce">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.TraversableOnce</h3>
<code>$colon$bslash, $div$colon, addString, addString, addString, aggregate, collectFirst, copyToArray, copyToArray, copyToBuffer, count, fold, foldLeft, max, maxBy, min, minBy, mkString, mkString, mkString, nonEmpty, product, reduce, reduceLeft, reduceLeftOption, reduceOption, reduceRightOption, reversed, sum, toArray, toBuffer, toIndexedSeq, toList, toMap, toSet, toVector</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.GenSeqLike">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.GenSeqLike</h3>
<code>equals, hashCode, indexOf, indexOf, indexWhere, isDefinedAt, lastIndexOf, lastIndexOf, lastIndexWhere, prefixLength, startsWith</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.GenTraversableOnce">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.GenTraversableOnce</h3>
<code>$div$colon$bslash</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.collection.Parallelizable">
<!-- -->
</a>
<h3>Methods inherited from interface scala.collection.Parallelizable</h3>
<code>par</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_scala.Product">
<!-- -->
</a>
<h3>Methods inherited from interface scala.Product</h3>
<code>productArity, productElement, productIterator, productPrefix</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="StructType(org.apache.spark.sql.types.StructField[])">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StructType</h4>
<pre>public StructType(<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>[] fields)</pre>
</li>
</ul>
<a name="StructType()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>StructType</h4>
<pre>public StructType()</pre>
<div class="block">No-arg constructor for kryo.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="fromAttributes(scala.collection.Seq)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fromAttributes</h4>
<pre>protected static <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> fromAttributes(scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> attributes)</pre>
</li>
</ul>
<a name="fields()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fields</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>[] fields()</pre>
</li>
</ul>
<a name="fieldNames()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fieldNames</h4>
<pre>public java.lang.String[] fieldNames()</pre>
<div class="block">Returns all field names in an array.</div>
</li>
</ul>
<a name="add(org.apache.spark.sql.types.StructField)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a> field)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field.
<pre><code>
val struct = (new StructType)
.add(StructField("a", IntegerType, true))
.add(StructField("b", LongType, false))
.add(StructField("c", StringType, true))
</code></pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>field</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="add(java.lang.String, org.apache.spark.sql.types.DataType)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(java.lang.String name,
<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> dataType)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new nullable field with no metadata.
<p>
val struct = (new StructType)
.add("a", IntegerType)
.add("b", LongType)
.add("c", StringType)</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd><dd><code>dataType</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="add(java.lang.String, org.apache.spark.sql.types.DataType, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(java.lang.String name,
<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> dataType,
boolean nullable)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field with no metadata.
<p>
val struct = (new StructType)
.add("a", IntegerType, true)
.add("b", LongType, false)
.add("c", StringType, true)</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd><dd><code>dataType</code> - (undocumented)</dd><dd><code>nullable</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="add(java.lang.String, org.apache.spark.sql.types.DataType, boolean, org.apache.spark.sql.types.Metadata)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(java.lang.String name,
<a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a> dataType,
boolean nullable,
<a href="../../../../../org/apache/spark/sql/types/Metadata.html" title="class in org.apache.spark.sql.types">Metadata</a> metadata)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field and specifying metadata.
<pre><code>
val struct = (new StructType)
.add("a", IntegerType, true, Metadata.empty)
.add("b", LongType, false, Metadata.empty)
.add("c", StringType, true, Metadata.empty)
</code></pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd><dd><code>dataType</code> - (undocumented)</dd><dd><code>nullable</code> - (undocumented)</dd><dd><code>metadata</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="add(java.lang.String, java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(java.lang.String name,
java.lang.String dataType)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new nullable field with no metadata where the
dataType is specified as a String.
<p>
<pre><code>
val struct = (new StructType)
.add("a", "int")
.add("b", "long")
.add("c", "string")
</code></pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd><dd><code>dataType</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="add(java.lang.String, java.lang.String, boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(java.lang.String name,
java.lang.String dataType,
boolean nullable)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field with no metadata where the
dataType is specified as a String.
<p>
<pre><code>
val struct = (new StructType)
.add("a", "int", true)
.add("b", "long", false)
.add("c", "string", true)
</code></pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd><dd><code>dataType</code> - (undocumented)</dd><dd><code>nullable</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="add(java.lang.String, java.lang.String, boolean, org.apache.spark.sql.types.Metadata)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>add</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> add(java.lang.String name,
java.lang.String dataType,
boolean nullable,
<a href="../../../../../org/apache/spark/sql/types/Metadata.html" title="class in org.apache.spark.sql.types">Metadata</a> metadata)</pre>
<div class="block">Creates a new <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> by adding a new field and specifying metadata where the
dataType is specified as a String.
<pre><code>
val struct = (new StructType)
.add("a", "int", true, Metadata.empty)
.add("b", "long", false, Metadata.empty)
.add("c", "string", true, Metadata.empty)
</code></pre></div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd><dd><code>dataType</code> - (undocumented)</dd><dd><code>nullable</code> - (undocumented)</dd><dd><code>metadata</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="apply(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a> apply(java.lang.String name)</pre>
<div class="block">Extracts a <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><code>StructField</code></a> of the given name. If the <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> object does not
have a name matching the given name, <code>null</code> will be returned.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="apply(scala.collection.immutable.Set)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types">StructType</a> apply(scala.collection.immutable.Set<java.lang.String> names)</pre>
<div class="block">Returns a <a href="../../../../../org/apache/spark/sql/types/StructType.html" title="class in org.apache.spark.sql.types"><code>StructType</code></a> containing <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><code>StructField</code></a>s of the given names, preserving the
original order of fields. Those names which do not have matching fields will be ignored.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>names</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="fieldIndex(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fieldIndex</h4>
<pre>public int fieldIndex(java.lang.String name)</pre>
<div class="block">Returns index of a given field</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - (undocumented)</dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="toAttributes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toAttributes</h4>
<pre>protected scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.AttributeReference> toAttributes()</pre>
</li>
</ul>
<a name="treeString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>treeString</h4>
<pre>public java.lang.String treeString()</pre>
</li>
</ul>
<a name="printTreeString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>printTreeString</h4>
<pre>public void printTreeString()</pre>
</li>
</ul>
<a name="apply(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>apply</h4>
<pre>public <a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a> apply(int fieldIndex)</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>apply</code> in interface <code>scala.collection.GenSeqLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code>apply</code> in interface <code>scala.collection.SeqLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>></code></dd>
</dl>
</li>
</ul>
<a name="length()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>length</h4>
<pre>public int length()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>length</code> in interface <code>scala.collection.GenSeqLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code>length</code> in interface <code>scala.collection.SeqLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>></code></dd>
</dl>
</li>
</ul>
<a name="iterator()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>iterator</h4>
<pre>public scala.collection.Iterator<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>> iterator()</pre>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code> in interface <code>scala.collection.GenIterableLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>></code></dd>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code> in interface <code>scala.collection.IterableLike<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>,scala.collection.Seq<<a href="../../../../../org/apache/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types">StructField</a>>></code></dd>
</dl>
</li>
</ul>
<a name="defaultSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>defaultSize</h4>
<pre>public int defaultSize()</pre>
<div class="block">The default size of a value of the StructType is the total default sizes of all field types.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/sql/types/DataType.html#defaultSize()">defaultSize</a></code> in class <code><a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a></code></dd>
<dt><span class="strong">Returns:</span></dt><dd>(undocumented)</dd></dl>
</li>
</ul>
<a name="simpleString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>simpleString</h4>
<pre>public java.lang.String simpleString()</pre>
<div class="block"><strong>Description copied from class: <code><a href="../../../../../org/apache/spark/sql/types/DataType.html#simpleString()">DataType</a></code></strong></div>
<div class="block">Readable string representation for the type.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/spark/sql/types/DataType.html#simpleString()">simpleString</a></code> in class <code><a href="../../../../../org/apache/spark/sql/types/DataType.html" title="class in org.apache.spark.sql.types">DataType</a></code></dd>
</dl>
</li>
</ul>
<a name="interpretedOrdering()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>interpretedOrdering</h4>
<pre>public org.apache.spark.sql.catalyst.expressions.InterpretedOrdering interpretedOrdering()</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><a href="#skip-navbar_bottom" title="Skip navigation links"></a><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="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/spark/sql/types/StructField.html" title="class in org.apache.spark.sql.types"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../../org/apache/spark/sql/types/TimestampType.html" title="class in org.apache.spark.sql.types"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/spark/sql/types/StructType.html" target="_top">Frames</a></li>
<li><a href="StructType.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All 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: </li>
<li>Nested | </li>
<li>Field | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<script defer="defer" type="text/javascript" src="../../../../../lib/jquery.js"></script><script defer="defer" type="text/javascript" src="../../../../../lib/api-javadocs.js"></script></body>
</html>