You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by ScrapCodes <gi...@git.apache.org> on 2014/09/01 11:14:20 UTC

[GitHub] spark pull request: SPARK-2895: Add mapPartitionsWithContext relat...

Github user ScrapCodes commented on a diff in the pull request:

    https://github.com/apache/spark/pull/2194#discussion_r16946230
  
    --- Diff: core/src/main/scala/org/apache/spark/api/java/JavaRDDLike.scala ---
    @@ -186,6 +186,56 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends Serializable {
       }
     
       /**
    +   * :: DeveloperApi ::
    +   * Return a new RDD by applying a function to each partition of this RDD. This is a variant of
    +   * mapPartitions that also passes the TaskContext into the closure.
    +   *
    +   * `preservesPartitioning` indicates whether the input function preserves the partitioner, which
    +   * should be `false` unless this is a pair RDD and the input function doesn't modify the keys.
    +   */
    +  @DeveloperApi
    +  def mapPartitionsWithContext[R](
    +                                   f: JFunction2[TaskContext, java.util.Iterator[T], java.util.Iterator[R]],
    --- End diff --
    
    Wrong indentation.


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

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