spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mateiz <...@git.apache.org>
Subject [GitHub] spark pull request: Patch for SPARK-942
Date Mon, 03 Mar 2014 05:54:19 GMT
Github user mateiz commented on a diff in the pull request:

    https://github.com/apache/spark/pull/50#discussion_r10201307
  
    --- Diff: core/src/main/scala/org/apache/spark/storage/MemoryStore.scala ---
    @@ -59,24 +59,45 @@ private class MemoryStore(blockManager: BlockManager, maxMemory: Long)
           elements ++= values
           val sizeEstimate = SizeEstimator.estimate(elements.asInstanceOf[AnyRef])
           tryToPut(blockId, elements, sizeEstimate, true)
    +      PutResult(sizeEstimate, Left(values.toIterator))
         } else {
           tryToPut(blockId, bytes, bytes.limit, false)
    +      PutResult(bytes.limit(), Right(bytes.duplicate()))
    +    }
    +  }
    +
    +  override def putValues(
    +                          blockId: BlockId,
    +                          values: ArrayBuffer[Any],
    +                          level: StorageLevel,
    +                          returnValues: Boolean)
    +  : PutResult = {
    --- End diff --
    
    Same thing on formatting


---
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