T - @Internal
public class SampleWithFraction<T>
extends org.apache.flink.api.common.functions.RichMapPartitionFunction<T,T>
| 构造器和说明 | 
|---|
| SampleWithFraction(boolean withReplacement,
                  double fraction,
                  long seed)Create a function instance of SampleWithFraction. | 
public SampleWithFraction(boolean withReplacement,
                          double fraction,
                          long seed)
withReplacement - Whether element can be selected more than once.fraction - Probability that each element is selected.seed - random number generator seed.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.