Class CalendarDistribution
java.lang.Object
org.gridgain.tpcds.qgen.distribution.CalendarDistribution
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetIndexForDate(Date date) static intgetIsHolidayFlagAtIndex(int index) static intgetMaxWeight(CalendarDistribution.Weights weights) static intgetQuarterAtIndex(int index) static intgetWeightForDayNumber(int dayNumber, CalendarDistribution.Weights weights) static intpickRandomDayOfYear(CalendarDistribution.Weights weights, RandomNumberStream stream)
-
Method Details
-
getIndexForDate
-
getQuarterAtIndex
public static int getQuarterAtIndex(int index) -
getIsHolidayFlagAtIndex
public static int getIsHolidayFlagAtIndex(int index) -
getWeightForDayNumber
-
getMaxWeight
-
pickRandomDayOfYear
public static int pickRandomDayOfYear(CalendarDistribution.Weights weights, RandomNumberStream stream)
-