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

Functions

PGDLLEXPORT Datum Adjacent_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span and a span set are adjacent. More...
 
PGDLLEXPORT Datum Adjacent_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set and a span are adjacent. More...
 
PGDLLEXPORT Datum Adjacent_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the span sets are adjacent. More...
 
PGDLLEXPORT Datum Adjacent_spanset_value (PG_FUNCTION_ARGS)
 Return true if a value is contained by a span. More...
 
PGDLLEXPORT Datum Adjacent_value_spanset (PG_FUNCTION_ARGS)
 Return true if a value is contained by a span. More...
 
PGDLLEXPORT Datum Contained_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span is contained by a span set. More...
 
PGDLLEXPORT Datum Contained_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set is contained by a span. More...
 
PGDLLEXPORT Datum Contained_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the first span set is contained by the second one. More...
 
PGDLLEXPORT Datum Contained_value_spanset (PG_FUNCTION_ARGS)
 Return true if a value is contained by a span. More...
 
PGDLLEXPORT Datum Contains_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span contains a span set. More...
 
PGDLLEXPORT Datum Contains_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set contains a span set. More...
 
PGDLLEXPORT Datum Contains_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the first span set contains the second one. More...
 
PGDLLEXPORT Datum Contains_spanset_value (PG_FUNCTION_ARGS)
 Return true if a span contains a value. More...
 
PGDLLEXPORT Datum Distance_span_spanset (PG_FUNCTION_ARGS)
 Return the distance in seconds between a span and a span set. More...
 
PGDLLEXPORT Datum Distance_spanset_span (PG_FUNCTION_ARGS)
 Return the distance between a span set and a span. More...
 
PGDLLEXPORT Datum Distance_spanset_spanset (PG_FUNCTION_ARGS)
 Return the distance between the span sets. More...
 
PGDLLEXPORT Datum Distance_spanset_value (PG_FUNCTION_ARGS)
 Return the distance between a span set and a value. More...
 
PGDLLEXPORT Datum Distance_value_spanset (PG_FUNCTION_ARGS)
 Return the distance between a value and a span set. More...
 
PGDLLEXPORT Datum Intersection_span_spanset (PG_FUNCTION_ARGS)
 Return the intersection of a span and a span set. More...
 
PGDLLEXPORT Datum Intersection_spanset_span (PG_FUNCTION_ARGS)
 Return the intersection of a span set and a span. More...
 
PGDLLEXPORT Datum Intersection_spanset_spanset (PG_FUNCTION_ARGS)
 Return the intersection of the span sets. More...
 
PGDLLEXPORT Datum Intersection_spanset_value (PG_FUNCTION_ARGS)
 Return the intersection of a span set and a value. More...
 
PGDLLEXPORT Datum Intersection_value_spanset (PG_FUNCTION_ARGS)
 Return the intersection of a value and a span set. More...
 
PGDLLEXPORT Datum Left_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span is strictly to the left of a span set. More...
 
PGDLLEXPORT Datum Left_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set is strictly to the left a span. More...
 
PGDLLEXPORT Datum Left_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the first span set is strictly to the left of the second one. More...
 
PGDLLEXPORT Datum Left_spanset_value (PG_FUNCTION_ARGS)
 Return true if a value is to the left of a span. More...
 
PGDLLEXPORT Datum Left_value_spanset (PG_FUNCTION_ARGS)
 Return true if a value is to the left of a span. More...
 
PGDLLEXPORT Datum Minus_span_spanset (PG_FUNCTION_ARGS)
 Return the difference of a span and a span set. More...
 
PGDLLEXPORT Datum Minus_spanset_span (PG_FUNCTION_ARGS)
 Return the difference of a span set and a span. More...
 
PGDLLEXPORT Datum Minus_spanset_spanset (PG_FUNCTION_ARGS)
 Return the difference of the span sets. More...
 
PGDLLEXPORT Datum Minus_spanset_value (PG_FUNCTION_ARGS)
 Return the difference of a span set and a value. More...
 
PGDLLEXPORT Datum Minus_value_spanset (PG_FUNCTION_ARGS)
 Return the difference of a value and a span set. More...
 
PGDLLEXPORT Datum Overlaps_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span and a span set overlap. More...
 
PGDLLEXPORT Datum Overlaps_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set and a span overlap. More...
 
PGDLLEXPORT Datum Overlaps_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the span sets overlap. More...
 
PGDLLEXPORT Datum Overleft_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span is not after a span set. More...
 
PGDLLEXPORT Datum Overleft_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set is not after a span set. More...
 
PGDLLEXPORT Datum Overleft_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the first span set is not after the second one. More...
 
PGDLLEXPORT Datum Overleft_spanset_value (PG_FUNCTION_ARGS)
 Return true if a value does not extend to the right of a span. More...
 
PGDLLEXPORT Datum Overleft_value_spanset (PG_FUNCTION_ARGS)
 Return true if a value does not extend to the right of a span. More...
 
PGDLLEXPORT Datum Overright_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span is not to the left of a span set. More...
 
PGDLLEXPORT Datum Overright_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set is not to the left of a span. More...
 
PGDLLEXPORT Datum Overright_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the first span set is not to the left of the second one. More...
 
PGDLLEXPORT Datum Overright_spanset_value (PG_FUNCTION_ARGS)
 Return true if a value does not extend to the left of a span. More...
 
PGDLLEXPORT Datum Overright_value_spanset (PG_FUNCTION_ARGS)
 Return true if a value does not extend to the left of a span. More...
 
PGDLLEXPORT Datum Period_tprecision (PG_FUNCTION_ARGS)
 Generate a bucket in a bucket list for periods. More...
 
PGDLLEXPORT Datum Periodset_tprecision (PG_FUNCTION_ARGS)
 Generate a bucket in a bucket list for periods. More...
 
PGDLLEXPORT Datum Right_span_spanset (PG_FUNCTION_ARGS)
 Return true if a span is strictly after a span set. More...
 
PGDLLEXPORT Datum Right_spanset_span (PG_FUNCTION_ARGS)
 Return true if a span set is strictly after a span. More...
 
PGDLLEXPORT Datum Right_spanset_spanset (PG_FUNCTION_ARGS)
 Return true if the first span set is strictly after the second one. More...
 
PGDLLEXPORT Datum Right_spanset_value (PG_FUNCTION_ARGS)
 Return true if a value is to the right of a span. More...
 
PGDLLEXPORT Datum Right_value_spanset (PG_FUNCTION_ARGS)
 Return true if a value is to the right of a span. More...
 
PGDLLEXPORT Datum Timestamp_tprecision (PG_FUNCTION_ARGS)
 Return the initial timestamp of the bucket in which a timestamp falls. More...
 
PGDLLEXPORT Datum Union_span_spanset (PG_FUNCTION_ARGS)
 Return the union of a span and a span set. More...
 
PGDLLEXPORT Datum Union_spanset_span (PG_FUNCTION_ARGS)
 Return the union of a span set and a span. More...
 
PGDLLEXPORT Datum Union_spanset_spanset (PG_FUNCTION_ARGS)
 Return the union of the span sets. More...
 
PGDLLEXPORT Datum Union_spanset_value (PG_FUNCTION_ARGS)
 Return the union of a span set and a value. More...
 
PGDLLEXPORT Datum Union_value_spanset (PG_FUNCTION_ARGS)
 Return the union of a value and a span set. More...