MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
set_meos.c File Reference

General functions for set values composed of an ordered list of distinct values. More...

#include "temporal/set.h"
#include <assert.h>
#include <float.h>
#include <limits.h>
#include <postgres.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/type_parser.h"
#include "temporal/type_util.h"

Functions

Setbigint_to_set (int64 i)
 Convert a big integer into a set. 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 *s)
 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...
 
Setdate_to_set (DateADT d)
 Convert a date into a set. 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...
 
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...
 
Setfloat_to_set (double d)
 Convert a float into a set. More...
 
double floatset_end_value (const Set *s)
 Return the end value of a float set. 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 *s, int maxdd)
 Return the string representation of a float set. 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...
 
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...
 
Setint_to_set (int i)
 Convert an integer into a set. 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 *s)
 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...
 
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...
 
Settext_to_set (const text *txt)
 Convert a text into a set. More...
 
Settextcat_text_textset (const text *txt, const Set *s)
 Return the concatenation of a text and a text set. More...
 
Settextcat_textset_text (const Set *s, const text *txt)
 Return the concatenation of a text set and a text. 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_make (const text **values, int count)
 Return a text set from an array of values. More...
 
char * textset_out (const Set *s)
 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...
 
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...
 
Settimestamptz_to_set (TimestampTz t)
 Convert a timestamptz into a set. 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 *s)
 Return the string representation of a timestamptz set. More...
 
TimestampTz tstzset_start_value (const Set *s)
 Return the start value of a timestamptz set. 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...
 

Detailed Description

General functions for set values composed of an ordered list of distinct values.