34#ifndef __TSEQUENCESET_H__
35#define __TSEQUENCESET_H__
41#include "temporal/temporal.h"
54 bool merge,
double maxdist,
const Interval *maxt,
int *nsplits);
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:55
SyncMode
Enumeration for the intersection/synchronization functions.
Definition: temporal.h:150
char *(* outfunc)(Datum value, meosType type, int maxdd)
Definition: temporal.h:277
External API of the Mobility Engine Open Source (MEOS) library.
int64 TimestampTz
Definition: postgres_ext_defs.in.h:22
signed short int16
Definition: postgres_ext_defs.in.h:10
uintptr_t Datum
Definition: postgres_ext_defs.in.h:7
Definition: postgres_ext_defs.in.h:27
Structure to represent temporal values of instant subtype.
Definition: meos.h:185
Structure to represent temporal values of sequence set subtype.
Definition: meos.h:224
Structure to represent temporal values of sequence subtype.
Definition: meos.h:202
bool intersection_tinstant_tsequenceset(const TInstant *inst, const TSequenceSet *ss, TInstant **inter1, TInstant **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:1882
bool intersection_tsequenceset_tinstant(const TSequenceSet *ss, const TInstant *inst, TInstant **inter1, TInstant **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:1859
int * ensure_valid_tinstarr_gaps(const TInstant **instants, int count, bool merge, double maxdist, const Interval *maxt, int *nsplits)
Ensure that all temporal instants of the array have increasing timestamp (or may be equal if the merg...
Definition: tsequenceset.c:455
double datum_distance(Datum value1, Datum value2, meosType basetype, int16 flags)
Return the distance between two datums.
Definition: tsequenceset.c:174
bool ensure_valid_tseqarr(const TSequence **sequences, int count)
Ensure that all temporal sequences of the array have increasing timestamp, and if they are temporal p...
Definition: tsequenceset.c:216
bool synchronize_tsequenceset_tsequence(const TSequenceSet *ss, const TSequence *seq, SyncMode mode, TSequenceSet **inter1, TSequenceSet **inter2)
Temporally intersect or synchronize a temporal sequence set and a temporal sequence.
Definition: tsequenceset.c:1754
bool tsequenceset_find_timestamptz(const TSequenceSet *ss, TimestampTz t, int *loc)
Basic functions for temporal sequence sets.
Definition: tsequenceset.c:92
bool intersection_tsequenceset_tdiscseq(const TSequenceSet *ss, const TSequence *is, TSequence **inter1, TSequence **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:1895
bool synchronize_tsequenceset_tsequenceset(const TSequenceSet *ss1, const TSequenceSet *ss2, SyncMode mode, TSequenceSet **inter1, TSequenceSet **inter2)
Temporally intersect or synchronize two temporal sequence sets.
Definition: tsequenceset.c:1802
TSequence ** tseqarr_normalize(const TSequence **sequences, int count, int *newcount)
Normalize the array of temporal sequences.
Definition: tsequenceset.c:133
bool intersection_tsequence_tsequenceset(const TSequence *seq, const TSequenceSet *ss, SyncMode mode, TSequenceSet **inter1, TSequenceSet **inter2)
Temporally intersect or synchronize two temporal values.
Definition: tsequenceset.c:1963
char * tsequenceset_to_string(const TSequenceSet *ss, int maxdd, outfunc value_out)
Return the Well-Known Text (WKT) representation of a temporal sequence set.
Definition: tsequenceset.c:1998
bool intersection_tdiscseq_tsequenceset(const TSequence *is, const TSequenceSet *ss, TSequence **inter1, TSequence **inter2)
Temporally intersect two temporal values.
Definition: tsequenceset.c:1949