|
MobilityDB
1.0
|
Basic functions for set of disjoint periods. More...
#include "general/periodset.h"#include <assert.h>#include <libpq/pqformat.h>#include <utils/builtins.h>#include <utils/timestamp.h>#include "general/timestampset.h"#include "general/period.h"#include "general/timeops.h"#include "general/temporal_util.h"#include "general/temporal_parser.h"
Functions | |
| const Period * | periodset_per_n (const PeriodSet *ps, int index) |
| Returns the n-th period of the period set value. More... | |
| const Period * | periodset_bbox_ptr (const PeriodSet *ps) |
| Returns a pointer to the precomputed bounding box of the period set value. More... | |
| void | periodset_bbox (Period *p, const PeriodSet *ps) |
| Copy in the first argument the bounding box of the timestamp set value. More... | |
| PeriodSet * | periodset_make (const Period **periods, int count, bool normalize) |
| Construct a period set from an array of periods. More... | |
| PeriodSet * | periodset_make_free (Period **periods, int count, bool normalize) |
| Construct a period set from an array of periods and free the array and the periods after the creation. More... | |
| PeriodSet * | period_to_periodset_internal (const Period *period) |
| Construct a period set from a period (internal function) More... | |
| PeriodSet * | periodset_copy (const PeriodSet *ps) |
| Returns a copy of the period set. More... | |
| bool | periodset_find_timestamp (const PeriodSet *ps, TimestampTz t, int *loc) |
| Returns the location of the timestamp in the temporal sequence set value using binary search. More... | |
| PGDLLEXPORT Datum | periodset_in (PG_FUNCTION_ARGS) |
| Input function for period set values. More... | |
| char * | periodset_to_string (const PeriodSet *ps) |
| Returns the string representation of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_out (PG_FUNCTION_ARGS) |
| Output function for period set values. More... | |
| PGDLLEXPORT Datum | periodset_send (PG_FUNCTION_ARGS) |
| Send function for period set values. More... | |
| PGDLLEXPORT Datum | periodset_recv (PG_FUNCTION_ARGS) |
| Receive function for period set values. More... | |
| PGDLLEXPORT Datum | periodset_constructor (PG_FUNCTION_ARGS) |
| Construct a period set from an array of period values. More... | |
| PeriodSet * | timestamp_to_periodset_internal (TimestampTz t) |
| Cast the timestamp value as a period set value (internal function) More... | |
| PGDLLEXPORT Datum | timestamp_to_periodset (PG_FUNCTION_ARGS) |
| Cast the timestamp value as a period set value. More... | |
| PeriodSet * | timestampset_to_periodset_internal (const TimestampSet *ts) |
| Cast the timestamp set value as a period set value (internal function) More... | |
| PGDLLEXPORT Datum | timestampset_to_periodset (PG_FUNCTION_ARGS) |
| Cast the timestamp set value as a period set value. More... | |
| PGDLLEXPORT Datum | period_to_periodset (PG_FUNCTION_ARGS) |
| Cast the period value as a period set value. More... | |
| void | periodset_to_period_internal (Period *p, const PeriodSet *ps) |
| Returns the bounding period on which the period set value is defined (internal function) More... | |
| PGDLLEXPORT Datum | periodset_to_period (PG_FUNCTION_ARGS) |
| Returns the bounding period on which the period set value is defined. More... | |
| PGDLLEXPORT Datum | periodset_mem_size (PG_FUNCTION_ARGS) |
| Returns the size in bytes of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_timespan (PG_FUNCTION_ARGS) |
| Returns the timespan of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_duration (PG_FUNCTION_ARGS) |
| Returns the timespan of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_num_periods (PG_FUNCTION_ARGS) |
| Returns the number of periods of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_start_period (PG_FUNCTION_ARGS) |
| Returns the start period of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_end_period (PG_FUNCTION_ARGS) |
| Returns the end period of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_period_n (PG_FUNCTION_ARGS) |
| Returns the n-th period of the period set value. More... | |
| const Period ** | periodset_periods_internal (const PeriodSet *ps) |
| Returns the periods of the period set value (internal function) More... | |
| PGDLLEXPORT Datum | periodset_periods (PG_FUNCTION_ARGS) |
| Returns the periods of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_num_timestamps (PG_FUNCTION_ARGS) |
| Returns the number of timestamps of the period set value. More... | |
| TimestampTz | periodset_start_timestamp_internal (const PeriodSet *ps) |
| Returns the start timestamp of the period set value (internal function) More... | |
| PGDLLEXPORT Datum | periodset_start_timestamp (PG_FUNCTION_ARGS) |
| Returns the start timestamp of the period set value. More... | |
| TimestampTz | periodset_end_timestamp_internal (const PeriodSet *ps) |
| Returns the end timestamp of the period set value (internal function) More... | |
| PGDLLEXPORT Datum | periodset_end_timestamp (PG_FUNCTION_ARGS) |
| Returns the end timestamp of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_timestamp_n (PG_FUNCTION_ARGS) |
| Returns the n-th timestamp of the period set value. More... | |
| PGDLLEXPORT Datum | periodset_timestamps (PG_FUNCTION_ARGS) |
| Returns the timestamps of the period set value. More... | |
| PeriodSet * | periodset_shift_internal (const PeriodSet *ps, const Interval *interval) |
| Shift the period set value by the interval (internal function) More... | |
| PGDLLEXPORT Datum | periodset_shift (PG_FUNCTION_ARGS) |
| Shift the period set value by the interval. More... | |
| int | periodset_cmp_internal (const PeriodSet *ps1, const PeriodSet *ps2) |
| Returns -1, 0, or 1 depending on whether the first period set value is less than, equal, or greater than the second temporal value (internal function) More... | |
| PGDLLEXPORT Datum | periodset_cmp (PG_FUNCTION_ARGS) |
| Returns -1, 0, or 1 depending on whether the first period set value is less than, equal, or greater than the second temporal value. More... | |
| bool | periodset_eq_internal (const PeriodSet *ps1, const PeriodSet *ps2) |
| Returns true if the first period set value is equal to the second one (internal function) More... | |
| PGDLLEXPORT Datum | periodset_eq (PG_FUNCTION_ARGS) |
| Returns true if the first period set value is equal to the second one. More... | |
| bool | periodset_ne_internal (const PeriodSet *ps1, const PeriodSet *ps2) |
| Returns true if the first period set value is different from the second one (internal function) More... | |
| PGDLLEXPORT Datum | periodset_ne (PG_FUNCTION_ARGS) |
| Returns true if the first period set value is different from the second one. More... | |
| PGDLLEXPORT Datum | periodset_lt (PG_FUNCTION_ARGS) |
| Returns true if the first period set value is less than the second one. More... | |
| PGDLLEXPORT Datum | periodset_le (PG_FUNCTION_ARGS) |
| Returns true if the first period set value is less than or equal to the second one. More... | |
| PGDLLEXPORT Datum | periodset_ge (PG_FUNCTION_ARGS) |
| Returns true if the first period set value is greater than or equal to the second one. More... | |
| PGDLLEXPORT Datum | periodset_gt (PG_FUNCTION_ARGS) |
| Returns true if the first period set value is greater than the second one. More... | |
Basic functions for set of disjoint periods.
1.8.13