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

    https://github.com/apache/spark/pull/16013#discussion_r89675432
  
    --- Diff: core/src/main/scala/org/apache/spark/api/java/JavaRDD.scala ---
    @@ -103,7 +103,8 @@ class JavaRDD[T](val rdd: RDD[T])(implicit val 
classTag: ClassTag[T])
        * @param withReplacement can elements be sampled multiple times 
(replaced when sampled out)
        * @param fraction expected size of the sample as a fraction of this 
RDD's size
        *  without replacement: probability that each element is chosen; 
fraction must be [0, 1]
    -   *  with replacement: expected number of times each element is chosen; 
fraction must be >= 0
    +   *  with replacement: expected number of times each element is chosen; 
fraction must be greater
    +   *  than or equal to 0
    --- End diff --
    
    I can work around this to `{@code >=}` if this looks too verbose.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to