MobilityDB 1.1

◆ tsequenceset_time_split()

static TSequenceSet ** tsequenceset_time_split ( const TSequenceSet ss,
TimestampTz  start,
TimestampTz  end,
int64  tunits,
int  count,
TimestampTz **  buckets,
int *  newcount 
)
static

Split a temporal value into an array of disjoint fragments.

Parameters
[in]ssTemporal value
[in]start,endStart and end timestamps of the buckets
[in]tunitsSize of the time buckets in PostgreSQL time units
[in]countNumber of buckets
[out]bucketsStart timestamp of the buckets containing a fragment
[out]newcountNumber of values in the output array