Package org.apache.spark
Class Aggregator<K,V,C>  
Object
org.apache.spark.Aggregator<K,V,C>  
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
:: DeveloperApi ::
 A set of functions used to aggregate data.
 
param: createCombiner function to create the initial value of the aggregation. param: mergeValue function to merge a new value into the aggregation result. param: mergeCombiners function to merge outputs from multiple mergeValue function.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncombineCombinersByKey(scala.collection.Iterator<scala.Product2<K, C>> iter, TaskContext context) combineValuesByKey(scala.collection.Iterator<scala.Product2<K, V>> iter, TaskContext context) Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
Aggregator
 
- 
- 
Method Details- 
createCombiner
- 
mergeValue
- 
mergeCombiners
- 
combineValuesByKeypublic scala.collection.Iterator<scala.Tuple2<K,C>> combineValuesByKey(scala.collection.Iterator<scala.Product2<K, V>> iter, TaskContext context) 
- 
combineCombinersByKeypublic scala.collection.Iterator<scala.Tuple2<K,C>> combineCombinersByKey(scala.collection.Iterator<scala.Product2<K, C>> iter, TaskContext context) 
 
-