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
  • Loading branch information
mengxr authored and rxin committed Feb 13, 2014
1 parent 2bea070 commit 7e29e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class PartitionwiseSampledRDDPartition(val prev: Partition, val seed: Long)
class PartitionwiseSampledRDD[T: ClassTag, U: ClassTag](
prev: RDD[T],
sampler: RandomSampler[T, U],
seed: Long = System.nanoTime)
@transient seed: Long = System.nanoTime)
extends RDD[U](prev) {

override def getPartitions: Array[Partition] = {
Expand Down
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 7e29e02

Please sign in to comment.