![]() |
MobilityDB 1.3
|
Operators for span set types. More...
#include <assert.h>
#include <postgres.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/span.h"
#include "temporal/spanset.h"
#include "temporal/temporal.h"
#include "temporal/type_util.h"
Functions | |
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_timestamptz (const SpanSet *ss, TimestampTz t) |
Return true if a span set and a timestamptz are adjacent. More... | |
bool | after_date_spanset (DateADT d, const SpanSet *ss) |
Return true if a date is after a span set. 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_timestamptz_spanset (TimestampTz t, const SpanSet *ss) |
Return true if a timestamptz is after a span set. More... | |
bool | before_date_spanset (DateADT d, const SpanSet *ss) |
Return true if a date is before a span set. 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_timestamptz_spanset (TimestampTz t, const SpanSet *ss) |
Return true if a timestamptz is before a span set. 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_spanset (DateADT d, const SpanSet *ss) |
Return true if a date is contained in a span set. 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_spanset (int i, const SpanSet *ss) |
Return true if an integer is contained in a span set. More... | |
bool | contained_timestamptz_spanset (TimestampTz t, const SpanSet *ss) |
Return true if a timestamptz is contained in a span set. 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... | |
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_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_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_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_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... | |
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... | |
SpanSet * | intersection_spanset_bigint (const SpanSet *ss, int64 i) |
Return the intersection of a span set and a big integer. More... | |
SpanSet * | intersection_spanset_date (const SpanSet *ss, DateADT d) |
Return the intersection of a span set and a date. More... | |
SpanSet * | intersection_spanset_float (const SpanSet *ss, double d) |
Return the intersection of a span set and a float. More... | |
SpanSet * | intersection_spanset_int (const SpanSet *ss, int i) |
Return the intersection of a span set and an integer. More... | |
SpanSet * | intersection_spanset_timestamptz (const SpanSet *ss, TimestampTz t) |
Return the intersection of a span set and a timestamptz. 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_spanset (double d, const SpanSet *ss) |
Return true if a float is to the left of a span set. 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_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... | |
SpanSet * | minus_bigint_spanset (int64 i, const SpanSet *ss) |
Return the difference of a big integer and a span set. More... | |
SpanSet * | minus_date_spanset (DateADT d, const SpanSet *ss) |
Return the difference of a date and a span set. More... | |
SpanSet * | minus_float_spanset (double d, const SpanSet *ss) |
Return the difference of a float and a span set. More... | |
SpanSet * | minus_int_spanset (int i, const SpanSet *ss) |
Return the difference of an integer and a span set. More... | |
SpanSet * | minus_spanset_bigint (const SpanSet *ss, int64 i) |
Return the difference of a span set and a big integer. More... | |
SpanSet * | minus_spanset_date (const SpanSet *ss, DateADT d) |
Return the difference of a span set and a date. More... | |
SpanSet * | minus_spanset_float (const SpanSet *ss, double d) |
Return the difference of a span set and a float. More... | |
SpanSet * | minus_spanset_int (const SpanSet *ss, int i) |
Return the difference of a span set and an integer. More... | |
SpanSet * | minus_spanset_timestamptz (const SpanSet *ss, TimestampTz t) |
Return the difference of a span set and a timestamptz. More... | |
SpanSet * | minus_timestamptz_spanset (TimestampTz t, const SpanSet *ss) |
Return the difference of a timestamptz and a span set. More... | |
bool | overafter_date_spanset (DateADT d, const SpanSet *ss) |
Return true if a date is not before a span set. 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_timestamptz_spanset (TimestampTz t, const SpanSet *ss) |
Return true if a timestamptz is not before a span set. More... | |
bool | overbefore_date_spanset (DateADT d, const SpanSet *ss) |
Return true if a date is not after a span set. 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_timestamptz_spanset (TimestampTz t, const SpanSet *ss) |
Return true if a timestamptz is not after a span set. 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_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_spanset (int i, const SpanSet *ss) |
Return true if an integer 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 | 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_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_spanset (int i, const SpanSet *ss) |
Return true if an integer 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 | 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_spanset (double d, const SpanSet *ss) |
Return true if a float is to the right of a span set. 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_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... | |
SpanSet * | union_bigint_spanset (int64 i, SpanSet *ss) |
Return the union of a span set and a big integer. More... | |
SpanSet * | union_date_spanset (DateADT d, SpanSet *ss) |
Return the union of a span set and a date. More... | |
SpanSet * | union_float_spanset (double d, SpanSet *ss) |
Return the union of a span set and a float. More... | |
SpanSet * | union_int_spanset (int i, SpanSet *ss) |
Return the union of a span set and an integer. More... | |
SpanSet * | union_spanset_bigint (const SpanSet *ss, int64 i) |
Return the union of a span set and a big integer. More... | |
SpanSet * | union_spanset_date (const SpanSet *ss, DateADT d) |
Return the union of a span set and a date. More... | |
SpanSet * | union_spanset_float (const SpanSet *ss, double d) |
Return the union of a span set and a float. More... | |
SpanSet * | union_spanset_int (const SpanSet *ss, int i) |
Return the union of a span set and an integer. More... | |
SpanSet * | union_spanset_timestamptz (const SpanSet *ss, TimestampTz t) |
Return the union of a span set and a timestamptz. More... | |
SpanSet * | union_timestamptz_spanset (TimestampTz t, SpanSet *ss) |
Return the union of a span set and a timestamptz. More... | |
Operators for span set types.