diff options
author | eklavya <sr.eklavya@gmail.com> | 2014-01-13 17:53:35 +0530 |
---|---|---|
committer | eklavya <sr.eklavya@gmail.com> | 2014-01-13 17:53:35 +0530 |
commit | aae8a014259b0ae71afd7052c8e22797cfebc82e (patch) | |
tree | 6bbb2988ac6b099afde1ed6605fb186982cf4cf7 | |
parent | e6ed13f255d70de422711b979447690cdab7423b (diff) | |
download | spark-aae8a014259b0ae71afd7052c8e22797cfebc82e.tar.gz spark-aae8a014259b0ae71afd7052c8e22797cfebc82e.tar.bz2 spark-aae8a014259b0ae71afd7052c8e22797cfebc82e.zip |
Added setter method setGenerator to JavaRDD.
-rw-r--r-- | core/src/main/scala/org/apache/spark/api/java/JavaRDD.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/api/java/JavaRDD.scala b/core/src/main/scala/org/apache/spark/api/java/JavaRDD.scala index 7d48ce01cf..6c91edaf5c 100644 --- a/core/src/main/scala/org/apache/spark/api/java/JavaRDD.scala +++ b/core/src/main/scala/org/apache/spark/api/java/JavaRDD.scala @@ -133,6 +133,11 @@ JavaRDDLike[T, JavaRDD[T]] { rdd.setName(name) this } + + /** Reset generator*/ + def setGenerator(_generator: String) = { + rdd.generator = _generator + } } object JavaRDD { |