Skip to content

Commit

Permalink
Merge pull request apache#591 from mengxr/transient-new.
Browse files Browse the repository at this point in the history
SPARK-1076: [Fix apache#578] add @transient to some vals

I'll try to be more careful next time.

Author: Xiangrui Meng <[email protected]>

Closes apache#591 and squashes the following commits:

2b4f044 [Xiangrui Meng] add @transient to prev in ZippedWithIndexRDD add @transient to seed in PartitionwiseSampledRDD

Conflicts:
	core/src/main/scala/org/apache/spark/rdd/PartitionwiseSampledRDD.scala
  • Loading branch information
mengxr authored and James Z.M. Gao committed Mar 11, 2014
1 parent fc8b10d commit 9fe1af6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ZippedWithIndexRDDPartition(val prev: Partition, val startIndex: Long)
* @tparam T parent RDD item type
*/
private[spark]
class ZippedWithIndexRDD[T: ClassTag](prev: RDD[T]) extends RDD[(T, Long)](prev) {
class ZippedWithIndexRDD[T: ClassTag](@transient prev: RDD[T]) extends RDD[(T, Long)](prev) {

override def getPartitions: Array[Partition] = {
val n = prev.partitions.size
Expand Down

0 comments on commit 9fe1af6

Please sign in to comment.