Class IntValuesDistribution

java.lang.Object
org.gridgain.tpcds.qgen.distribution.IntValuesDistribution

public class IntValuesDistribution extends Object
  • Constructor Details

    • IntValuesDistribution

      public IntValuesDistribution(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 Details

    • buildIntValuesDistribution

      public static IntValuesDistribution buildIntValuesDistribution(String valuesAndWeightsFilename, int numValueFields, int numWeightFields)
    • getValueForIndexModSize

      public Integer getValueForIndexModSize(long index, int valueListIndex)
    • getValueAtIndex

      public Integer getValueAtIndex(int valueListIndex, int valueIndex)
    • pickRandomIndex

      public int pickRandomIndex(int weightListIndex, RandomNumberStream stream)
    • getSize

      public int getSize()