Enum SampleOperator.Methods
- java.lang.Object
-
- java.lang.Enum<SampleOperator.Methods>
-
- org.apache.wayang.basic.operators.SampleOperator.Methods
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SampleOperator.Methods>
- Enclosing class:
- SampleOperator<Type>
public static enum SampleOperator.Methods extends java.lang.Enum<SampleOperator.Methods>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
Represents an arbitrary sampling method.BERNOULLI
Bernoulli sampling.RANDOM
Randomly pick a sample.RESERVOIR
Reservoir sampling.SHUFFLE_PARTITION_FIRST
Shuffle a data partition first, then sequentially take the sample from this partition.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SampleOperator.Methods
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SampleOperator.Methods[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final SampleOperator.Methods ANY
Represents an arbitrary sampling method.
-
BERNOULLI
public static final SampleOperator.Methods BERNOULLI
Bernoulli sampling.
-
RANDOM
public static final SampleOperator.Methods RANDOM
Randomly pick a sample.
-
SHUFFLE_PARTITION_FIRST
public static final SampleOperator.Methods SHUFFLE_PARTITION_FIRST
Shuffle a data partition first, then sequentially take the sample from this partition.
-
RESERVOIR
public static final SampleOperator.Methods RESERVOIR
Reservoir sampling.
-
-
Method Detail
-
values
public static SampleOperator.Methods[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SampleOperator.Methods c : SampleOperator.Methods.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SampleOperator.Methods valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-