34#ifndef __TIME_AGGFUNCS_H__
35#define __TIME_AGGFUNCS_H__
38#include "general/span.h"
39#include "general/skiplist.h"
47 int count2,
int *newcount);
int64 TimestampTz
Definition: pg_ext_defs.in.h:19
uintptr_t Datum
Definition: pg_ext_defs.in.h:4
unsigned char uint8
Definition: pg_ext_defs.in.h:11
API of the Mobility Engine Open Source (MEOS) library.
Definition: meos.h:56
Structure to represent skiplists that keep the current state of an aggregation.
Definition: meos.h:240
Structure to represent span sets.
Definition: meos.h:83
Structure to represent spans (a.k.a.
Definition: meos.h:70
Datum datum_sum_int32(Datum l, Datum r)
Aggregate functions for time types.
Definition: time_aggfuncs.c:57
SkipList * time_tagg_combinefn(SkipList *state1, SkipList *state2)
Generic combine function for temporal aggregate of time values.
Definition: time_aggfuncs.c:147
void ensure_same_timetype_skiplist(SkipList *state, uint8 subtype)
Definition: time_aggfuncs.c:401
TimestampTz * timestamp_tagg(TimestampTz *times1, int count1, TimestampTz *times2, int count2, int *newcount)
Definition: time_aggfuncs.c:72
SkipList * period_tagg_transfn(SkipList *state, const Span *p)
SkipList * periodset_tagg_transfn(SkipList *state, const SpanSet *ps)
SkipList * tstzset_tagg_transfn(SkipList *state, const Set *ts)
Span ** period_tagg(Span **periods1, int count1, Span **periods2, int count2, int *newcount)
Generic aggregate function for periods.
Definition: time_aggfuncs.c:111