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

    https://github.com/apache/spark/pull/16013#discussion_r89676506
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
    @@ -1184,8 +1187,13 @@ abstract class RDD[T: ClassTag](
        *
        * @note This method should only be used if the resulting map is 
expected to be small, as
        * the whole thing is loaded into the driver's memory.
    -   * To handle very large results, consider using rdd.map(x => (x, 
1L)).reduceByKey(_ + _), which
    -   * returns an RDD[T, Long] instead of a map.
    +   * To handle very large results, consider using
    +   *
    +   * {{{
    +   * rdd.map(x => (x, 1L)).reduceByKey(_ + _)
    +   * }}}
    --- End diff --
    
    - Scala
    
      <img width="595" alt="2016-11-27 3 13 26" 
src="https://cloud.githubusercontent.com/assets/6477701/20642332/8a64265e-b44f-11e6-9406-02d6c32ab710.png";>
    
    
    - Java
    
      <img width="656" alt="2016-11-27 3 13 08" 
src="https://cloud.githubusercontent.com/assets/6477701/20642333/8cf8f728-b44f-11e6-9019-1d773244aee7.png";>



---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to