org.apache.spark.sql.types

StructType

case class StructType(fields: Array[StructField]) extends DataType with Seq[StructField] with Product with Serializable

A StructType object can be constructed by

StructType(fields: Seq[StructField])

For a StructType object, one or multiple StructFields can be extracted by names. If multiple StructFields are extracted, a StructType 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 null will be returned. Example:

import org.apache.spark.sql._
import org.apache.spark.sql.types._

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)))

A org.apache.spark.sql.Row object is used as a value of the StructType. Example:

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 = [[1,2,true]]
Annotations
@Stable()
Since

1.3.0

Linear Supertypes
Serializable, Serializable, Product, Seq[StructField], SeqLike[StructField, Seq[StructField]], GenSeq[StructField], GenSeqLike[StructField, Seq[StructField]], Iterable[StructField], IterableLike[StructField, Seq[StructField]], Equals, GenIterable[StructField], GenIterableLike[StructField, Seq[StructField]], Traversable[StructField], GenTraversable[StructField], GenericTraversableTemplate[StructField, Seq], TraversableLike[StructField, Seq[StructField]], GenTraversableLike[StructField, Seq[StructField]], Parallelizable[StructField, ParSeq[StructField]], TraversableOnce[StructField], GenTraversableOnce[StructField], FilterMonadic[StructField, Seq[StructField]], HasNewBuilder[StructField, Seq[StructField]], PartialFunction[Int, StructField], (Int) ⇒ StructField, DataType, AbstractDataType, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StructType
  2. Serializable
  3. Serializable
  4. Product
  5. Seq
  6. SeqLike
  7. GenSeq
  8. GenSeqLike
  9. Iterable
  10. IterableLike
  11. Equals
  12. GenIterable
  13. GenIterableLike
  14. Traversable
  15. GenTraversable
  16. GenericTraversableTemplate
  17. TraversableLike
  18. GenTraversableLike
  19. Parallelizable
  20. TraversableOnce
  21. GenTraversableOnce
  22. FilterMonadic
  23. HasNewBuilder
  24. PartialFunction
  25. Function1
  26. DataType
  27. AbstractDataType
  28. AnyRef
  29. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StructType()

    No-arg constructor for kryo.

  2. new StructType(fields: Array[StructField])

Type Members

  1. type Self = Seq[StructField]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++[B >: StructField, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: StructField, That](that: Traversable[B])(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike
  6. def ++:[B >: StructField, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike
  7. def +:[B >: StructField, That](elem: B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  8. def /:[B](z: B)(op: (B, StructField) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. def :+[B >: StructField, That](elem: B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  10. def :\[B](z: B)(op: (StructField, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  11. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  13. def add(name: String, dataType: String, nullable: Boolean, comment: String): StructType

    Creates a new StructType by adding a new field and specifying metadata where the dataType is specified as a String.

    Creates a new StructType by adding a new field and specifying metadata where the dataType is specified as a String.

    val struct = (new StructType)
    .add("a", "int", true, "comment1")
    .add("b", "long", false, "comment2")
    .add("c", "string", true, "comment3")
  14. def add(name: String, dataType: String, nullable: Boolean, metadata: Metadata): StructType

    Creates a new StructType by adding a new field and specifying metadata where the dataType is specified as a String.

    Creates a new StructType by adding a new field and specifying metadata where the dataType is specified as a String.

    val struct = (new StructType)
    .add("a", "int", true, Metadata.empty)
    .add("b", "long", false, Metadata.empty)
    .add("c", "string", true, Metadata.empty)
  15. def add(name: String, dataType: String, nullable: Boolean): StructType

    Creates a new StructType by adding a new field with no metadata where the dataType is specified as a String.

    Creates a new StructType by adding a new field with no metadata where the dataType is specified as a String.

    val struct = (new StructType)
    .add("a", "int", true)
    .add("b", "long", false)
    .add("c", "string", true)
  16. def add(name: String, dataType: String): StructType

    Creates a new StructType by adding a new nullable field with no metadata where the dataType is specified as a String.

    Creates a new StructType by adding a new nullable field with no metadata where the dataType is specified as a String.

    val struct = (new StructType)
    .add("a", "int")
    .add("b", "long")
    .add("c", "string")
  17. def add(name: String, dataType: DataType, nullable: Boolean, comment: String): StructType

    Creates a new StructType by adding a new field and specifying metadata.

    Creates a new StructType by adding a new field and specifying metadata.

    val struct = (new StructType)
    .add("a", IntegerType, true, "comment1")
    .add("b", LongType, false, "comment2")
    .add("c", StringType, true, "comment3")
  18. def add(name: String, dataType: DataType, nullable: Boolean, metadata: Metadata): StructType

    Creates a new StructType by adding a new field and specifying metadata.

    Creates a new StructType by adding a new field and specifying metadata.

    val struct = (new StructType)
    .add("a", IntegerType, true, Metadata.empty)
    .add("b", LongType, false, Metadata.empty)
    .add("c", StringType, true, Metadata.empty)
  19. def add(name: String, dataType: DataType, nullable: Boolean): StructType

    Creates a new StructType by adding a new field with no metadata.

    Creates a new StructType by adding a new field with no metadata.

    val struct = (new StructType) .add("a", IntegerType, true) .add("b", LongType, false) .add("c", StringType, true)

  20. def add(name: String, dataType: DataType): StructType

    Creates a new StructType by adding a new nullable field with no metadata.

    Creates a new StructType by adding a new nullable field with no metadata.

    val struct = (new StructType) .add("a", IntegerType) .add("b", LongType) .add("c", StringType)

  21. def add(field: StructField): StructType

    Creates a new StructType by adding a new field.

    Creates a new StructType by adding a new field.

    val struct = (new StructType)
    .add(StructField("a", IntegerType, true))
    .add(StructField("b", LongType, false))
    .add(StructField("c", StringType, true))
  22. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  23. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  24. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  25. def aggregate[B](z: B)(seqop: (B, StructField) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def andThen[C](k: (StructField) ⇒ C): PartialFunction[Int, C]

    Definition Classes
    PartialFunction → Function1
  27. def apply(fieldIndex: Int): StructField

    Definition Classes
    StructType → SeqLike → GenSeqLike → Function1
  28. def apply(names: Set[String]): StructType

    Returns a StructType containing StructFields of the given names, preserving the original order of fields.

    Returns a StructType containing StructFields of the given names, preserving the original order of fields.

    Exceptions thrown
    IllegalArgumentException

    if a field cannot be found for any of the given names

  29. def apply(name: String): StructField

    Extracts the StructField with the given name.

    Extracts the StructField with the given name.

    Exceptions thrown
    IllegalArgumentException

    if a field with the given name does not exist

  30. def applyOrElse[A1 <: Int, B1 >: StructField](x: A1, default: (A1) ⇒ B1): B1

    Definition Classes
    PartialFunction
  31. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  32. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  33. def catalogString: String

    String representation for the type saved in external catalogs.

    String representation for the type saved in external catalogs.

    Definition Classes
    StructTypeDataType
  34. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def collect[B, That](pf: PartialFunction[StructField, B])(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  36. def collectFirst[B](pf: PartialFunction[StructField, B]): Option[B]

    Definition Classes
    TraversableOnce
  37. def combinations(n: Int): Iterator[Seq[StructField]]

    Definition Classes
    SeqLike
  38. def companion: GenericCompanion[Seq]

    Definition Classes
    Seq → GenSeq → Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  39. def compose[A](g: (A) ⇒ Int): (A) ⇒ StructField

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  40. def contains(elem: Any): Boolean

    Definition Classes
    SeqLike
  41. def containsSlice[B](that: GenSeq[B]): Boolean

    Definition Classes
    SeqLike
  42. def copyToArray[B >: StructField](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  43. def copyToArray[B >: StructField](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def copyToArray[B >: StructField](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  45. def copyToBuffer[B >: StructField](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  46. def corresponds[B](that: GenSeq[B])(p: (StructField, B) ⇒ Boolean): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  47. def count(p: (StructField) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  48. def defaultSize: Int

    The default size of a value of the StructType is the total default sizes of all field types.

    The default size of a value of the StructType is the total default sizes of all field types.

    Definition Classes
    StructTypeDataType
  49. def diff[B >: StructField](that: GenSeq[B]): Seq[StructField]

    Definition Classes
    SeqLike → GenSeqLike
  50. def distinct: Seq[StructField]

    Definition Classes
    SeqLike → GenSeqLike
  51. def drop(n: Int): Seq[StructField]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  52. def dropRight(n: Int): Seq[StructField]

    Definition Classes
    IterableLike
  53. def dropWhile(p: (StructField) ⇒ Boolean): Seq[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  54. def endsWith[B](that: GenSeq[B]): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  55. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  56. def equals(that: Any): Boolean

    Definition Classes
    StructType → GenSeqLike → Equals → AnyRef → Any
  57. def exists(p: (StructField) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  58. def fieldIndex(name: String): Int

    Returns the index of a given field.

    Returns the index of a given field.

    Exceptions thrown
    IllegalArgumentException

    if a field with the given name does not exist

  59. def fieldNames: Array[String]

    Returns all field names in an array.

  60. val fields: Array[StructField]

  61. def filter(p: (StructField) ⇒ Boolean): Seq[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  62. def filterNot(p: (StructField) ⇒ Boolean): Seq[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  63. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  64. def find(p: (StructField) ⇒ Boolean): Option[StructField]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  65. def flatMap[B, That](f: (StructField) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  66. def flatten[B](implicit asTraversable: (StructField) ⇒ GenTraversableOnce[B]): Seq[B]

    Definition Classes
    GenericTraversableTemplate
  67. def fold[A1 >: StructField](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. def foldLeft[B](z: B)(op: (B, StructField) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  69. def foldRight[B](z: B)(op: (StructField, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  70. def forall(p: (StructField) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  71. def foreach[U](f: (StructField) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  72. def genericBuilder[B]: Builder[B, Seq[B]]

    Definition Classes
    GenericTraversableTemplate
  73. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  74. def groupBy[K](f: (StructField) ⇒ K): Map[K, Seq[StructField]]

    Definition Classes
    TraversableLike → GenTraversableLike
  75. def grouped(size: Int): Iterator[Seq[StructField]]

    Definition Classes
    IterableLike
  76. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  77. def hashCode(): Int

    Definition Classes
    StructType → GenSeqLike → AnyRef → Any
  78. def head: StructField

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  79. def headOption: Option[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  80. def indexOf[B >: StructField](elem: B, from: Int): Int

    Definition Classes
    GenSeqLike
  81. def indexOf[B >: StructField](elem: B): Int

    Definition Classes
    GenSeqLike
  82. def indexOfSlice[B >: StructField](that: GenSeq[B], from: Int): Int

    Definition Classes
    SeqLike
  83. def indexOfSlice[B >: StructField](that: GenSeq[B]): Int

    Definition Classes
    SeqLike
  84. def indexWhere(p: (StructField) ⇒ Boolean, from: Int): Int

    Definition Classes
    SeqLike → GenSeqLike
  85. def indexWhere(p: (StructField) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  86. def indices: Range

    Definition Classes
    SeqLike
  87. def init: Seq[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  88. def inits: Iterator[Seq[StructField]]

    Definition Classes
    TraversableLike
  89. def intersect[B >: StructField](that: GenSeq[B]): Seq[StructField]

    Definition Classes
    SeqLike → GenSeqLike
  90. def isDefinedAt(idx: Int): Boolean

    Definition Classes
    GenSeqLike
  91. def isEmpty: Boolean

    Definition Classes
    SeqLike → IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  92. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  93. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  94. def iterator: Iterator[StructField]

    Definition Classes
    StructType → IterableLike → GenIterableLike
  95. def json: String

    The compact JSON representation of this data type.

    The compact JSON representation of this data type.

    Definition Classes
    DataType
  96. def last: StructField

    Definition Classes
    TraversableLike → GenTraversableLike
  97. def lastIndexOf[B >: StructField](elem: B, end: Int): Int

    Definition Classes
    GenSeqLike
  98. def lastIndexOf[B >: StructField](elem: B): Int

    Definition Classes
    GenSeqLike
  99. def lastIndexOfSlice[B >: StructField](that: GenSeq[B], end: Int): Int

    Definition Classes
    SeqLike
  100. def lastIndexOfSlice[B >: StructField](that: GenSeq[B]): Int

    Definition Classes
    SeqLike
  101. def lastIndexWhere(p: (StructField) ⇒ Boolean, end: Int): Int

    Definition Classes
    SeqLike → GenSeqLike
  102. def lastIndexWhere(p: (StructField) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  103. def lastOption: Option[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  104. def length: Int

    Definition Classes
    StructType → SeqLike → GenSeqLike
  105. def lengthCompare(len: Int): Int

    Definition Classes
    SeqLike
  106. def lift: (Int) ⇒ Option[StructField]

    Definition Classes
    PartialFunction
  107. def map[B, That](f: (StructField) ⇒ B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  108. def max[B >: StructField](implicit cmp: Ordering[B]): StructField

    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def maxBy[B](f: (StructField) ⇒ B)(implicit cmp: Ordering[B]): StructField

    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def min[B >: StructField](implicit cmp: Ordering[B]): StructField

    Definition Classes
    TraversableOnce → GenTraversableOnce
  111. def minBy[B](f: (StructField) ⇒ B)(implicit cmp: Ordering[B]): StructField

    Definition Classes
    TraversableOnce → GenTraversableOnce
  112. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  116. def newBuilder: Builder[StructField, Seq[StructField]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  117. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. final def notify(): Unit

    Definition Classes
    AnyRef
  119. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  120. def orElse[A1 <: Int, B1 >: StructField](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  121. def padTo[B >: StructField, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  122. def par: ParSeq[StructField]

    Definition Classes
    Parallelizable
  123. def parCombiner: Combiner[StructField, ParSeq[StructField]]

    Attributes
    protected[this]
    Definition Classes
    SeqLike → TraversableLike → Parallelizable
  124. def partition(p: (StructField) ⇒ Boolean): (Seq[StructField], Seq[StructField])

    Definition Classes
    TraversableLike → GenTraversableLike
  125. def patch[B >: StructField, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  126. def permutations: Iterator[Seq[StructField]]

    Definition Classes
    SeqLike
  127. def prefixLength(p: (StructField) ⇒ Boolean): Int

    Definition Classes
    GenSeqLike
  128. def prettyJson: String

    The pretty (i.

    The pretty (i.e. indented) JSON representation of this data type.

    Definition Classes
    DataType
  129. def printTreeString(): Unit

  130. def product[B >: StructField](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  131. def reduce[A1 >: StructField](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  132. def reduceLeft[B >: StructField](op: (B, StructField) ⇒ B): B

    Definition Classes
    TraversableOnce
  133. def reduceLeftOption[B >: StructField](op: (B, StructField) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  134. def reduceOption[A1 >: StructField](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  135. def reduceRight[B >: StructField](op: (StructField, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  136. def reduceRightOption[B >: StructField](op: (StructField, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  137. def repr: Seq[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  138. def reverse: Seq[StructField]

    Definition Classes
    SeqLike → GenSeqLike
  139. def reverseIterator: Iterator[StructField]

    Definition Classes
    SeqLike
  140. def reverseMap[B, That](f: (StructField) ⇒ B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  141. def reversed: List[StructField]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  142. def runWith[U](action: (StructField) ⇒ U): (Int) ⇒ Boolean

    Definition Classes
    PartialFunction
  143. def sameElements[B >: StructField](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  144. def scan[B >: StructField, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  145. def scanLeft[B, That](z: B)(op: (B, StructField) ⇒ B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  146. def scanRight[B, That](z: B)(op: (StructField, B) ⇒ B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  147. def segmentLength(p: (StructField) ⇒ Boolean, from: Int): Int

    Definition Classes
    SeqLike → GenSeqLike
  148. def seq: Seq[StructField]

    Definition Classes
    Seq → GenSeq → GenSeqLike → Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  149. def simpleString: String

    Readable string representation for the type.

    Readable string representation for the type.

    Definition Classes
    StructTypeDataType → AbstractDataType
  150. def size: Int

    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  151. def slice(from: Int, until: Int): Seq[StructField]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  152. def sliding(size: Int, step: Int): Iterator[Seq[StructField]]

    Definition Classes
    IterableLike
  153. def sliding(size: Int): Iterator[Seq[StructField]]

    Definition Classes
    IterableLike
  154. def sortBy[B](f: (StructField) ⇒ B)(implicit ord: Ordering[B]): Seq[StructField]

    Definition Classes
    SeqLike
  155. def sortWith(lt: (StructField, StructField) ⇒ Boolean): Seq[StructField]

    Definition Classes
    SeqLike
  156. def sorted[B >: StructField](implicit ord: Ordering[B]): Seq[StructField]

    Definition Classes
    SeqLike
  157. def span(p: (StructField) ⇒ Boolean): (Seq[StructField], Seq[StructField])

    Definition Classes
    TraversableLike → GenTraversableLike
  158. def splitAt(n: Int): (Seq[StructField], Seq[StructField])

    Definition Classes
    TraversableLike → GenTraversableLike
  159. def sql: String

    Definition Classes
    StructTypeDataType
  160. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Definition Classes
    SeqLike → GenSeqLike
  161. def startsWith[B](that: GenSeq[B]): Boolean

    Definition Classes
    GenSeqLike
  162. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  163. def sum[B >: StructField](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  164. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  165. def tail: Seq[StructField]

    Definition Classes
    TraversableLike → GenTraversableLike
  166. def tails: Iterator[Seq[StructField]]

    Definition Classes
    TraversableLike
  167. def take(n: Int): Seq[StructField]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  168. def takeRight(n: Int): Seq[StructField]

    Definition Classes
    IterableLike
  169. def takeWhile(p: (StructField) ⇒ Boolean): Seq[StructField]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  170. def thisCollection: Seq[StructField]

    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  171. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, StructField, Col[StructField]]): Col[StructField]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  172. def toArray[B >: StructField](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  173. def toAttributes: Seq[AttributeReference]

    Attributes
    protected[org.apache.spark.sql]
  174. def toBuffer[B >: StructField]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  175. def toCollection(repr: Seq[StructField]): Seq[StructField]

    Attributes
    protected[this]
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  176. def toIndexedSeq: IndexedSeq[StructField]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  177. def toIterable: Iterable[StructField]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  178. def toIterator: Iterator[StructField]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  179. def toList: List[StructField]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  180. def toMap[T, U](implicit ev: <:<[StructField, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  181. def toSeq: Seq[StructField]

    Definition Classes
    SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  182. def toSet[B >: StructField]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  183. def toStream: Stream[StructField]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  184. def toString(): String

    Definition Classes
    SeqLike → TraversableLike → Any
  185. def toTraversable: Traversable[StructField]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  186. def toVector: Vector[StructField]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  187. def transpose[B](implicit asTraversable: (StructField) ⇒ GenTraversableOnce[B]): Seq[Seq[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  188. def treeString: String

  189. def typeName: String

    Name of the type used in JSON serialization.

    Name of the type used in JSON serialization.

    Definition Classes
    DataType
  190. def union[B >: StructField, That](that: GenSeq[B])(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  191. def unzip[A1, A2](implicit asPair: (StructField) ⇒ (A1, A2)): (Seq[A1], Seq[A2])

    Definition Classes
    GenericTraversableTemplate
  192. def unzip3[A1, A2, A3](implicit asTriple: (StructField) ⇒ (A1, A2, A3)): (Seq[A1], Seq[A2], Seq[A3])

    Definition Classes
    GenericTraversableTemplate
  193. def updated[B >: StructField, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Seq[StructField], B, That]): That

    Definition Classes
    SeqLike → GenSeqLike
  194. def view(from: Int, until: Int): SeqView[StructField, Seq[StructField]]

    Definition Classes
    SeqLike → IterableLike → TraversableLike
  195. def view: SeqView[StructField, Seq[StructField]]

    Definition Classes
    SeqLike → IterableLike → TraversableLike
  196. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  197. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  198. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  199. def withFilter(p: (StructField) ⇒ Boolean): FilterMonadic[StructField, Seq[StructField]]

    Definition Classes
    TraversableLike → FilterMonadic
  200. def zip[A1 >: StructField, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Seq[StructField], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  201. def zipAll[B, A1 >: StructField, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Seq[StructField], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  202. def zipWithIndex[A1 >: StructField, That](implicit bf: CanBuildFrom[Seq[StructField], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:\[A1 >: StructField](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Seq[StructField]

Inherited from SeqLike[StructField, Seq[StructField]]

Inherited from GenSeq[StructField]

Inherited from GenSeqLike[StructField, Seq[StructField]]

Inherited from Iterable[StructField]

Inherited from IterableLike[StructField, Seq[StructField]]

Inherited from Equals

Inherited from GenIterable[StructField]

Inherited from GenIterableLike[StructField, Seq[StructField]]

Inherited from Traversable[StructField]

Inherited from GenTraversable[StructField]

Inherited from GenericTraversableTemplate[StructField, Seq]

Inherited from TraversableLike[StructField, Seq[StructField]]

Inherited from GenTraversableLike[StructField, Seq[StructField]]

Inherited from Parallelizable[StructField, ParSeq[StructField]]

Inherited from TraversableOnce[StructField]

Inherited from GenTraversableOnce[StructField]

Inherited from FilterMonadic[StructField, Seq[StructField]]

Inherited from HasNewBuilder[StructField, Seq[StructField]]

Inherited from PartialFunction[Int, StructField]

Inherited from (Int) ⇒ StructField

Inherited from DataType

Inherited from AbstractDataType

Inherited from AnyRef

Inherited from Any

Ungrouped