Skip to content

Commit

Permalink
In EdgeRDDImple, VertexRDDImpl, added transient back to partitionsRDD…
Browse files Browse the repository at this point in the history
…, and made isCheckpointed check firstParent instead of partitionsRDD
  • Loading branch information
jkbradley committed Feb 2, 2015
1 parent 695b7a3 commit 250810e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import org.apache.spark.storage.StorageLevel
import org.apache.spark.graphx._

class EdgeRDDImpl[ED: ClassTag, VD: ClassTag] private[graphx] (
override val partitionsRDD: RDD[(PartitionID, EdgePartition[ED, VD])],
@transient override val partitionsRDD: RDD[(PartitionID, EdgePartition[ED, VD])],
val targetStorageLevel: StorageLevel = StorageLevel.MEMORY_ONLY)
extends EdgeRDD[ED](partitionsRDD.context, List(new OneToOneDependency(partitionsRDD))) {

Expand Down Expand Up @@ -75,7 +75,7 @@ class EdgeRDDImpl[ED: ClassTag, VD: ClassTag] private[graphx] (
}

override def isCheckpointed: Boolean = {
partitionsRDD.isCheckpointed
firstParent[(PartitionID, EdgePartition[ED, VD])].isCheckpointed
}

override def getCheckpointFile: Option[String] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import org.apache.spark.storage.StorageLevel
import org.apache.spark.graphx._

class VertexRDDImpl[VD] private[graphx] (
val partitionsRDD: RDD[ShippableVertexPartition[VD]],
@transient val partitionsRDD: RDD[ShippableVertexPartition[VD]],
val targetStorageLevel: StorageLevel = StorageLevel.MEMORY_ONLY)
(implicit override protected val vdTag: ClassTag[VD])
extends VertexRDD[VD](partitionsRDD.context, List(new OneToOneDependency(partitionsRDD))) {
Expand Down Expand Up @@ -76,7 +76,7 @@ class VertexRDDImpl[VD] private[graphx] (
}

override def isCheckpointed: Boolean = {
partitionsRDD.isCheckpointed
firstParent.isCheckpointed
}

override def getCheckpointFile: Option[String] = {
Expand Down

0 comments on commit 250810e

Please sign in to comment.