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

    https://github.com/apache/spark/pull/916#discussion_r13209614
  
    --- Diff: core/src/main/scala/org/apache/spark/rdd/RDD.scala ---
    @@ -379,8 +379,17 @@ abstract class RDD[T: ClassTag](
         }.toArray
       }
     
    -  def takeSample(withReplacement: Boolean, num: Int, seed: Long = 
Utils.random.nextLong): Array[T] =
    -  {
    +  /**
    +   * Return a fixed-size sampled subset of this RDD in an array
    +   *
    +   * @param withReplacement whether sampling is done with replacement
    +   * @param num size of the returned sample
    +   * @param seed seed for the random number generator
    +   * @return sample of specified size in an array
    +   */
    +  def takeSample(withReplacement: Boolean,
    +                 num: Int,
    --- End diff --
    
    use 4-space 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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to