MobilityDB 1.1
Functions
time_aggfuncs.c File Reference
#include "general/time_aggfuncs.h"
#include <assert.h>
#include <postgres.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/skiplist.h"
#include "general/temporal_aggfuncs.h"
#include "general/temporal_tile.h"
#include "general/type_util.h"
Include dependency graph for time_aggfuncs.c:

Functions

Datum datum_sum_int32 (Datum l, Datum r)
 Aggregate functions for time types. More...
 
void ensure_same_timetype_skiplist (SkipList *state, uint8 subtype)
 
Span ** period_tagg (Span **periods1, int count1, Span **periods2, int count2, int *newcount)
 Generic aggregate function for periods. More...
 
SkipListperiod_tcount_transfn (SkipList *state, const Span *p)
 Transition function for temporal count aggregate of periods. More...
 
static TSequenceperiod_transform_tcount (const Span *p)
 Transform a period value into a temporal integer value for performing temporal count aggregation. More...
 
SpanSetperiod_tunion_finalfn (SkipList *state)
 Final function for union aggregation of period (set) values. More...
 
SkipListperiod_tunion_transfn (SkipList *state, const Span *p)
 Generic transition function for aggregating period values. More...
 
SkipListperiodset_tcount_transfn (SkipList *state, const SpanSet *ps)
 Transition function for temporal count aggregate of period sets. More...
 
static TSequence ** periodset_transform_tcount (const SpanSet *ps)
 Transform a period set value into a temporal integer value for performing temporal count aggregation. More...
 
SkipListperiodset_tunion_transfn (SkipList *state, const SpanSet *ps)
 Generic transition function for aggregating period set values. More...
 
SkipListtime_tagg_combinefn (SkipList *state1, SkipList *state2)
 Generic combine function for temporal aggregate of time values. More...
 
TimestampTztimestamp_tagg (TimestampTz *times1, int count1, TimestampTz *times2, int count2, int *newcount)
 
SkipListtimestamp_tcount_transfn (SkipList *state, TimestampTz t)
 Transition function for temporal count aggregate of timestamps. More...
 
static TInstant ** timestamp_transform_tcount (TimestampTz t)
 Transform a timestamp value into a temporal integer value for performing temporal count aggregation. More...
 
Settimestamp_tunion_finalfn (SkipList *state)
 Final function for union aggregation of timestamp set values. More...
 
SkipListtimestamp_tunion_transfn (SkipList *state, TimestampTz t)
 Transition function for tunion aggregate of timestamps. More...
 
SkipListtstzset_tcount_transfn (SkipList *state, const Set *ts)
 Transition function for temporal count aggregate of timestamp sets. More...
 
static TInstant ** tstzset_transform_tcount (const Set *ts, int *newcount)
 Transform a timestamp set value into a temporal integer value for performing temporal count aggregation. More...
 
SkipListtstzset_tunion_transfn (SkipList *state, const Set *ts)
 Transition function for aggregating timestamp sets. More...