Class/Object

org.apache.spark.sql.types

StructType

Related Docs: object StructType | package types

Permalink

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

:: DeveloperApi :: 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
@DeveloperApi()
Source
StructType.scala
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[org.apache.spark.sql.types.StructField] @scala.annotation.unchecked.uncheckedVariance], 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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StructType()

    Permalink

    No-arg constructor for kryo.

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

    Permalink

Type Members

  1. type Self = Seq[StructField]

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

    Permalink
    Definition Classes
    TraversableLike

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  10. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def add(name: String, dataType: String, nullable: Boolean, metadata: Metadata): StructType

    Permalink

    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)
  12. def add(name: String, dataType: String, nullable: Boolean): StructType

    Permalink

    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)
  13. def add(name: String, dataType: String): StructType

    Permalink

    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")
  14. def add(name: String, dataType: DataType, nullable: Boolean, metadata: Metadata): StructType

    Permalink

    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)
  15. def add(name: String, dataType: DataType, nullable: Boolean): StructType

    Permalink

    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)

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

    Permalink

    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)

  17. def add(field: StructField): StructType

    Permalink

    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))
  18. def addString(b: StringBuilder): StringBuilder

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

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

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

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

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

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

    Permalink

    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

  25. def apply(name: String): StructField

    Permalink

    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

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

    Permalink
    Definition Classes
    PartialFunction
  27. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  28. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  29. def catalogString: String

    Permalink

    String representation for the type saved in external catalogs.

    String representation for the type saved in external catalogs.

    Definition Classes
    StructTypeDataType
  30. def clone(): AnyRef

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

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

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

    Permalink
    Definition Classes
    SeqLike
  34. def companion: GenericCompanion[Seq]

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

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  36. def contains[A1 >: StructField](elem: A1): Boolean

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def defaultSize: Int

    Permalink

    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
  45. def diff[B >: StructField](that: GenSeq[B]): Seq[StructField]

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

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

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

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

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

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

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

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

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

    Permalink

    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

  55. def fieldNames: Array[String]

    Permalink

    Returns all field names in an array.

  56. val fields: Array[StructField]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IterableLike
  72. def hasDefiniteSize: Boolean

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    GenSeqLike
  82. def indices: Range

    Permalink
    Definition Classes
    SeqLike
  83. def init: Seq[StructField]

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

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

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

    Permalink
    Definition Classes
    GenSeqLike
  87. def isEmpty: Boolean

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

    Permalink
    Definition Classes
    Any
  89. final def isTraversableAgain: Boolean

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

    Permalink
    Definition Classes
    StructType → IterableLike → GenIterableLike
  91. def json: String

    Permalink

    The compact JSON representation of this data type.

    The compact JSON representation of this data type.

    Definition Classes
    DataType
  92. def last: StructField

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

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

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

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

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

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

    Permalink
    Definition Classes
    GenSeqLike
  99. def lastOption: Option[StructField]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  100. def length: Int

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def mkString: String

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  115. final def notifyAll(): Unit

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    GenSeqLike
  124. def prettyJson: String

    Permalink

    The pretty (i.e.

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

    Definition Classes
    DataType
  125. def printTreeString(): Unit

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    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.

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

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

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

    Permalink

    Readable string representation for the type.

    Readable string representation for the type.

    Definition Classes
    StructTypeDataType → AbstractDataType
  146. def size: Int

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  155. def sql: String

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

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

    Permalink
    Definition Classes
    GenSeqLike
  158. def stringPrefix: String

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

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

    Permalink
    Definition Classes
    AnyRef
  161. def tail: Seq[StructField]

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  175. def toList: List[StructField]

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

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

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

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

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

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

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  182. def toVector: Vector[StructField]

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

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  184. def treeString: String

    Permalink
  185. def typeName: String

    Permalink

    Name of the type used in JSON serialization.

    Name of the type used in JSON serialization.

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

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

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

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

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    IterableLike → GenIterableLike

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[org.apache.spark.sql.types.StructField] @scala.annotation.unchecked.uncheckedVariance]

Inherited from PartialFunction[Int, StructField]

Inherited from (Int) ⇒ StructField

Inherited from DataType

Inherited from AbstractDataType

Inherited from AnyRef

Inherited from Any

Ungrouped