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> 
public class MutablePair<T1,T2> 
extends Object
implements scala.Product2<T1,T2>, scala.Product, 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 SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.EqualsequalsMethods inherited from interface scala.ProductproductElementName, productElementNames, productIterator, productPrefixMethods 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
- 
MutablePairpublic MutablePair()No-arg constructor for serialization
 
- 
- 
Method Details