47#include "temporal/meos_catalog.h"
48#include "temporal/temporal.h"
51 #define DatumGetSetP(X) ((Set *) DatumGetPointer(X))
53 #define DatumGetSetP(X) ((Set *) PG_DETOAST_DATUM(X))
55#define SetPGetDatum(X) PointerGetDatum(X)
56#define PG_GETARG_SET_P(X) ((Set *) PG_GETARG_VARLENA_P(X))
57#define PG_RETURN_SET_P(X) PG_RETURN_POINTER(X)
60#define MAXIDX count - 1
meosType
Enumeration that defines the built-in and temporal types used in MobilityDB.
Definition: meos_catalog.h:55
char *(* outfunc)(Datum value, meosType type, int maxdd)
Definition: temporal.h:277
set(CBUFFER_SRCS cbuffer.c tcbuffer.c tcbuffer_boxops.c tcbuffer_compops.c tcbuffer_distance.c tcbuffer_spatialfuncs.c tcbuffer_spatialrels.c tcbuffer_tempspatialrels.c) if(1) list(APPEND CBUFFER_SRCS cbufferset_meos.c) endif() add_library(cbuffer OBJECT $
Definition: CMakeLists.txt:1
External API of the Mobility Engine Open Source (MEOS) library.
uintptr_t Datum
Definition: postgres_ext_defs.in.h:7
bool ensure_set_isof_type(const Set *s, meosType settype)
Ensure that a set is of a given set type.
Definition: set.c:69
bool ensure_valid_set_set(const Set *s1, const Set *s2)
Ensure that a temporal number and a temporal box have the same span type.
Definition: set.c:84
void set_unnest_state_next(SetUnnestState *state)
Increment the current state to the next unnest value.
Definition: set.c:1041
SetUnnestState * set_unnest_state_make(const Set *set)
Create the initial state that persists across multiple calls of the function.
Definition: set.c:1024
bool set_find_value(const Set *s, Datum, int *loc)
Return the location of a value in a set using binary search.
Definition: set.c:127
char * set_out_fn(const Set *s, int maxdd, outfunc value_out)
Return the output representation of a set given by a function.
Definition: set.c:185
int i
Definition: set.h:73
int count
Definition: set.h:74
Datum * values
Definition: set.h:76
Set * set
Definition: set.h:75
bool done
Definition: set.h:72
Structure to represent information about an entry that can be placed to either group without affectin...
Definition: set.h:71
Structure to represent sets of values.
Definition: meos.h:80