Class

org.apache.spark.util

AccumulatorV2Kryo

Related Doc: package util

Permalink

abstract class AccumulatorV2Kryo[IN, OUT] extends AccumulatorV2[IN, OUT] with KryoSerializable

Linear Supertypes
KryoSerializable, AccumulatorV2[IN, OUT], Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AccumulatorV2Kryo
  2. KryoSerializable
  3. AccumulatorV2
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AccumulatorV2Kryo()

    Permalink

Abstract Value Members

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

    Permalink

    Takes the inputs and accumulates.

    Takes the inputs and accumulates.

    Definition Classes
    AccumulatorV2
  2. abstract def copy(): AccumulatorV2[IN, OUT]

    Permalink

    Creates a new copy of this accumulator.

    Creates a new copy of this accumulator.

    Definition Classes
    AccumulatorV2
  3. 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
    AccumulatorV2
  4. abstract def merge(other: AccumulatorV2[IN, OUT]): 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
    AccumulatorV2
  5. abstract def readKryo(kryo: Kryo, input: Input): Unit

    Permalink
  6. 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
    AccumulatorV2
  7. abstract def value: OUT

    Permalink

    Defines the current value of this accumulator

    Defines the current value of this accumulator

    Definition Classes
    AccumulatorV2
  8. abstract def writeKryo(kryo: Kryo, output: Output): Unit

    Permalink

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. def copyAndReset(): AccumulatorV2[IN, OUT]

    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
    AccumulatorV2
  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final 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
    AccumulatorV2
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def isRegistered: Boolean

    Permalink

    Returns true if this accumulator has been registered.

    Returns true if this accumulator has been registered. Note that all accumulators must be registered before use, or it will throw exception.

    Definition Classes
    AccumulatorV2
  15. final 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
    AccumulatorV2
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def read(kryo: Kryo, input: Input, context: TaskContext): Unit

    Permalink
  20. final def read(kryo: Kryo, input: Input): Unit

    Permalink

    Child classes must implement readKryo() and cannot override this.

    Child classes must implement readKryo() and cannot override this.

    Definition Classes
    AccumulatorV2Kryo → KryoSerializable
  21. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def write(kryo: Kryo, output: Output): Unit

    Permalink

    Child classes cannot override this and must instead implement writeKryo/readKryo for consistent writeReplace() behavior.

    Child classes cannot override this and must instead implement writeKryo/readKryo for consistent writeReplace() behavior.

    Definition Classes
    AccumulatorV2Kryo → KryoSerializable
  27. final def writeReplace(): Any

    Permalink
    Attributes
    protected
    Definition Classes
    AccumulatorV2

Inherited from KryoSerializable

Inherited from AccumulatorV2[IN, OUT]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped