org.apache.spark.util
Class Vector.VectorAccumParam$

Object
  extended by org.apache.spark.util.Vector.VectorAccumParam$
All Implemented Interfaces:
java.io.Serializable, AccumulableParam<Vector,Vector>, AccumulatorParam<Vector>
Enclosing class:
Vector

public static class Vector.VectorAccumParam$
extends Object
implements AccumulatorParam<Vector>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.spark.AccumulatorParam
AccumulatorParam.DoubleAccumulatorParam$, AccumulatorParam.FloatAccumulatorParam$, AccumulatorParam.IntAccumulatorParam$, AccumulatorParam.LongAccumulatorParam$
 
Field Summary
static Vector.VectorAccumParam$ MODULE$
          Static reference to the singleton instance of this Scala object.
 
Constructor Summary
Vector.VectorAccumParam$()
           
 
Method Summary
 Vector addInPlace(Vector t1, Vector t2)
          Merge two accumulated values together.
 Vector zero(Vector initialValue)
          Return the "zero" (identity) value for an accumulator type, given its initial value.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.spark.AccumulatorParam
addAccumulator
 

Field Detail

MODULE$

public static final Vector.VectorAccumParam$ MODULE$
Static reference to the singleton instance of this Scala object.

Constructor Detail

Vector.VectorAccumParam$

public Vector.VectorAccumParam$()
Method Detail

addInPlace

public Vector addInPlace(Vector t1,
                         Vector t2)
Description copied from interface: AccumulableParam
Merge two accumulated values together. Is allowed to modify and return the first value for efficiency (to avoid allocating objects).

Specified by:
addInPlace in interface AccumulableParam<Vector,Vector>
Parameters:
t1 - one set of accumulated data
t2 - another set of accumulated data
Returns:
both data sets merged together

zero

public Vector zero(Vector initialValue)
Description copied from interface: AccumulableParam
Return the "zero" (identity) value for an accumulator type, given its initial value. For example, if R was a vector of N dimensions, this would return a vector of N zeroes.

Specified by:
zero in interface AccumulableParam<Vector,Vector>
Parameters:
initialValue - (undocumented)
Returns:
(undocumented)