Skip to content
Snippets Groups Projects
Commit 3cda14af authored by Stephen Haberman's avatar Stephen Haberman
Browse files

Add number of splits.

parent 951cfd9b
No related branches found
No related tags found
No related merge requests found
......@@ -642,7 +642,8 @@ abstract class RDD[T: ClassManifest](
/** A description of this RDD and its recursive dependencies for debugging. */
def toDebugString(): String = {
def debugString(rdd: RDD[_], prefix: String = ""): Seq[String] = {
Seq(prefix + rdd) ++ rdd.dependencies.flatMap(d => debugString(d.rdd, prefix + " "))
Seq(prefix + rdd + " (" + rdd.splits.size + " splits)") ++
rdd.dependencies.flatMap(d => debugString(d.rdd, prefix + " "))
}
debugString(this).mkString("\n")
}
......
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