Package

org.apache.spark

util

Permalink

package util

Spark utilities.

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. util
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AccumulatorV2[IN, OUT] extends Serializable

    Permalink

    The base class for accumulators, that can accumulate inputs of type IN, and produce output of type OUT.

  2. class CollectionAccumulator[T] extends AccumulatorV2[T, List[T]]

    Permalink

    An accumulator for collecting a list of elements.

    An accumulator for collecting a list of elements.

    Since

    2.0.0

  3. class DoubleAccumulator extends AccumulatorV2[Double, Double]

    Permalink

    An accumulator for computing sum, count, and averages for double precision floating numbers.

    An accumulator for computing sum, count, and averages for double precision floating numbers.

    Since

    2.0.0

  4. class EnumUtil extends AnyRef

    Permalink
  5. class LegacyAccumulatorWrapper[R, T] extends AccumulatorV2[T, R]

    Permalink
  6. class LongAccumulator extends AccumulatorV2[Long, Long]

    Permalink

    An accumulator for computing sum, count, and averages for 64-bit integers.

    An accumulator for computing sum, count, and averages for 64-bit integers.

    Since

    2.0.0

  7. case class MutablePair[T1, T2](_1: T1, _2: T2) extends Product2[T1, T2] with Product with Serializable

    Permalink

    :: DeveloperApi :: A tuple of 2 elements.

    :: DeveloperApi :: A tuple of 2 elements. This can be used as an alternative to Scala's Tuple2 when we want to minimize object allocation.

    _1

    Element 1 of this MutablePair

    _2

    Element 2 of this MutablePair

    Annotations
    @DeveloperApi()
  8. class StatCounter extends Serializable

    Permalink

    A class for tracking the statistics of a set of numbers (count, mean and variance) in a numerically robust way.

    A class for tracking the statistics of a set of numbers (count, mean and variance) in a numerically robust way. Includes support for merging two StatCounters. Based on Welford and Chan's algorithms for running variance.

  9. trait TaskCompletionListener extends EventListener

    Permalink

    :: DeveloperApi ::

    :: DeveloperApi ::

    Listener providing a callback function to invoke when a task's execution completes.

    Annotations
    @DeveloperApi()
  10. trait TaskFailureListener extends EventListener

    Permalink

    :: DeveloperApi ::

    :: DeveloperApi ::

    Listener providing a callback function to invoke when a task's execution encounters an error. Operations defined here must be idempotent, as onTaskFailure can be called multiple times.

    Annotations
    @DeveloperApi()

Value Members

  1. object SizeEstimator extends Logging

    Permalink

    :: DeveloperApi :: Estimates the sizes of Java objects (number of bytes of memory they occupy), for use in memory-aware caches.

    :: DeveloperApi :: Estimates the sizes of Java objects (number of bytes of memory they occupy), for use in memory-aware caches.

    Based on the following JavaWorld article: http://www.javaworld.com/javaworld/javaqa/2003-12/02-qa-1226-sizeof.html

    Annotations
    @DeveloperApi()
  2. object StatCounter extends Serializable

    Permalink
  3. package random

    Permalink

    Utilities for random number generation.

  4. package sketch

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped