@PublicEvolving public enum SamplingMethod extends Enum<SamplingMethod>
SamplingMethod defines different types of sampling methods available.| Enum Constant and Description |
|---|
BERNOULLI |
FIRST |
NONE |
POISSON |
RESERVOIR |
| Modifier and Type | Method and Description |
|---|---|
static SamplingMethod |
fromString(String from)
Provided the sampling method as string, determine the enum type of
SamplingMethod. |
String |
getMethod() |
static SamplingMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SamplingMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamplingMethod NONE
public static final SamplingMethod FIRST
public static final SamplingMethod POISSON
public static final SamplingMethod BERNOULLI
public static final SamplingMethod RESERVOIR
public static SamplingMethod[] values()
for (SamplingMethod c : SamplingMethod.values()) System.out.println(c);
public static SamplingMethod valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getMethod()
public static SamplingMethod fromString(String from)
SamplingMethod.from - string for which the SamplingMethod instance need to be determined.Copyright © 2023 CDAP Licensed under the Apache License, Version 2.0.