Skip to content

Commit d1aa8d8

Browse files
JerryLeadJerryLead
authored andcommitted
Perform checkpoint() on PartitionsRDD not VertexRDD and EdgeRDD themselves
1 parent ff08ed4 commit d1aa8d8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

graphx/src/main/scala/org/apache/spark/graphx/impl/EdgeRDDImpl.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ class EdgeRDDImpl[ED: ClassTag, VD: ClassTag] private[graphx] (
7070
this
7171
}
7272

73+
override def checkpoint() = {
74+
partitionsRDD.checkpoint()
75+
}
76+
7377
/** The number of edges in the RDD. */
7478
override def count(): Long = {
7579
partitionsRDD.map(_._2.size.toLong).reduce(_ + _)

graphx/src/main/scala/org/apache/spark/graphx/impl/VertexRDDImpl.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ class VertexRDDImpl[VD] private[graphx] (
7171
this
7272
}
7373

74+
override def checkpoint() = {
75+
partitionsRDD.checkpoint()
76+
}
77+
7478
/** The number of vertices in the RDD. */
7579
override def count(): Long = {
7680
partitionsRDD.map(_.size).reduce(_ + _)

0 commit comments

Comments
 (0)