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 class
GeneratorColumnSchema.ValueDistribution
SEQUENTIAL: 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 boolean
equals(Object o)
DimensionSchema
getDimensionSchema()
GeneratorColumnSchema.ValueDistribution
getDistributionType()
Double
getEndDouble()
Integer
getEndInt()
List<Double>
getEnumeratedProbabilities()
List<Object>
getEnumeratedValues()
Double
getMean()
String
getName()
Double
getNullProbability()
int
getRowSize()
Double
getStandardDeviation()
Double
getStartDouble()
Integer
getStartInt()
ValueType
getType()
Double
getZipfExponent()
int
hashCode()
boolean
isMetric()
static GeneratorColumnSchema
makeContinuousUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, double startDouble, double endDouble)
static GeneratorColumnSchema
makeDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)
static GeneratorColumnSchema
makeEnumerated(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues, List<Double> enumeratedProbabilities)
static GeneratorColumnSchema
makeEnumeratedDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues)
static GeneratorColumnSchema
makeEnumeratedSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues)
static GeneratorColumnSchema
makeEnumeratedZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, List<Object> enumeratedValues, Double zipfExponent)
ColumnValueGenerator
makeGenerator(long seed)
static GeneratorColumnSchema
makeLazyDiscreteUniform(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)
static GeneratorColumnSchema
makeLazyZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt, Double zipfExponent)
static GeneratorColumnSchema
makeNormal(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, Double mean, Double standardDeviation, boolean useRounding)
static GeneratorColumnSchema
makeSequential(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt)
static GeneratorColumnSchema
makeZipf(String name, ValueType type, boolean isMetric, int rowSize, Double nullProbability, int startInt, int endInt, Double zipfExponent)
String
toString()
-
-
-
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)
-
-