Skip to content

Commit

Permalink
SPARK-1164 Deprecated reduceByKeyToDriver as it is an alias for reduc…
Browse files Browse the repository at this point in the history
…eByKeyLocally

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

Closes apache#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 2d8e0a0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 2d8e0a0

Please sign in to comment.