aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala/org/apache/spark/SparkContext.scala
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2015-12-21 14:07:48 -0800
committerAndrew Or <andrew@databricks.com>2015-12-21 14:07:48 -0800
commita820ca19de1fb4daa01939a4b8bde8d874a7f3fc (patch)
tree29d6f28b3d72a63fd9c4fd42ab3673c2ea9ed04a /core/src/main/scala/org/apache/spark/SparkContext.scala
parentb0849b8aeafa801bb0561f1f6e46dc1d56c37c19 (diff)
downloadspark-a820ca19de1fb4daa01939a4b8bde8d874a7f3fc.tar.gz
spark-a820ca19de1fb4daa01939a4b8bde8d874a7f3fc.tar.bz2
spark-a820ca19de1fb4daa01939a4b8bde8d874a7f3fc.zip
[SPARK-2331] SparkContext.emptyRDD should return RDD[T] not EmptyRDD[T]
Author: Reynold Xin <rxin@databricks.com> Closes #10394 from rxin/SPARK-2331.
Diffstat (limited to 'core/src/main/scala/org/apache/spark/SparkContext.scala')
-rw-r--r--core/src/main/scala/org/apache/spark/SparkContext.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala
index 81a4d0a4d6..c4541aa376 100644
--- a/core/src/main/scala/org/apache/spark/SparkContext.scala
+++ b/core/src/main/scala/org/apache/spark/SparkContext.scala
@@ -1248,7 +1248,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
}
/** Get an RDD that has no partitions or elements. */
- def emptyRDD[T: ClassTag]: EmptyRDD[T] = new EmptyRDD[T](this)
+ def emptyRDD[T: ClassTag]: RDD[T] = new EmptyRDD[T](this)
// Methods for creating shared variables