Enum GeneratorColumnSchema.ValueDistribution
- java.lang.Object
-
- java.lang.Enum<GeneratorColumnSchema.ValueDistribution>
-
- org.apache.druid.segment.generator.GeneratorColumnSchema.ValueDistribution
-
- All Implemented Interfaces:
Serializable
,Comparable<GeneratorColumnSchema.ValueDistribution>
- Enclosing class:
- GeneratorColumnSchema
public static enum GeneratorColumnSchema.ValueDistribution extends Enum<GeneratorColumnSchema.ValueDistribution>
SEQUENTIAL: Generate integer or enumerated values in sequence. Not random. DISCRETE_UNIFORM: Discrete uniform distribution, generates integers or enumerated values. ROUNDED_NORMAL: Discrete distribution that rounds sample values from an underlying normal distribution ZIPF: Discrete Zipf distribution. Lower numbers have higher probability. Can also generate Zipf distribution from a list of enumerated values. LAZY_ZIPF: ZIPF but lazy evaluated for large cardinalities LAZY_DISCRETE_UNIFORM: DISCRETE_UNIFORM but lazy evaluated for large cardinalities ENUMERATED: Discrete distribution, generated from lists of values and associated probabilities. NORMAL: Continuous normal distribution. UNIFORM: Continuous uniform distribution.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCRETE_UNIFORM
ENUMERATED
LAZY_DISCRETE_UNIFORM
LAZY_ZIPF
NORMAL
ROUNDED_NORMAL
SEQUENTIAL
UNIFORM
ZIPF
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeneratorColumnSchema.ValueDistribution
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeneratorColumnSchema.ValueDistribution[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEQUENTIAL
public static final GeneratorColumnSchema.ValueDistribution SEQUENTIAL
-
DISCRETE_UNIFORM
public static final GeneratorColumnSchema.ValueDistribution DISCRETE_UNIFORM
-
ROUNDED_NORMAL
public static final GeneratorColumnSchema.ValueDistribution ROUNDED_NORMAL
-
ZIPF
public static final GeneratorColumnSchema.ValueDistribution ZIPF
-
ENUMERATED
public static final GeneratorColumnSchema.ValueDistribution ENUMERATED
-
LAZY_ZIPF
public static final GeneratorColumnSchema.ValueDistribution LAZY_ZIPF
-
LAZY_DISCRETE_UNIFORM
public static final GeneratorColumnSchema.ValueDistribution LAZY_DISCRETE_UNIFORM
-
UNIFORM
public static final GeneratorColumnSchema.ValueDistribution UNIFORM
-
NORMAL
public static final GeneratorColumnSchema.ValueDistribution NORMAL
-
-
Method Detail
-
values
public static GeneratorColumnSchema.ValueDistribution[] 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 (GeneratorColumnSchema.ValueDistribution c : GeneratorColumnSchema.ValueDistribution.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeneratorColumnSchema.ValueDistribution valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-