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

Operators for set types. More...

#include <postgres.h>
#include <fmgr.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/set.h"
#include "temporal/temporal.h"
#include "pg_temporal/meos_catalog.h"
#include "pg_temporal/temporal.h"

Functions

static Datum Boolop_base_set (FunctionCallInfo fcinfo, bool(*func)(Datum, const Set *))
 Generic function for set operators on sets. More...
 
static Datum Boolop_set_base (FunctionCallInfo fcinfo, bool(*func)(const Set *, Datum))
 Generic function for boolean operators on sets. More...
 
static Datum Boolop_set_set (FunctionCallInfo fcinfo, bool(*func)(const Set *, const Set *))
 Generic function for boolean operators on sets. More...
 
Datum Contained_set_set (PG_FUNCTION_ARGS)
 Return true if the first set is contained in the second one @sqlfn set_contained() More...
 
Datum Contained_value_set (PG_FUNCTION_ARGS)
 Return true if a value is contained in a set @sqlfn set_contained() More...
 
Datum Contains_set_set (PG_FUNCTION_ARGS)
 Return true if the first set contains the second one @sqlfn set_contains() More...
 
Datum Contains_set_value (PG_FUNCTION_ARGS)
 Return true if a set contains a value @sqlfn set_contains() More...
 
Datum Distance_set_set (PG_FUNCTION_ARGS)
 Return the distance between two sets @sqlfn set_distance() More...
 
Datum Distance_set_value (PG_FUNCTION_ARGS)
 Return the distance between a set and a value @sqlfn set_distance() More...
 
Datum Distance_value_set (PG_FUNCTION_ARGS)
 Return the distance between a value and a set @sqlfn set_distance() More...
 
Datum Intersection_set_set (PG_FUNCTION_ARGS)
 Return the intersection of two sets @sqlfn set_intersection() More...
 
Datum Intersection_set_value (PG_FUNCTION_ARGS)
 Return the intersection of a set and a value @sqlfn set_intersection() More...
 
Datum Intersection_value_set (PG_FUNCTION_ARGS)
 Return the intersection of a value and a set @sqlfn set_intersection() More...
 
Datum Left_set_set (PG_FUNCTION_ARGS)
 Return true if the first set is to the left of the second one @sqlfn set_left() More...
 
Datum Left_set_value (PG_FUNCTION_ARGS)
 Return true if a set is to the left of a value @sqlfn set_left() More...
 
Datum Left_value_set (PG_FUNCTION_ARGS)
 Return true if a value is to the left of a set @sqlfn set_left() More...
 
Datum Minus_set_set (PG_FUNCTION_ARGS)
 Return the difference of two sets @sqlfn set_minus() More...
 
Datum Minus_set_value (PG_FUNCTION_ARGS)
 Return the difference of a set and a value @sqlfn set_minus() More...
 
Datum Minus_value_set (PG_FUNCTION_ARGS)
 Return the difference of a value and a set @sqlfn set_minus() More...
 
Datum Overlaps_set_set (PG_FUNCTION_ARGS)
 Return true if two sets overlap @sqlfn set_overlaps() More...
 
Datum Overleft_set_set (PG_FUNCTION_ARGS)
 Return true if the first set does not extend to the right of the second one @sqlfn set_overleft() More...
 
Datum Overleft_set_value (PG_FUNCTION_ARGS)
 Return true if a set does not extend to the right of a value @sqlfn set_overleft() More...
 
Datum Overleft_value_set (PG_FUNCTION_ARGS)
 Return true if a value does not extend to the right of a set @sqlfn set_overleft() More...
 
Datum Overright_set_set (PG_FUNCTION_ARGS)
 Return true if the first set does not extend to the left of the second one @sqlfn set_overright() More...
 
Datum Overright_set_value (PG_FUNCTION_ARGS)
 Return true if a set does not extend to the left of a value @sqlfn set_overright() More...
 
Datum Overright_value_set (PG_FUNCTION_ARGS)
 Return true if a value does not extend to the left of a set @sqlfn set_overright() More...
 
Datum Right_set_set (PG_FUNCTION_ARGS)
 Return true if the first set is to the right of the second one @sqlfn set_right() More...
 
Datum Right_set_value (PG_FUNCTION_ARGS)
 Return true if a set is to the right of a value @sqlfn set_right() More...
 
Datum Right_value_set (PG_FUNCTION_ARGS)
 Return true if a value is to the right of a set @sqlfn set_right() More...
 
static Datum Setop_base_set (FunctionCallInfo fcinfo, Set *(*func)(Datum, const Set *))
 Generic function for set operators on sets. More...
 
static Datum Setop_set_base (FunctionCallInfo fcinfo, Set *(*func)(const Set *, Datum))
 Generic function for set operators on sets. More...
 
static Datum Setop_set_set (FunctionCallInfo fcinfo, Set *(*func)(const Set *, const Set *))
 Generic function for set operators on sets. More...
 
Datum Union_set_set (PG_FUNCTION_ARGS)
 Return the union of two sets @sqlfn set_union() More...
 
Datum Union_set_value (PG_FUNCTION_ARGS)
 Return the union of a set and a value @sqlfn set_union() More...
 
Datum Union_value_set (PG_FUNCTION_ARGS)
 Return the union of a value and a set @sqlfn set_union() More...
 

Detailed Description

Operators for set types.