Class FipsCountyDistribution
java.lang.Object
org.gridgain.tpcds.qgen.distribution.FipsCountyDistribution
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFipsCountyDistribution(com.google.common.collect.ImmutableList<String> counties, com.google.common.collect.ImmutableList<String> stateAbbreviations, com.google.common.collect.ImmutableList<Integer> zipPrefixes, com.google.common.collect.ImmutableList<Integer> gmtOffsets, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<Integer>> weightsLists) -
Method Summary
Modifier and TypeMethodDescriptionstatic FipsCountyDistributionstatic StringgetCountyAtIndex(int index) static intgetGmtOffsetAtIndex(int index) static StringgetStateAbbreviationAtIndex(int index) static intgetZipPrefixAtIndex(int index) static intpickRandomIndex(FipsCountyDistribution.FipsWeights weights, RandomNumberStream stream)
-
Constructor Details
-
FipsCountyDistribution
public FipsCountyDistribution(com.google.common.collect.ImmutableList<String> counties, com.google.common.collect.ImmutableList<String> stateAbbreviations, com.google.common.collect.ImmutableList<Integer> zipPrefixes, com.google.common.collect.ImmutableList<Integer> gmtOffsets, com.google.common.collect.ImmutableList<com.google.common.collect.ImmutableList<Integer>> weightsLists)
-
-
Method Details
-
buildFipsCountyDistribution
-
pickRandomIndex
public static int pickRandomIndex(FipsCountyDistribution.FipsWeights weights, RandomNumberStream stream) -
getCountyAtIndex
-
getStateAbbreviationAtIndex
-
getZipPrefixAtIndex
public static int getZipPrefixAtIndex(int index) -
getGmtOffsetAtIndex
public static int getGmtOffsetAtIndex(int index)
-