MobilityDB  1.0

◆ period_bucket_state_make()

static PeriodBucketState* period_bucket_state_make ( Period p,
int64  tunits,
TimestampTz  torigin 
)
static

Create the initial state that persists across multiple calls of the function.

Parameters
[in]pBounds for generating the bucket list
[in]tunitsSize of the time buckets in PostgreSQL time units
[in]toriginOrigin of the buckets
Precondition
The tunits argument must be greater to 0.