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
,scala.Serializable
:: 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 Summary
-
Method Summary
Modifier and TypeMethodDescriptioncombineCombinersByKey
(scala.collection.Iterator<? extends scala.Product2<K, C>> iter, TaskContext context) combineValuesByKey
(scala.collection.Iterator<? extends scala.Product2<K, V>> iter, TaskContext context) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
Aggregator
-
-
Method Details
-
createCombiner
-
mergeValue
-
mergeCombiners
-
combineValuesByKey
public scala.collection.Iterator<scala.Tuple2<K,C>> combineValuesByKey(scala.collection.Iterator<? extends scala.Product2<K, V>> iter, TaskContext context) -
combineCombinersByKey
public scala.collection.Iterator<scala.Tuple2<K,C>> combineCombinersByKey(scala.collection.Iterator<? extends scala.Product2<K, C>> iter, TaskContext context)
-