Permalink
Browse files

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

…eByKeyLocally

Author: Prashant Sharma <prashant.s@imaginea.com>

Closes #72 from ScrapCodes/SPARK-1164/deprecate-reducebykeytodriver and squashes the following commits:

ee521cd [Prashant Sharma] SPARK-1164 Deprecated reduceByKeyToDriver as it is an alias for reduceByKeyLocally
  • Loading branch information...
ScrapCodes authored and rxin committed Mar 4, 2014
1 parent 181ec50 commit 2d8e0a062cef878bcc878e4825a5771d35f0509f
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 2d8e0a0

Please sign in to comment.