object Row extends Serializable
- Annotations
- @Stable()
- Source
- Row.scala
- Since
1.3.0
- Alphabetic
- By Inheritance
- Row
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(values: Any*): Row
This method can be used to construct a Row with the given values.
-
val
empty: Row
Returns an empty row.
-
def
fromSeq(values: Seq[Any]): Row
This method can be used to construct a Row from a
Seq
of values. - def fromTuple(tuple: Product): Row
-
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 }