Skip to content
Snippets Groups Projects
Commit 440e531a authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #278 from MLnick/java-python-tostring

Add toString to Java RDD, and __repr__ to Python RDD

Addresses [SPARK-992](https://spark-project.atlassian.net/browse/SPARK-992)
parents d8d3f3e6 a76f5341
No related branches found
No related tags found
No related merge requests found
......@@ -125,6 +125,8 @@ JavaRDDLike[T, JavaRDD[T]] {
*/
def subtract(other: JavaRDD[T], p: Partitioner): JavaRDD[T] =
wrapRDD(rdd.subtract(other, p))
override def toString = rdd.toString
}
object JavaRDD {
......
......@@ -54,6 +54,9 @@ class RDD(object):
self.ctx = ctx
self._jrdd_deserializer = jrdd_deserializer
def __repr__(self):
return self._jrdd.toString()
@property
def context(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment