MobilityDB 1.3
Loading...
Searching...
No Matches
Functions

Accessor functions for temporal types. More...

Functions

const TInstanttemporal_end_inst (const Temporal *temp)
 Return a pointer to the end instant of a temporal value. More...
 
Datum temporal_end_value (const Temporal *temp)
 Return a copy of the end base value of a temporal value. More...
 
const TInstanttemporal_inst_n (const Temporal *temp, int n)
 Return a pointer to the n-th instant of a temporal value. More...
 
const TInstant ** temporal_instants_p (const Temporal *temp, int *count)
 Return an array of pointers to the distinct instants of a temporal value. More...
 
Datum temporal_max_value (const Temporal *temp)
 Return a copy of the maximum base value of a temporal value. More...
 
size_t temporal_mem_size (const Temporal *temp)
 Return the size in bytes of a temporal value. More...
 
const TInstanttemporal_min_inst (const Temporal *temp)
 Return a pointer to the instant with minimum base value of a temporal value. More...
 
Datum temporal_min_value (const Temporal *temp)
 Return a copy of the minimum base value of a temporal value. More...
 
const TSequence ** temporal_sequences_p (const Temporal *temp, int *count)
 Return an array of pointers to the sequences of a temporal sequence (set) More...
 
void temporal_set_bbox (const Temporal *temp, void *box)
 Return in the last argument the bounding box of a temporal value. More...
 
void temporal_set_tstzspan (const Temporal *temp, Span *s)
 Return in the last argument the time span of a temporal value. More...
 
const TInstanttemporal_start_inst (const Temporal *temp)
 Return a pointer to the start instant of a temporal value. More...
 
Datum temporal_start_value (const Temporal *temp)
 Return a copy of the start base value of a temporal value. More...
 
bool temporal_value_at_timestamptz (const Temporal *temp, TimestampTz t, bool strict, Datum *result)
 Return in the last argument a copy of the value of a temporal value at a timestamptz. More...
 
bool temporal_value_n (const Temporal *temp, int n, Datum *result)
 Return in the last argument a copy of the n-th value of a temporal value. More...
 
Datumtemporal_values (const Temporal *temp, int *count)
 Return the array of copies of the distinct base values of a temporal value. More...
 
Datumtemporal_values_p (const Temporal *temp, int *count)
 Return the array of pointers to the base values of a temporal value. More...
 
uint32 tinstant_hash (const TInstant *inst)
 Return the 32-bit hash value of a temporal instant. More...
 
const TInstant ** tinstant_insts (const TInstant *inst, int *count)
 Return the singleton array of instants of a temporal instant. More...
 
void tinstant_set_tstzspan (const TInstant *inst, Span *s)
 Return in the last argument the time span of a temporal instant. More...
 
SpanSettinstant_time (const TInstant *inst)
 Return the time frame of a temporal instant as a span set. More...
 
TimestampTztinstant_timestamps (const TInstant *inst, int *count)
 Return the singleton array of timestamps of a temporal instant. More...
 
Datum tinstant_value (const TInstant *inst)
 Return a copy of the base value of a temporal instant. More...
 
bool tinstant_value_at_timestamptz (const TInstant *inst, TimestampTz t, Datum *result)
 Return in the last argument a copy of the the value of a temporal instant at a timestamptz. More...
 
Datum tinstant_value_p (const TInstant *inst)
 Return (a pointer to) the base value of a temporal instant. More...
 
Datumtinstant_values_p (const TInstant *inst, int *count)
 Return the singleton (pointer to the) base value of a temporal instant. More...
 
void tnumber_set_span (const Temporal *temp, Span *s)
 Return in the last argument the value span of a temporal number. More...
 
SpanSettnumberinst_valuespans (const TInstant *inst)
 Return the base values of a temporal instant number as a span set. More...
 
double tnumberseq_integral (const TSequence *seq)
 Return the integral (area under the curve) of a temporal sequence number. More...
 
double tnumberseq_twavg (const TSequence *seq)
 Return the time-weighted average of a temporal sequence number. More...
 
SpanSettnumberseq_valuespans (const TSequence *seq)
 Return the base values of a temporal number sequence as a span set. More...
 
double tnumberseqset_integral (const TSequenceSet *ss)
 Return the integral (area under the curve) of a temporal number. More...
 
double tnumberseqset_twavg (const TSequenceSet *ss)
 Return the time-weighted average of a temporal number. More...
 
SpanSettnumberseqset_valuespans (const TSequenceSet *ss)
 Return the base values of a temporal number sequence set as a number span set. More...
 
Intervaltsequence_duration (const TSequence *seq)
 Return the duration of a temporal sequence. More...
 
TimestampTz tsequence_end_timestamptz (const TSequence *seq)
 Return the end timestamptz of a temporal sequence. More...
 
uint32 tsequence_hash (const TSequence *seq)
 Return the 32-bit hash value of a temporal sequence. More...
 
const TInstant ** tsequence_insts_p (const TSequence *seq)
 Return the array of pointers to distinct instants of a temporal sequence. More...
 
const TInstanttsequence_max_inst (const TSequence *seq)
 Return a pointer to the instant with minimum base value of a temporal sequence. More...
 
Datum tsequence_max_val (const TSequence *seq)
 Return (a pointer to) the maximum base value of a temporal sequence. More...
 
const TInstanttsequence_min_inst (const TSequence *seq)
 Return a pointer to the instant with minimum base value of a temporal sequence. More...
 
Datum tsequence_min_val (const TSequence *seq)
 Return (a pointer to) the minimum base value of a temporal sequence. More...
 
TSequence ** tsequence_segments (const TSequence *seq, int *count)
 Return the array of segments of a temporal sequence. More...
 
const TSequence ** tsequence_seqs (const TSequence *seq, int *count)
 Return a singleton array of pointers to the sequence of a temporal sequence. More...
 
void tsequence_set_tstzspan (const TSequence *seq, Span *s)
 Return in the last argument the time span of a temporal sequence. More...
 
TimestampTz tsequence_start_timestamptz (const TSequence *seq)
 Return the start timestamptz of a temporal sequence. More...
 
TSequenceSettsequence_stops (const TSequence *seq, double maxdist, int64 mintunits)
 Return the subsequences where the temporal value stays within a given distance for at least a given duration. More...
 
SpanSettsequence_time (const TSequence *seq)
 Return the time frame of a temporal sequence as a span set. More...
 
TimestampTztsequence_timestamps (const TSequence *seq, int *count)
 Return the array of timestamps of a temporal sequence. More...
 
bool tsequence_value_at_timestamptz (const TSequence *seq, TimestampTz t, bool strict, Datum *result)
 Return in the last argument a copy of the value of a temporal sequence at a timestamptz. More...
 
Datumtsequence_values_p (const TSequence *seq, int *count)
 Return the array of (pointer to the) distinct values of a temporal sequence. More...
 
Intervaltsequenceset_duration (const TSequenceSet *ss, bool boundspan)
 Return the duration of a temporal sequence set. More...
 
TimestampTz tsequenceset_end_timestamptz (const TSequenceSet *ss)
 Return the end timestamptz of a temporal sequence set. More...
 
uint32 tsequenceset_hash (const TSequenceSet *ss)
 Return the 32-bit hash value of a temporal sequence set. More...
 
const TInstanttsequenceset_inst_n (const TSequenceSet *ss, int n)
 Return a pointer to the n-th distinct instant of a temporal sequence set. More...
 
const TInstant ** tsequenceset_insts_p (const TSequenceSet *ss)
 Return an array of pointers to the instants of a temporal sequence set. More...
 
const TInstanttsequenceset_max_inst (const TSequenceSet *ss)
 Return a pointer to the instant with maximum base value of a temporal sequence set. More...
 
Datum tsequenceset_max_val (const TSequenceSet *ss)
 Return (a pointer to) the maximum base value of a temporal sequence set. More...
 
const TInstanttsequenceset_min_inst (const TSequenceSet *ss)
 Return a pointer to the instant with minimum base value of a temporal sequence set. More...
 
Datum tsequenceset_min_val (const TSequenceSet *ss)
 Return (a pointer to) the minimum base value of a temporal sequence set. More...
 
int tsequenceset_num_instants (const TSequenceSet *ss)
 Return the number of distinct instants of a temporal sequence set. More...
 
int tsequenceset_num_timestamps (const TSequenceSet *ss)
 Return the number of distinct timestamptz values of a temporal sequence set. More...
 
TSequence ** tsequenceset_segments (const TSequenceSet *ss, int *count)
 Return the array of segments of a temporal sequence set. More...
 
const TSequence ** tsequenceset_sequences_p (const TSequenceSet *ss)
 Return an array of pointers to the sequences of a temporal sequence set. More...
 
void tsequenceset_set_tstzspan (const TSequenceSet *ss, Span *s)
 Return in the last argument the time span of a temporal sequence set. More...
 
TimestampTz tsequenceset_start_timestamptz (const TSequenceSet *ss)
 Return the start timestamptz of a temporal sequence set. More...
 
TSequenceSettsequenceset_stops (const TSequenceSet *ss, double maxdist, int64 mintunits)
 Return the subsequences where the temporal value stays within a given distance for at least a given duration. More...
 
SpanSettsequenceset_time (const TSequenceSet *ss)
 Return the time frame a temporal sequence set as a timestamptz span set. More...
 
TimestampTztsequenceset_timestamps (const TSequenceSet *ss, int *count)
 Return the array of distinct timestamps of a temporal sequence set. More...
 
bool tsequenceset_timestamptz_n (const TSequenceSet *ss, int n, TimestampTz *result)
 Return in the last argument the n-th distinct timestamptz of a temporal sequence set. More...
 
bool tsequenceset_value_at_timestamptz (const TSequenceSet *ss, TimestampTz t, bool strict, Datum *result)
 Return in the last argument a copy of the value of a temporal sequence set at a timestamptz. More...
 
bool tsequenceset_value_n (const TSequenceSet *ss, int n, Datum *result)
 Return in the last argument a copy of the n-th value of a temporal sequence set. More...
 
Datumtsequenceset_values_p (const TSequenceSet *ss, int *count)
 Return the array of (pointers to the) distinct values of a temporal sequence set. More...
 

Detailed Description

Accessor functions for temporal types.