diff options
author | Prashant Sharma <prashant.s@imaginea.com> | 2014-03-04 10:27:02 -0800 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-03-04 10:27:02 -0800 |
commit | 2d8e0a062cef878bcc878e4825a5771d35f0509f (patch) | |
tree | fb0815c86a59197cecdcdec6284a88954b7b95d3 /core | |
parent | 181ec5030792a10f3ce77e997d0e2eda9bcd6139 (diff) | |
download | spark-2d8e0a062cef878bcc878e4825a5771d35f0509f.tar.gz spark-2d8e0a062cef878bcc878e4825a5771d35f0509f.tar.bz2 spark-2d8e0a062cef878bcc878e4825a5771d35f0509f.zip |
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
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala b/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala index 5aa0b030db..2384c8f2b6 100644 --- a/core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala +++ b/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. */ |