spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [CORE][DOC] remove redundant comment
Date Wed, 14 Sep 2016 08:49:18 GMT
Repository: spark
Updated Branches:
  refs/heads/master b5bfcddbf -> 18b4f035f


[CORE][DOC] remove redundant comment

## What changes were proposed in this pull request?
In the comment, there is redundant `the estimated`.

This PR simply remove the redundant comment and adjusts format.

Author: wm624@hotmail.com <wm624@hotmail.com>

Closes #15091 from wangmiao1981/comment.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/18b4f035
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/18b4f035
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/18b4f035

Branch: refs/heads/master
Commit: 18b4f035f40359b3164456d0dab52dbc762ea3b4
Parents: b5bfcdd
Author: wm624@hotmail.com <wm624@hotmail.com>
Authored: Wed Sep 14 09:49:15 2016 +0100
Committer: Sean Owen <sowen@cloudera.com>
Committed: Wed Sep 14 09:49:15 2016 +0100

----------------------------------------------------------------------
 .../apache/spark/storage/memory/MemoryStore.scala | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/18b4f035/core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala b/core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
index 1a3bf2b..baa3fde 100644
--- a/core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
+++ b/core/src/main/scala/org/apache/spark/storage/memory/MemoryStore.scala
@@ -169,12 +169,12 @@ private[spark] class MemoryStore(
    * temporary unroll memory used during the materialization is "transferred" to storage
memory,
    * so we won't acquire more memory than is actually needed to store the block.
    *
-   * @return in case of success, the estimated the estimated size of the stored data. In
case of
-   *         failure, return an iterator containing the values of the block. The returned
iterator
-   *         will be backed by the combination of the partially-unrolled block and the remaining
-   *         elements of the original input iterator. The caller must either fully consume
this
-   *         iterator or call `close()` on it in order to free the storage memory consumed
by the
-   *         partially-unrolled block.
+   * @return in case of success, the estimated size of the stored data. In case of failure,
return
+   *         an iterator containing the values of the block. The returned iterator will be
backed
+   *         by the combination of the partially-unrolled block and the remaining elements
of the
+   *         original input iterator. The caller must either fully consume this iterator
or call
+   *         `close()` on it in order to free the storage memory consumed by the partially-unrolled
+   *         block.
    */
   private[storage] def putIteratorAsValues[T](
       blockId: BlockId,
@@ -298,9 +298,9 @@ private[spark] class MemoryStore(
    * temporary unroll memory used during the materialization is "transferred" to storage
memory,
    * so we won't acquire more memory than is actually needed to store the block.
    *
-   * @return in case of success, the estimated the estimated size of the stored data. In
case of
-   *         failure, return a handle which allows the caller to either finish the serialization
-   *         by spilling to disk or to deserialize the partially-serialized block and reconstruct
+   * @return in case of success, the estimated size of the stored data. In case of failure,
+   *         return a handle which allows the caller to either finish the serialization by
+   *         spilling to disk or to deserialize the partially-serialized block and reconstruct
    *         the original input iterator. The caller must either fully consume this result
    *         iterator or call `discard()` on it in order to free the storage memory consumed
by the
    *         partially-unrolled block.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message