Package org.apache.spark.util
Class MutablePair<T1,T2>
Object
org.apache.spark.util.MutablePair<T1,T2>
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Product2<T1,
,T2> scala.Serializable
public class MutablePair<T1,T2>
extends Object
implements scala.Product2<T1,T2>, scala.Product, scala.Serializable
:: DeveloperApi ::
A tuple of 2 elements. This can be used as an alternative to Scala's Tuple2 when we want to
minimize object allocation.
param: _1 Element 1 of this MutablePair param: _2 Element 2 of this MutablePair
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface scala.Equals
equals
Methods inherited from interface scala.Product
productIterator, productPrefix
Methods inherited from interface scala.Product2
_1$mcD$sp, _1$mcI$sp, _1$mcJ$sp, _2$mcD$sp, _2$mcI$sp, _2$mcJ$sp, productArity, productElement
-
Constructor Details
-
MutablePair
-
MutablePair
public MutablePair()No-arg constructor for serialization
-
-
Method Details