MobilityDB 1.3
Loading...
Searching...
No Matches

◆ span_union_transfn()

SpanSet * span_union_transfn ( SpanSet state,
const Span s 
)

Transition function for span set aggregate union.

Parameters
[in,out]stateCurrent aggregate state
[in]sSpan to aggregate
Returns
When the state variable has space for adding the new span, the function returns the current state variable. Otherwise, a NEW state variable is returned and the input state is freed.
Note
Always use the function to overwrite the existing state as in:
SpanSet * span_union_transfn(SpanSet *state, const Span *s)
Transition function for span set aggregate union.
Definition: span_aggfuncs_meos.c:228
Definition: pgtz.h:42