MobilityDB  1.0
Functions
tpoint_aggfuncs.c File Reference

Aggregate functions for temporal points. More...

#include "point/tpoint_aggfuncs.h"
#include <assert.h>
#include "general/temporaltypes.h"
#include "general/tempcache.h"
#include "general/temporal_util.h"
#include "general/doublen.h"
#include "general/skiplist.h"
#include "general/temporal_aggfuncs.h"
#include "point/tpoint.h"
#include "point/tpoint_spatialfuncs.h"
Include dependency graph for tpoint_aggfuncs.c:

Functions

void geoaggstate_check (const SkipList *state, int32_t srid, bool hasz)
 Check the validity of the temporal point values for aggregation. More...
 
static void geoaggstate_check_as (const SkipList *state1, const SkipList *state2)
 Check the validity of the temporal point values for aggregation. More...
 
void geoaggstate_check_t (const SkipList *state, const Temporal *t)
 Check the validity of the temporal point values for aggregation. More...
 
static TInstanttpointinst_transform_tcentroid (const TInstant *inst)
 Transform a temporal point value of instant type into a temporal double3/double4 value for performing temporal centroid aggregation. More...
 
static TInstant ** tpointinstset_transform_tcentroid (const TInstantSet *ti)
 Transform a temporal point value of instant set type into a temporal double3/double4 value for performing temporal centroid aggregation. More...
 
static TSequencetpointseq_transform_tcentroid (const TSequence *seq)
 Transform a temporal point value of sequence type into a temporal double3/double4 value for performing temporal centroid aggregation. More...
 
static TSequence ** tpointseqset_transform_tcentroid (const TSequenceSet *ts)
 Transform a temporal point value of sequence set type into a temporal double3/double4 value for performing temporal centroid aggregation. More...
 
Temporal ** tpoint_transform_tcentroid (const Temporal *temp, int *count)
 Transform a temporal point value for performing temporal centroid aggregation (dispatch function) More...
 
PGDLLEXPORT Datum tpoint_extent_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal extent aggregation of temporal point values. More...
 
PGDLLEXPORT Datum tpoint_extent_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal extent aggregation of temporal point values. More...
 
PGDLLEXPORT Datum tpoint_tcentroid_transfn (PG_FUNCTION_ARGS)
 Transition function for temporal centroid aggregation of temporal point values. More...
 
PGDLLEXPORT Datum tpoint_tcentroid_combinefn (PG_FUNCTION_ARGS)
 Combine function for temporal centroid aggregation of temporal point values. More...
 
static Datum doublen_to_point (const TInstant *inst, int srid)
 Transforms a temporal doubleN instant into a point. More...
 
TInstantSettpointinst_tcentroid_finalfn (TInstant **instants, int count, int srid)
 Final function for temporal centroid aggregation of temporal point values with instant type. More...
 
TSequenceSettpointseq_tcentroid_finalfn (TSequence **sequences, int count, int srid)
 Final function for temporal centroid aggregation of temporal point values with sequence type. More...
 
PGDLLEXPORT Datum tpoint_tcentroid_finalfn (PG_FUNCTION_ARGS)
 Final function for temporal centroid aggregation of temporal point values. More...
 

Detailed Description

Aggregate functions for temporal points.

The only functions currently provided are extent and temporal centroid.