MobilityDB 1.1
Functions
span_ops.c File Reference
#include <assert.h>
#include <math.h>
#include <postgres.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/set.h"
#include "general/type_util.h"
#include "pg_general/meos_catalog.h"
Include dependency graph for span_ops.c:

Functions

PGDLLEXPORT Datum Adjacent_span_span (PG_FUNCTION_ARGS)
 Return true if the spans are adjacent. More...
 
PGDLLEXPORT Datum Adjacent_span_value (PG_FUNCTION_ARGS)
 Return true if a span and a value are adjacent. More...
 
PGDLLEXPORT Datum Adjacent_value_span (PG_FUNCTION_ARGS)
 Return true if a value and a span are adjacent. More...
 
PGDLLEXPORT Datum Contained_span_span (PG_FUNCTION_ARGS)
 Return true if the first span is contained by the second one. More...
 
PGDLLEXPORT Datum Contained_value_span (PG_FUNCTION_ARGS)
 Return true if a value is contained by a span. More...
 
PGDLLEXPORT Datum Contains_span_span (PG_FUNCTION_ARGS)
 Return true if the first span contains the second one. More...
 
PGDLLEXPORT Datum Contains_span_value (PG_FUNCTION_ARGS)
 Return true if a span contains a value. More...
 
PGDLLEXPORT Datum Distance_span_span (PG_FUNCTION_ARGS)
 Return the distance in seconds between the spans. More...
 
PGDLLEXPORT Datum Distance_span_value (PG_FUNCTION_ARGS)
 Return the distance in seconds between a span and a value. More...
 
PGDLLEXPORT Datum Distance_value_span (PG_FUNCTION_ARGS)
 Return the distance in seconds between a value and a span. More...
 
PGDLLEXPORT Datum Distance_value_value (PG_FUNCTION_ARGS)
 Return the distance in seconds between the values. More...
 
PGDLLEXPORT Datum Intersection_span_span (PG_FUNCTION_ARGS)
 Return the intersection of the spans. More...
 
PGDLLEXPORT Datum Intersection_span_value (PG_FUNCTION_ARGS)
 Return the intersection of a value and a span. More...
 
PGDLLEXPORT Datum Intersection_value_span (PG_FUNCTION_ARGS)
 Return the intersection of a value and a span. More...
 
PGDLLEXPORT Datum Left_span_span (PG_FUNCTION_ARGS)
 Return true if the first span is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum Left_span_value (PG_FUNCTION_ARGS)
 Return true if a span is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum Left_value_span (PG_FUNCTION_ARGS)
 Return true if a value is strictly to the left of a span. More...
 
PGDLLEXPORT Datum Minus_span_span (PG_FUNCTION_ARGS)
 Return the difference of the spans. More...
 
PGDLLEXPORT Datum Minus_span_value (PG_FUNCTION_ARGS)
 Return the difference of a span and a value. More...
 
PGDLLEXPORT Datum Minus_value_span (PG_FUNCTION_ARGS)
 Return the difference of a value and a span. More...
 
PGDLLEXPORT Datum Overlaps_span_span (PG_FUNCTION_ARGS)
 Return true if the spans overlap. More...
 
PGDLLEXPORT Datum Overleft_span_span (PG_FUNCTION_ARGS)
 Return true if the first span is not to right of the second one. More...
 
PGDLLEXPORT Datum Overleft_span_value (PG_FUNCTION_ARGS)
 Return true if a span is not to right of a value. More...
 
PGDLLEXPORT Datum Overleft_value_span (PG_FUNCTION_ARGS)
 Return true if a value is not to right of a span. More...
 
PGDLLEXPORT Datum Overright_span_span (PG_FUNCTION_ARGS)
 Return true if the first span is not to the left of the second one. More...
 
PGDLLEXPORT Datum Overright_span_value (PG_FUNCTION_ARGS)
 Return true if a span is not to the left of a value. More...
 
PGDLLEXPORT Datum Overright_value_span (PG_FUNCTION_ARGS)
 Return true if a value is not to the left of a span. More...
 
PGDLLEXPORT Datum Right_span_span (PG_FUNCTION_ARGS)
 Return true if the first span is strictly to the right of the second one. More...
 
PGDLLEXPORT Datum Right_span_value (PG_FUNCTION_ARGS)
 Return true if a span is strictly to the right of a value. More...
 
PGDLLEXPORT Datum Right_value_span (PG_FUNCTION_ARGS)
 Return true if a value is strictly to the right of a span. More...
 
PGDLLEXPORT Datum Union_span_span (PG_FUNCTION_ARGS)
 Return the union of the spans. More...
 
PGDLLEXPORT Datum Union_span_value (PG_FUNCTION_ARGS)
 Return the union of a value and a span. More...
 
PGDLLEXPORT Datum Union_value_span (PG_FUNCTION_ARGS)
 Return the union of a value and a span. More...