Skip to content

Commit 2d8e0a0

Browse files
ScrapCodesrxin
authored andcommitted
SPARK-1164 Deprecated reduceByKeyToDriver as it is an alias for reduceByKeyLocally
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
1 parent 181ec50 commit 2d8e0a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ class PairRDDFunctions[K: ClassTag, V: ClassTag](self: RDD[(K, V)])
193193
}
194194

195195
/** Alias for reduceByKeyLocally */
196+
@deprecated("Use reduceByKeyLocally", "1.0.0")
196197
def reduceByKeyToDriver(func: (V, V) => V): Map[K, V] = reduceByKeyLocally(func)
197198

198199
/** Count the number of elements for each key, and return the result to the master as a Map. */

0 commit comments

Comments
 (0)