MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Enumerations | Functions
meos.h File Reference

External API of the Mobility Engine Open Source (MEOS) library. More...

#include <stdbool.h>
#include <stdint.h>
#include "postgres_int_defs.h"

Go to the source code of this file.

Data Structures

struct  Match
 Struct for storing a similarity match. More...
 
struct  Set
 Structure to represent sets of values. More...
 
struct  SkipList
 Structure to represent skiplists that keep the current state of an aggregation. More...
 
struct  SkipListElem
 
struct  Span
 Structure to represent spans (a.k.a. More...
 
struct  SpanSet
 Structure to represent span sets. More...
 
struct  STBox
 Structure to represent spatiotemporal boxes. More...
 
struct  TBox
 Structure to represent temporal boxes. More...
 
struct  Temporal
 Structure to represent the common structure of temporal values of any temporal subtype. More...
 
struct  TInstant
 Structure to represent temporal values of instant subtype. More...
 
struct  TSequence
 Structure to represent temporal values of sequence subtype. More...
 
struct  TSequenceSet
 Structure to represent temporal values of sequence set subtype. More...
 

Macros

#define DOUBLE_PAD(size)   ( (size) + ((size) % 8 ? (8 - (size) % 8) : 0 ) )
 Align to double. More...
 
#define SKIPLIST_MAXLEVEL   32
 Structure to represent skiplist elements. More...
 
#define TSEQUENCE_BBOX_PTR(seq)   ((void *)(&(seq)->period))
 
#define TSEQUENCESET_BBOX_PTR(ss)   ((void *)(&(ss)->period))
 

Typedefs

typedef void(* error_handler_fn) (int, int, const char *)
 
typedef struct RTree RTree
 Structure for the in-memory Rtree index. More...
 

Enumerations

enum  errorCode {
  MEOS_SUCCESS = 0 , MEOS_ERR_INTERNAL_ERROR = 1 , MEOS_ERR_INTERNAL_TYPE_ERROR = 2 , MEOS_ERR_VALUE_OUT_OF_RANGE = 3 ,
  MEOS_ERR_DIVISION_BY_ZERO = 4 , MEOS_ERR_MEMORY_ALLOC_ERROR = 5 , MEOS_ERR_AGGREGATION_ERROR = 6 , MEOS_ERR_DIRECTORY_ERROR = 7 ,
  MEOS_ERR_FILE_ERROR = 8 , MEOS_ERR_INVALID_ARG = 10 , MEOS_ERR_INVALID_ARG_TYPE = 11 , MEOS_ERR_INVALID_ARG_VALUE = 12 ,
  MEOS_ERR_FEATURE_NOT_SUPPORTED = 13 , MEOS_ERR_MFJSON_INPUT = 20 , MEOS_ERR_MFJSON_OUTPUT = 21 , MEOS_ERR_TEXT_INPUT = 22 ,
  MEOS_ERR_TEXT_OUTPUT = 23 , MEOS_ERR_WKB_INPUT = 24 , MEOS_ERR_WKB_OUTPUT = 25 , MEOS_ERR_GEOJSON_INPUT = 26 ,
  MEOS_ERR_GEOJSON_OUTPUT = 27
}
 
enum  interpType { INTERP_NONE = 0 , DISCRETE = 1 , STEP = 2 , LINEAR = 3 }
 Enumeration that defines the interpolation types used in MEOS. More...
 
enum  tempSubtype { ANYTEMPSUBTYPE = 0 , TINSTANT = 1 , TSEQUENCE = 2 , TSEQUENCESET = 3 }
 Enumeration that defines the temporal subtypes used in MEOS. More...
 

Functions

DateADT add_date_int (DateADT d, int32 days)
 Return the addition of a date and a number of days. More...
 
Temporaladd_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal addition of a float and a temporal float. More...
 
Temporaladd_int_tint (int i, const Temporal *tnumber)
 Return the temporal addition of an integer and a temporal integer. More...
 
Intervaladd_interval_interval (const Interval *interv1, const Interval *interv2)
 Return the addition of two intervals. More...
 
Temporaladd_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal addition of a temporal float and a float. More...
 
TimestampTz add_timestamptz_interval (TimestampTz t, const Interval *interv)
 Return the addition of a timestamp and an interval. More...
 
Temporaladd_tint_int (const Temporal *tnumber, int i)
 Return the temporal addition of a temporal integer and an integer. More...
 
Temporaladd_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal addition of the temporal numbers. More...
 
bool adjacent_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span and the value span of a temporal number are adjacent. More...
 
bool adjacent_span_bigint (const Span *s, int64 i)
 Return true if a span and a big integer are adjacent. More...
 
bool adjacent_span_date (const Span *s, DateADT d)
 Return true if a span and a date are adjacent. More...
 
bool adjacent_span_float (const Span *s, double d)
 Return true if a span and a float are adjacent. More...
 
bool adjacent_span_int (const Span *s, int i)
 Return true if a span and an integer are adjacent. More...
 
bool adjacent_span_span (const Span *s1, const Span *s2)
 Return true if two spans are adjacent. More...
 
bool adjacent_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span and a span set are adjacent. More...
 
bool adjacent_span_timestamptz (const Span *s, TimestampTz t)
 Return true if a span and a timestamptz are adjacent. More...
 
bool adjacent_spanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set and a big integer are adjacent. More...
 
bool adjacent_spanset_date (const SpanSet *ss, DateADT d)
 Return true if a span set and a date are adjacent. More...
 
bool adjacent_spanset_float (const SpanSet *ss, double d)
 Return true if a span set and a float are adjacent. More...
 
bool adjacent_spanset_int (const SpanSet *ss, int i)
 Return true if a span set and an integer are adjacent. More...
 
bool adjacent_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set and a span are adjacent. More...
 
bool adjacent_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if two span sets are adjacent. More...
 
bool adjacent_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return true if a span set and a timestamptz are adjacent. More...
 
bool adjacent_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if two temporal boxes are adjacent. More...
 
bool adjacent_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box and the bounding box of a temporal number are adjacent. More...
 
bool adjacent_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the time spans of two temporal values are adjacent. More...
 
bool adjacent_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if the time span of a temporal value and a timestamptz span are adjacent. More...
 
bool adjacent_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if the value span of a temporal number and a number span are adjacent. More...
 
bool adjacent_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if the bounding box of a temporal number and a temporal box are adjacent. More...
 
bool adjacent_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the bounding boxes of two temporal numbers are adjacent. More...
 
bool adjacent_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span and the time span of a temporal value are adjacent. More...
 
bool after_date_set (DateADT d, const Set *s)
 Return true if a date is after a set. More...
 
bool after_date_span (DateADT d, const Span *s)
 Return true if a date is after a span. More...
 
bool after_date_spanset (DateADT d, const SpanSet *ss)
 Return true if a date is after a span set. More...
 
bool after_set_date (const Set *s, DateADT d)
 Return true if a set is after a date. More...
 
bool after_set_timestamptz (const Set *s, TimestampTz t)
 Return true if a set is after a timestamptz. More...
 
bool after_span_date (const Span *s, DateADT d)
 Return true if a span is after a date. More...
 
bool after_span_timestamptz (const Span *s, TimestampTz t)
 Return true if a span is after a timestamptz. More...
 
bool after_spanset_date (const SpanSet *ss, DateADT d)
 Return true if a span set is after a date. More...
 
bool after_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return true if a span set is after a timestamptz. More...
 
bool after_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is after the second one. More...
 
bool after_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is after a temporal number. More...
 
bool after_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is after the second one. More...
 
bool after_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if a temporal value is after a timestamptz span. More...
 
bool after_timestamptz_set (TimestampTz t, const Set *s)
 Return true if a timestamptz is after a set. More...
 
bool after_timestamptz_span (TimestampTz t, const Span *s)
 Return true if a timestamptz is after a span. More...
 
bool after_timestamptz_spanset (TimestampTz t, const SpanSet *ss)
 Return true if a timestamptz is after a span set. More...
 
bool after_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number is after a temporal box. More...
 
bool after_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number is after the second one. More...
 
bool after_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span is after a temporal value. More...
 
int always_eq_bool_tbool (bool b, const Temporal *temp)
 Return true if a boolean is always equal to a temporal boolean. More...
 
int always_eq_float_tfloat (double d, const Temporal *temp)
 Return true if a float is always equal to a temporal float. More...
 
int always_eq_int_tint (int i, const Temporal *temp)
 Return true if an integer is always equal to a temporal integer. More...
 
int always_eq_tbool_bool (const Temporal *temp, bool b)
 Return true if a temporal boolean is always equal to a boolean. More...
 
int always_eq_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if two temporal values are always equal. More...
 
int always_eq_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is always equal to a temporal text. More...
 
int always_eq_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is always equal to a float. More...
 
int always_eq_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is always equal to an integer. More...
 
int always_eq_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is always equal to a text. More...
 
int always_ge_float_tfloat (double d, const Temporal *temp)
 Return true if a float is always less than or equal to a float. More...
 
int always_ge_int_tint (int i, const Temporal *temp)
 Return true if an integer is always less than or equal to an integer. More...
 
int always_ge_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is always greater than or equal to the second one. More...
 
int always_ge_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is always less than or equal to a text. More...
 
int always_ge_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is always less than or equal to a float. More...
 
int always_ge_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is always less than or equal to an integer. More...
 
int always_ge_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is always less than or equal to a text. More...
 
int always_gt_float_tfloat (double d, const Temporal *temp)
 Return true if a float is always less than a temporal float. More...
 
int always_gt_int_tint (int i, const Temporal *temp)
 Return true if an integer is always less than a temporal integer. More...
 
int always_gt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is always greater than the second one. More...
 
int always_gt_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is always less than a temporal text. More...
 
int always_gt_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is always less than a float. More...
 
int always_gt_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is always less than an integer. More...
 
int always_gt_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is always less than a text. More...
 
int always_le_float_tfloat (double d, const Temporal *temp)
 Return true if a float is always less than or equal to a float. More...
 
int always_le_int_tint (int i, const Temporal *temp)
 Return true if an integer is always less than or equal to an integer. More...
 
int always_le_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is always less than or equal to the second one. More...
 
int always_le_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is always less than or equal to a text. More...
 
int always_le_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is always less than or equal to a float. More...
 
int always_le_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is always less than or equal to an integer. More...
 
int always_le_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is always less than or equal to a text. More...
 
int always_lt_float_tfloat (double d, const Temporal *temp)
 Return true if a float is always less than a temporal float. More...
 
int always_lt_int_tint (int i, const Temporal *temp)
 Return true if an integer is always less than a temporal integer. More...
 
int always_lt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is always less than the second one. More...
 
int always_lt_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is always less than a temporal text. More...
 
int always_lt_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is always less than a float. More...
 
int always_lt_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is always less than an integer. More...
 
int always_lt_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is always less than a text. More...
 
int always_ne_bool_tbool (bool b, const Temporal *temp)
 Return true if a boolean is always different from a temporal boolean. More...
 
int always_ne_float_tfloat (double d, const Temporal *temp)
 Return true if a float is always different from a temporal float. More...
 
int always_ne_int_tint (int i, const Temporal *temp)
 Return true if an integer is always different from a temporal integer. More...
 
int always_ne_tbool_bool (const Temporal *temp, bool b)
 Return true if a temporal boolean is always different from a boolean. More...
 
int always_ne_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if two temporal values are always different. More...
 
int always_ne_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is always different from a temporal text. More...
 
int always_ne_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is always different from a float. More...
 
int always_ne_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is always different from an integer. More...
 
int always_ne_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is always different from a text. More...
 
bool before_date_set (DateADT d, const Set *s)
 Return true if a date is before a set. More...
 
bool before_date_span (DateADT d, const Span *s)
 Return true if a date is before a span. More...
 
bool before_date_spanset (DateADT d, const SpanSet *ss)
 Return true if a date is before a span set. More...
 
bool before_set_date (const Set *s, DateADT d)
 Return true if a set is before a date. More...
 
bool before_set_timestamptz (const Set *s, TimestampTz t)
 Return true if a set is before a timestamptz. More...
 
bool before_span_date (const Span *s, DateADT d)
 Return true if a span is before a date. More...
 
bool before_span_timestamptz (const Span *s, TimestampTz t)
 Return true if a span is before a timestamptz. More...
 
bool before_spanset_date (const SpanSet *ss, DateADT d)
 Return true if a span set is before a date. More...
 
bool before_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return true if a span set is before a timestamptz. More...
 
bool before_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is before the second one. More...
 
bool before_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is before a temporal number. More...
 
bool before_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is before the second one. More...
 
bool before_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if a temporal value is before a timestamptz span. More...
 
bool before_timestamptz_set (TimestampTz t, const Set *s)
 Return true if a timestamptz is before a set. More...
 
bool before_timestamptz_span (TimestampTz t, const Span *s)
 Return true if a timestamptz is before a span. More...
 
bool before_timestamptz_spanset (TimestampTz t, const SpanSet *ss)
 Return true if a timestamptz is before a span set. More...
 
bool before_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number is before a temporal box. More...
 
bool before_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number is before the second one. More...
 
bool before_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span is before a temporal value. More...
 
Spanbigint_extent_transfn (Span *state, int64 i)
 Transition function for span extent aggregate of big integers. More...
 
int64 bigint_get_bin (int64 value, int64 vsize, int64 vorigin)
 Return the initial value of the bin that contains an integer. More...
 
Setbigint_to_set (int64 i)
 Convert a big integer into a set. More...
 
Spanbigint_to_span (int i)
 Convert a big integer into a span. More...
 
SpanSetbigint_to_spanset (int i)
 Convert a big integer into a span set. More...
 
Setbigint_union_transfn (Set *state, int64 i)
 Transition function for set union aggregate of big integers. More...
 
int64 bigintset_end_value (const Set *s)
 Return the end value of a big integer set. More...
 
Setbigintset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
Setbigintset_make (const int64 *values, int count)
 Return a big integer set from an array of values. More...
 
char * bigintset_out (const Set *set)
 Return the string representation of a big integer set. More...
 
Setbigintset_shift_scale (const Set *s, int64 shift, int64 width, bool hasshift, bool haswidth)
 Return a big integer set shifted and/or scaled by two values. More...
 
int64 bigintset_start_value (const Set *s)
 Return the start value of a big integer set. More...
 
bool bigintset_value_n (const Set *s, int n, int64 *result)
 Return in the last argument the n-th value of a big integer set. More...
 
int64bigintset_values (const Set *s)
 Return the array of values of a big integer set. More...
 
Spanbigintspan_bins (const Span *s, int64 vsize, int64 vorigin, int *count)
 Return the bins of a big integer span. More...
 
Spanbigintspan_in (const char *str)
 Return an integer span from its Well-Known Text (WKT) representation. More...
 
int64 bigintspan_lower (const Span *s)
 Return the lower bound of an integer span. More...
 
Spanbigintspan_make (int64 lower, int64 upper, bool lower_inc, bool upper_inc)
 Return a big integer span from the bounds. More...
 
char * bigintspan_out (const Span *s)
 Return the Well-Known Text (WKT) representation of a big integer span. More...
 
Spanbigintspan_shift_scale (const Span *s, int64 shift, int64 width, bool hasshift, bool haswidth)
 Return a big integer span shifted and/or scaled by the values. More...
 
int64 bigintspan_upper (const Span *s)
 Return the upper bound of an integer span. More...
 
int64 bigintspan_width (const Span *s)
 Return the width of a big integer span. More...
 
Spanbigintspanset_bins (const SpanSet *ss, int64 vsize, int64 vorigin, int *count)
 Return the bins of a big integer span set. More...
 
SpanSetbigintspanset_in (const char *str)
 Return a big integer span from its Well-Known Text (WKT) representation. More...
 
int64 bigintspanset_lower (const SpanSet *ss)
 Return the lower bound of an integer span set. More...
 
char * bigintspanset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of a big integer span set. More...
 
SpanSetbigintspanset_shift_scale (const SpanSet *ss, int64 shift, int64 width, bool hasshift, bool haswidth)
 Return a big integer span shifted and/or scaled by two values. More...
 
int64 bigintspanset_upper (const SpanSet *ss)
 Return the upper bound of an integer span set. More...
 
int64 bigintspanset_width (const SpanSet *ss, bool boundspan)
 Return the width of an integer span set. More...
 
bool bool_in (const char *str)
 Return a boolean from its string representation. More...
 
char * bool_out (bool b)
 Return the string representation of a boolean. More...
 
bool contained_bigint_set (int64 i, const Set *s)
 Return true if a big integer is contained in a set. More...
 
bool contained_bigint_span (int64 i, const Span *s)
 Return true if a big integer is contained in a span. More...
 
bool contained_bigint_spanset (int64 i, const SpanSet *ss)
 Return true if a big integer is contained in a span set. More...
 
bool contained_date_set (DateADT d, const Set *s)
 Return true if a date is contained in a set. More...
 
bool contained_date_span (DateADT d, const Span *s)
 Return true if a date is contained in a span. More...
 
bool contained_date_spanset (DateADT d, const SpanSet *ss)
 Return true if a date is contained in a span set. More...
 
bool contained_float_set (double d, const Set *s)
 Return true if a float is contained in a set. More...
 
bool contained_float_span (double d, const Span *s)
 Return true if a float is contained in a span. More...
 
bool contained_float_spanset (double d, const SpanSet *ss)
 Return true if a float is contained in a span set. More...
 
bool contained_int_set (int i, const Set *s)
 Return true if an integer is contained in a set. More...
 
bool contained_int_span (int i, const Span *s)
 Return true if an integer is contained in a span. More...
 
bool contained_int_spanset (int i, const SpanSet *ss)
 Return true if an integer is contained in a span set. More...
 
bool contained_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span is contained in the value span of a temporal number. More...
 
bool contained_set_set (const Set *s1, const Set *s2)
 Return true if the first set is contained in the second one. More...
 
bool contained_span_span (const Span *s1, const Span *s2)
 Return true if the first span is contained in the second one. More...
 
bool contained_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span is contained in a span set. More...
 
bool contained_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set is contained in a span set. More...
 
bool contained_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is contained in the second one. More...
 
bool contained_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is contained in the second one. More...
 
bool contained_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is contained in the bounding box of a temporal number. More...
 
bool contained_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the time span of the first temporal value is contained in the one of the second temporal value. More...
 
bool contained_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if the time span of a temporal value is contained in a timestamptz span. More...
 
bool contained_text_set (const text *txt, const Set *s)
 Return true if a text is contained in a set. More...
 
bool contained_timestamptz_set (TimestampTz t, const Set *s)
 Return true if a timestamptz is contained in a set. More...
 
bool contained_timestamptz_span (TimestampTz t, const Span *s)
 Return true if a timestamp is contained in a span. More...
 
bool contained_timestamptz_spanset (TimestampTz t, const SpanSet *ss)
 Return true if a timestamptz is contained in a span set. More...
 
bool contained_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if the value span of a temporal number is contained in a number span. More...
 
bool contained_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if the bounding box of a temporal number is contained in a temporal box. More...
 
bool contained_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the bounding box of the first temporal number is contained in the one of the second temporal number. More...
 
bool contained_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span is contained the time span of a temporal value. More...
 
bool contains_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span contains the value span of a temporal number. More...
 
bool contains_set_bigint (const Set *s, int64 i)
 Return true if a set contains a big integer. More...
 
bool contains_set_date (const Set *s, DateADT d)
 Return true if a set contains a date. More...
 
bool contains_set_float (const Set *s, double d)
 Return true if a set contains a float. More...
 
bool contains_set_int (const Set *s, int i)
 Return true if a set contains an integer. More...
 
bool contains_set_set (const Set *s1, const Set *s2)
 Return true if the first set contains the second one. More...
 
bool contains_set_text (const Set *s, text *t)
 Return true if a set contains a text. More...
 
bool contains_set_timestamptz (const Set *s, TimestampTz t)
 Return true if a set contains a timestamptz. More...
 
bool contains_span_bigint (const Span *s, int64 i)
 Return true if a span contains a big integer. More...
 
bool contains_span_date (const Span *s, DateADT d)
 Return true if a span contains a date. More...
 
bool contains_span_float (const Span *s, double d)
 Return true if a span contains a float. More...
 
bool contains_span_int (const Span *s, int i)
 Return true if a span contains an integer. More...
 
bool contains_span_span (const Span *s1, const Span *s2)
 Return true if the first span contains the second one. More...
 
bool contains_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span contains a span set. More...
 
bool contains_span_timestamptz (const Span *s, TimestampTz t)
 Return true if a span contains a timestamptz. More...
 
bool contains_spanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set contains a big integer. More...
 
bool contains_spanset_date (const SpanSet *ss, DateADT d)
 Return true if a span set contains a date. More...
 
bool contains_spanset_float (const SpanSet *ss, double d)
 Return true if a span set contains a float. More...
 
bool contains_spanset_int (const SpanSet *ss, int i)
 Return true if a span set contains an integer. More...
 
bool contains_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set contains a span. More...
 
bool contains_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set contains the second one. More...
 
bool contains_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return true if a span set contains a timestamptz. More...
 
bool contains_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box contains the second one. More...
 
bool contains_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box contains the bounding box of a temporal number. More...
 
bool contains_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the time span of the first temporal value contains the one of the second one. More...
 
bool contains_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if the time span of a temporal value contains a timestamptz span. More...
 
bool contains_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if the value span of a temporal number contains a number span. More...
 
bool contains_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if the bounding box of a temporal number contains a temporal box. More...
 
bool contains_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the bounding box of the first temporal number contains the one of the second temporal number. More...
 
bool contains_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span contains the time span of a temporal value. More...
 
textcstring2text (const char *str)
 Convert a C string into a text. More...
 
Spandate_extent_transfn (Span *state, DateADT d)
 Transition function for span extent aggregate of dates. More...
 
DateADT date_get_bin (DateADT d, const Interval *duration, DateADT torigin)
 Return the initial date of the bin that contains a date. More...
 
Setdate_to_set (DateADT d)
 Convert a date into a set. More...
 
Spandate_to_span (DateADT d)
 Convert a date into a span. More...
 
SpanSetdate_to_spanset (DateADT d)
 Convert a date into a span set. More...
 
Timestamp date_to_timestamp (DateADT dateVal)
 Convert a date into a timestamp. More...
 
TimestampTz date_to_timestamptz (DateADT d)
 Convert a date into a timestamptz. More...
 
Setdate_union_transfn (Set *state, DateADT d)
 Transition function for set union aggregate of dates. More...
 
DateADT dateset_end_value (const Set *s)
 Return the end value of a date set. More...
 
Setdateset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
Setdateset_make (const DateADT *values, int count)
 Return a date set from an array of values. More...
 
char * dateset_out (const Set *s)
 Return the string representation of a date set. More...
 
Setdateset_shift_scale (const Set *s, int shift, int width, bool hasshift, bool haswidth)
 Return a date set shifted and/or scaled by two values. More...
 
DateADT dateset_start_value (const Set *s)
 Return the start value of a date set. More...
 
Setdateset_to_tstzset (const Set *s)
 Convert a date set into a timestamptz set. More...
 
bool dateset_value_n (const Set *s, int n, DateADT *result)
 Return in the last argument the n-th value of a date set. More...
 
DateADTdateset_values (const Set *s)
 Return the array of values of a date set. More...
 
Spandatespan_bins (const Span *s, const Interval *duration, DateADT torigin, int *count)
 Return the bins of a date span. More...
 
Intervaldatespan_duration (const Span *s)
 Return the duration of a date span as an interval. More...
 
Spandatespan_in (const char *str)
 Return a date span from its Well-Known Text (WKT) representation. More...
 
DateADT datespan_lower (const Span *s)
 Return the lower bound of a date span. More...
 
Spandatespan_make (DateADT lower, DateADT upper, bool lower_inc, bool upper_inc)
 Return a date span from the bounds. More...
 
char * datespan_out (const Span *s)
 Return the Well-Known Text (WKT) representation of a date span. More...
 
Spandatespan_shift_scale (const Span *s, int shift, int width, bool hasshift, bool haswidth)
 Return a date span shifted and/or scaled by the values. More...
 
Spandatespan_to_tstzspan (const Span *s)
 Convert a date span into a timestamptz span. More...
 
DateADT datespan_upper (const Span *s)
 Return the upper bound of a date span. More...
 
Spandatespanset_bins (const SpanSet *ss, const Interval *duration, DateADT torigin, int *count)
 Return the bins of a date span set. More...
 
bool datespanset_date_n (const SpanSet *ss, int n, DateADT *result)
 Return in the last argument the n-th date of a date span set. More...
 
Setdatespanset_dates (const SpanSet *ss)
 Return the set of dates of a span set. More...
 
Intervaldatespanset_duration (const SpanSet *ss, bool boundspan)
 Return the duration of a date span set. More...
 
DateADT datespanset_end_date (const SpanSet *ss)
 Return the end date of a span set. More...
 
SpanSetdatespanset_in (const char *str)
 Return a date set from its Well-Known Text (WKT) representation. More...
 
int datespanset_num_dates (const SpanSet *ss)
 Return the number of dates of a span set. More...
 
char * datespanset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of a date span set. More...
 
SpanSetdatespanset_shift_scale (const SpanSet *ss, int shift, int width, bool hasshift, bool haswidth)
 Return a date span shifted and/or scaled by two values. More...
 
DateADT datespanset_start_date (const SpanSet *ss)
 Return the start date of a span set. More...
 
SpanSetdatespanset_to_tstzspanset (const SpanSet *ss)
 Convert a date span set into a timestamptz span set. More...
 
int64 distance_bigintset_bigintset (const Set *s1, const Set *s2)
 Return the distance between two big integer sets. More...
 
int64 distance_bigintspan_bigintspan (const Span *s1, const Span *s2)
 Return the distance between two big integer spans. More...
 
int64 distance_bigintspanset_bigintspan (const SpanSet *ss, const Span *s)
 Return the distance between a big integer span set and a span. More...
 
int64 distance_bigintspanset_bigintspanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance between two big integer span sets. More...
 
int distance_dateset_dateset (const Set *s1, const Set *s2)
 Return the distance in days between two date sets. More...
 
int distance_datespan_datespan (const Span *s1, const Span *s2)
 Return the distance between two date spans. More...
 
int distance_datespanset_datespan (const SpanSet *ss, const Span *s)
 Return the distance in days between a date span set and a span. More...
 
int distance_datespanset_datespanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance in days between two date span sets. More...
 
double distance_floatset_floatset (const Set *s1, const Set *s2)
 Return the distance between two float sets. More...
 
double distance_floatspan_floatspan (const Span *s1, const Span *s2)
 Return the distance between two float spans. More...
 
double distance_floatspanset_floatspan (const SpanSet *ss, const Span *s)
 Return the distance between a float span set and a span. More...
 
double distance_floatspanset_floatspanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance between two float span sets. More...
 
int distance_intset_intset (const Set *s1, const Set *s2)
 Return the distance between two integer sets. More...
 
int distance_intspan_intspan (const Span *s1, const Span *s2)
 Return the distance between two integer spans. More...
 
int distance_intspanset_intspan (const SpanSet *ss, const Span *s)
 Return the distance between an integer span set and a span. More...
 
int distance_intspanset_intspanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance between two integer span sets. More...
 
int64 distance_set_bigint (const Set *s, int64 i)
 Return the distance between a set and a big integer. More...
 
int distance_set_date (const Set *s, DateADT d)
 Return the distance in days between a set and a date. More...
 
double distance_set_float (const Set *s, double d)
 Return the distance between a set and a float. More...
 
int distance_set_int (const Set *s, int i)
 Return the distance between a set and an integer. More...
 
double distance_set_timestamptz (const Set *s, TimestampTz t)
 Return the distance in seconds between a set and a timestamptz as a double. More...
 
int64 distance_span_bigint (const Span *s, int64 i)
 Return the distance between a span and a big integer as a double. More...
 
int distance_span_date (const Span *s, DateADT d)
 Return the distance in days between a span and a date as a double. More...
 
double distance_span_float (const Span *s, double d)
 Return the distance between a span and a float. More...
 
int distance_span_int (const Span *s, int i)
 Return the distance between a span and an integer as a double. More...
 
double distance_span_timestamptz (const Span *s, TimestampTz t)
 Return the distance in seconds between a span and a timestamptz as a double. More...
 
int64 distance_spanset_bigint (const SpanSet *ss, int64 i)
 Return the distance between a span set and a big integer. More...
 
int distance_spanset_date (const SpanSet *ss, DateADT d)
 Return the distance in seconds between a span set and a date as a double. More...
 
double distance_spanset_float (const SpanSet *ss, double d)
 Return the distance between a span set and a float. More...
 
int distance_spanset_int (const SpanSet *ss, int i)
 Return the distance between a span set and an integer. More...
 
double distance_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return the distance in seconds between a span set and a timestamptz. More...
 
Temporaldistance_tfloat_float (const Temporal *temp, double d)
 Return the temporal distance between a temporal float and a float. More...
 
Temporaldistance_tint_int (const Temporal *temp, int i)
 Return the temporal distance between a temporal integer and an integer. More...
 
Temporaldistance_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return the temporal distance between two temporal numbers. More...
 
double distance_tstzset_tstzset (const Set *s1, const Set *s2)
 Return the distance in seconds between two timestamptz sets. More...
 
double distance_tstzspan_tstzspan (const Span *s1, const Span *s2)
 Return the distance in seconds between two timestamptz spans. More...
 
double distance_tstzspanset_tstzspan (const SpanSet *ss, const Span *s)
 Return the distance in seconds between a timestamptz span set and a span. More...
 
double distance_tstzspanset_tstzspanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the distance in seconds between two timestamptz span sets. More...
 
Temporaldiv_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal division of a float and a temporal float. More...
 
Temporaldiv_int_tint (int i, const Temporal *tnumber)
 Return the temporal division of an integer and a temporal integer. More...
 
Temporaldiv_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal division of a temporal float and a float. More...
 
Temporaldiv_tint_int (const Temporal *tnumber, int i)
 Return the temporal division of a temporal integer and an integer. More...
 
Temporaldiv_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal division of the temporal numbers. More...
 
int ever_eq_bool_tbool (bool b, const Temporal *temp)
 Return true if a boolean is ever equal to a temporal boolean. More...
 
int ever_eq_float_tfloat (double d, const Temporal *temp)
 Return true if a float is ever equal to a temporal float. More...
 
int ever_eq_int_tint (int i, const Temporal *temp)
 Return true if an integer is ever equal to a temporal integer. More...
 
int ever_eq_tbool_bool (const Temporal *temp, bool b)
 Return true if a temporal boolean is ever equal to a boolean. More...
 
int ever_eq_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if two temporal values are ever equal. More...
 
int ever_eq_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is ever equal to a temporal text. More...
 
int ever_eq_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is ever equal to a float. More...
 
int ever_eq_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is ever equal to an integer. More...
 
int ever_eq_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is ever equal to a text. More...
 
int ever_ge_float_tfloat (double d, const Temporal *temp)
 Return true if a float is ever less than or equal to a float. More...
 
int ever_ge_int_tint (int i, const Temporal *temp)
 Return true if an integer is ever less than or equal to an integer. More...
 
int ever_ge_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is ever greater than or equal to the second one. More...
 
int ever_ge_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is ever less than or equal to a text. More...
 
int ever_ge_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is ever less than or equal to a float. More...
 
int ever_ge_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is ever less than or equal to an integer. More...
 
int ever_ge_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is ever less than or equal to a text. More...
 
int ever_gt_float_tfloat (double d, const Temporal *temp)
 Return true if a float is ever less than a temporal float. More...
 
int ever_gt_int_tint (int i, const Temporal *temp)
 Return true if an integer is ever less than a temporal integer. More...
 
int ever_gt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal boolean is ever greater than the second one. More...
 
int ever_gt_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is ever less than a temporal text. More...
 
int ever_gt_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is ever less than a float. More...
 
int ever_gt_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is ever less than an integer. More...
 
int ever_gt_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is ever less than a text. More...
 
int ever_le_float_tfloat (double d, const Temporal *temp)
 Return true if a float is ever less than or equal to a float. More...
 
int ever_le_int_tint (int i, const Temporal *temp)
 Return true if an integer is ever less than or equal to an integer. More...
 
int ever_le_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal boolean is ever less than or equal to the second one. More...
 
int ever_le_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is ever less than or equal to a text. More...
 
int ever_le_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is ever less than or equal to a float. More...
 
int ever_le_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is ever less than or equal to an integer. More...
 
int ever_le_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is ever less than or equal to a text. More...
 
int ever_lt_float_tfloat (double d, const Temporal *temp)
 Return true if a float is ever less than a temporal float. More...
 
int ever_lt_int_tint (int i, const Temporal *temp)
 Return true if an integer is ever less than a temporal integer. More...
 
int ever_lt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal boolean is ever less than the second one. More...
 
int ever_lt_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is ever less than a temporal text. More...
 
int ever_lt_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is ever less than a float. More...
 
int ever_lt_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is ever less than an integer. More...
 
int ever_lt_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is ever less than a text. More...
 
int ever_ne_bool_tbool (bool b, const Temporal *temp)
 Return true if a boolean is ever different from a temporal boolean. More...
 
int ever_ne_float_tfloat (double d, const Temporal *temp)
 Return true if a float is ever different from a temporal float. More...
 
int ever_ne_int_tint (int i, const Temporal *temp)
 Return true if an integer is ever different from a temporal integer. More...
 
int ever_ne_tbool_bool (const Temporal *temp, bool b)
 Return true if a temporal boolean is ever different from a boolean. More...
 
int ever_ne_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if two temporal values are ever different. More...
 
int ever_ne_text_ttext (const text *txt, const Temporal *temp)
 Return true if a text is ever different from a temporal text. More...
 
int ever_ne_tfloat_float (const Temporal *temp, double d)
 Return true if a temporal float is ever different from a float. More...
 
int ever_ne_tint_int (const Temporal *temp, int i)
 Return true if a temporal integer is ever different from an integer. More...
 
int ever_ne_ttext_text (const Temporal *temp, const text *txt)
 Return true if a temporal text is ever different from a text. More...
 
double float_degrees (double value, bool normalize)
 Return a float converted from radians to degrees. More...
 
double float_exp (double d)
 Return the exponential of a double. More...
 
Spanfloat_extent_transfn (Span *state, double d)
 Transition function for span extent aggregate of floats. More...
 
double float_get_bin (double value, double vsize, double vorigin)
 Return the initial value of the bin that contains a float. More...
 
double float_ln (double d)
 Return the natural logarithm of a double. More...
 
double float_log10 (double d)
 Return the logarithm base 10 of a double. More...
 
double float_round (double d, int maxdd)
 Return a float number rounded to a given number of decimal places. More...
 
TBoxfloat_timestamptz_to_tbox (double d, TimestampTz t)
 Return a temporal box from a float and a timestamptz. More...
 
Setfloat_to_set (double d)
 Convert a float into a set. More...
 
Spanfloat_to_span (double d)
 Convert a float into a span. More...
 
SpanSetfloat_to_spanset (double d)
 Convert a float into a span set. More...
 
TBoxfloat_to_tbox (double d)
 Convert a float into a temporal box. More...
 
TBoxfloat_tstzspan_to_tbox (double d, const Span *s)
 Return a temporal box from a float and a timestamptz span. More...
 
Setfloat_union_transfn (Set *state, double d)
 Transition function for set union aggregate of floats. More...
 
Setfloatset_ceil (const Set *s)
 Return a float set rounded up to the nearest integer @csqlfn Floatset_ceil() More...
 
Setfloatset_degrees (const Set *s, bool normalize)
 Convert a float set with the values into degrees. More...
 
double floatset_end_value (const Set *s)
 Return the end value of a float set. More...
 
Setfloatset_floor (const Set *s)
 Return a float set rounded down to the nearest integer @csqlfn Floatset_floor() More...
 
Setfloatset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
Setfloatset_make (const double *values, int count)
 Return a float set from an array of values. More...
 
char * floatset_out (const Set *set, int maxdd)
 Return the string representation of a float set. More...
 
Setfloatset_radians (const Set *s)
 Convert a float set with the values into radians. More...
 
Setfloatset_shift_scale (const Set *s, double shift, double width, bool hasshift, bool haswidth)
 Return a float set shifted and/or scaled by two values. More...
 
double floatset_start_value (const Set *s)
 Return the start value of a float set. More...
 
Setfloatset_to_intset (const Set *s)
 Convert a float set into an integer set. More...
 
bool floatset_value_n (const Set *s, int n, double *result)
 Return in the last argument the n-th value of a float set. More...
 
double * floatset_values (const Set *s)
 Return the array of values of a float set. More...
 
Spanfloatspan_bins (const Span *s, double vsize, double vorigin, int *count)
 Return the bins of a float span. More...
 
Spanfloatspan_ceil (const Span *s)
 Return a float span rounded up to the nearest integer @csqlfn Floatspan_ceil() More...
 
Spanfloatspan_degrees (const Span *s, bool normalize)
 Return a float span with the values converted to degrees. More...
 
Spanfloatspan_floor (const Span *s)
 Return a float span rounded down to the nearest integer @csqlfn Floatspan_floor() More...
 
Spanfloatspan_in (const char *str)
 Return a float span from its Well-Known Text (WKT) representation. More...
 
double floatspan_lower (const Span *s)
 Return the lower bound of a float span. More...
 
Spanfloatspan_make (double lower, double upper, bool lower_inc, bool upper_inc)
 Return a float span from the bounds. More...
 
char * floatspan_out (const Span *s, int maxdd)
 Return the Well-Known Text (WKT) representation of a float span. More...
 
Spanfloatspan_radians (const Span *s)
 Return a float span with the values converted to radians. More...
 
Spanfloatspan_round (const Span *s, int maxdd)
 Return a float span with the precision of the bounds set to a number of decimal places. More...
 
Spanfloatspan_shift_scale (const Span *s, double shift, double width, bool hasshift, bool haswidth)
 Return a float span shifted and/or scaled by the values. More...
 
Spanfloatspan_to_intspan (const Span *s)
 Convert a float span into an integer span. More...
 
double floatspan_upper (const Span *s)
 Return the upper bound of a float span. More...
 
double floatspan_width (const Span *s)
 Return the width of a float span. More...
 
Spanfloatspanset_bins (const SpanSet *ss, double vsize, double vorigin, int *count)
 Return the bins of a float span set. More...
 
SpanSetfloatspanset_ceil (const SpanSet *ss)
 Return a float span set rounded up to the nearest integer. More...
 
SpanSetfloatspanset_degrees (const SpanSet *ss, bool normalize)
 Return a float span set with the values converted to degrees. More...
 
SpanSetfloatspanset_floor (const SpanSet *ss)
 Return a float span set rounded down to the nearest integer. More...
 
SpanSetfloatspanset_in (const char *str)
 Return a float span from its Well-Known Text (WKT) representation. More...
 
double floatspanset_lower (const SpanSet *ss)
 Return the lower bound of a float span set. More...
 
char * floatspanset_out (const SpanSet *ss, int maxdd)
 Return the Well-Known Text (WKT) representation of a float span set. More...
 
SpanSetfloatspanset_radians (const SpanSet *ss)
 Return a float span set with the values converted to radians. More...
 
SpanSetfloatspanset_round (const SpanSet *ss, int maxdd)
 Return a float span set with the precision of the spans set to a number of decimal places. More...
 
SpanSetfloatspanset_shift_scale (const SpanSet *ss, double shift, double width, bool hasshift, bool haswidth)
 Return a float span shifted and/or scaled by two values. More...
 
SpanSetfloatspanset_to_intspanset (const SpanSet *ss)
 Convert a float span set into an integer span set. More...
 
double floatspanset_upper (const SpanSet *ss)
 Return the upper bound of a float span set. More...
 
double floatspanset_width (const SpanSet *ss, bool boundspan)
 Return the width of a float span set. More...
 
Spanint_extent_transfn (Span *state, int i)
 Transition function for span extent aggregate of integers. More...
 
int int_get_bin (int value, int vsize, int vorigin)
 Return the initial value of the bin that contains an integer. More...
 
TBoxint_timestamptz_to_tbox (int i, TimestampTz t)
 Return a temporal box from an integer and a timestamptz. More...
 
Setint_to_set (int i)
 Convert an integer into a set. More...
 
Spanint_to_span (int i)
 Convert an integer into a span. More...
 
SpanSetint_to_spanset (int i)
 Convert an integer into a span set. More...
 
TBoxint_to_tbox (int i)
 Convert an integer into a temporal box. More...
 
TBoxint_tstzspan_to_tbox (int i, const Span *s)
 Return a temporal box from an integer and a timestamptz span. More...
 
Setint_union_transfn (Set *state, int32 i)
 Transition function for set union aggregate of integers. More...
 
Setintersection_bigint_set (int64 i, const Set *s)
 Return the intersection of a big integer and a set. More...
 
Setintersection_date_set (DateADT d, const Set *s)
 Return the intersection of a date and a set. More...
 
Setintersection_float_set (double d, const Set *s)
 Return the intersection of a float and a set. More...
 
Setintersection_int_set (int i, const Set *s)
 Return the intersection of an integer and a set. More...
 
Setintersection_set_bigint (const Set *s, int64 i)
 Return the intersection of a set and a big integer. More...
 
Setintersection_set_date (const Set *s, DateADT d)
 Return the intersection of a set and a date. More...
 
Setintersection_set_float (const Set *s, double d)
 Return the intersection of a set and a float. More...
 
Setintersection_set_int (const Set *s, int i)
 Return the intersection of a set and an integer. More...
 
Setintersection_set_set (const Set *s1, const Set *s2)
 Return the intersection of two sets. More...
 
Setintersection_set_text (const Set *s, const text *txt)
 Return the intersection of a set and a text. More...
 
Setintersection_set_timestamptz (const Set *s, TimestampTz t)
 Return the intersection of a set and a timestamptz. More...
 
Spanintersection_span_bigint (const Span *s, int64 i)
 Return the intersection of a span and a big integer. More...
 
Spanintersection_span_date (const Span *s, DateADT d)
 Return the intersection of a span and a date. More...
 
Spanintersection_span_float (const Span *s, double d)
 Return the intersection of a span and a float. More...
 
Spanintersection_span_int (const Span *s, int i)
 Return the intersection of a span and an integer. More...
 
Spanintersection_span_span (const Span *s1, const Span *s2)
 Return the intersection of two spans. More...
 
SpanSetintersection_span_spanset (const Span *s, const SpanSet *ss)
 Return the intersection of a span and a span set. More...
 
Spanintersection_span_timestamptz (const Span *s, TimestampTz t)
 Return the intersection of a span and a timestamptz. More...
 
SpanSetintersection_spanset_bigint (const SpanSet *ss, int64 i)
 Return the intersection of a span set and a big integer. More...
 
SpanSetintersection_spanset_date (const SpanSet *ss, DateADT d)
 Return the intersection of a span set and a date. More...
 
SpanSetintersection_spanset_float (const SpanSet *ss, double d)
 Return the intersection of a span set and a float. More...
 
SpanSetintersection_spanset_int (const SpanSet *ss, int i)
 Return the intersection of a span set and an integer. More...
 
SpanSetintersection_spanset_span (const SpanSet *ss, const Span *s)
 Return the intersection of a span set and a span. More...
 
SpanSetintersection_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the intersection of two span sets. More...
 
SpanSetintersection_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return the intersection of a span set and a timestamptz. More...
 
TBoxintersection_tbox_tbox (const TBox *box1, const TBox *box2)
 Return the intersection of two temporal boxes. More...
 
Setintersection_text_set (const text *txt, const Set *s)
 Return the intersection of a text and a set. More...
 
Setintersection_timestamptz_set (TimestampTz t, const Set *s)
 Return the intersection of a timestamptz and a set. More...
 
Intervalinterval_make (int32 years, int32 months, int32 weeks, int32 days, int32 hours, int32 mins, double secs)
 Return an interval constructed from its arguments. More...
 
int intset_end_value (const Set *s)
 Return the end value of an integer set. More...
 
Setintset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
Setintset_make (const int *values, int count)
 Return an integer set from an array of values. More...
 
char * intset_out (const Set *set)
 Return the string representation of an integer set. More...
 
Setintset_shift_scale (const Set *s, int shift, int width, bool hasshift, bool haswidth)
 Return an integer set shifted and/or scaled by two values. More...
 
int intset_start_value (const Set *s)
 Return the start value of an integer set. More...
 
Setintset_to_floatset (const Set *s)
 Convert an integer set into a float set. More...
 
bool intset_value_n (const Set *s, int n, int *result)
 Return in the last argument the n-th value of an integer set. More...
 
int * intset_values (const Set *s)
 Return the array of values of an integer set. More...
 
Spanintspan_bins (const Span *s, int vsize, int vorigin, int *count)
 Return the bins of an integer span. More...
 
Spanintspan_in (const char *str)
 Return an integer span from its Well-Known Text (WKT) representation. More...
 
int intspan_lower (const Span *s)
 Return the lower bound of an integer span. More...
 
Spanintspan_make (int lower, int upper, bool lower_inc, bool upper_inc)
 Return an integer span from the bounds. More...
 
char * intspan_out (const Span *s)
 Return the Well-Known Text (WKT) representation of an integer span. More...
 
Spanintspan_shift_scale (const Span *s, int shift, int width, bool hasshift, bool haswidth)
 Return an integer span shifted and/or scaled by the values. More...
 
Spanintspan_to_floatspan (const Span *s)
 Convert an integer span into a float span. More...
 
int intspan_upper (const Span *s)
 Return the upper bound of an integer span. More...
 
int intspan_width (const Span *s)
 Return the width of an integer span. More...
 
Spanintspanset_bins (const SpanSet *ss, int vsize, int vorigin, int *count)
 Return the bins of an integer span set. More...
 
SpanSetintspanset_in (const char *str)
 Return an integer span from its Well-Known Text (WKT) representation. More...
 
int intspanset_lower (const SpanSet *ss)
 Return the lower bound of an integer span set. More...
 
char * intspanset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of an integer span set. More...
 
SpanSetintspanset_shift_scale (const SpanSet *ss, int shift, int width, bool hasshift, bool haswidth)
 Return an integer span shifted and/or scaled by two values. More...
 
SpanSetintspanset_to_floatspanset (const SpanSet *ss)
 Convert an integer span set into a float span set. More...
 
int intspanset_upper (const SpanSet *ss)
 Return the upper bound of an integer span set. More...
 
int intspanset_width (const SpanSet *ss, bool boundspan)
 Return the width of an integer span set. More...
 
bool left_bigint_set (int64 i, const Set *s)
 Return true if a big integer is to the left of a set. More...
 
bool left_bigint_span (int64 i, const Span *s)
 Return true if a big integer is to the left of a span. More...
 
bool left_bigint_spanset (int64 i, const SpanSet *ss)
 Return true if a big integer is to the left of a span set. More...
 
bool left_float_set (double d, const Set *s)
 Return true if a float is to the left of a set. More...
 
bool left_float_span (double d, const Span *s)
 Return true if a float is to the left of a span. More...
 
bool left_float_spanset (double d, const SpanSet *ss)
 Return true if a float is to the left of a span set. More...
 
bool left_int_set (int i, const Set *s)
 Return true if an integer is to the left of a set. More...
 
bool left_int_span (int i, const Span *s)
 Return true if an integer is to the left of a span. More...
 
bool left_int_spanset (int i, const SpanSet *ss)
 Return true if an integer is to the left of a span set. More...
 
bool left_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span is to the left of a temporal number. More...
 
bool left_set_bigint (const Set *s, int64 i)
 Return true if a set is to the left of a big integer. More...
 
bool left_set_float (const Set *s, double d)
 Return true if a set is to the left of a float. More...
 
bool left_set_int (const Set *s, int i)
 Return true if a set is to the left of an integer. More...
 
bool left_set_set (const Set *s1, const Set *s2)
 Return true if the first set is to the left of the second one. More...
 
bool left_set_text (const Set *s, text *txt)
 Return true if a set is to the left of a text. More...
 
bool left_span_bigint (const Span *s, int64 i)
 Return true if a span is to the left of a big integer. More...
 
bool left_span_float (const Span *s, double d)
 Return true if a span is to the left of a float. More...
 
bool left_span_int (const Span *s, int i)
 Return true if a span is to the left of an integer. More...
 
bool left_span_span (const Span *s1, const Span *s2)
 Return true if the first span is to the left of the second one. More...
 
bool left_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span is before a span set. More...
 
bool left_spanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set is to the left of a big integer. More...
 
bool left_spanset_float (const SpanSet *ss, double d)
 Return true if a span set is to the left of a float. More...
 
bool left_spanset_int (const SpanSet *ss, int i)
 Return true if a span set is to the left of an integer. More...
 
bool left_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set is to the left a span. More...
 
bool left_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is to the left of the second one. More...
 
bool left_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is to the left of the second one. More...
 
bool left_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is to the left of a temporal number. More...
 
bool left_text_set (const text *txt, const Set *s)
 Return true if a text is to the left of a set. More...
 
bool left_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if a temporal number is to the left of a number span. More...
 
bool left_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number is to the left of a temporal box. More...
 
bool left_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number is to the left of the second one. More...
 
int meos_errno (void)
 Read an error number. More...
 
int meos_errno_reset (void)
 Clears an error number. More...
 
int meos_errno_restore (int err)
 Set an error number. More...
 
int meos_errno_set (int err)
 Set an error number. More...
 
void meos_error (int errlevel, int errcode, const char *format,...)
 Function handling error messages. More...
 
void meos_finalize (void)
 
void meos_finalize_projsrs (void)
 Destroy all the malloc'ed PROJ objects stored in the PROJSRSCache. More...
 
void meos_finalize_timezone (void)
 
char * meos_get_datestyle (void)
 Get the DateStyle. More...
 
char * meos_get_intervalstyle (void)
 Get the IntervalStyle. More...
 
void meos_initialize (void)
 
void meos_initialize_error_handler (error_handler_fn err_handler)
 
void meos_initialize_timezone (const char *name)
 
bool meos_set_datestyle (const char *newval, void *extra)
 Set the DateStyle. More...
 
bool meos_set_intervalstyle (const char *newval, int extra)
 Set the IntervalStyle. More...
 
Setminus_bigint_set (int64 i, const Set *s)
 Return the difference of a big integer and a set. More...
 
SpanSetminus_bigint_span (int64 i, const Span *s)
 Return the difference of a big integer and a span. More...
 
SpanSetminus_bigint_spanset (int64 i, const SpanSet *ss)
 Return the difference of a big integer and a span set. More...
 
Intervalminus_date_date (DateADT d1, DateADT d2)
 Return the subtraction of two dates. More...
 
DateADT minus_date_int (DateADT d, int32 days)
 Return the subtraction of a date and a number of days. More...
 
Setminus_date_set (DateADT d, const Set *s)
 Return the difference of a date and a set. More...
 
SpanSetminus_date_span (DateADT d, const Span *s)
 Return the difference of a date and a span. More...
 
SpanSetminus_date_spanset (DateADT d, const SpanSet *ss)
 Return the difference of a date and a span set. More...
 
Setminus_float_set (double d, const Set *s)
 Return the difference of a float and a set. More...
 
SpanSetminus_float_span (double d, const Span *s)
 Return the difference of a float and a span. More...
 
SpanSetminus_float_spanset (double d, const SpanSet *ss)
 Return the difference of a float and a span set. More...
 
Setminus_int_set (int i, const Set *s)
 Return the difference of an integer and a set. More...
 
SpanSetminus_int_span (int i, const Span *s)
 Return the difference of an integer and a span. More...
 
SpanSetminus_int_spanset (int i, const SpanSet *ss)
 Return the difference of an integer and a span set. More...
 
Setminus_set_bigint (const Set *s, int64 i)
 Return the difference of a set and a big integer. More...
 
Setminus_set_date (const Set *s, DateADT d)
 Return the difference of a set and a date. More...
 
Setminus_set_float (const Set *s, double d)
 Return the difference of a set and a float. More...
 
Setminus_set_int (const Set *s, int i)
 Return the difference of a set and an integer. More...
 
Setminus_set_set (const Set *s1, const Set *s2)
 Return the difference of two sets. More...
 
Setminus_set_text (const Set *s, const text *txt)
 Return the difference of a set and a text. More...
 
Setminus_set_timestamptz (const Set *s, TimestampTz t)
 Return the difference of a set and a timestamptz. More...
 
SpanSetminus_span_bigint (const Span *s, int64 i)
 Return the difference of a span and a big integer. More...
 
SpanSetminus_span_date (const Span *s, DateADT d)
 Return the difference of a span and a date. More...
 
SpanSetminus_span_float (const Span *s, double d)
 Return the difference of a span and a float. More...
 
SpanSetminus_span_int (const Span *s, int i)
 Return the difference of a span and an integer. More...
 
SpanSetminus_span_span (const Span *s1, const Span *s2)
 Return the difference of two spans. More...
 
SpanSetminus_span_spanset (const Span *s, const SpanSet *ss)
 Return the difference of a span and a span set. More...
 
SpanSetminus_span_timestamptz (const Span *s, TimestampTz t)
 Return the difference of a span and a timestamptz. More...
 
SpanSetminus_spanset_bigint (const SpanSet *ss, int64 i)
 Return the difference of a span set and a big integer. More...
 
SpanSetminus_spanset_date (const SpanSet *ss, DateADT d)
 Return the difference of a span set and a date. More...
 
SpanSetminus_spanset_float (const SpanSet *ss, double d)
 Return the difference of a span set and a float. More...
 
SpanSetminus_spanset_int (const SpanSet *ss, int i)
 Return the difference of a span set and an integer. More...
 
SpanSetminus_spanset_span (const SpanSet *ss, const Span *s)
 Return the difference of a span set and a span. More...
 
SpanSetminus_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the difference of two span sets. More...
 
SpanSetminus_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return the difference of a span set and a timestamptz. More...
 
Setminus_text_set (const text *txt, const Set *s)
 Return the difference of a text and a set. More...
 
TimestampTz minus_timestamptz_interval (TimestampTz t, const Interval *interv)
 Return the subtraction of a timestamptz and an interval. More...
 
Setminus_timestamptz_set (TimestampTz t, const Set *s)
 Return the difference of a timestamptz and a set. More...
 
SpanSetminus_timestamptz_span (TimestampTz t, const Span *s)
 Return the difference of a timestamptz and a span. More...
 
SpanSetminus_timestamptz_spanset (TimestampTz t, const SpanSet *ss)
 Return the difference of a timestamptz and a span set. More...
 
Intervalminus_timestamptz_timestamptz (TimestampTz t1, TimestampTz t2)
 Return the subtraction of two timestamptz values. More...
 
Intervalmul_interval_double (const Interval *interv, double factor)
 Return the multiplication of an interval and a factor. More...
 
Temporalmult_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal multiplication of a float and a temporal float. More...
 
Temporalmult_int_tint (int i, const Temporal *tnumber)
 Return the temporal multiplication of an integer and a temporal integer. More...
 
Temporalmult_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal multiplication of a temporal float and a float. More...
 
Temporalmult_tint_int (const Temporal *tnumber, int i)
 Return the temporal multiplication of a temporal integer and an integer. More...
 
Temporalmult_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal multiplication of the temporal numbers. More...
 
double nad_tboxfloat_tboxfloat (const TBox *box1, const TBox *box2)
 Return the nearest approach distance between the float temporal boxes. More...
 
int nad_tboxint_tboxint (const TBox *box1, const TBox *box2)
 Return the nearest approach distance between the int temporal boxes. More...
 
double nad_tfloat_float (const Temporal *temp, double d)
 Return the nearest approach distance between a temporal number and a number. More...
 
double nad_tfloat_tbox (const Temporal *temp, const TBox *box)
 Return the nearest approach distance between a temporal float and a temporal box. More...
 
double nad_tfloat_tfloat (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal floats. More...
 
int nad_tint_int (const Temporal *temp, int i)
 Return the nearest approach distance between a temporal number and a number. More...
 
int nad_tint_tbox (const Temporal *temp, const TBox *box)
 Return the nearest approach distance between a temporal integer and a temporal box. More...
 
int nad_tint_tint (const Temporal *temp1, const Temporal *temp2)
 Return the nearest approach distance between two temporal integers. More...
 
Spannumspan_expand (const Span *s, Datum value)
 Return a number span with its bounds expanded/decreased by a value. More...
 
TBoxnumspan_timestamptz_to_tbox (const Span *span, TimestampTz t)
 Return a temporal box from a number span and a timestamptz. More...
 
TBoxnumspan_tstzspan_to_tbox (const Span *span, const Span *s)
 Return a temporal box from a number span and a timestamptz span. More...
 
bool overafter_date_set (DateADT d, const Set *s)
 Return true if a date is not before a set. More...
 
bool overafter_date_span (DateADT d, const Span *s)
 Return true if a date is not before a span. More...
 
bool overafter_date_spanset (DateADT d, const SpanSet *ss)
 Return true if a date is not before a span set. More...
 
bool overafter_set_date (const Set *s, DateADT d)
 Return true if a set is not before a date. More...
 
bool overafter_set_timestamptz (const Set *s, TimestampTz t)
 Return true if a set is not before a timestamptz. More...
 
bool overafter_span_date (const Span *s, DateADT d)
 Return true if a span is not before a date. More...
 
bool overafter_span_timestamptz (const Span *s, TimestampTz t)
 Return true if a span is not before a timestamptz. More...
 
bool overafter_spanset_date (const SpanSet *ss, DateADT d)
 Return true if a span set is before a date. More...
 
bool overafter_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return true if a span set is before a timestamptz. More...
 
bool overafter_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is not before the second one. More...
 
bool overafter_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is not before a temporal number. More...
 
bool overafter_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is not before the second one. More...
 
bool overafter_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if a temporal value is not before a timestamptz span. More...
 
bool overafter_timestamptz_set (TimestampTz t, const Set *s)
 Return true if a timestamptz is not before a set. More...
 
bool overafter_timestamptz_span (TimestampTz t, const Span *s)
 Return true if a timestamptz is not before a span. More...
 
bool overafter_timestamptz_spanset (TimestampTz t, const SpanSet *ss)
 Return true if a timestamptz is not before a span set. More...
 
bool overafter_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number is not before a temporal box. More...
 
bool overafter_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number is not before the second one. More...
 
bool overafter_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span is not before a temporal value. More...
 
bool overbefore_date_set (DateADT d, const Set *s)
 Return true if a date is not after a set. More...
 
bool overbefore_date_span (DateADT d, const Span *s)
 Return true if a date is not after a span. More...
 
bool overbefore_date_spanset (DateADT d, const SpanSet *ss)
 Return true if a date is not after a span set. More...
 
bool overbefore_set_date (const Set *s, DateADT d)
 Return true if a set is not after a date. More...
 
bool overbefore_set_timestamptz (const Set *s, TimestampTz t)
 Return true if a set is not after a timestamptz. More...
 
bool overbefore_span_date (const Span *s, DateADT d)
 Return true if a span is not after a date. More...
 
bool overbefore_span_timestamptz (const Span *s, TimestampTz t)
 Return true if a span is not after a timestamptz. More...
 
bool overbefore_spanset_date (const SpanSet *ss, DateADT d)
 Return true if a span set is not after a date. More...
 
bool overbefore_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return true if a span set is not after a timestamptz. More...
 
bool overbefore_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is not after the second one. More...
 
bool overbefore_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is not after a temporal number. More...
 
bool overbefore_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is not after the second one. More...
 
bool overbefore_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if a temporal value is not after a timestamptz span. More...
 
bool overbefore_timestamptz_set (TimestampTz t, const Set *s)
 Return true if a timestamptz is not after a set @csqlfn Overleft_value_set() More...
 
bool overbefore_timestamptz_span (TimestampTz t, const Span *s)
 Return true if a timestamptz is not after a span. More...
 
bool overbefore_timestamptz_spanset (TimestampTz t, const SpanSet *ss)
 Return true if a timestamptz is not after a span set. More...
 
bool overbefore_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number is not after a temporal box. More...
 
bool overbefore_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number is not after the second one. More...
 
bool overbefore_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span is not after a temporal value. More...
 
bool overlaps_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span and the value span of a temporal number overlap. More...
 
bool overlaps_set_set (const Set *s1, const Set *s2)
 Return true if two sets overlap. More...
 
bool overlaps_span_span (const Span *s1, const Span *s2)
 Return true if two spans overlap. More...
 
bool overlaps_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span and a span set overlap. More...
 
bool overlaps_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set and a span overlap. More...
 
bool overlaps_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if two span sets overlap. More...
 
bool overlaps_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if two temporal boxes overlap. More...
 
bool overlaps_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box and the bounding box of a temporal number overlap. More...
 
bool overlaps_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the time spans of two temporal values overlap. More...
 
bool overlaps_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if the time span of a temporal value and a timestamptz span overlap. More...
 
bool overlaps_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if the value span of a temporal number and the number span overlap. More...
 
bool overlaps_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if the bounding box of a temporal number and a temporal box overlap. More...
 
bool overlaps_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the bounding boxes of two temporal numbers overlap. More...
 
bool overlaps_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span and the time span of a temporal value overlap. More...
 
bool overleft_bigint_set (int64 i, const Set *s)
 Return true if a big integer does not extend to the right of a set. More...
 
bool overleft_bigint_span (int64 i, const Span *s)
 Return true if a big integer does not extend to the right of a span. More...
 
bool overleft_bigint_spanset (int64 i, const SpanSet *ss)
 Return true if a big integer does not extend to the right of a span set. More...
 
bool overleft_float_set (double d, const Set *s)
 Return true if a float does not extend to the right of a set. More...
 
bool overleft_float_span (double d, const Span *s)
 Return true if a float does not extend to the right of a span. More...
 
bool overleft_float_spanset (double d, const SpanSet *ss)
 Return true if a float does not extend to the right of a span set. More...
 
bool overleft_int_set (int i, const Set *s)
 Return true if an integer does not extend to the right of a set. More...
 
bool overleft_int_span (int i, const Span *s)
 Return true if an integer does not extend to the right of a span. More...
 
bool overleft_int_spanset (int i, const SpanSet *ss)
 Return true if an integer does not extend to the right of a span set. More...
 
bool overleft_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span does not extend to the right of a temporal number. More...
 
bool overleft_set_bigint (const Set *s, int64 i)
 Return true if a set does not extend to the right of a big integer. More...
 
bool overleft_set_float (const Set *s, double d)
 Return true if a set does not extend to the right of a float. More...
 
bool overleft_set_int (const Set *s, int i)
 Return true if a set does not extend to the right of an integer. More...
 
bool overleft_set_set (const Set *s1, const Set *s2)
 Return true if the first set does not extend to the right of the second one. More...
 
bool overleft_set_text (const Set *s, text *txt)
 Return true if a set does not extend to the right of a text. More...
 
bool overleft_span_bigint (const Span *s, int64 i)
 Return true if a span does not extend to the right of a big integer. More...
 
bool overleft_span_float (const Span *s, double d)
 Return true if a span does not extend to the right of a float. More...
 
bool overleft_span_int (const Span *s, int i)
 Return true if a span does not extend to the right of an integer. More...
 
bool overleft_span_span (const Span *s1, const Span *s2)
 Return true if the first span does not extend to the right of the second one. More...
 
bool overleft_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span does not extend to the right of a span set. More...
 
bool overleft_spanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set does not extend to the right of a big integer. More...
 
bool overleft_spanset_float (const SpanSet *ss, double d)
 Return true if a span set does not extend to the right of a float. More...
 
bool overleft_spanset_int (const SpanSet *ss, int i)
 Return true if a span set does not extend to the right of an integer. More...
 
bool overleft_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set does not extend to the right of a span. More...
 
bool overleft_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set does not extend to the right of the second one. More...
 
bool overleft_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box does not extend to the right of the second one. More...
 
bool overleft_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box does not extend to the right of a temporal number. More...
 
bool overleft_text_set (const text *txt, const Set *s)
 Return true if a text does not extend to the right of a set. More...
 
bool overleft_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if a temporal number does not extend to the right of a number span. More...
 
bool overleft_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number does not extend to the right of a temporal box. More...
 
bool overleft_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number does not extend to the right of the second one. More...
 
bool overright_bigint_set (int64 i, const Set *s)
 Return true if a big integer does not extend to the the left of a set. More...
 
bool overright_bigint_span (int64 i, const Span *s)
 Return true if a big integer does not extend to the left of a span. More...
 
bool overright_bigint_spanset (int64 i, const SpanSet *ss)
 Return true if a big integer does not extend to the left of a span set. More...
 
bool overright_float_set (double d, const Set *s)
 Return true if a float does not extend to the left of a set. More...
 
bool overright_float_span (double d, const Span *s)
 Return true if a float does not extend to the left of a span. More...
 
bool overright_float_spanset (double d, const SpanSet *ss)
 Return true if a float does not extend to the left of a span set. More...
 
bool overright_int_set (int i, const Set *s)
 Return true if an integer does not extend to the the left of a set. More...
 
bool overright_int_span (int i, const Span *s)
 Return true if an integer does not extend to the left of a span. More...
 
bool overright_int_spanset (int i, const SpanSet *ss)
 Return true if an integer does not extend to the left of a span set. More...
 
bool overright_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span does not extend to the left of a temporal number. More...
 
bool overright_set_bigint (const Set *s, int64 i)
 Return true if a set does not extend to the left of a big integer. More...
 
bool overright_set_float (const Set *s, double d)
 Return true if a set does not extend to the left of a float. More...
 
bool overright_set_int (const Set *s, int i)
 Return true if a set does not extend to the left of an integer. More...
 
bool overright_set_set (const Set *s1, const Set *s2)
 Return true if the first set does not extend to the left of the second one. More...
 
bool overright_set_text (const Set *s, text *txt)
 Return true if a set does not extend to the left of a text. More...
 
bool overright_span_bigint (const Span *s, int64 i)
 Return true if a span does not extend to the left of a big integer. More...
 
bool overright_span_float (const Span *s, double d)
 Return true if a span does not extend to the left of a float. More...
 
bool overright_span_int (const Span *s, int i)
 Return true if a span does not extend to the left of an integer. More...
 
bool overright_span_span (const Span *s1, const Span *s2)
 Return true if the first span does not extend to the left of the second one. More...
 
bool overright_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span does not extend to the left of a span set. More...
 
bool overright_spanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set does not extend to the left of a big integer. More...
 
bool overright_spanset_float (const SpanSet *ss, double d)
 Return true if a span set does not extend to the left of a float. More...
 
bool overright_spanset_int (const SpanSet *ss, int i)
 Return true if a span set does not extend to the left of an integer. More...
 
bool overright_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set does not extend to the left of a span. More...
 
bool overright_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set does not extend to the left of the second one. More...
 
bool overright_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box does not extend to the left of the second one. More...
 
bool overright_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box does not extend to the left of a temporal number. More...
 
bool overright_text_set (const text *txt, const Set *s)
 Return true if a text does not extend to the left of a set. More...
 
bool overright_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if a temporal number does not extend to the left of a number span. More...
 
bool overright_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number does not extend to the left of a temporal box. More...
 
bool overright_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number does not extend to the left of the second one. More...
 
bool right_bigint_set (int64 i, const Set *s)
 Return true if a big integer is to the right of a set. More...
 
bool right_bigint_span (int64 i, const Span *s)
 Return true if a big integer is to the right of a span. More...
 
bool right_bigint_spanset (int64 i, const SpanSet *ss)
 Return true if a big integer is to the right of a span set. More...
 
bool right_float_set (double d, const Set *s)
 Return true if a float is to the right of a set. More...
 
bool right_float_span (double d, const Span *s)
 Return true if a float is to the right of a span. More...
 
bool right_float_spanset (double d, const SpanSet *ss)
 Return true if a float is to the right of a span set. More...
 
bool right_int_set (int i, const Set *s)
 Return true if an integer is to the right of a set. More...
 
bool right_int_span (int i, const Span *s)
 Return true if an integer is to the right of a span. More...
 
bool right_int_spanset (int i, const SpanSet *ss)
 Return true if an integer is to the right of a span set. More...
 
bool right_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span is to the right of a temporal number. More...
 
bool right_set_bigint (const Set *s, int64 i)
 Return true if a set is to the right of a big integer. More...
 
bool right_set_float (const Set *s, double d)
 Return true if a set is to the right of a float. More...
 
bool right_set_int (const Set *s, int i)
 Return true if a set is to the right of an integer. More...
 
bool right_set_set (const Set *s1, const Set *s2)
 Return true if the first set is to the right of the second one. More...
 
bool right_set_text (const Set *s, text *txt)
 Return true if a set is to the right of a text. More...
 
bool right_span_bigint (const Span *s, int64 i)
 Return true if a span is to the right of a big integer. More...
 
bool right_span_float (const Span *s, double d)
 Return true if a span is to the right of a float. More...
 
bool right_span_int (const Span *s, int i)
 Return true if a span is to the right of an integer. More...
 
bool right_span_span (const Span *s1, const Span *s2)
 Return true if the first span is to right the of the second one. More...
 
bool right_span_spanset (const Span *s, const SpanSet *ss)
 Return true if a span is to the right of a span set. More...
 
bool right_spanset_bigint (const SpanSet *ss, int64 i)
 Return true if a span set is to the right of a big integer. More...
 
bool right_spanset_float (const SpanSet *ss, double d)
 Return true if a span set is to the right of a float. More...
 
bool right_spanset_int (const SpanSet *ss, int i)
 Return true if a span set is to the right of an integer. More...
 
bool right_spanset_span (const SpanSet *ss, const Span *s)
 Return true if a span set is to the right of a span. More...
 
bool right_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is to the right of the second one. More...
 
bool right_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is to the right of the second one. More...
 
bool right_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box is to the right of a temporal number. More...
 
bool right_text_set (const text *txt, const Set *s)
 Return true if a text is to the right of a set. More...
 
bool right_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if a temporal number is to the right of a number span. More...
 
bool right_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if a temporal number is to the right of a temporal box. More...
 
bool right_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal number is to the right of the second one. More...
 
bool same_numspan_tnumber (const Span *s, const Temporal *temp)
 Return true if a number span and the value span of a temporal number are equal. More...
 
bool same_tbox_tbox (const TBox *box1, const TBox *box2)
 Return true if two temporal boxes are equal in the common dimensions. More...
 
bool same_tbox_tnumber (const TBox *box, const Temporal *temp)
 Return true if a temporal box and the bounding box of a temporal number are equal in the common dimensions. More...
 
bool same_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return true if the time spans of two temporal values are equal. More...
 
bool same_temporal_tstzspan (const Temporal *temp, const Span *s)
 Return true if the time span of a temporal value and a timestamptz span are equal. More...
 
bool same_tnumber_numspan (const Temporal *temp, const Span *s)
 Return true if the value span of a temporal number and a number span are equal. More...
 
bool same_tnumber_tbox (const Temporal *temp, const TBox *box)
 Return true if the bounding box of a temporal number and a temporal box are equal in the common dimensions. More...
 
bool same_tnumber_tnumber (const Temporal *temp1, const Temporal *temp2)
 Return true if the bounding boxes of two temporal numbers are equal. More...
 
bool same_tstzspan_temporal (const Span *s, const Temporal *temp)
 Return true if a timestamptz span and the time span of a temporal value are equal. More...
 
char * set_as_hexwkb (const Set *s, uint8_t variant, size_t *size_out)
 Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a set. More...
 
uint8_t * set_as_wkb (const Set *s, uint8_t variant, size_t *size_out)
 Return the Well-Known Binary (WKB) representation of a set. More...
 
int set_cmp (const Set *s1, const Set *s2)
 Return -1, 0, or 1 depending on whether the first set is less than, equal, or greater than the second one. More...
 
Setset_copy (const Set *s)
 Return a copy of a set. More...
 
bool set_eq (const Set *s1, const Set *s2)
 Return true if the two sets are equal. More...
 
Spanset_extent_transfn (Span *state, const Set *s)
 Transition function for span extent aggregate of sets. More...
 
Setset_from_hexwkb (const char *hexwkb)
 Return a set from its ASCII hex-encoded Well-Known Binary (WKB) representation. More...
 
Setset_from_wkb (const uint8_t *wkb, size_t size)
 Return a set from its Well-Known Binary (WKB) representation. More...
 
bool set_ge (const Set *s1, const Set *s2)
 Return true if the first set is greater than or equal to the second one. More...
 
bool set_gt (const Set *s1, const Set *s2)
 Return true if the first set is greater than the second one. More...
 
uint32 set_hash (const Set *s)
 Return the 32-bit hash of a set. More...
 
uint64 set_hash_extended (const Set *s, uint64 seed)
 Return the 64-bit hash of a set using a seed. More...
 
bool set_le (const Set *s1, const Set *s2)
 Return true if the first set is less than or equal to the second one. More...
 
bool set_lt (const Set *s1, const Set *s2)
 Return true if the first set is less than the second one. More...
 
bool set_ne (const Set *s1, const Set *s2)
 Return true if the first set is not equal to the second one. More...
 
int set_num_values (const Set *s)
 Return the number of values of a set. More...
 
Setset_round (const Set *s, int maxdd)
 Return a set with the precision of the values set to a number of decimal places. More...
 
Spanset_spans (const Set *s)
 Return an array of spans from the values of a set. More...
 
Spanset_split_each_n_spans (const Set *s, int elems_per_span, int *count)
 Return an array of spans from a set obtained by merging consecutive elements. More...
 
Spanset_split_n_spans (const Set *s, int span_count, int *count)
 Return an array of N spans from the values of a set. More...
 
Spanset_to_span (const Set *s)
 Convert a set into a span. More...
 
SpanSetset_to_spanset (const Set *s)
 Convert a set into a span set. More...
 
TBoxset_to_tbox (const Set *s)
 Convert a number or a timestamptz set into a temporal box. More...
 
Setset_union_finalfn (Set *state)
 Final function for set union aggregate. More...
 
Setset_union_transfn (Set *state, Set *s)
 Transition function for set union aggregate of sets. More...
 
char * span_as_hexwkb (const Span *s, uint8_t variant, size_t *size_out)
 Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a span. More...
 
uint8_t * span_as_wkb (const Span *s, uint8_t variant, size_t *size_out)
 Return the Well-Known Binary (WKB) representation of a span. More...
 
int span_cmp (const Span *s1, const Span *s2)
 Return -1, 0, or 1 depending on whether the first span is less than, equal, or greater than the second one. More...
 
Spanspan_copy (const Span *s)
 Return a copy of a span. More...
 
bool span_eq (const Span *s1, const Span *s2)
 Return true if the two spans are equal. More...
 
Spanspan_extent_transfn (Span *state, const Span *s)
 Transition function for span extent aggregate of spans. More...
 
Spanspan_from_hexwkb (const char *hexwkb)
 Return a span from its ASCII hex-encoded Well-Known Binary (WKB) representation. More...
 
Spanspan_from_wkb (const uint8_t *wkb, size_t size)
 Return a span from its Well-Known Binary (WKB) representation. More...
 
bool span_ge (const Span *s1, const Span *s2)
 Return true if the first span is greater than or equal to the second one. More...
 
bool span_gt (const Span *s1, const Span *s2)
 Return true if the first span is greater than the second one. More...
 
uint32 span_hash (const Span *s)
 Return the 32-bit hash of a span. More...
 
uint64 span_hash_extended (const Span *s, uint64 seed)
 Return the 64-bit hash of a span using a seed. More...
 
bool span_le (const Span *s1, const Span *s2)
 Return true if the first span is less than or equal to the second one. More...
 
bool span_lower_inc (const Span *s)
 Return true if the lower bound of a span is inclusive. More...
 
bool span_lt (const Span *s1, const Span *s2)
 Return true if the first span is less than the second one. More...
 
bool span_ne (const Span *s1, const Span *s2)
 Return true if the first span is different from the second one. More...
 
SpanSetspan_to_spanset (const Span *s)
 Convert a span into a span set. More...
 
TBoxspan_to_tbox (const Span *s)
 Convert a number span into a temporal box. More...
 
SpanSetspan_union_transfn (SpanSet *state, const Span *s)
 Transition function for span set aggregate union. More...
 
bool span_upper_inc (const Span *s)
 Return true if the upper bound of a span is inclusive. More...
 
char * spanset_as_hexwkb (const SpanSet *ss, uint8_t variant, size_t *size_out)
 Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a span set. More...
 
uint8_t * spanset_as_wkb (const SpanSet *ss, uint8_t variant, size_t *size_out)
 Return the Well-Known Binary (WKB) representation of a span set. More...
 
int spanset_cmp (const SpanSet *ss1, const SpanSet *ss2)
 Return -1, 0, or 1 depending on whether the first span set is less than, equal, or greater than the second one. More...
 
SpanSetspanset_copy (const SpanSet *ss)
 Return a copy of a span set. More...
 
Spanspanset_end_span (const SpanSet *ss)
 Return a copy of the end span of a span set. More...
 
bool spanset_eq (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the two span sets are equal. More...
 
Spanspanset_extent_transfn (Span *state, const SpanSet *ss)
 Transition function for span extent aggregate of span sets. More...
 
SpanSetspanset_from_hexwkb (const char *hexwkb)
 Return a span set from its ASCII hex-encoded Well-Known Binary (WKB) representation. More...
 
SpanSetspanset_from_wkb (const uint8_t *wkb, size_t size)
 Return a span set from its Well-Known Binary (WKB) representation. More...
 
bool spanset_ge (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is greater than or equal to the second one. More...
 
bool spanset_gt (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is greater than the second one. More...
 
uint32 spanset_hash (const SpanSet *ss)
 Return the 32-bit hash value of a span set. More...
 
uint64 spanset_hash_extended (const SpanSet *ss, uint64 seed)
 Return the 64-bit hash value of a span set using a seed. More...
 
bool spanset_le (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is less than or equal to the second one. More...
 
bool spanset_lower_inc (const SpanSet *ss)
 Return true if the lower bound of a span set is inclusive. More...
 
bool spanset_lt (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is less than the second one. More...
 
SpanSetspanset_make (Span *spans, int count)
 Return a span set from an array of disjoint spans. More...
 
bool spanset_ne (const SpanSet *ss1, const SpanSet *ss2)
 Return true if the first span set is different from the second one. More...
 
int spanset_num_spans (const SpanSet *ss)
 Return the number of spans of a span set. More...
 
Spanspanset_span (const SpanSet *ss)
 Return the bounding span of a span set. More...
 
Spanspanset_span_n (const SpanSet *ss, int i)
 Return a copy of the n-th span of a span set. More...
 
Span ** spanset_spanarr (const SpanSet *ss)
 Return a C array with copies of the spans of a span set. More...
 
Spanspanset_spans (const SpanSet *ss)
 Return the array of spans of a spanset. More...
 
Spanspanset_split_each_n_spans (const SpanSet *ss, int elems_per_span, int *count)
 Return an array of N spans from a spanset obtained by merging consecutive composing spans. More...
 
Spanspanset_split_n_spans (const SpanSet *ss, int span_count, int *count)
 Return an array of N spans from the composing spans of a spanset. More...
 
Spanspanset_start_span (const SpanSet *ss)
 Return a copy to the the start span of a span set. More...
 
TBoxspanset_to_tbox (const SpanSet *ss)
 Convert a number span set into a temporal box. More...
 
SpanSetspanset_union_finalfn (SpanSet *state)
 Transition function for set aggregate of values. More...
 
SpanSetspanset_union_transfn (SpanSet *state, const SpanSet *ss)
 Transition function for span set aggregate union. More...
 
bool spanset_upper_inc (const SpanSet *ss)
 Return true if the upper bound of a span set is inclusive. More...
 
Temporalsub_float_tfloat (double d, const Temporal *tnumber)
 Return the temporal subtraction of a float and a temporal float. More...
 
Temporalsub_int_tint (int i, const Temporal *tnumber)
 Return the temporal subtraction of an integer and a temporal integer. More...
 
Temporalsub_tfloat_float (const Temporal *tnumber, double d)
 Return the temporal subtraction of a temporal float and a float. More...
 
TimestampTz sub_timestamptz_interval (TimestampTz t, const Interval *interv)
 
Temporalsub_tint_int (const Temporal *tnumber, int i)
 Return the temporal subtraction of a temporal integer and an integer. More...
 
Temporalsub_tnumber_tnumber (const Temporal *tnumber1, const Temporal *tnumber2)
 Return the temporal subtraction of the temporal numbers. More...
 
Temporaltand_bool_tbool (bool b, const Temporal *temp)
 Return the boolean and of a boolean and a temporal boolean. More...
 
Temporaltand_tbool_bool (const Temporal *temp, bool b)
 Return the boolean and of a temporal boolean and a boolean. More...
 
Temporaltand_tbool_tbool (const Temporal *temp1, const Temporal *temp2)
 Return the boolean and of the temporal booleans. More...
 
Temporaltbool_at_value (const Temporal *temp, bool b)
 Return a temporal boolean restricted to a boolean. More...
 
bool tbool_end_value (const Temporal *temp)
 Return the end value of a temporal boolean. More...
 
Temporaltbool_from_base_temp (bool b, const Temporal *temp)
 Return a temporal boolean from a boolean and the time frame of another temporal value. More...
 
Temporaltbool_from_mfjson (const char *str)
 Return a temporal boolean from its MF-JSON representation. More...
 
Temporaltbool_in (const char *str)
 Return a temporal boolean from its Well-Known Text (WKT) representation. More...
 
Temporaltbool_minus_value (const Temporal *temp, bool b)
 Return a temporal boolean restricted to the complement of a boolean. More...
 
char * tbool_out (const Temporal *temp)
 Return the Well-Known Text (WKT) representation of a temporal boolean. More...
 
bool tbool_start_value (const Temporal *temp)
 Return the start value of a temporal boolean. More...
 
SkipListtbool_tand_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal and of temporal booleans. More...
 
Temporaltbool_to_tint (const Temporal *temp)
 Convert a temporal Boolean into a temporal integer. More...
 
SkipListtbool_tor_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal or of temporal booleans. More...
 
bool tbool_value_at_timestamptz (const Temporal *temp, TimestampTz t, bool strict, bool *value)
 Return the value of a temporal boolean at a timestamptz. More...
 
bool tbool_value_n (const Temporal *temp, int n, bool *result)
 Return the n-th value of a temporal boolean. More...
 
booltbool_values (const Temporal *temp, int *count)
 Return the array of base values of a temporal boolean. More...
 
SpanSettbool_when_true (const Temporal *temp)
 Return the time when the temporal boolean has value true. More...
 
TInstanttboolinst_make (bool b, TimestampTz t)
 Return a temporal boolean instant from a boolean and a timestamptz. More...
 
TSequencetboolseq_from_base_tstzset (bool b, const Set *s)
 Return a temporal boolean discrete sequence from a boolean and a timestamptz set. More...
 
TSequencetboolseq_from_base_tstzspan (bool b, const Span *s)
 Return a temporal boolean sequence from a boolean and a timestamptz span. More...
 
TSequenceSettboolseqset_from_base_tstzspanset (bool b, const SpanSet *ss)
 Return a temporal boolean sequence set from a boolean and a timestamptz span set. More...
 
char * tbox_as_hexwkb (const TBox *box, uint8_t variant, size_t *size)
 Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a temporal box. More...
 
uint8_t * tbox_as_wkb (const TBox *box, uint8_t variant, size_t *size_out)
 Return the Well-Known Binary (WKB) representation of a temporal box. More...
 
int tbox_cmp (const TBox *box1, const TBox *box2)
 Return -1, 0, or 1 depending on whether the first temporal box is less than, equal to, or greater than the second one. More...
 
TBoxtbox_copy (const TBox *box)
 Return a copy of a temporal box. More...
 
bool tbox_eq (const TBox *box1, const TBox *box2)
 Return true if two temporal boxes are equal. More...
 
TBoxtbox_expand_float (const TBox *box, double d)
 Return a temporal box with the value span expanded/decreased by a double. More...
 
TBoxtbox_expand_int (const TBox *box, int i)
 Return a temporal box with the value span expanded/decreased by an integer. More...
 
TBoxtbox_expand_time (const TBox *box, const Interval *interv)
 Return a temporal box with the time span expanded/decreased by an interval. More...
 
TBoxtbox_from_hexwkb (const char *hexwkb)
 Return a temporal box from its ASCII hex-encoded Well-Known Binary (WKB) representation. More...
 
TBoxtbox_from_wkb (const uint8_t *wkb, size_t size)
 Return a temporal box from its Well-Known Binary (WKB) representation. More...
 
bool tbox_ge (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is greater than or equal to the second one. More...
 
bool tbox_gt (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is greater than the second one. More...
 
bool tbox_hast (const TBox *box)
 Return true if a temporal box has time dimension. More...
 
bool tbox_hasx (const TBox *box)
 Return true if a temporal box has value dimension. More...
 
TBoxtbox_in (const char *str)
 Return a temporal box from its Well-Known Text (WKT) representation. More...
 
bool tbox_le (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is less than or equal to the second one. More...
 
bool tbox_lt (const TBox *box1, const TBox *box2)
 Return true if the first temporal box is less than the second one. More...
 
TBoxtbox_make (const Span *s, const Span *p)
 Return a temporal box from a number span and a timestamptz span. More...
 
bool tbox_ne (const TBox *box1, const TBox *box2)
 Return true if two temporal boxes are different. More...
 
char * tbox_out (const TBox *box, int maxdd)
 Return the Well-Known Text (WKT) representation of a temporal box. More...
 
TBoxtbox_round (const TBox *box, int maxdd)
 Return a temporal box with the precision of the value span set to a number of decimal places. More...
 
TBoxtbox_shift_scale_float (const TBox *box, double shift, double width, bool hasshift, bool haswidth)
 Return a temporal box with the value span shifted and/or scaled by the values. More...
 
TBoxtbox_shift_scale_int (const TBox *box, int shift, int width, bool hasshift, bool haswidth)
 Return a temporal box with the value span shifted and/or scaled by the values. More...
 
TBoxtbox_shift_scale_time (const TBox *box, const Interval *shift, const Interval *duration)
 Return a temporal box with the value span shifted and/or scaled by the values. More...
 
bool tbox_tmax (const TBox *box, TimestampTz *result)
 Return in the last argument the maximum T value of a temporal box. More...
 
bool tbox_tmax_inc (const TBox *box, bool *result)
 Return in the last argument whether the maximum T value of a temporal box is inclusive. More...
 
bool tbox_tmin (const TBox *box, TimestampTz *result)
 Return in the last argument the minimum T value of a temporal box. More...
 
bool tbox_tmin_inc (const TBox *box, bool *result)
 Return in the last argument whether the minimum T value of a temporal box is inclusive. More...
 
Spantbox_to_floatspan (const TBox *box)
 Convert a temporal box into a float span. More...
 
Spantbox_to_intspan (const TBox *box)
 Convert a temporal box into an integer span. More...
 
Spantbox_to_tstzspan (const TBox *box)
 Convert a temporal box into a timestamptz span. More...
 
bool tbox_xmax (const TBox *box, double *result)
 Return in the last argument the maximum X value of a temporal box as a double. More...
 
bool tbox_xmax_inc (const TBox *box, bool *result)
 Return in the last argument whether the maximum X value of a temporal box is inclusive. More...
 
bool tbox_xmin (const TBox *box, double *result)
 Return in the last argument the minimum X value of a temporal box as a double. More...
 
bool tbox_xmin_inc (const TBox *box, bool *result)
 Return in the last argument whether the minimum X value of a temporal box is inclusive. More...
 
bool tboxfloat_xmax (const TBox *box, double *result)
 Return in the last argument the maximum X value of a temporal box. More...
 
bool tboxfloat_xmin (const TBox *box, double *result)
 Return in the last argument the minimum X value of a temporal box. More...
 
bool tboxint_xmax (const TBox *box, int *result)
 Return in the last argument the maximum X value of a temporal box. More...
 
bool tboxint_xmin (const TBox *box, int *result)
 Return in the last argument the minimum X value of a temporal box. More...
 
Temporal ** temparr_round (const Temporal **temp, int count, int maxdd)
 Return an array of temporal floats with the precision of the coordinates set to a number of decimal places. More...
 
Temporaltemporal_append_tinstant (Temporal *temp, const TInstant *inst, interpType interp, double maxdist, const Interval *maxt, bool expand)
 Append an instant to a temporal value. More...
 
Temporaltemporal_append_tsequence (Temporal *temp, const TSequence *seq, bool expand)
 Append a sequence to a temporal value. More...
 
char * temporal_as_hexwkb (const Temporal *temp, uint8_t variant, size_t *size_out)
 Return the ASCII hex-encoded Well-Known Binary (HexWKB) representation of a temporal value. More...
 
char * temporal_as_mfjson (const Temporal *temp, bool with_bbox, int flags, int precision, const char *srs)
 Return the MF-JSON representation of a temporal value. More...
 
uint8_t * temporal_as_wkb (const Temporal *temp, uint8_t variant, size_t *size_out)
 Return the Well-Known Binary (WKB) representation of a temporal value. More...
 
Temporaltemporal_at_max (const Temporal *temp)
 Return a temporal value restricted to its maximum base value. More...
 
Temporaltemporal_at_min (const Temporal *temp)
 Return a temporal value restricted to its minimum base value. More...
 
Temporaltemporal_at_timestamptz (const Temporal *temp, TimestampTz t)
 Return a temporal value restricted to a timestamptz. More...
 
Temporaltemporal_at_tstzset (const Temporal *temp, const Set *s)
 Return a temporal value restricted to a timestamptz set. More...
 
Temporaltemporal_at_tstzspan (const Temporal *temp, const Span *s)
 Return a temporal value restricted to a timestamptz span. More...
 
Temporaltemporal_at_tstzspanset (const Temporal *temp, const SpanSet *ss)
 Return a temporal value restricted to a timestamptz span set. More...
 
Temporaltemporal_at_values (const Temporal *temp, const Set *set)
 Return a temporal value restricted to a set of values. More...
 
int temporal_cmp (const Temporal *temp1, const Temporal *temp2)
 Return -1, 0, or 1 depending on whether the first temporal value is less than, equal, or greater than the second one. More...
 
Temporaltemporal_copy (const Temporal *temp)
 Return a copy of a temporal value. More...
 
Temporaltemporal_delete_timestamptz (const Temporal *temp, TimestampTz t, bool connect)
 Delete a timestamp from a temporal value. More...
 
Temporaltemporal_delete_tstzset (const Temporal *temp, const Set *s, bool connect)
 Delete a timestamp set from a temporal value connecting the instants before and after the given timestamp, if any. More...
 
Temporaltemporal_delete_tstzspan (const Temporal *temp, const Span *s, bool connect)
 Delete a timestamptz span from a temporal value. More...
 
Temporaltemporal_delete_tstzspanset (const Temporal *temp, const SpanSet *ss, bool connect)
 Delete a timestamptz span set from a temporal value. More...
 
Intervaltemporal_duration (const Temporal *temp, bool boundspan)
 Return the duration of a temporal value. More...
 
double temporal_dyntimewarp_distance (const Temporal *temp1, const Temporal *temp2)
 Return the Dynamic Time Warp distance between two temporal values. More...
 
Matchtemporal_dyntimewarp_path (const Temporal *temp1, const Temporal *temp2, int *count)
 Return the Dynamic Time Warp distance between two temporal values. More...
 
TInstanttemporal_end_instant (const Temporal *temp)
 Return a copy of the end instant of a temporal value. More...
 
TSequencetemporal_end_sequence (const Temporal *temp)
 Return a copy of the end sequence of a temporal sequence (set) More...
 
TimestampTz temporal_end_timestamptz (const Temporal *temp)
 Return the end timestamptz of a temporal value. More...
 
bool temporal_eq (const Temporal *temp1, const Temporal *temp2)
 Return true if two temporal values are equal. More...
 
Spantemporal_extent_transfn (Span *s, const Temporal *temp)
 Transition function for temporal extent aggregate of temporal values. More...
 
double temporal_frechet_distance (const Temporal *temp1, const Temporal *temp2)
 Return the Frechet distance between two temporal values. More...
 
Matchtemporal_frechet_path (const Temporal *temp1, const Temporal *temp2, int *count)
 Return the Frechet distance between two temporal values. More...
 
Temporaltemporal_from_hexwkb (const char *hexwkb)
 Return a temporal value from its ASCII hex-encoded Extended Well-Known Binary (EWKB) representation. More...
 
Temporaltemporal_from_wkb (const uint8_t *wkb, size_t size)
 Return a temporal value from its Well-Known Binary (WKB) representation. More...
 
bool temporal_ge (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is greater than or equal to the second one. More...
 
bool temporal_gt (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is greater than the second one. More...
 
uint32 temporal_hash (const Temporal *temp)
 Return the 32-bit hash value of a temporal value. More...
 
double temporal_hausdorff_distance (const Temporal *temp1, const Temporal *temp2)
 Return the Hausdorf distance between two temporal values. More...
 
Temporaltemporal_insert (const Temporal *temp1, const Temporal *temp2, bool connect)
 Insert the second temporal value into the first one. More...
 
TInstanttemporal_instant_n (const Temporal *temp, int n)
 Return a copy of the n-th instant of a temporal value. More...
 
TInstant ** temporal_instants (const Temporal *temp, int *count)
 Return a copy of the distinct instants of a temporal value. More...
 
const char * temporal_interp (const Temporal *temp)
 Return the string representation of the interpolation of a temporal value. More...
 
bool temporal_le (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is less than or equal to the second one. More...
 
bool temporal_lower_inc (const Temporal *temp)
 Return true if the start instant of a temporal value is inclusive. More...
 
bool temporal_lt (const Temporal *temp1, const Temporal *temp2)
 Return true if the first temporal value is less than the second one. More...
 
TInstanttemporal_max_instant (const Temporal *temp)
 Return a copy of the instant with maximum base value of a temporal value. More...
 
Temporaltemporal_merge (const Temporal *temp1, const Temporal *temp2)
 Merge two temporal values. More...
 
Temporaltemporal_merge_array (const Temporal **temparr, int count)
 Merge an array of temporal values. More...
 
TInstanttemporal_min_instant (const Temporal *temp)
 Return a copy of the instant with minimum base value of a temporal value. More...
 
Temporaltemporal_minus_max (const Temporal *temp)
 Return a temporal value restricted to the complement of its maximum base value. More...
 
Temporaltemporal_minus_min (const Temporal *temp)
 Return a temporal value restricted to the complement of its minimum base value. More...
 
Temporaltemporal_minus_timestamptz (const Temporal *temp, TimestampTz t)
 Return a temporal value restricted to the complement of a timestamptz. More...
 
Temporaltemporal_minus_tstzset (const Temporal *temp, const Set *s)
 Return a temporal value restricted to the complement of a timestamptz set. More...
 
Temporaltemporal_minus_tstzspan (const Temporal *temp, const Span *s)
 Return a temporal value restricted to the complement of a timestamptz span. More...
 
Temporaltemporal_minus_tstzspanset (const Temporal *temp, const SpanSet *ss)
 Return a temporal value restricted to the complement of a timestamptz span set. More...
 
Temporaltemporal_minus_values (const Temporal *temp, const Set *set)
 Return a temporal value restricted to the complement of a set of values. More...
 
bool temporal_ne (const Temporal *temp1, const Temporal *temp2)
 Return true if two temporal values are different. More...
 
int temporal_num_instants (const Temporal *temp)
 Return the number of distinct instants of a temporal value. More...
 
int temporal_num_sequences (const Temporal *temp)
 Return the number of sequences of a temporal sequence (set) More...
 
int temporal_num_timestamps (const Temporal *temp)
 Return the number of distinct timestamps of a temporal value. More...
 
Temporaltemporal_round (const Temporal *temp, int maxdd)
 Return a temporal value rounded to a given number of decimal places. More...
 
Temporaltemporal_scale_time (const Temporal *temp, const Interval *duration)
 Return a temporal value scaled by an interval. More...
 
TSequence ** temporal_segments (const Temporal *temp, int *count)
 Return the array of segments of a temporal value. More...
 
TSequencetemporal_sequence_n (const Temporal *temp, int i)
 Return a copy of the n-th sequence of a temporal sequence (set) More...
 
TSequence ** temporal_sequences (const Temporal *temp, int *count)
 Return an array of copies of the sequences of a temporal sequence (set) More...
 
Temporaltemporal_set_interp (const Temporal *temp, interpType interp)
 Return a temporal value transformed to an interpolation. More...
 
Temporaltemporal_shift_scale_time (const Temporal *temp, const Interval *shift, const Interval *duration)
 Return a temporal value shifted and/or scaled by two intervals. More...
 
Temporaltemporal_shift_time (const Temporal *temp, const Interval *shift)
 Return a temporal value shifted by an interval. More...
 
Temporaltemporal_simplify_dp (const Temporal *temp, double eps_dist, bool synchronized)
 Return a temporal float/point simplified using the Douglas-Peucker line simplification algorithm. More...
 
Temporaltemporal_simplify_max_dist (const Temporal *temp, double eps_dist, bool synchronized)
 Return a temporal float/point simplified using a single-pass Douglas-Peucker line simplification algorithm. More...
 
Temporaltemporal_simplify_min_dist (const Temporal *temp, double dist)
 Return a temporal float/point sequence simplified ensuring that consecutive values are at least a given distance apart. More...
 
Temporaltemporal_simplify_min_tdelta (const Temporal *temp, const Interval *mint)
 Return a temporal float/point sequence simplified ensuring that consecutive values are at least a certain time interval apart. More...
 
Spantemporal_spans (const Temporal *temp, int *count)
 Return an array of spans obtained from the instants or segments of a temporal value, where the choice between instants or segments depends, respectively, on whether the interpolation is discrete or continuous. More...
 
Spantemporal_split_each_n_spans (const Temporal *temp, int elem_count, int *count)
 Return an array of spans obtained from the instants or segments of a temporal value, where the choice between instants or segments depends, respectively, on whether the interpolation is discrete or continuous. More...
 
Spantemporal_split_n_spans (const Temporal *temp, int span_count, int *count)
 Return an array of N spans obtained from the instants or segments of a temporal value, where the choice between instants or segments depends, respectively, on whether the interpolation is discrete or continuous. More...
 
TInstanttemporal_start_instant (const Temporal *temp)
 Return a copy of the start instant of a temporal value. More...
 
TSequencetemporal_start_sequence (const Temporal *temp)
 Return a copy of the start sequence of a temporal sequence (set) More...
 
TimestampTz temporal_start_timestamptz (const Temporal *temp)
 Return the start timestamptz of a temporal value. More...
 
TSequenceSettemporal_stops (const Temporal *temp, double maxdist, const Interval *minduration)
 Return the subsequences where a temporal value stays within a given distance for at least a given duration. More...
 
const char * temporal_subtype (const Temporal *temp)
 Return the string representation of the subtype of a temporal value. More...
 
Temporaltemporal_tagg_finalfn (SkipList *state)
 Generic final function for aggregating temporal values. More...
 
SkipListtemporal_tcount_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal count aggregation. More...
 
SpanSettemporal_time (const Temporal *temp)
 Return the time frame of a temporal value as a span set. More...
 
Spantemporal_time_bins (const Temporal *temp, const Interval *duration, TimestampTz origin, int *count)
 Return the time bins of a temporal value. More...
 
Temporal ** temporal_time_split (const Temporal *temp, const Interval *duration, TimestampTz torigin, TimestampTz **time_bins, int *count)
 Return the fragments of a temporal value split according to time bins. More...
 
TimestampTztemporal_timestamps (const Temporal *temp, int *count)
 Return the array of distinct timestamps of a temporal value. More...
 
bool temporal_timestamptz_n (const Temporal *temp, int n, TimestampTz *result)
 Return in last argument the n-th distinct timestamptz of a temporal value. More...
 
TInstanttemporal_to_tinstant (const Temporal *temp)
 Return a temporal value transformed to a temporal instant. More...
 
TSequencetemporal_to_tsequence (const Temporal *temp, interpType interp)
 Return a temporal value transformed to a temporal sequence. More...
 
TSequenceSettemporal_to_tsequenceset (const Temporal *temp, interpType interp)
 Return a temporal value transformed to a temporal sequence set. More...
 
Spantemporal_to_tstzspan (const Temporal *temp)
 Return the bounding period of a temporal value. More...
 
Temporaltemporal_tprecision (const Temporal *temp, const Interval *duration, TimestampTz origin)
 Return a temporal value with the precision set to time bins. More...
 
Temporaltemporal_tsample (const Temporal *temp, const Interval *duration, TimestampTz origin, interpType interp)
 Return a temporal value sampled according to time bins. More...
 
Temporaltemporal_update (const Temporal *temp1, const Temporal *temp2, bool connect)
 Update the first temporal value with the second one. More...
 
bool temporal_upper_inc (const Temporal *temp)
 Return true if the end instant of a temporal value is inclusive. More...
 
Temporalteq_bool_tbool (bool b, const Temporal *temp)
 Return the temporal equality of a boolean and a temporal boolean. More...
 
Temporalteq_float_tfloat (double d, const Temporal *temp)
 Return the temporal equality of a float and a temporal float. More...
 
Temporalteq_int_tint (int i, const Temporal *temp)
 Return the temporal equality of an integer and a temporal integer. More...
 
Temporalteq_tbool_bool (const Temporal *temp, bool b)
 Return the temporal equality of a temporal boolean and a boolean. More...
 
Temporalteq_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal equality of two temporal values. More...
 
Temporalteq_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal equality of a text and a temporal text. More...
 
Temporalteq_tfloat_float (const Temporal *temp, double d)
 Return the temporal equality of a temporal float and a float. More...
 
Temporalteq_tint_int (const Temporal *temp, int i)
 Return the temporal equality of a temporal integer and an integer. More...
 
Temporalteq_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal equality of a temporal text and a text. More...
 
char * text2cstring (const text *txt)
 Convert a text into a C string. More...
 
int text_cmp (const text *txt1, const text *txt2)
 Comparison function for text values. More...
 
texttext_copy (const text *txt)
 Copy a text value. More...
 
texttext_initcap (const text *txt)
 Convert the text value to initcap. More...
 
texttext_lower (const text *txt)
 Return the text value transformed to lowercase. More...
 
char * text_out (const text *txt)
 Return the string representation of a text value. More...
 
Settext_to_set (const text *txt)
 Convert a text into a set. More...
 
Settext_union_transfn (Set *state, const text *txt)
 Transition function for set union aggregate of texts. More...
 
texttext_upper (const text *txt)
 Return the text value transformed to uppercase. More...
 
texttextcat_text_text (const text *txt1, const text *txt2)
 Return the concatenation of the two text values. More...
 
Settextcat_text_textset (const text *txt, const Set *s)
 Return the concatenation of a text and a text set. More...
 
Temporaltextcat_text_ttext (const text *txt, const Temporal *temp)
 Return the concatenation of a text and a temporal text. More...
 
Settextcat_textset_text (const Set *s, const text *txt)
 Return the concatenation of a text set and a text. More...
 
Temporaltextcat_ttext_text (const Temporal *temp, const text *txt)
 Return the concatenation of a temporal text and a text. More...
 
Temporaltextcat_ttext_ttext (const Temporal *temp1, const Temporal *temp2)
 Return the concatenation of two temporal text values. More...
 
texttextset_end_value (const Set *s)
 Return a copy of the end value of a text set. More...
 
Settextset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
Settextset_initcap (const Set *s)
 Return a text set transformed to initcap. More...
 
Settextset_lower (const Set *s)
 Return a text set transformed to lowercase. More...
 
Settextset_make (const text **values, int count)
 Return a text set from an array of values. More...
 
char * textset_out (const Set *set)
 Return the string representation of a text set. More...
 
texttextset_start_value (const Set *s)
 Return a copy of the start value of a text set. More...
 
Settextset_upper (const Set *s)
 Return a text set transformed to uppercase. More...
 
bool textset_value_n (const Set *s, int n, text **result)
 Return in the last argument a copy of the n-th value of a text set. More...
 
text ** textset_values (const Set *s)
 Return the array of copies of the values of a text set. More...
 
Temporaltfloat_at_value (const Temporal *temp, double d)
 Return a temporal float restricted to a float. More...
 
Temporaltfloat_ceil (const Temporal *temp)
 Return a temporal float rounded up to the nearest temporal integer. More...
 
Temporaltfloat_degrees (const Temporal *temp, bool normalize)
 Return a temporal float transformed from radians to degrees. More...
 
Temporaltfloat_derivative (const Temporal *temp)
 Return the derivative of a temporal number. More...
 
double tfloat_end_value (const Temporal *temp)
 Return the end value of a temporal float. More...
 
Temporaltfloat_exp (const Temporal *temp)
 Return the exponential of a double. More...
 
Temporaltfloat_floor (const Temporal *temp)
 Return a temporal float rounded down to the nearest temporal integer. More...
 
Temporaltfloat_from_base_temp (double d, const Temporal *temp)
 Return a temporal float from a float and the time frame of another temporal value. More...
 
Temporaltfloat_from_mfjson (const char *str)
 Return a temporal float from its MF-JSON representation. More...
 
Temporaltfloat_in (const char *str)
 Return a temporal float from its Well-Known Text (WKT) representation. More...
 
Temporaltfloat_ln (const Temporal *temp)
 Return the natural logarithm of a double. More...
 
Temporaltfloat_log10 (const Temporal *temp)
 Return the natural logarithm of a double. More...
 
double tfloat_max_value (const Temporal *temp)
 Return the maximum value of a temporal float. More...
 
double tfloat_min_value (const Temporal *temp)
 Return the minimum value of a temporal float. More...
 
Temporaltfloat_minus_value (const Temporal *temp, double d)
 Return a temporal float restricted to the complement of a float. More...
 
char * tfloat_out (const Temporal *temp, int maxdd)
 Return the Well-Known Text (WKT) representation of a temporal float. More...
 
Temporaltfloat_radians (const Temporal *temp)
 Return a temporal float transformed from degrees to radians. More...
 
Temporaltfloat_scale_value (const Temporal *temp, double width)
 Return a temporal float whose value dimension is scaled by a value. More...
 
Temporaltfloat_shift_scale_value (const Temporal *temp, double shift, double width)
 Return a temporal number whose value dimension is shifted and scaled by two values. More...
 
Temporaltfloat_shift_value (const Temporal *temp, double shift)
 Return a temporal integer whose value dimension is shifted by a value @csqlfn Tnumber_shift_value() More...
 
double tfloat_start_value (const Temporal *temp)
 Return the start value of a temporal float. More...
 
TBoxtfloat_time_boxes (const Temporal *temp, const Interval *duration, TimestampTz torigin, int *count)
 Return the temporal boxes of a temporal number split with respect to a value and possibly a time grid. More...
 
SkipListtfloat_tmax_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal maximum of temporal values. More...
 
SkipListtfloat_tmin_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal minimum of temporal values. More...
 
Temporaltfloat_to_tint (const Temporal *temp)
 Convert a temporal float into a temporal integer. More...
 
SkipListtfloat_tsum_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal sum of temporal values. More...
 
bool tfloat_value_at_timestamptz (const Temporal *temp, TimestampTz t, bool strict, double *value)
 Return the value of a temporal integer at a timestamptz. More...
 
Spantfloat_value_bins (const Temporal *temp, double vsize, double vorigin, int *count)
 Return the bins of a float span. More...
 
TBoxtfloat_value_boxes (const Temporal *temp, double vsize, double vorigin, int *count)
 Return the temporal boxes of a temporal number split with respect to a value grid. More...
 
bool tfloat_value_n (const Temporal *temp, int n, double *result)
 Return the n-th value of a temporal float. More...
 
Temporal ** tfloat_value_split (const Temporal *temp, double size, double origin, double **bins, int *count)
 Return the fragments of a temporal float split according to value bins. More...
 
TBoxtfloat_value_time_boxes (const Temporal *temp, double vsize, const Interval *duration, double vorigin, TimestampTz torigin, int *count)
 Return the temporal boxes of a temporal number split with respect to a value and possibly a time grid. More...
 
Temporal ** tfloat_value_time_split (const Temporal *temp, double vsize, const Interval *duration, double vorigin, TimestampTz torigin, double **value_bins, TimestampTz **time_bins, int *count)
 Return the fragments of a temporal integer split according to value and time bins. More...
 
double * tfloat_values (const Temporal *temp, int *count)
 Return the array of base values of a temporal float. More...
 
SkipListtfloat_wmax_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal maximum of temporal values. More...
 
SkipListtfloat_wmin_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal minimum of temporal values. More...
 
SkipListtfloat_wsum_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal sum of temporal values. More...
 
TBoxtfloatbox_time_tiles (const TBox *box, const Interval *duration, TimestampTz torigin, int *count)
 Return the time tiles of a temporal float box. More...
 
TBoxtfloatbox_value_tiles (const TBox *box, double vsize, double vorigin, int *count)
 Return the value tiles of a temporal float box. More...
 
TBoxtfloatbox_value_time_tiles (const TBox *box, double vsize, const Interval *duration, double vorigin, TimestampTz torigin, int *count)
 Return the tiles of a temporal float box. More...
 
TInstanttfloatinst_make (double d, TimestampTz t)
 Return a temporal float instant from a float and a timestamptz. More...
 
TSequencetfloatseq_from_base_tstzset (double d, const Set *s)
 Return a temporal float discrete sequence from a float and a timestamptz set. More...
 
TSequencetfloatseq_from_base_tstzspan (double d, const Span *s, interpType interp)
 Return a temporal float sequence from a float and a timestamptz span. More...
 
TSequenceSettfloatseqset_from_base_tstzspanset (double d, const SpanSet *ss, interpType interp)
 Return a temporal float sequence set from a float and a timestamptz span set. More...
 
Temporaltge_float_tfloat (double d, const Temporal *temp)
 Return the temporal greater than or equal to of a float and a temporal float. More...
 
Temporaltge_int_tint (int i, const Temporal *temp)
 Return the temporal greater than or equal to of an integer and a temporal integer. More...
 
Temporaltge_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal greater than or equal to of two temporal values. More...
 
Temporaltge_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal greater than or equal to of a text and a temporal text. More...
 
Temporaltge_tfloat_float (const Temporal *temp, double d)
 Return the temporal greater than or equal to of a temporal float and a float. More...
 
Temporaltge_tint_int (const Temporal *temp, int i)
 Return the temporal greater than or equal to of a temporal integer and an integer. More...
 
Temporaltge_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal greater than or equal to of a temporal text and a text. More...
 
Temporaltgt_float_tfloat (double d, const Temporal *temp)
 Return the temporal greater than of a float and a temporal float. More...
 
Temporaltgt_int_tint (int i, const Temporal *temp)
 Return the temporal greater than of an integer and a temporal integer. More...
 
Temporaltgt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal greater than of two temporal values. More...
 
Temporaltgt_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal greater than of a text and a temporal text. More...
 
Temporaltgt_tfloat_float (const Temporal *temp, double d)
 Return the temporal greater than of a temporal float and a float. More...
 
Temporaltgt_tint_int (const Temporal *temp, int i)
 Return the temporal greater than of a temporal integer and an integer. More...
 
Temporaltgt_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal greater than of a temporal text and a text. More...
 
DateADT timestamp_to_date (Timestamp t)
 Convert a timestamp into a date. More...
 
Spantimestamptz_extent_transfn (Span *state, TimestampTz t)
 Transition function for span extent aggregate of timestamptz. More...
 
TimestampTz timestamptz_get_bin (TimestampTz t, const Interval *duration, TimestampTz torigin)
 Return the initial timestamp of the bin that contains a timestamptz. More...
 
TimestampTz timestamptz_shift (TimestampTz t, const Interval *interv)
 Return a timestamptz shifted by an interval. More...
 
SkipListtimestamptz_tcount_transfn (SkipList *state, TimestampTz t)
 Transition function for temporal count aggregate of timestamps. More...
 
DateADT timestamptz_to_date (TimestampTz t)
 Convert a timestamp with time zone into a date. More...
 
Settimestamptz_to_set (TimestampTz t)
 Convert a timestamptz into a set. More...
 
Spantimestamptz_to_span (TimestampTz t)
 Convert a timestamptz into a span. More...
 
SpanSettimestamptz_to_spanset (TimestampTz t)
 Convert a timestamptz into a span set. More...
 
TBoxtimestamptz_to_tbox (TimestampTz t)
 Convert a timestamptz into a temporal box. More...
 
TimestampTz timestamptz_tprecision (TimestampTz t, const Interval *duration, TimestampTz torigin)
 Return a timestamptz with the precision set to a time bin. More...
 
Settimestamptz_union_transfn (Set *state, TimestampTz t)
 Transition function for set union aggregate of timestamptz. More...
 
Temporaltint_at_value (const Temporal *temp, int i)
 Return a temporal integer restricted to an integer. More...
 
int tint_end_value (const Temporal *temp)
 Return the end value of a temporal integer. More...
 
Temporaltint_from_base_temp (int i, const Temporal *temp)
 Return a temporal integer from an integer and the time frame of another temporal value. More...
 
Temporaltint_from_mfjson (const char *str)
 Return a temporal integer from its MF-JSON representation. More...
 
Temporaltint_in (const char *str)
 Return a temporal integer from its Well-Known Text (WKT) representation. More...
 
int tint_max_value (const Temporal *temp)
 Return the maximum value of a temporal integer. More...
 
int tint_min_value (const Temporal *temp)
 Return the minimum value of a temporal integer. More...
 
Temporaltint_minus_value (const Temporal *temp, int i)
 Return a temporal integer restricted to the complement of an integer. More...
 
char * tint_out (const Temporal *temp)
 Return the Well-Known Text (WKT) representation of a temporal integer. More...
 
Temporaltint_scale_value (const Temporal *temp, int width)
 Return a temporal integer whose value dimension is scaled by a value. More...
 
Temporaltint_shift_scale_value (const Temporal *temp, int shift, int width)
 Return a temporal integer whose value dimension is shifted and scaled by two values. More...
 
Temporaltint_shift_value (const Temporal *temp, int shift)
 Return a temporal integer whose value dimension is shifted by a value @csqlfn Tnumber_shift_value() More...
 
int tint_start_value (const Temporal *temp)
 Return the start value of a temporal integer. More...
 
TBoxtint_time_boxes (const Temporal *temp, const Interval *duration, TimestampTz torigin, int *count)
 Return the temporal boxes of a temporal number split with respect to a time grid. More...
 
SkipListtint_tmax_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal maximum of temporal values. More...
 
SkipListtint_tmin_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal minimum of temporal values. More...
 
Temporaltint_to_tfloat (const Temporal *temp)
 Convert a temporal integer into a temporal float. More...
 
SkipListtint_tsum_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal sum of temporal values. More...
 
bool tint_value_at_timestamptz (const Temporal *temp, TimestampTz t, bool strict, int *value)
 Return the value of a temporal integer at a timestamptz. More...
 
Spantint_value_bins (const Temporal *temp, int vsize, int vorigin, int *count)
 Return the bins of an integer span. More...
 
TBoxtint_value_boxes (const Temporal *temp, int vsize, int vorigin, int *count)
 Return the temporal boxes of a temporal number split with respect to a value grid. More...
 
bool tint_value_n (const Temporal *temp, int n, int *result)
 Return the n-th value of a temporal integer. More...
 
Temporal ** tint_value_split (const Temporal *temp, int vsize, int vorigin, int **value_bins, int *count)
 Return the fragments of a temporal integer split according to value bins. More...
 
TBoxtint_value_time_boxes (const Temporal *temp, int vsize, const Interval *duration, int vorigin, TimestampTz torigin, int *count)
 Return the temporal boxes of a temporal number split with respect to a value and possibly a time grid. More...
 
Temporal ** tint_value_time_split (const Temporal *temp, int size, const Interval *duration, int vorigin, TimestampTz torigin, int **value_bins, TimestampTz **time_bins, int *count)
 Return the fragments of a temporal integer split according to value and time bins. More...
 
int * tint_values (const Temporal *temp, int *count)
 Return the array of base values of a temporal integer. More...
 
SkipListtint_wmax_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal maximum of temporal values. More...
 
SkipListtint_wmin_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal minimum of temporal values. More...
 
SkipListtint_wsum_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal sum of temporal values. More...
 
TBoxtintbox_time_tiles (const TBox *box, const Interval *duration, TimestampTz torigin, int *count)
 Return the time tiles of a temporal float box. More...
 
TBoxtintbox_value_tiles (const TBox *box, int xsize, int xorigin, int *count)
 Return the value tiles of a temporal integer box. More...
 
TBoxtintbox_value_time_tiles (const TBox *box, int xsize, const Interval *duration, int xorigin, TimestampTz torigin, int *count)
 Return the tiles of a temporal integer box. More...
 
TInstanttintinst_make (int i, TimestampTz t)
 Return a temporal integer instant from an integer and a timestamptz. More...
 
TSequencetintseq_from_base_tstzset (int i, const Set *s)
 Return a temporal integer discrete sequence from an integer and a timestamptz set. More...
 
TSequencetintseq_from_base_tstzspan (int i, const Span *s)
 Return a temporal integer sequence from an integer and a timestamptz span. More...
 
TSequenceSettintseqset_from_base_tstzspanset (int i, const SpanSet *ss)
 Return a temporal integer sequence set from an integer and a timestamptz span set. More...
 
Temporaltle_float_tfloat (double d, const Temporal *temp)
 Return the temporal less than or equal to of a float and a temporal float. More...
 
Temporaltle_int_tint (int i, const Temporal *temp)
 Return the temporal less than or equal to of an integer and a temporal integer. More...
 
Temporaltle_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal less than or equal to of two temporal values. More...
 
Temporaltle_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal less or equal to than of a text and a temporal text. More...
 
Temporaltle_tfloat_float (const Temporal *temp, double d)
 Return the temporal less than or equal to of a temporal float and a float. More...
 
Temporaltle_tint_int (const Temporal *temp, int i)
 Return the temporal less than or equal to of a temporal integer and an integer. More...
 
Temporaltle_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal less than or equal to of a temporal text and a text. More...
 
Temporaltlt_float_tfloat (double d, const Temporal *temp)
 Return the temporal less than of a float and a temporal float. More...
 
Temporaltlt_int_tint (int i, const Temporal *temp)
 Return the temporal less than of an integer and a temporal integer. More...
 
Temporaltlt_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal less than of two temporal values. More...
 
Temporaltlt_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal less than of a text and a temporal text. More...
 
Temporaltlt_tfloat_float (const Temporal *temp, double d)
 Return the temporal less than of a temporal float and a float. More...
 
Temporaltlt_tint_int (const Temporal *temp, int i)
 Return the temporal less than of a temporal integer and an integer. More...
 
Temporaltlt_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal less than of a temporal text and a text. More...
 
Temporaltne_bool_tbool (bool b, const Temporal *temp)
 Return the temporal inequality of a boolean and a temporal boolean. More...
 
Temporaltne_float_tfloat (double d, const Temporal *temp)
 Return the temporal inequality of a float and a temporal float. More...
 
Temporaltne_int_tint (int i, const Temporal *temp)
 Return the temporal inequality of an integer and a temporal integer. More...
 
Temporaltne_tbool_bool (const Temporal *temp, bool b)
 Return the temporal inequality of a temporal boolean and a boolean. More...
 
Temporaltne_temporal_temporal (const Temporal *temp1, const Temporal *temp2)
 Return the temporal inequality of two temporal values. More...
 
Temporaltne_text_ttext (const text *txt, const Temporal *temp)
 Return the temporal inequality of a text and a temporal text. More...
 
Temporaltne_tfloat_float (const Temporal *temp, double d)
 Return the temporal inequality of a temporal float and a float. More...
 
Temporaltne_tint_int (const Temporal *temp, int i)
 Return the temporal inequality of a temporal integer and an integer. More...
 
Temporaltne_ttext_text (const Temporal *temp, const text *txt)
 Return the temporal inequality of a temporal text and a text. More...
 
Temporaltnot_tbool (const Temporal *temp)
 Return the boolean not of a temporal boolean. More...
 
Temporaltnumber_abs (const Temporal *temp)
 Return the absolute value of a temporal number. More...
 
Temporaltnumber_angular_difference (const Temporal *temp)
 Return the angular difference of a temporal number. More...
 
Temporaltnumber_at_span (const Temporal *temp, const Span *span)
 Return a temporal value restricted to a span of base values. More...
 
Temporaltnumber_at_spanset (const Temporal *temp, const SpanSet *ss)
 Return a temporal value restricted to an array of spans of base values. More...
 
Temporaltnumber_at_tbox (const Temporal *temp, const TBox *box)
 Return a temporal number restricted to a temporal box. More...
 
Temporaltnumber_delta_value (const Temporal *temp)
 Return the delta value of a temporal number. More...
 
TBoxtnumber_extent_transfn (TBox *box, const Temporal *temp)
 Transition function for temporal extent aggregate of temporal numbers. More...
 
double tnumber_integral (const Temporal *temp)
 Return the integral (area under the curve) of a temporal number. More...
 
Temporaltnumber_minus_span (const Temporal *temp, const Span *span)
 Return a temporal value restricted to the complement of a span of base values. More...
 
Temporaltnumber_minus_spanset (const Temporal *temp, const SpanSet *ss)
 Return a temporal value restricted to the complement of an array of spans of base values. More...
 
Temporaltnumber_minus_tbox (const Temporal *temp, const TBox *box)
 Return a temporal number restricted to the complement of a temporal box. More...
 
TBoxtnumber_split_each_n_tboxes (const Temporal *temp, int elem_count, int *count)
 Return an array of temporal boxes obtained from the instants or segments of a temporal number, where the choice between instants or segments depends, respectively, on whether the interpolation is discrete or continuous. More...
 
TBoxtnumber_split_n_tboxes (const Temporal *temp, int box_count, int *count)
 Return an array of N temporal boxes obtained from the instants or segments of a temporal number, where the choice between instants or segments depends, respectively, on whether the interpolation is discrete or continuous. More...
 
Temporaltnumber_tavg_finalfn (SkipList *state)
 Final function for temporal average aggregation. More...
 
SkipListtnumber_tavg_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal average of temporal numbers. More...
 
TBoxtnumber_tboxes (const Temporal *temp, int *count)
 Return an array of temporal boxes obtained from the instants or segments of a temporal number, where the choice between instants or segments depends on whether the interpolation is discrete or continuous. More...
 
Spantnumber_to_span (const Temporal *temp)
 Return the value span of a temporal number. More...
 
TBoxtnumber_to_tbox (const Temporal *temp)
 Convert a temporal number into a temporal box. More...
 
double tnumber_twavg (const Temporal *temp)
 Return the time-weighted average of a temporal number. More...
 
SpanSettnumber_valuespans (const Temporal *temp)
 Return the base values of a temporal number as a span set. More...
 
SkipListtnumber_wavg_transfn (SkipList *state, const Temporal *temp, const Interval *interv)
 Transition function for temporal average of temporal numbers. More...
 
Temporaltor_bool_tbool (bool b, const Temporal *temp)
 Return the boolean or of a boolean and a temporal boolean. More...
 
Temporaltor_tbool_bool (const Temporal *temp, bool b)
 Return the boolean or of a temporal boolean and a boolean. More...
 
Temporaltor_tbool_tbool (const Temporal *temp1, const Temporal *temp2)
 Return the boolean or of the temporal booleans. More...
 
TSequencetsequence_make (const TInstant **instants, int count, bool lower_inc, bool upper_inc, interpType interp, bool normalize)
 Return a temporal sequence from an array of temporal instants. More...
 
TSequenceSettsequenceset_make (const TSequence **sequences, int count, bool normalize)
 Return a temporal sequence set from an array of temporal sequences. More...
 
TSequenceSettsequenceset_make_gaps (const TInstant **instants, int count, interpType interp, const Interval *maxt, double maxdist)
 Return a temporal sequence set from an array of temporal instants introducing a gap when two consecutive instants are separated from each other by at least a distance or a time interval. More...
 
TimestampTz tstzset_end_value (const Set *s)
 Return the end value of a timestamptz set. More...
 
Settstzset_in (const char *str)
 Return a set from its Well-Known Text (WKT) representation. More...
 
Settstzset_make (const TimestampTz *values, int count)
 Return a timestamptz set from an array of values. More...
 
char * tstzset_out (const Set *set)
 Return the string representation of a timestamptz set. More...
 
Settstzset_shift_scale (const Set *s, const Interval *shift, const Interval *duration)
 Return a timestamptz set shifted and/or scaled by two intervals. More...
 
TimestampTz tstzset_start_value (const Set *s)
 Return the start value of a timestamptz set. More...
 
SkipListtstzset_tcount_transfn (SkipList *state, const Set *s)
 Transition function for temporal count aggregate of timestamp sets. More...
 
Settstzset_to_dateset (const Set *s)
 Convert a timestamptz set into a date set. More...
 
Settstzset_tprecision (const Set *s, const Interval *duration, TimestampTz torigin)
 Return a timestamptz set with the precision set to a time bin. More...
 
bool tstzset_value_n (const Set *s, int n, TimestampTz *result)
 Return in the last argument the n-th value of a timestamptz set. More...
 
TimestampTztstzset_values (const Set *s)
 Return the array of values of a timestamptz set. More...
 
Spantstzspan_bins (const Span *s, const Interval *duration, TimestampTz origin, int *count)
 Return the bins of a timestamptz span. More...
 
Intervaltstzspan_duration (const Span *s)
 Return the duration of a timestamptz span as an interval. More...
 
Spantstzspan_expand (const Span *s, const Interval *interv)
 Return a timestamptz span with its bounds expanded/decreased by an interval. More...
 
Spantstzspan_in (const char *str)
 Return a timestamptz span from its Well-Known Text (WKT) representation. More...
 
TimestampTz tstzspan_lower (const Span *s)
 Return the lower bound of a timestamptz span. More...
 
Spantstzspan_make (TimestampTz lower, TimestampTz upper, bool lower_inc, bool upper_inc)
 Return a timestamptz span from the bounds. More...
 
char * tstzspan_out (const Span *s)
 Return the Well-Known Text (WKT) representation of a timestamtz span. More...
 
Spantstzspan_shift_scale (const Span *s, const Interval *shift, const Interval *duration)
 Return a timestamptz span shifted and/or scaled by two intervals. More...
 
SkipListtstzspan_tcount_transfn (SkipList *state, const Span *s)
 Transition function for temporal count aggregate of timestamptz spans. More...
 
Spantstzspan_to_datespan (const Span *s)
 Convert a timestamptz span into a date span. More...
 
Spantstzspan_tprecision (const Span *s, const Interval *duration, TimestampTz torigin)
 Return a timestamptz span with the precision set to a time bin. More...
 
TimestampTz tstzspan_upper (const Span *s)
 Return the upper bound of a timestamptz span. More...
 
Spantstzspanset_bins (const SpanSet *ss, const Interval *duration, TimestampTz torigin, int *count)
 Return the bins of a timestamptz span set. More...
 
Intervaltstzspanset_duration (const SpanSet *ss, bool boundspan)
 Return the duration of a timestamptz span set. More...
 
TimestampTz tstzspanset_end_timestamptz (const SpanSet *ss)
 Return the end timestamptz of a span set. More...
 
SpanSettstzspanset_in (const char *str)
 Return a timestamptz set from its Well-Known Text (WKT) representation. More...
 
TimestampTz tstzspanset_lower (const SpanSet *ss)
 Return the lower bound of a timestamptz span set. More...
 
int tstzspanset_num_timestamps (const SpanSet *ss)
 Return the number of timestamps of a span set. More...
 
char * tstzspanset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of a timpespantz span set. More...
 
SpanSettstzspanset_shift_scale (const SpanSet *ss, const Interval *shift, const Interval *duration)
 Return a timestamptz span set shifted and/or scaled by two intervals. More...
 
TimestampTz tstzspanset_start_timestamptz (const SpanSet *ss)
 Return the start timestamptz of a span set. More...
 
SkipListtstzspanset_tcount_transfn (SkipList *state, const SpanSet *ss)
 Transition function for temporal count aggregate of timestamptz span sets. More...
 
Settstzspanset_timestamps (const SpanSet *ss)
 Return the set of timestamps of a span set. More...
 
bool tstzspanset_timestamptz_n (const SpanSet *ss, int n, TimestampTz *result)
 Return in the last argument the n-th timestamptz of a span set. More...
 
SpanSettstzspanset_to_datespanset (const SpanSet *ss)
 Convert a timestamptz span set into a date span set. More...
 
SpanSettstzspanset_tprecision (const SpanSet *ss, const Interval *duration, TimestampTz torigin)
 Return a timestamptz span set with the precision set to a time bin. More...
 
TimestampTz tstzspanset_upper (const SpanSet *ss)
 Return the upper bound of a timestamptz span set. More...
 
Temporalttext_at_value (const Temporal *temp, text *txt)
 Return a temporal text restricted to a text. More...
 
textttext_end_value (const Temporal *temp)
 Return a copy of the end value of a temporal text. More...
 
Temporalttext_from_base_temp (const text *txt, const Temporal *temp)
 Return a temporal text from a text and the time frame of another temporal value. More...
 
Temporalttext_from_mfjson (const char *str)
 Return a temporal text from its MF-JSON representation. More...
 
Temporalttext_in (const char *str)
 Return a temporal text from its Well-Known Text (WKT) representation. More...
 
Temporalttext_initcap (const Temporal *temp)
 Return a temporal text transformed to initcap. More...
 
Temporalttext_lower (const Temporal *temp)
 Return a temporal text transformed to lowercase. More...
 
textttext_max_value (const Temporal *temp)
 Return a copy of the maximum value of a temporal text. More...
 
textttext_min_value (const Temporal *temp)
 Return a copy of the minimum value of a temporal text. More...
 
Temporalttext_minus_value (const Temporal *temp, text *txt)
 Return a temporal text restricted to the complement of a text. More...
 
char * ttext_out (const Temporal *temp)
 Return the Well-Known Text (WKT) representation of a temporal text. More...
 
textttext_start_value (const Temporal *temp)
 Return a copy of the start value of a temporal text. More...
 
SkipListttext_tmax_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal maximum of temporal text values. More...
 
SkipListttext_tmin_transfn (SkipList *state, const Temporal *temp)
 Transition function for temporal minimum of temporal text values. More...
 
Temporalttext_upper (const Temporal *temp)
 Return a temporal text transformed to uppercase. More...
 
bool ttext_value_at_timestamptz (const Temporal *temp, TimestampTz t, bool strict, text **value)
 Return the value of a temporal integer at a timestamptz. More...
 
bool ttext_value_n (const Temporal *temp, int n, text **result)
 Return a copy of the n-th value of a temporal text. More...
 
text ** ttext_values (const Temporal *temp, int *count)
 Return the array of copies of base values of a temporal text. More...
 
TInstantttextinst_make (const text *txt, TimestampTz t)
 Return a temporal text instant from a text and a timestamptz. More...
 
TSequencettextseq_from_base_tstzset (const text *txt, const Set *s)
 Return a temporal text discrete sequence from a text and a timestamptz set. More...
 
TSequencettextseq_from_base_tstzspan (const text *txt, const Span *s)
 Return a temporal text sequence from a text and a timestamptz span. More...
 
TSequenceSetttextseqset_from_base_tstzspanset (const text *txt, const SpanSet *ss)
 Return a temporal text sequence set from a text and a timestamptz span set. More...
 
Setunion_bigint_set (int64 i, const Set *s)
 Return the union of a big integer and a set. More...
 
SpanSetunion_bigint_span (const Span *s, int64 i)
 Return the union of a big integer and a span. More...
 
SpanSetunion_bigint_spanset (int64 i, SpanSet *ss)
 Return the union of a span set and a big integer. More...
 
Setunion_date_set (DateADT d, const Set *s)
 Return the union of a date and a set. More...
 
SpanSetunion_date_span (const Span *s, DateADT d)
 Return the union of a date and a span. More...
 
SpanSetunion_date_spanset (DateADT d, SpanSet *ss)
 Return the union of a span set and a date. More...
 
Setunion_float_set (double d, const Set *s)
 Return the union of a float and a set. More...
 
SpanSetunion_float_span (const Span *s, double d)
 Return the union of a float and a span. More...
 
SpanSetunion_float_spanset (double d, SpanSet *ss)
 Return the union of a span set and a float. More...
 
Setunion_int_set (int i, const Set *s)
 Return the union of an integer and a set. More...
 
SpanSetunion_int_span (int i, const Span *s)
 Return the union of an integer and a span. More...
 
SpanSetunion_int_spanset (int i, SpanSet *ss)
 Return the union of a span set and an integer. More...
 
Setunion_set_bigint (const Set *s, int64 i)
 Return the union of a set and a big integer. More...
 
Setunion_set_date (const Set *s, DateADT d)
 Return the union of a set and a date. More...
 
Setunion_set_float (const Set *s, double d)
 Return the union of a set and a float. More...
 
Setunion_set_int (const Set *s, int i)
 Return the union of a set and an integer. More...
 
Setunion_set_set (const Set *s1, const Set *s2)
 Return the union of two sets. More...
 
Setunion_set_text (const Set *s, const text *txt)
 Return the union of a set and a text. More...
 
Setunion_set_timestamptz (const Set *s, TimestampTz t)
 Return the union of a set and a timestamptz. More...
 
SpanSetunion_span_bigint (const Span *s, int64 i)
 Return the union of a span and a big integer. More...
 
SpanSetunion_span_date (const Span *s, DateADT d)
 Return the union of a span and a date. More...
 
SpanSetunion_span_float (const Span *s, double d)
 Return the union of a span and a float. More...
 
SpanSetunion_span_int (const Span *s, int i)
 Return the union of a span and an integer. More...
 
SpanSetunion_span_span (const Span *s1, const Span *s2)
 Return the union of two spans. More...
 
SpanSetunion_span_spanset (const Span *s, const SpanSet *ss)
 Return the union of a span and a span set. More...
 
SpanSetunion_span_timestamptz (const Span *s, TimestampTz t)
 Return the union of a span and a timestamptz. More...
 
SpanSetunion_spanset_bigint (const SpanSet *ss, int64 i)
 Return the union of a span set and a big integer. More...
 
SpanSetunion_spanset_date (const SpanSet *ss, DateADT d)
 Return the union of a span set and a date. More...
 
SpanSetunion_spanset_float (const SpanSet *ss, double d)
 Return the union of a span set and a float. More...
 
SpanSetunion_spanset_int (const SpanSet *ss, int i)
 Return the union of a span set and an integer. More...
 
SpanSetunion_spanset_span (const SpanSet *ss, const Span *s)
 Return the union of a span set and a span. More...
 
SpanSetunion_spanset_spanset (const SpanSet *ss1, const SpanSet *ss2)
 Return the union of two span sets. More...
 
SpanSetunion_spanset_timestamptz (const SpanSet *ss, TimestampTz t)
 Return the union of a span set and a timestamptz. More...
 
TBoxunion_tbox_tbox (const TBox *box1, const TBox *box2, bool strict)
 Return the union of two temporal boxes. More...
 
Setunion_text_set (const text *txt, const Set *s)
 Return the union of a text and a set. More...
 
Setunion_timestamptz_set (TimestampTz t, const Set *s)
 Return the union of a timestamptz and a set. More...
 
SpanSetunion_timestamptz_span (TimestampTz t, const Span *s)
 Return the union of a timestamptz and a span. More...
 
SpanSetunion_timestamptz_spanset (TimestampTz t, SpanSet *ss)
 Return the union of a span set and a timestamptz. More...
 

Detailed Description

External API of the Mobility Engine Open Source (MEOS) library.