class LongAccumulator extends AccumulatorV2[Long, Long]
An accumulator for computing sum, count, and average of 64-bit integers.
- Source
- AccumulatorV2.scala
- Since
- 2.0.0 
- Alphabetic
- By Inheritance
- LongAccumulator
- AccumulatorV2
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
-  new LongAccumulator()
Value Members
-   final  def !=(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-   final  def ##: Int- Definition Classes
- AnyRef → Any
 
-   final  def ==(arg0: Any): Boolean- Definition Classes
- AnyRef → Any
 
-    def add(v: Long): UnitAdds v to the accumulator, i.e. Adds v to the accumulator, i.e. increment sum by v and count by 1. - Since
- 2.0.0 
 
-    def add(v: Long): UnitAdds v to the accumulator, i.e. Adds v to the accumulator, i.e. increment sum by v and count by 1. - Definition Classes
- LongAccumulator → AccumulatorV2
- Since
- 2.0.0 
 
-   final  def asInstanceOf[T0]: T0- Definition Classes
- Any
 
-    def avg: DoubleReturns the average of elements added to the accumulator. Returns the average of elements added to the accumulator. - Since
- 2.0.0 
 
-    def clone(): AnyRef- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
 
-    def copy(): LongAccumulatorCreates a new copy of this accumulator. Creates a new copy of this accumulator. - Definition Classes
- LongAccumulator → AccumulatorV2
 
-    def copyAndReset(): AccumulatorV2[Long, Long]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 isZeroon the copy must return true.- Definition Classes
- AccumulatorV2
 
-    def count: LongReturns the number of elements added to the accumulator. Returns the number of elements added to the accumulator. - Since
- 2.0.0 
 
-   final  def eq(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-    def equals(arg0: AnyRef): Boolean- Definition Classes
- AnyRef → Any
 
-    def excludeFromHeartbeat: Boolean- Definition Classes
- AccumulatorV2
 
-   final  def getClass(): Class[_ <: AnyRef]- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
 
-    def hashCode(): Int- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
 
-   final  def id: LongReturns 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
 
-   final  def isInstanceOf[T0]: Boolean- Definition Classes
- Any
 
-   final  def isRegistered: BooleanReturns true if this accumulator has been registered. Returns true if this accumulator has been registered. - Definition Classes
- AccumulatorV2
- Note
- All accumulators must be registered before use, or it will throw exception. 
 
-    def isZero: BooleanReturns false if this accumulator has had any values added to it or the sum is non-zero. Returns false if this accumulator has had any values added to it or the sum is non-zero. - Definition Classes
- LongAccumulator → AccumulatorV2
- Since
- 2.0.0 
 
-    def merge(other: AccumulatorV2[Long, Long]): UnitMerges 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
- LongAccumulator → AccumulatorV2
 
-   final  def name: Option[String]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
 
-   final  def ne(arg0: AnyRef): Boolean- Definition Classes
- AnyRef
 
-   final  def notify(): Unit- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
 
-   final  def notifyAll(): Unit- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
 
-    def reset(): UnitResets this accumulator, which is zero value. Resets this accumulator, which is zero value. i.e. call isZeromust return true.- Definition Classes
- LongAccumulator → AccumulatorV2
 
-    def sum: LongReturns the sum of elements added to the accumulator. Returns the sum of elements added to the accumulator. - Since
- 2.0.0 
 
-   final  def synchronized[T0](arg0: => T0): T0- Definition Classes
- AnyRef
 
-    def toString(): String- Definition Classes
- AccumulatorV2 → AnyRef → Any
 
-    def value: LongDefines the current value of this accumulator Defines the current value of this accumulator - Definition Classes
- LongAccumulator → AccumulatorV2
 
-   final  def wait(arg0: Long, arg1: Int): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-   final  def wait(arg0: Long): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
 
-   final  def wait(): Unit- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
 
-    def withBufferSerialized(): AccumulatorV2[Long, Long]- Attributes
- protected
- Definition Classes
- AccumulatorV2
 
-   final  def writeReplace(): Any- Attributes
- protected
- Definition Classes
- AccumulatorV2
 
Deprecated Value Members
-    def finalize(): Unit- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- (Since version 9)