Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/10978#discussion_r52273190
--- Diff:
core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala ---
@@ -774,6 +774,16 @@ class JavaSparkContext(val sc: SparkContext)
/** Cancel all jobs that have been scheduled or are running. */
def cancelAllJobs(): Unit = sc.cancelAllJobs()
+
+ /**
+ * Returns an Java map of JavaRDDs that have marked themselves as
persistent via cache() call.
+ * Note that this does not necessarily mean the caching or computation
was successful.
+ */
+ def getPersistentRDDs : JMap[java.lang.Integer, JavaRDD[_]] = {
--- End diff --
Nit: remove space before colon, and remove braces on the next line. I'm
sort of surprised if this works but let's see the tests.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]