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

General functions for set of disjoint spans. More...

#include "temporal/spanset.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/postgres_types.h"
#include "temporal/span.h"
#include "temporal/temporal.h"
#include "temporal/type_parser.h"
#include "temporal/type_inout.h"
#include "temporal/type_util.h"

Functions

SpanSetbigint_to_spanset (int i)
 Convert a big integer into a 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...
 
SpanSetdate_to_spanset (DateADT d)
 Convert a date into a span set. More...
 
SpanSetdatespanset_in (const char *str)
 Return a date set from its Well-Known Text (WKT) representation. 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...
 
SpanSetfloat_to_spanset (double d)
 Convert a float into a span set. 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_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...
 
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...
 
SpanSetint_to_spanset (int i)
 Convert an integer into a 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...
 
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...
 
SpanSettimestamptz_to_spanset (TimestampTz t)
 Convert a timestamptz into 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...
 
char * tstzspanset_out (const SpanSet *ss)
 Return the Well-Known Text (WKT) representation of a timpespantz span set. More...
 
TimestampTz tstzspanset_upper (const SpanSet *ss)
 Return the upper bound of a timestamptz span set. More...
 

Detailed Description

General functions for set of disjoint spans.