Skip to content

Commit

Permalink
Perform checkpoint() on PartitionsRDD not VertexRDD and EdgeRDD thems…
Browse files Browse the repository at this point in the history
…elves
  • Loading branch information
JerryLead authored and JerryLead committed Dec 2, 2014
1 parent ff08ed4 commit d1aa8d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ class EdgeRDDImpl[ED: ClassTag, VD: ClassTag] private[graphx] (
this
}

override def checkpoint() = {
partitionsRDD.checkpoint()
}

/** The number of edges in the RDD. */
override def count(): Long = {
partitionsRDD.map(_._2.size.toLong).reduce(_ + _)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ class VertexRDDImpl[VD] private[graphx] (
this
}

override def checkpoint() = {
partitionsRDD.checkpoint()
}

/** The number of vertices in the RDD. */
override def count(): Long = {
partitionsRDD.map(_.size).reduce(_ + _)
Expand Down

0 comments on commit d1aa8d8

Please sign in to comment.