Class GeneratorColumnSchema
- java.lang.Object
-
- org.apache.druid.segment.generator.GeneratorColumnSchema
-
public class GeneratorColumnSchema extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneratorColumnSchema.ValueDistributionSEQUENTIAL: Generate integer or enumerated values in sequence.
-
Constructor Summary
Constructors Constructor Description GeneratorColumnSchema(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, GeneratorColumnSchema.ValueDistribution distributionType, List<Object> enumeratedValues, List<Double> enumeratedProbabilities, Integer startInt, Integer endInt, Double startDouble, Double endDouble, Double zipfExponent, Double mean, Double standardDeviation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)DimensionSchemagetDimensionSchema()GeneratorColumnSchema.ValueDistributiongetDistributionType()DoublegetEndDouble()IntegergetEndInt()List<Double>getEnumeratedProbabilities()List<Object>getEnumeratedValues()DoublegetMean()StringgetName()DoublegetNullProbability()intgetRowSize()DoublegetStandardDeviation()DoublegetStartDouble()IntegergetStartInt()ValueTypegetType()DoublegetZipfExponent()inthashCode()booleanisMetric()static GeneratorColumnSchemamakeContinuousUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, double startDouble, double endDouble)static GeneratorColumnSchemamakeDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)static GeneratorColumnSchemamakeEnumerated(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues, List<Double> enumeratedProbabilities)static GeneratorColumnSchemamakeEnumeratedDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues)static GeneratorColumnSchemamakeEnumeratedSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues)static GeneratorColumnSchemamakeEnumeratedZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues, Double zipfExponent)ColumnValueGeneratormakeGenerator(long seed)static GeneratorColumnSchemamakeLazyDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)static GeneratorColumnSchemamakeLazyZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt, Double zipfExponent)static GeneratorColumnSchemamakeNormal(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, Double mean, Double standardDeviation, boolean useRounding)static GeneratorColumnSchemamakeSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)static GeneratorColumnSchemamakeZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt, Double zipfExponent)StringtoString()
-
-
-
Constructor Detail
-
GeneratorColumnSchema
public GeneratorColumnSchema(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, GeneratorColumnSchema.ValueDistribution distributionType, List<Object> enumeratedValues, List<Double> enumeratedProbabilities, Integer startInt, Integer endInt, Double startDouble, Double endDouble, Double zipfExponent, Double mean, Double standardDeviation)
-
-
Method Detail
-
makeGenerator
public ColumnValueGenerator makeGenerator(long seed)
-
getDimensionSchema
public DimensionSchema getDimensionSchema()
-
getName
public String getName()
-
getNullProbability
public Double getNullProbability()
-
getType
public ValueType getType()
-
isMetric
public boolean isMetric()
-
getDistributionType
public GeneratorColumnSchema.ValueDistribution getDistributionType()
-
getRowSize
public int getRowSize()
-
getStartInt
public Integer getStartInt()
-
getEndInt
public Integer getEndInt()
-
getStartDouble
public Double getStartDouble()
-
getEndDouble
public Double getEndDouble()
-
getZipfExponent
public Double getZipfExponent()
-
getMean
public Double getMean()
-
getStandardDeviation
public Double getStandardDeviation()
-
makeSequential
public static GeneratorColumnSchema makeSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)
-
makeEnumeratedSequential
public static GeneratorColumnSchema makeEnumeratedSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues)
-
makeDiscreteUniform
public static GeneratorColumnSchema makeDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)
-
makeEnumeratedDiscreteUniform
public static GeneratorColumnSchema makeEnumeratedDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues)
-
makeLazyDiscreteUniform
public static GeneratorColumnSchema makeLazyDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)
-
makeContinuousUniform
public static GeneratorColumnSchema makeContinuousUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, double startDouble, double endDouble)
-
makeNormal
public static GeneratorColumnSchema makeNormal(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, Double mean, Double standardDeviation, boolean useRounding)
-
makeZipf
public static GeneratorColumnSchema makeZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt, Double zipfExponent)
-
makeLazyZipf
public static GeneratorColumnSchema makeLazyZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt, Double zipfExponent)
-
makeEnumeratedZipf
public static GeneratorColumnSchema makeEnumeratedZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues, Double zipfExponent)
-
makeEnumerated
public static GeneratorColumnSchema makeEnumerated(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues, List<Double> enumeratedProbabilities)
-
-