diff options
author | tedyu <yuzhihong@gmail.com> | 2015-11-09 10:07:58 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-11-09 10:07:58 -0800 |
commit | 404a28f4edd09cf17361dcbd770e4cafde51bf6d (patch) | |
tree | 0522f832f61c1053c5e43116d25e7c0421eac795 /core/src/main | |
parent | 08a7a836c393d6a62b9b216eeb01fad0b90b6c52 (diff) | |
download | spark-404a28f4edd09cf17361dcbd770e4cafde51bf6d.tar.gz spark-404a28f4edd09cf17361dcbd770e4cafde51bf6d.tar.bz2 spark-404a28f4edd09cf17361dcbd770e4cafde51bf6d.zip |
[SPARK-11112] Fix Scala 2.11 compilation error in RDDInfo.scala
As shown in https://amplab.cs.berkeley.edu/jenkins/view/Spark-QA-Compile/job/Spark-Master-Scala211-Compile/1946/console , compilation fails with:
```
[error] /home/jenkins/workspace/Spark-Master-Scala211-Compile/core/src/main/scala/org/apache/spark/storage/RDDInfo.scala:25: in class RDDInfo, multiple overloaded alternatives of constructor RDDInfo define default arguments.
[error] class RDDInfo(
[error]
```
This PR tries to fix the compilation error
Author: tedyu <yuzhihong@gmail.com>
Closes #9538 from tedyu/master.
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/org/apache/spark/storage/RDDInfo.scala | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/core/src/main/scala/org/apache/spark/storage/RDDInfo.scala b/core/src/main/scala/org/apache/spark/storage/RDDInfo.scala index 3fa209b924..87c1b981e7 100644 --- a/core/src/main/scala/org/apache/spark/storage/RDDInfo.scala +++ b/core/src/main/scala/org/apache/spark/storage/RDDInfo.scala @@ -28,20 +28,10 @@ class RDDInfo( val numPartitions: Int, var storageLevel: StorageLevel, val parentIds: Seq[Int], - val callSite: CallSite, + val callSite: CallSite = CallSite.empty, val scope: Option[RDDOperationScope] = None) extends Ordered[RDDInfo] { - def this( - id: Int, - name: String, - numPartitions: Int, - storageLevel: StorageLevel, - parentIds: Seq[Int], - scope: Option[RDDOperationScope] = None) { - this(id, name, numPartitions, storageLevel, parentIds, CallSite.empty, scope) - } - var numCachedPartitions = 0 var memSize = 0L var diskSize = 0L |