Object/Class

org.apache.spark

SparkContext

Related Docs: class SparkContext | package spark

Permalink

object SparkContext extends Logging

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

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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

    Permalink

    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.

  11. def getOrCreate(config: SparkConf): SparkContext

    Permalink

    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.

  12. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  14. def isTraceEnabled(): Boolean

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

    Permalink

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

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

    Permalink

    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.

  17. def log: Logger

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  24. def logName: String

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. object DoubleAccumulatorParam extends AccumulatorParam[Double]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  2. object FloatAccumulatorParam extends AccumulatorParam[Float]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  3. object IntAccumulatorParam extends AccumulatorParam[Int]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  4. object LongAccumulatorParam extends AccumulatorParam[Long]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  6. def booleanWritableConverter(): WritableConverter[Boolean]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  11. def doubleWritableConverter(): WritableConverter[Double]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  13. def floatWritableConverter(): WritableConverter[Float]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  15. def intWritableConverter(): WritableConverter[Int]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  17. def longWritableConverter(): WritableConverter[Long]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    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)]

    Permalink
    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]

    Permalink
    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]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

  24. def stringWritableConverter(): WritableConverter[String]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

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

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 1.3.0)

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped