|
MobilityDB 1.3
|
Accessor functions for temporal types. More...
Functions | |
| bool | tcontseq_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 continuous sequence at a timestamptz. More... | |
| const TInstant * | temporal_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 TInstant * | temporal_inst_n (const Temporal *temp, int n) |
| Return a pointer to the n-th instant of a temporal value. More... | |
| const TInstant ** | temporal_insts_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 TInstant * | temporal_min_inst_p (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 TInstant * | temporal_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... | |
| Datum * | temporal_values (const Temporal *temp, int *count) |
| Return the array of copies of the distinct base values of a temporal value. More... | |
| Datum * | temporal_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 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... | |
| SpanSet * | tinstant_time (const TInstant *inst) |
| Return the time frame of a temporal instant as a span set. More... | |
| TimestampTz * | tinstant_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... | |
| Datum * | tinstant_values_p (const TInstant *inst, int *count) |
| Return the singleton (pointer to the) base value of a temporal instant. More... | |
| double | tnumber_avg_value (const Temporal *temp) |
| Return the average value of a temporal number. More... | |
| void | tnumber_set_span (const Temporal *temp, Span *s) |
| Return in the last argument the value span of a temporal number. More... | |
| SpanSet * | tnumberinst_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... | |
| SpanSet * | tnumberseq_valuespans (const TSequence *seq) |
| Return the base values of a temporal number sequence as a span set. More... | |
| double | tnumberseqset_avg_val (const TSequenceSet *ss) |
| Return the average value of a temporal number. 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... | |
| SpanSet * | tnumberseqset_valuespans (const TSequenceSet *ss) |
| Return the base values of a temporal number sequence set as a number span set. More... | |
| Interval * | tsequence_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 TInstant * | tsequence_max_inst_p (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 TInstant * | tsequence_min_inst_p (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... | |
| TSequenceSet * | tsequence_segm_duration (const TSequence *seq, int64 tunits, CompOper oper) |
| Return the segments that have at least/at most a given duration. 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... | |
| TSequenceSet * | tsequence_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... | |
| SpanSet * | tsequence_time (const TSequence *seq) |
| Return the time frame of a temporal sequence as a span set. More... | |
| TimestampTz * | tsequence_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 (dispatch function) More... | |
| Datum * | tsequence_values_p (const TSequence *seq, int *count) |
| Return the array of (pointer to the) distinct values of a temporal sequence. More... | |
| Interval * | tsequenceset_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 TInstant * | tsequenceset_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 TInstant * | tsequenceset_max_inst_p (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 TInstant * | tsequenceset_min_inst_p (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... | |
| TSequenceSet * | tsequenceset_segm_duration (const TSequenceSet *ss, int64 tunits, CompOper oper) |
| Return the segments that have at least/at most a given duration. 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... | |
| TSequenceSet * | tsequenceset_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... | |
| SpanSet * | tsequenceset_time (const TSequenceSet *ss) |
| Return the time frame a temporal sequence set as a timestamptz span set. More... | |
| TimestampTz * | tsequenceset_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... | |
| Datum * | tsequenceset_values_p (const TSequenceSet *ss, int *count) |
| Return the array of (pointers to the) distinct values of a temporal sequence set. More... | |
Accessor functions for temporal types.