![]() |
MobilityDB 1.3
|
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 | |
Set * | bigint_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... | |
Set * | bigintset_in (const char *str) |
Return a set from its Well-Known Text (WKT) representation. More... | |
Set * | bigintset_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... | |
Set * | bigintset_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... | |
int64 * | bigintset_values (const Set *s) |
Return the array of values of a big integer set. More... | |
Set * | date_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... | |
Set * | dateset_in (const char *str) |
Return a set from its Well-Known Text (WKT) representation. More... | |
Set * | dateset_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... | |
Set * | dateset_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... | |
DateADT * | dateset_values (const Set *s) |
Return the array of values of a date set. More... | |
Set * | float_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... | |
Set * | floatset_in (const char *str) |
Return a set from its Well-Known Text (WKT) representation. More... | |
Set * | floatset_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... | |
Set * | floatset_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... | |
Set * | int_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... | |
Set * | intset_in (const char *str) |
Return a set from its Well-Known Text (WKT) representation. More... | |
Set * | intset_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... | |
Set * | intset_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... | |
Set * | text_to_set (const text *txt) |
Convert a text into a set. More... | |
Set * | textcat_text_textset (const text *txt, const Set *s) |
Return the concatenation of a text and a text set. More... | |
Set * | textcat_textset_text (const Set *s, const text *txt) |
Return the concatenation of a text set and a text. More... | |
text * | textset_end_value (const Set *s) |
Return a copy of the end value of a text set. More... | |
Set * | textset_in (const char *str) |
Return a set from its Well-Known Text (WKT) representation. More... | |
Set * | textset_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... | |
text * | textset_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... | |
Set * | timestamptz_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... | |
Set * | tstzset_in (const char *str) |
Return a set from its Well-Known Text (WKT) representation. More... | |
Set * | tstzset_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... | |
TimestampTz * | tstzset_values (const Set *s) |
Return the array of values of a timestamptz set. More... | |
General functions for set values composed of an ordered list of distinct values.