Class GeneratorColumnSchema
java.lang.Object
org.apache.druid.segment.generator.GeneratorColumnSchema
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumSEQUENTIAL: Generate integer or enumerated values in sequence. -
Constructor Summary
ConstructorsConstructorDescriptionGeneratorColumnSchema(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
Modifier and TypeMethodDescriptionbooleangetMean()getName()intgetType()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) makeGenerator(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) toString()
-
Constructor Details
-
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 Details
-
makeGenerator
-
getDimensionSchema
-
getName
-
getNullProbability
-
getType
-
isMetric
public boolean isMetric() -
getDistributionType
-
getRowSize
public int getRowSize() -
getEnumeratedValues
-
getEnumeratedProbabilities
-
getStartInt
-
getEndInt
-
getStartDouble
-
getEndDouble
-
getZipfExponent
-
getMean
-
getStandardDeviation
-
makeSequential
public static GeneratorColumnSchema makeSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt) -
makeEnumeratedSequential
-
makeDiscreteUniform
public static GeneratorColumnSchema makeDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt) -
makeEnumeratedDiscreteUniform
-
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
-
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
-
makeEnumerated
-
toString
-
equals
-
hashCode
public int hashCode()
-