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
  • object SparkSession extends SparkSessionCompanion with Serializable
    Definition Classes
    sql
  • Builder

class Builder extends SparkSessionBuilder

Source
SparkSession.scala
Linear Supertypes
SparkSessionBuilder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Builder
  2. SparkSessionBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Builder()

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 appName(name: String): Builder.this.type

    Sets a name for the application, which will be shown in the Spark web UI.

    Sets a name for the application, which will be shown in the Spark web UI. If no application name is set, a randomly generated name will be used.

    Definition Classes
    Builder → SparkSessionBuilder
    Annotations
    @ClassicOnly()
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def classic(): Builder.this.type

    Make the builder create a Classic SparkSession.

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. def config(conf: SparkConf): Builder.this.type

    Sets a list of config options based on the given SparkConf.

    Sets a list of config options based on the given SparkConf.

    Definition Classes
    Builder → SparkSessionBuilder
  9. def config(map: Map[String, Any]): Builder.this.type

    Sets a config option.

    Sets a config option. Options set using this method are automatically propagated to both SparkConf and SparkSession's own configuration.

    Definition Classes
    Builder → SparkSessionBuilder
  10. def config(map: Map[String, Any]): Builder.this.type

    Sets a config option.

    Sets a config option. Options set using this method are automatically propagated to both SparkConf and SparkSession's own configuration.

    Definition Classes
    Builder → SparkSessionBuilder
  11. def config(key: String, value: Boolean): Builder.this.type

    Sets a config option.

    Sets a config option. Options set using this method are automatically propagated to both SparkConf and SparkSession's own configuration.

    Definition Classes
    Builder → SparkSessionBuilder
  12. def config(key: String, value: Double): Builder.this.type

    Sets a config option.

    Sets a config option. Options set using this method are automatically propagated to both SparkConf and SparkSession's own configuration.

    Definition Classes
    Builder → SparkSessionBuilder
  13. def config(key: String, value: Long): Builder.this.type

    Sets a config option.

    Sets a config option. Options set using this method are automatically propagated to both SparkConf and SparkSession's own configuration.

    Definition Classes
    Builder → SparkSessionBuilder
  14. def config(key: String, value: String): Builder.this.type

    Sets a config option.

    Sets a config option. Options set using this method are automatically propagated to both SparkConf and SparkSession's own configuration.

    Definition Classes
    Builder → SparkSessionBuilder
  15. def connect(): Builder.this.type

    Make the builder create a Connect SparkSession.

  16. def create(): SparkSession

    Create a new SparkSession.

    Create a new SparkSession.

    This will always return a newly created session.

    This method will update the default and/or active session if they are not set.

    Definition Classes
    Builder → SparkSessionBuilder
  17. def enableHiveSupport(): Builder.this.type

    Enables Hive support, including connectivity to a persistent Hive metastore, support for Hive serdes, and Hive user-defined functions.

    Enables Hive support, including connectivity to a persistent Hive metastore, support for Hive serdes, and Hive user-defined functions.

    Definition Classes
    Builder → SparkSessionBuilder
    Annotations
    @ClassicOnly()
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  21. def getOrCreate(): SparkSession

    Gets an existing SparkSession or, if there is no existing one, creates a new one based on the options set in this builder.

    Gets an existing SparkSession or, if there is no existing one, creates a new one based on the options set in this builder.

    This method first checks whether there is a valid thread-local SparkSession, and if yes, return that one. It then checks whether there is a valid global default SparkSession, and if yes, return that one. If no valid global default SparkSession exists, the method creates a new SparkSession and assigns the newly created SparkSession as the global default.

    In case an existing SparkSession is returned, the non-static config options specified in this builder will be applied to the existing SparkSession.

    Definition Classes
    Builder → SparkSessionBuilder
  22. def handleBuilderConfig(key: String, value: String): Boolean

    Handle a configuration change that is only relevant to the builder.

    Handle a configuration change that is only relevant to the builder.

    returns

    true when the change if builder only, otherwise it will be added to the configurations.

    Attributes
    protected
    Definition Classes
    Builder → SparkSessionBuilder
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def master(master: String): Builder.this.type

    Sets the Spark master URL to connect to, such as "local" to run locally, "local[4]" to run locally with 4 cores, or "spark://master:7077" to run on a Spark standalone cluster.

    Sets the Spark master URL to connect to, such as "local" to run locally, "local[4]" to run locally with 4 cores, or "spark://master:7077" to run on a Spark standalone cluster.

    Definition Classes
    Builder → SparkSessionBuilder
    Annotations
    @ClassicOnly()
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  29. val options: HashMap[String, String]
    Attributes
    protected
    Definition Classes
    SparkSessionBuilder
  30. def remote(connectionString: String): Builder.this.type

    Sets the Spark Connect remote URL.

    Sets the Spark Connect remote URL.

    Definition Classes
    Builder → SparkSessionBuilder
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. def withExtensions(f: (SparkSessionExtensions) => Unit): Builder.this.type

    Inject extensions into the SparkSession.

    Inject extensions into the SparkSession. This allows a user to add Analyzer rules, Optimizer rules, Planning Strategies or a customized parser.

    Definition Classes
    Builder → SparkSessionBuilder
    Annotations
    @ClassicOnly()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from SparkSessionBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped