Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package apache
    Definition Classes
    org
  • package spark

    Core Spark functionality.

    Core Spark functionality. org.apache.spark.SparkContext serves as the main entry point to Spark, while org.apache.spark.rdd.RDD is the data type representing a distributed collection, and provides most parallel operations.

    In addition, org.apache.spark.rdd.PairRDDFunctions contains operations available only on RDDs of key-value pairs, such as groupByKey and join; org.apache.spark.rdd.DoubleRDDFunctions contains operations available only on RDDs of Doubles; and org.apache.spark.rdd.SequenceFileRDDFunctions contains operations available on RDDs that can be saved as SequenceFiles. These operations are automatically available on any RDD of the right type (e.g. RDD[(Int, Int)] through implicit conversions.

    Java programmers should reference the org.apache.spark.api.java package for Spark programming APIs in Java.

    Classes and methods marked with Experimental are user-facing features which have not been officially adopted by the Spark project. These are subject to change or removal in minor releases.

    Classes and methods marked with Developer API are intended for advanced users want to extend Spark through lower level interfaces. These are subject to changes or removal in minor releases.

    Definition Classes
    apache
  • package sql

    Allows the execution of relational queries, including those expressed in SQL using Spark.

    Allows the execution of relational queries, including those expressed in SQL using Spark.

    Definition Classes
    spark
  • class SparkSession extends Serializable with Closeable with Logging

    The entry point to programming Spark with the Dataset and DataFrame API.

    The entry point to programming Spark with the Dataset and DataFrame API.

    In environments that this has been created upfront (e.g. REPL, notebooks), use the builder to get an existing session:

    SparkSession.builder().getOrCreate()

    The builder can also be used to create a new session:

    SparkSession.builder
      .master("local")
      .appName("Word Count")
      .config("spark.some.config.option", "some-value")
      .getOrCreate()
    Definition Classes
    sql
    Annotations
    @Stable()
  • implicits

object implicits extends SQLImplicits with Serializable

(Scala-specific) Implicit methods available in Scala for converting common Scala objects into DataFrames.

val sparkSession = SparkSession.builder.getOrCreate()
import sparkSession.implicits._
Since

2.0.0

Linear Supertypes
Serializable, Serializable, SQLImplicits, LowPrioritySQLImplicits, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. implicits
  2. Serializable
  3. Serializable
  4. SQLImplicits
  5. LowPrioritySQLImplicits
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class StringToColumn extends AnyRef

    Converts $"col name" into a Column.

    Converts $"col name" into a Column.

    Definition Classes
    SQLImplicits
    Since

    2.0.0

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def _sqlContext: SQLContext
    Attributes
    protected
    Definition Classes
    implicitsSQLImplicits
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. implicit def localSeqToDatasetHolder[T](s: Seq[T])(implicit arg0: Encoder[T]): DatasetHolder[T]

    Creates a Dataset from a local Seq.

    Creates a Dataset from a local Seq.

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. implicit def newBooleanArrayEncoder: Encoder[Array[Boolean]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  16. implicit def newBooleanEncoder: Encoder[Boolean]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  17. implicit def newBoxedBooleanEncoder: Encoder[Boolean]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  18. implicit def newBoxedByteEncoder: Encoder[Byte]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  19. implicit def newBoxedDoubleEncoder: Encoder[Double]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  20. implicit def newBoxedFloatEncoder: Encoder[Float]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  21. implicit def newBoxedIntEncoder: Encoder[Integer]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  22. implicit def newBoxedLongEncoder: Encoder[Long]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  23. implicit def newBoxedShortEncoder: Encoder[Short]

    Definition Classes
    SQLImplicits
    Since

    2.0.0

  24. implicit def newByteArrayEncoder: Encoder[Array[Byte]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  25. implicit def newByteEncoder: Encoder[Byte]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  26. implicit def newDateEncoder: Encoder[Date]

    Definition Classes
    SQLImplicits
    Since

    2.2.0

  27. implicit def newDoubleArrayEncoder: Encoder[Array[Double]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  28. implicit def newDoubleEncoder: Encoder[Double]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  29. implicit def newDurationEncoder: Encoder[Duration]

    Definition Classes
    SQLImplicits
    Since

    3.2.0

  30. implicit def newFloatArrayEncoder: Encoder[Array[Float]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  31. implicit def newFloatEncoder: Encoder[Float]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  32. implicit def newInstantEncoder: Encoder[Instant]

    Definition Classes
    SQLImplicits
    Since

    3.0.0

  33. implicit def newIntArrayEncoder: Encoder[Array[Int]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  34. implicit def newIntEncoder: Encoder[Int]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  35. implicit def newJavaDecimalEncoder: Encoder[BigDecimal]

    Definition Classes
    SQLImplicits
    Since

    2.2.0

  36. implicit def newJavaEnumEncoder[A <: Enum[_]](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): Encoder[A]

    Definition Classes
    SQLImplicits
    Since

    3.2.0

  37. implicit def newLocalDateEncoder: Encoder[LocalDate]

    Definition Classes
    SQLImplicits
    Since

    3.0.0

  38. implicit def newLocalDateTimeEncoder: Encoder[LocalDateTime]

    Definition Classes
    SQLImplicits
    Since

    3.4.0

  39. implicit def newLongArrayEncoder: Encoder[Array[Long]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  40. implicit def newLongEncoder: Encoder[Long]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  41. implicit def newMapEncoder[T <: Map[_, _]](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Encoder[T]

    Definition Classes
    SQLImplicits
    Since

    2.3.0

  42. implicit def newPeriodEncoder: Encoder[Period]

    Definition Classes
    SQLImplicits
    Since

    3.2.0

  43. implicit def newProductArrayEncoder[A <: Product](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): Encoder[Array[A]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  44. implicit def newProductEncoder[T <: Product](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Encoder[T]

    Definition Classes
    LowPrioritySQLImplicits
    Since

    1.6.0

  45. implicit def newScalaDecimalEncoder: Encoder[BigDecimal]

    Definition Classes
    SQLImplicits
    Since

    2.2.0

  46. implicit def newSequenceEncoder[T <: Seq[_]](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Encoder[T]

    Definition Classes
    SQLImplicits
    Since

    2.2.0

  47. implicit def newSetEncoder[T <: Set[_]](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Encoder[T]

    Notice that we serialize Set to Catalyst array.

    Notice that we serialize Set to Catalyst array. The set property is only kept when manipulating the domain objects. The serialization format doesn't keep the set property. When we have a Catalyst array which contains duplicated elements and convert it to Dataset[Set[T]] by using the encoder, the elements will be de-duplicated.

    Definition Classes
    SQLImplicits
    Since

    2.3.0

  48. implicit def newShortArrayEncoder: Encoder[Array[Short]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  49. implicit def newShortEncoder: Encoder[Short]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  50. implicit def newStringArrayEncoder: Encoder[Array[String]]

    Definition Classes
    SQLImplicits
    Since

    1.6.1

  51. implicit def newStringEncoder: Encoder[String]

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  52. implicit def newTimeStampEncoder: Encoder[Timestamp]

    Definition Classes
    SQLImplicits
    Since

    2.2.0

  53. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  54. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. implicit def rddToDatasetHolder[T](rdd: RDD[T])(implicit arg0: Encoder[T]): DatasetHolder[T]

    Creates a Dataset from an RDD.

    Creates a Dataset from an RDD.

    Definition Classes
    SQLImplicits
    Since

    1.6.0

  56. implicit def symbolToColumn(s: Symbol): ColumnName

    An implicit conversion that turns a Scala Symbol into a Column.

    An implicit conversion that turns a Scala Symbol into a Column.

    Definition Classes
    SQLImplicits
    Since

    1.3.0

  57. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  58. def toString(): String
    Definition Classes
    AnyRef → Any
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  60. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Deprecated Value Members

  1. def newBooleanSeqEncoder: Encoder[Seq[Boolean]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  2. def newByteSeqEncoder: Encoder[Seq[Byte]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  3. def newDoubleSeqEncoder: Encoder[Seq[Double]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  4. def newFloatSeqEncoder: Encoder[Seq[Float]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  5. def newIntSeqEncoder: Encoder[Seq[Int]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  6. def newLongSeqEncoder: Encoder[Seq[Long]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  7. def newProductSeqEncoder[A <: Product](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[A]): Encoder[Seq[A]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  8. def newShortSeqEncoder: Encoder[Seq[Short]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

  9. def newStringSeqEncoder: Encoder[Seq[String]]

    Definition Classes
    SQLImplicits
    Deprecated

    use newSequenceEncoder

    Since

    1.6.1

Inherited from Serializable

Inherited from Serializable

Inherited from SQLImplicits

Inherited from LowPrioritySQLImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped