MobilityDB 1.1
Functions
temporal_aggfuncs.c File Reference
#include "general/temporal_aggfuncs.h"
#include <assert.h>
#include <math.h>
#include <string.h>
#include <postgres.h>
#include <catalog/pg_collation.h>
#include <libpq/pqformat.h>
#include <utils/memutils.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/skiplist.h"
#include "general/temporaltypes.h"
#include "general/tbool_boolops.h"
#include "general/doublen.h"
#include "general/time_aggfuncs.h"
#include "pg_general/skiplist.h"
#include "pg_general/temporal.h"
Include dependency graph for temporal_aggfuncs.c:

Functions

PGDLLEXPORT Datum Tbool_tand_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal and aggregation of temporal boolean values. More...
 
PGDLLEXPORT Datum Tbool_tand_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal and aggregation of temporal boolean values. More...
 
PGDLLEXPORT Datum Tbool_tor_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal or aggregation of temporal boolean values. More...
 
PGDLLEXPORT Datum Tbool_tor_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal or aggregation of temporal boolean values. More...
 
PGDLLEXPORT Datum Temporal_app_inst_finalfn (PG_FUNCTION_ARGS)
 Combine function for set aggregate of set types. More...
 
PGDLLEXPORT Datum Temporal_app_inst_transfn (PG_FUNCTION_ARGS)
 Transition function for set aggregation of values. More...
 
Temporaltemporal_app_inst_transfn (Temporal *state, TInstant *inst)
 Transition function for append tinstant aggregate. More...
 
PGDLLEXPORT Datum Temporal_app_seq_finalfn (PG_FUNCTION_ARGS)
 Combine function for set aggregate of set types. More...
 
PGDLLEXPORT Datum Temporal_app_seq_transfn (PG_FUNCTION_ARGS)
 Transition function for set aggregation of values. More...
 
Temporaltemporal_app_seq_transfn (Temporal *state, TSequence *seq)
 Transition function for append tsequence aggregate. More...
 
PGDLLEXPORT Datum Temporal_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal extent aggregation of temporal values with period bounding box. More...
 
PGDLLEXPORT Datum Temporal_merge_combinefn (PG_FUNCTION_ARGS)
 Combine function for union aggregate of time types. More...
 
PGDLLEXPORT Datum Temporal_merge_transfn (PG_FUNCTION_ARGS)
 Transition function for union aggregate of periods. More...
 
static Datum Temporal_tagg_combinefn (FunctionCallInfo fcinfo, datum_func2 func, bool crossings)
 Generic combine function for aggregating temporal alphanumeric values. More...
 
PGDLLEXPORT Datum Temporal_tagg_finalfn (PG_FUNCTION_ARGS)
 Generic final function for temporal aggregation. More...
 
static Datum Temporal_tagg_transfn (FunctionCallInfo fcinfo, datum_func2 func, bool crossings)
 General aggregate functions for temporal types. 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 to each composing instant/sequence. More...
 
PGDLLEXPORT Datum Temporal_tcount_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal count aggregation. More...
 
PGDLLEXPORT Datum Temporal_tcount_transfn (PG_FUNCTION_ARGS)
 Generic transition function for temporal aggregation. More...
 
PGDLLEXPORT Datum Tfloat_tmax_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal maximum aggregation of temporal float values. More...
 
PGDLLEXPORT Datum Tfloat_tmax_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal maximum aggregation of temporal float values. More...
 
PGDLLEXPORT Datum Tfloat_tmin_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal minimum aggregation of temporal float values. More...
 
PGDLLEXPORT Datum Tfloat_tmin_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal minimum aggregation of temporal float values. More...
 
PGDLLEXPORT Datum Tfloat_tsum_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal sum aggregation of temporal float values. More...
 
PGDLLEXPORT Datum Tfloat_tsum_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal sum aggregation of temporal float values. More...
 
PGDLLEXPORT Datum Tint_tmax_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal maximum aggregation of temporal integer values. More...
 
PGDLLEXPORT Datum Tint_tmax_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal maximum aggregation of temporal integer values. More...
 
PGDLLEXPORT Datum Tint_tmin_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal minimum aggregation of temporal integer values. More...
 
PGDLLEXPORT Datum Tint_tmin_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal minimum aggregation of temporal integer values. More...
 
PGDLLEXPORT Datum Tint_tsum_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal sum aggregation of temporal integer values. More...
 
PGDLLEXPORT Datum Tint_tsum_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal sum aggregation of temporal integer values. More...
 
PGDLLEXPORT Datum Tnumber_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal extent aggregation for temporal numbers. More...
 
PGDLLEXPORT Datum Tnumber_tavg_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal average aggregation. More...
 
PGDLLEXPORT Datum Tnumber_tavg_finalfn (PG_FUNCTION_ARGS)
 Final function for temporal average aggregation. More...
 
PGDLLEXPORT Datum Tnumber_tavg_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal average aggregation. More...
 
PGDLLEXPORT Datum Ttext_tmax_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal maximum aggregation of temporal text values. More...
 
PGDLLEXPORT Datum Ttext_tmax_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal maximum aggregation of temporal text values. More...
 
PGDLLEXPORT Datum Ttext_tmin_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal minimum aggregation of temporal text values. More...
 
PGDLLEXPORT Datum Ttext_tmin_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal minimum aggregation of temporal text values. More...