Resets the internal variables.
Resets the internal variables. Called in the beginning of ´compute()´ of the RunRDD.
Updates hour
and date
and returns true if this sample belongs to a new bucket.
Updates hour
and date
and returns true if this sample belongs to a new bucket.
For the very first sample, returns false. Returns false in other cases.
a single sample of data type T.
For the very first sample, returns false. Returns true if this sample belongs to a new bucket. Returns false in other cases.
Simple class to be used with BucketRDD for detection of buckets from data such as http://www.cs.sandia.gov/~jrstear/logs/ by date and hour.
Usage:
See spark.timeseries.BucketLogsByHour for a more real example.