MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
temporal_aggfuncs.c File Reference

Aggregate functions for temporal types. More...

#include "temporal/temporal_aggfuncs.h"
#include <assert.h>
#include <postgres.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/set.h"
#include "temporal/skiplist.h"
#include "temporal/span.h"
#include "temporal/tbool_ops.h"
#include "temporal/tbox.h"
#include "pg_temporal/meos_catalog.h"
#include "pg_temporal/skiplist.h"

Functions

Datum Tbool_tand_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal and aggregation of temporal booleans @sqlfn tAnd() More...
 
Datum Tbool_tand_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal and aggregation of temporal booleans @sqlfn tAnd() More...
 
Datum Tbool_tor_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal or aggregation of temporal booleans @sqlfn tOr() More...
 
Datum Tbool_tor_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal or aggregation of temporal booleans @sqlfn tOr() More...
 
Datum Temporal_app_tinst_transfn (PG_FUNCTION_ARGS)
 Transition function for append temporal instant aggregate @sqlfn appendInstant() More...
 
Datum Temporal_app_tseq_transfn (PG_FUNCTION_ARGS)
 Transition function for append temporal sequence aggregate @sqlfn appendSequence() More...
 
Datum Temporal_append_finalfn (PG_FUNCTION_ARGS)
 Final function for append temporal instant/sequence aggregate @sqlfn appendInstant(), appendSequence() More...
 
Datum Temporal_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for extent aggregation of temporal booleans and temporal texts @sqlfn extent() More...
 
Datum Temporal_merge_combinefn (PG_FUNCTION_ARGS)
 Combine function for merge aggregate of temporal values @sqlfn merge() More...
 
Datum Temporal_merge_transfn (PG_FUNCTION_ARGS)
 Transition function for merge aggregate of temporal values @sqlfn merge() More...
 
static Datum Temporal_tagg_combinefn (FunctionCallInfo fcinfo, datum_func2 func, bool crossings)
 Generic combine function for aggregating temporal values. More...
 
Datum Temporal_tagg_finalfn (PG_FUNCTION_ARGS)
 Generic final function for temporal aggregation @sqlfn tCount(), merge(), ... More...
 
static Datum Temporal_tagg_transfn (FunctionCallInfo fcinfo, datum_func2 func, bool crossings)
 Generic transition function for aggregating temporal values. More...
 
Datum Temporal_tagg_transform_transfn (FunctionCallInfo fcinfo, datum_func2 func, bool crossings, TInstant *(*transform)(const TInstant *))
 Transition function for aggregating temporal values that require a transformation of each composing instant/sequence. More...
 
Datum Temporal_tcount_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal count aggregation of temporal values @sqlfn tCount() More...
 
Datum Temporal_tcount_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal count aggregation of temporal values @sqlfn tCount() More...
 
Datum Tfloat_tmax_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal maximum aggregation of temporal floats values @sqlfn tMax() More...
 
Datum Tfloat_tmax_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal maximum aggregation of temporal floats @sqlfn tMax() More...
 
Datum Tfloat_tmin_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal minimum aggregation of temporal floats @sqlfn tMin() More...
 
Datum Tfloat_tmin_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal minimum aggregation of temporal floats @sqlfn tMin() More...
 
Datum Tfloat_tsum_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal sum aggregation of temporal floats @sqlfn tSum() More...
 
Datum Tfloat_tsum_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal sum aggregation of temporal floats @sqlfn tSum() More...
 
Datum Timestamptz_tcount_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal count aggregate of timestamptz values @sqlfn tCount() More...
 
Datum Tint_tmax_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal maximum aggregation of temporal integers @sqlfn tMax() More...
 
Datum Tint_tmax_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal maximum aggregation of temporal integers @sqlfn tMax() More...
 
Datum Tint_tmin_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal minimum aggregation of temporal integers @sqlfn tMin() More...
 
Datum Tint_tmin_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal minimum aggregation of temporal integers @sqlfn tMin() More...
 
Datum Tint_tsum_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal sum aggregation of temporal integers @sqlfn tSum() More...
 
Datum Tint_tsum_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal sum aggregation of temporal integers @sqlfn tSum() More...
 
Datum Tnumber_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for extent aggregation for temporal numbers @sqlfn extent() More...
 
Datum Tnumber_tavg_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal average aggregation of temporal numbers @sqlfn tAvg() More...
 
Datum Tnumber_tavg_finalfn (PG_FUNCTION_ARGS)
 Final function for temporal average aggregation of temporal numbers @sqlfn tAvg() More...
 
Datum Tnumber_tavg_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal average aggregation of temporal numbers @sqlfn tAvg() More...
 
Datum Tstzset_tcount_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal count aggregate of timestamptz sets @sqlfn tCount() More...
 
Datum Tstzspan_tcount_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal count aggregate of timestamptz spans @sqlfn tCount() More...
 
Datum Tstzspanset_tcount_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal count aggregate of timestamptz span sets @sqlfn tCount() More...
 
Datum Ttext_tmax_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal maximum aggregation of temporal texts @sqlfn tMax() More...
 
Datum Ttext_tmax_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal maximum aggregation of temporal texts @sqlfn tMax() More...
 
Datum Ttext_tmin_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal minimum aggregation of temporal texts @sqlfn tMin() More...
 
Datum Ttext_tmin_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal minimum aggregation of temporal texts @sqlfn tMin() More...
 

Detailed Description

Aggregate functions for temporal types.