MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
set.h File Reference
#include <postgres.h>
#include <meos.h>
#include "temporal/meos_catalog.h"
#include "temporal/temporal.h"

Go to the source code of this file.

Data Structures

struct  SetUnnestState
 Structure to represent information about an entry that can be placed to either group without affecting overlap over selected axis ("common entry"). More...
 

Macros

#define DatumGetSetP(X)   ((Set *) DatumGetPointer(X))
 Basic functions for set of (distinct) timestamps. More...
 
#define MAXIDX   count - 1
 
#define MINIDX   0
 
#define PG_GETARG_SET_P(X)   ((Set *) PG_GETARG_VARLENA_P(X))
 
#define PG_RETURN_SET_P(X)   PG_RETURN_POINTER(X)
 
#define SetPGetDatum(X)   PointerGetDatum(X)
 

Functions

bool ensure_set_isof_type (const Set *s, meosType settype)
 Ensure that a set is of a given set type. More...
 
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. More...
 
bool set_find_value (const Set *s, Datum, int *loc)
 Return the location of a value in a set using binary search. More...
 
char * set_out_fn (const Set *s, int maxdd, outfunc value_out)
 Return the output representation of a set given by a function. More...
 
SetUnnestStateset_unnest_state_make (const Set *set)
 Create the initial state that persists across multiple calls of the function. More...
 
void set_unnest_state_next (SetUnnestState *state)
 Increment the current state to the next unnest value. More...