org.apache.spark

SparkContext

object SparkContext extends Logging

The SparkContext object contains a number of implicit conversions and parameters for use with various Spark features.

Source
SparkContext.scala
Linear Supertypes
Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SparkContext
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def getOrCreate(): SparkContext

    This function may be used to get or instantiate a SparkContext and register it as a singleton object.

    This function may be used to get or instantiate a SparkContext and register it as a singleton object. Because we can only have one active SparkContext per JVM, this is useful when applications may wish to share a SparkContext.

    This method allows not passing a SparkConf (useful if just retrieving).

    Note: This function cannot be used to create multiple SparkContext instances even if multiple contexts are allowed.

  13. def getOrCreate(config: SparkConf): SparkContext

    This function may be used to get or instantiate a SparkContext and register it as a singleton object.

    This function may be used to get or instantiate a SparkContext and register it as a singleton object. Because we can only have one active SparkContext per JVM, this is useful when applications may wish to share a SparkContext.

    Note: This function cannot be used to create multiple SparkContext instances even if multiple contexts are allowed.

  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  17. def jarOfClass(cls: Class[_]): Option[String]

    Find the JAR from which a given class was loaded, to make it easy for users to pass their JARs to SparkContext.

  18. def jarOfObject(obj: AnyRef): Option[String]

    Find the JAR that contains the class of a particular object, to make it easy for users to pass their JARs to SparkContext.

    Find the JAR that contains the class of a particular object, to make it easy for users to pass their JARs to SparkContext. In most cases you can call jarOfObject(this) in your driver program.

  19. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  20. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  21. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  22. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  23. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  24. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  25. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  26. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  27. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  28. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  29. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  30. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  31. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. object DoubleAccumulatorParam extends AccumulatorParam[Double]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  2. object FloatAccumulatorParam extends AccumulatorParam[Float]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  3. object IntAccumulatorParam extends AccumulatorParam[Int]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  4. object LongAccumulatorParam extends AccumulatorParam[Long]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  5. implicit def boolToBoolWritable(b: Boolean): BooleanWritable

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  6. def booleanWritableConverter(): WritableConverter[Boolean]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  7. implicit def bytesToBytesWritable(aob: Array[Byte]): BytesWritable

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  8. def bytesWritableConverter(): WritableConverter[Array[Byte]]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  9. def doubleRDDToDoubleRDDFunctions(rdd: RDD[Double]): DoubleRDDFunctions

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  10. implicit def doubleToDoubleWritable(d: Double): DoubleWritable

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  11. def doubleWritableConverter(): WritableConverter[Double]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  12. implicit def floatToFloatWritable(f: Float): FloatWritable

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  13. def floatWritableConverter(): WritableConverter[Float]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  14. implicit def intToIntWritable(i: Int): IntWritable

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  15. def intWritableConverter(): WritableConverter[Int]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  16. implicit def longToLongWritable(l: Long): LongWritable

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  17. def longWritableConverter(): WritableConverter[Long]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  18. def numericRDDToDoubleRDDFunctions[T](rdd: RDD[T])(implicit num: Numeric[T]): DoubleRDDFunctions

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  19. def rddToAsyncRDDActions[T](rdd: RDD[T])(implicit arg0: ClassTag[T]): AsyncRDDActions[T]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  20. def rddToOrderedRDDFunctions[K, V](rdd: RDD[(K, V)])(implicit arg0: Ordering[K], arg1: ClassTag[K], arg2: ClassTag[V]): OrderedRDDFunctions[K, V, (K, V)]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  21. def rddToPairRDDFunctions[K, V](rdd: RDD[(K, V)])(implicit kt: ClassTag[K], vt: ClassTag[V], ord: Ordering[K] = null): PairRDDFunctions[K, V]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  22. def rddToSequenceFileRDDFunctions[K, V](rdd: RDD[(K, V)])(implicit arg0: (K) ⇒ Writable, arg1: ClassTag[K], arg2: (V) ⇒ Writable, arg3: ClassTag[V]): SequenceFileRDDFunctions[K, V]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  23. implicit def stringToText(s: String): Text

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  24. def stringWritableConverter(): WritableConverter[String]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  25. def writableWritableConverter[T <: Writable](): WritableConverter[T]

    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped