MobilityDB 1.1
Functions
tsequence.h File Reference
#include <postgres.h>
#include "general/temporal.h"
#include "general/span.h"
Include dependency graph for tsequence.h:

Go to the source code of this file.

Functions

bool intersection_tcontseq_tdiscseq (const TSequence *seq1, const TSequence *seq2, TSequence **inter1, TSequence **inter2)
 Temporally intersect two temporal sequences. More...
 
bool intersection_tdiscseq_tcontseq (const TSequence *is, const TSequence *seq2, TSequence **inter1, TSequence **inter2)
 Temporally intersect two temporal values. More...
 
bool intersection_tdiscseq_tdiscseq (const TSequence *is1, const TSequence *is2, TSequence **inter1, TSequence **inter2)
 Temporally intersect two temporal discrete sequences. More...
 
bool intersection_tinstant_tsequence (const TInstant *inst, const TSequence *seq, TInstant **inter1, TInstant **inter2)
 Temporally intersect two temporal values. More...
 
bool intersection_tsequence_tinstant (const TSequence *seq, const TInstant *inst, TInstant **inter1, TInstant **inter2)
 Temporally intersect two temporal sequences. More...
 
bool synchronize_tsequence_tsequence (const TSequence *seq1, const TSequence *seq2, TSequence **sync1, TSequence **sync2, bool interpoint)
 Synchronize two temporal sequences. More...
 
int tcontseq_at_periodset1 (const TSequence *seq, const SpanSet *ps, TSequence **result)
 Restrict a temporal sequence to a period set. More...
 
int tcontseq_find_timestamp (const TSequence *seq, TimestampTz t)
 Basic functions for temporal sequences. More...
 
int tcontseq_minus_period1 (const TSequence *seq, const Span *p, TSequence **result)
 Restrict a temporal sequence to the complement of a period. More...
 
int tcontseq_minus_periodset1 (const TSequence *seq, const SpanSet *ps, int from, TSequence **result)
 Restrict a temporal sequence to the complement of a period set. More...
 
int tcontseq_minus_timestamp1 (const TSequence *seq, TimestampTz t, TSequence **result)
 Restrict a temporal sequence to the complement of a timestamp. More...
 
int tcontseq_minus_timestampset1 (const TSequence *seq, const Set *s, TSequence **result)
 Restrict a temporal sequence to the complement of a timestamp set. More...
 
int tcontseq_restrict_value1 (const TSequence *seq, Datum value, bool atfunc, TSequence **result)
 Restrict a temporal sequence to (the complement of) a base value. More...
 
int tdiscseq_find_timestamp (const TSequence *seq, TimestampTz t)
 Return the index of a timestamp in a temporal discrete sequence value using binary search. More...
 
int tfloatseq_spans (const TSequence *seq, Span **result)
 Return the float spans of a temporal float. More...
 
bool tlinearsegm_intersection_value (const TInstant *inst1, const TInstant *inst2, Datum value, meosType basetype, Datum *inter, TimestampTz *t)
 Return true if the segment of a temporal sequence intersects the base value at the timestamp. More...
 
int tnumbercontseq_restrict_span2 (const TSequence *seq, const Span *span, bool atfunc, TSequence **result)
 Restrict a temporal number to (the complement of) a span. More...
 
int tnumbercontseq_restrict_spanset1 (const TSequence *seq, const SpanSet *ss, bool atfunc, TSequence **result)
 Restrict a temporal number to (the complement of) an array of spans of base values. More...
 
TInstanttsegment_at_timestamp (const TInstant *inst1, const TInstant *inst2, bool linear, TimestampTz t)
 Restrict the segment of a temporal sequence to a timestamp. More...
 
bool tsegment_intersection (const TInstant *start1, const TInstant *end1, bool linear1, const TInstant *start2, const TInstant *end2, bool linear2, Datum *inter1, Datum *inter2, TimestampTz *t)
 Return true if two segments of a temporal sequence intersect at a timestamp. More...
 
Datum tsegment_value_at_timestamp (const TInstant *inst1, const TInstant *inst2, bool linear, TimestampTz t)
 Return the base value of the segment of a temporal sequence at a timestamp. More...
 
TSequence ** tseqarr2_to_tseqarr (TSequence ***sequences, int *countseqs, int count, int totalseqs)
 Convert an array of arrays of temporal sequences into an array of temporal sequences. More...
 
TSequence ** tseqarr_normalize (const TSequence **sequences, int count, int *newcount)
 Normalize the array of temporal sequences. More...
 
int tsequence_at_values1 (const TSequence *seq, const Set *set, TSequence **result)
 Restrict a temporal sequence to an array of base values. More...
 
TSequencetsequence_join (const TSequence *seq1, const TSequence *seq2, bool removelast, bool removefirst)
 Join two temporal sequences. More...
 
bool tsequence_join_test (const TSequence *seq1, const TSequence *seq2, bool *removelast, bool *removefirst)
 Test whether two sequences can be joined during normalization. More...
 
TSequencetsequence_make1 (const TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, bool normalize)
 Construct a temporal sequence from an array of temporal instants. More...
 
void tsequence_make_valid1 (const TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp)
 Ensure the validity of the arguments when creating a temporal sequence. More...
 
TSequence ** tsequence_merge_array1 (const TSequence **sequences, int count, int *totalcount)
 Merge an array of temporal sequences. More...
 
int tsequence_segments1 (const TSequence *seq, TSequence **result)
 Return the array of segments of a temporal sequence. More...
 
int tsequence_timestamps1 (const TSequence *seq, TimestampTz *result)
 Return the array of timestamps of a temporal sequence. More...
 
char * tsequence_to_string (const TSequence *seq, int maxdd, bool component, outfunc value_out)
 Return the Well-Known Text (WKT) representation of a temporal sequence. More...
 
int tsequence_values1 (const TSequence *seq, Datum *result)
 
int tstepseq_tlinearseq1 (const TSequence *seq, TSequence **result)