Packages

object Row extends Serializable

Annotations
@Stable()
Source
Row.scala
Since

1.3.0

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Row
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(values: Any*): Row

    This method can be used to construct a Row with the given values.

  2. val empty: Row

    Returns an empty row.

  3. def fromSeq(values: Seq[Any]): Row

    This method can be used to construct a Row from a Seq of values.

  4. def fromTuple(tuple: Product): Row
  5. def unapplySeq(row: Row): Some[Seq[Any]]

    This method can be used to extract fields from a Row object in a pattern match.

    This method can be used to extract fields from a Row object in a pattern match. Example:

    import org.apache.spark.sql._
    
    val pairs = sql("SELECT key, value FROM src").rdd.map {
      case Row(key: Int, value: String) =>
        key -> value
    }

Deprecated Value Members

  1. def merge(rows: Row*): Row

    Merge multiple rows into a single row, one after another.

    Merge multiple rows into a single row, one after another.

    Annotations
    @deprecated
    Deprecated

    (Since version 3.0.0) This method is deprecated and will be removed in future versions.