question: protected static Long convertTimepointToBucketingLong ( Date timepointToBeConverted ) { if ( timepointToBeConverted == null ) { return null ; } Long toReturn = timepointToBeConverted . getTime ( ) - PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MIN ; if ( toReturn < 0l ) { return 0l ; } else if ( toReturn > PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MAX ) { return PrimaryIndexBucketGeneratorImpl . TIMEPOINT_MAX ; } else { return toReturn ; } }
target:  This method converts the Timepoint value to its corresponding long value, this method assumes that the date format is the same as the format being returned by the ParseUtils.parseStringAsDate. Note: Any value prior to Y2K (00:00:00 UTC on 1 January 2000) will be bucketed as 0 and any value after 2030 will be bucketed as bucket max. This is done to reduce the number of buckets that are required for this type (by eliminating ranges that are likely to be entirely unused).