Permalink
Browse files

SPARK-1164 Deprecated reduceByKeyToDriver as it is an alias for reduc…

…eByKeyLocally
  • Loading branch information...
1 parent 181ec50 commit ee521cd1809d36216e4392880163e75e5aed5150 @ScrapCodes ScrapCodes committed Mar 4, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
@@ -193,6 +193,7 @@ class PairRDDFunctions[K: ClassTag, V: ClassTag](self: RDD[(K, V)])
}
/** Alias for reduceByKeyLocally */
+ @deprecated("Use reduceByKeyLocally", "1.0.0")
def reduceByKeyToDriver(func: (V, V) => V): Map[K, V] = reduceByKeyLocally(func)
/** Count the number of elements for each key, and return the result to the master as a Map. */

0 comments on commit ee521cd

Please sign in to comment.