diff options
author | Reynold Xin <rxin@apache.org> | 2013-12-02 21:24:44 -0800 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2013-12-02 21:24:44 -0800 |
commit | e34b4693d380c39d4a142515e416588e63d06297 (patch) | |
tree | 3e392daa0e75a0cfbeb3eda75d8f2d8b557bd05e | |
parent | 740922f25d5f81617fbe02c7bcd1610d6426bbef (diff) | |
download | spark-e34b4693d380c39d4a142515e416588e63d06297.tar.gz spark-e34b4693d380c39d4a142515e416588e63d06297.tar.bz2 spark-e34b4693d380c39d4a142515e416588e63d06297.zip |
Mark partitioner, name, and generator field in RDD as @transient.
-rw-r--r-- | core/src/main/scala/org/apache/spark/rdd/RDD.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/scala/org/apache/spark/rdd/RDD.scala b/core/src/main/scala/org/apache/spark/rdd/RDD.scala index 5b1285307d..96e4841c78 100644 --- a/core/src/main/scala/org/apache/spark/rdd/RDD.scala +++ b/core/src/main/scala/org/apache/spark/rdd/RDD.scala @@ -101,7 +101,7 @@ abstract class RDD[T: ClassManifest]( protected def getPreferredLocations(split: Partition): Seq[String] = Nil /** Optionally overridden by subclasses to specify how they are partitioned. */ - val partitioner: Option[Partitioner] = None + @transient val partitioner: Option[Partitioner] = None // ======================================================================= // Methods and fields available on all RDDs @@ -114,7 +114,7 @@ abstract class RDD[T: ClassManifest]( val id: Int = sc.newRddId() /** A friendly name for this RDD */ - var name: String = null + @transient var name: String = null /** Assign a name to this RDD */ def setName(_name: String) = { @@ -123,7 +123,7 @@ abstract class RDD[T: ClassManifest]( } /** User-defined generator of this RDD*/ - var generator = Utils.getCallSiteInfo.firstUserClass + @transient var generator = Utils.getCallSiteInfo.firstUserClass /** Reset generator*/ def setGenerator(_generator: String) = { |