Class IntValuesDistribution
java.lang.Object
org.gridgain.tpcds.qgen.distribution.IntValuesDistribution
-
Constructor Summary
ConstructorsConstructorDescriptionIntValuesDistribution(com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<Integer>> valuesLists, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<Integer>> weightsLists) -
Method Summary
Modifier and TypeMethodDescriptionstatic IntValuesDistributionbuildIntValuesDistribution(String valuesAndWeightsFilename, int numValueFields, int numWeightFields) intgetSize()getValueAtIndex(int valueListIndex, int valueIndex) getValueForIndexModSize(long index, int valueListIndex) intpickRandomIndex(int weightListIndex, RandomNumberStream stream)
-
Constructor Details
-
IntValuesDistribution
-
-
Method Details
-
buildIntValuesDistribution
public static IntValuesDistribution buildIntValuesDistribution(String valuesAndWeightsFilename, int numValueFields, int numWeightFields) -
getValueForIndexModSize
-
getValueAtIndex
-
pickRandomIndex
-
getSize
public int getSize()
-