Trait

com.datawizards.sparklocal.accumulator

DoubleAccumulatorAPI

Related Doc: package accumulator

Permalink

trait DoubleAccumulatorAPI extends AccumulatorV2API[Double, Double]

Linear Supertypes
AccumulatorV2API[Double, Double], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DoubleAccumulatorAPI
  2. AccumulatorV2API
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(v: Double): Unit

    Permalink

    Adds v to the accumulator, i.e.

    Adds v to the accumulator, i.e. increment sum by v and count by 1.

  2. abstract def add(v: Double): Unit

    Permalink

    Takes the inputs and accumulates.

    Takes the inputs and accumulates.

    Definition Classes
    AccumulatorV2API
  3. abstract def avg: Double

    Permalink

    Returns the average of elements added to the accumulator.

  4. abstract def copy(): AccumulatorV2API[Double, Double]

    Permalink

    Creates a new copy of this accumulator.

    Creates a new copy of this accumulator.

    Definition Classes
    AccumulatorV2API
  5. abstract def copyAndReset(): AccumulatorV2API[Double, Double]

    Permalink

    Creates a new copy of this accumulator, which is zero value.

    Creates a new copy of this accumulator, which is zero value. i.e. call isZero on the copy must return true.

    Definition Classes
    AccumulatorV2API
  6. abstract def count: Long

    Permalink

    Returns the number of elements added to the accumulator.

  7. abstract def id: Long

    Permalink

    Returns the id of this accumulator, can only be called after registration.

    Returns the id of this accumulator, can only be called after registration.

    Definition Classes
    AccumulatorV2API
  8. abstract def isRegistered: Boolean

    Permalink

    Returns true if this accumulator has been registered.

    Returns true if this accumulator has been registered.

    Definition Classes
    AccumulatorV2API
    Note

    All accumulators must be registered before use, or it will throw exception.

  9. abstract def isZero: Boolean

    Permalink

    Returns if this accumulator is zero value or not.

    Returns if this accumulator is zero value or not. e.g. for a counter accumulator, 0 is zero value; for a list accumulator, Nil is zero value.

    Definition Classes
    AccumulatorV2API
  10. abstract def merge(other: AccumulatorV2API[Double, Double]): Unit

    Permalink

    Merges another same-type accumulator into this one and update its state, i.e.

    Merges another same-type accumulator into this one and update its state, i.e. this should be merge-in-place.

    Definition Classes
    AccumulatorV2API
  11. abstract def name: Option[String]

    Permalink

    Returns the name of this accumulator, can only be called after registration.

    Returns the name of this accumulator, can only be called after registration.

    Definition Classes
    AccumulatorV2API
  12. abstract def reset(): Unit

    Permalink

    Resets this accumulator, which is zero value.

    Resets this accumulator, which is zero value. i.e. call isZero must return true.

    Definition Classes
    AccumulatorV2API
  13. abstract def sum: Double

    Permalink

    Returns the sum of elements added to the accumulator.

  14. abstract def value: Double

    Permalink

    Defines the current value of this accumulator

    Defines the current value of this accumulator

    Definition Classes
    AccumulatorV2API

Concrete 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 hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

Inherited from AccumulatorV2API[Double, Double]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped