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

    https://github.com/apache/flink/pull/1110#discussion_r39002678
  
    --- Diff: 
flink-java/src/main/java/org/apache/flink/api/java/sampling/BernoulliSampler.java
 ---
    @@ -28,12 +28,16 @@
      * Bernoulli experiment.
      *
      * @param <T> The type of sample.
    + * @see <a 
href="http://erikerlandson.github.io/blog/2014/09/11/faster-random-samples-with-gap-sampling/";>Gap
 Sampling</a>
      */
     public class BernoulliSampler<T> extends RandomSampler<T> {
        
        private final double fraction;
        private final Random random;
        
    +   //THRESHOLD      is a tuning parameter for choosing sampling method 
according to the fraction
    --- End diff --
    
    Format: A blank after // and no extra blanks after THRESHOULD, and a period 
at the stop.


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