spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewor14 <...@git.apache.org>
Subject [GitHub] spark pull request: [SPARK-1132] Persisting Web UI through refacto...
Date Wed, 12 Mar 2014 03:27:11 GMT
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/42#discussion_r10504474
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/StorageUtils.scala ---
    @@ -17,13 +17,17 @@
     
     package org.apache.spark.storage
     
    +import scala.collection.Map
    +import scala.collection.mutable
    +
     import org.apache.spark.SparkContext
    -import org.apache.spark.storage.BlockManagerMasterActor.BlockStatus
     import org.apache.spark.util.Utils
     
     private[spark]
    -case class StorageStatus(blockManagerId: BlockManagerId, maxMem: Long,
    -  blocks: Map[BlockId, BlockStatus]) {
    +class StorageStatus(
    +    val blockManagerId: BlockManagerId,
    +    val maxMem: Long,
    +    val blocks: mutable.Map[BlockId, BlockStatus] = mutable.Map.empty) {
    --- End diff --
    
    No longer a case class, because blocks is now mutable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message