MobilityDB 1.1
Functions
set.c File Reference
#include "general/set.h"
#include <postgres.h>
#include <access/tuptoaster.h>
#include <funcapi.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/type_out.h"
#include "general/type_util.h"
#include "pg_general/meos_catalog.h"
#include "pg_general/temporal.h"
#include "pg_general/tnumber_mathfuncs.h"
#include "pg_general/type_util.h"
Include dependency graph for set.c:

Functions

Setfloatset_round (const Set *s, Datum size)
 Set the precision of the float set to the number of decimal places. More...
 
PGDLLEXPORT Datum Floatset_round (PG_FUNCTION_ARGS)
 Set the precision of the float span to the number of decimal places. More...
 
PGDLLEXPORT Datum Geoset_as_ewkt (PG_FUNCTION_ARGS)
 Return the Extended Well-Known Text (EWKT) representation a geoset. More...
 
PGDLLEXPORT Datum Geoset_as_text (PG_FUNCTION_ARGS)
 Return the Well-Known Text (WKT) representation a geoset. More...
 
PGDLLEXPORT Datum Set_cmp (PG_FUNCTION_ARGS)
 Return -1, 0, or 1 depending on whether the first set is less than, equal, or greater than the second temporal value. More...
 
PGDLLEXPORT Datum Set_constructor (PG_FUNCTION_ARGS)
 Construct a set from an array of values. More...
 
PGDLLEXPORT Datum Set_end_value (PG_FUNCTION_ARGS)
 Return the end value of a set. More...
 
PGDLLEXPORT Datum Set_eq (PG_FUNCTION_ARGS)
 Return true if the first set is equal to the second one. More...
 
PGDLLEXPORT Datum Set_ge (PG_FUNCTION_ARGS)
 Return true if the first set is greater than or equal to the second one. More...
 
PGDLLEXPORT Datum Set_gt (PG_FUNCTION_ARGS)
 Return true if the first set is greater than the second one. More...
 
PGDLLEXPORT Datum Set_hash (PG_FUNCTION_ARGS)
 Return the 32-bit hash of a set. More...
 
PGDLLEXPORT Datum Set_hash_extended (PG_FUNCTION_ARGS)
 Return the 64-bit hash of a set using a seed. More...
 
PGDLLEXPORT Datum Set_in (PG_FUNCTION_ARGS)
 Input function for timestamp sets. More...
 
PGDLLEXPORT Datum Set_le (PG_FUNCTION_ARGS)
 Return true if the first set is less than or equal to the second one. More...
 
PGDLLEXPORT Datum Set_lt (PG_FUNCTION_ARGS)
 Return true if the first set is less than the second one. More...
 
PGDLLEXPORT Datum Set_mem_size (PG_FUNCTION_ARGS)
 Return the memory size in bytes of a set. More...
 
PGDLLEXPORT Datum Set_ne (PG_FUNCTION_ARGS)
 Return true if the first set is different from the second one. More...
 
PGDLLEXPORT Datum Set_num_values (PG_FUNCTION_ARGS)
 Return the number of values of a set. More...
 
PGDLLEXPORT Datum Set_out (PG_FUNCTION_ARGS)
 Output function for timestamp sets. More...
 
PGDLLEXPORT Datum Set_recv (PG_FUNCTION_ARGS)
 Receive function for timestamp set. More...
 
PGDLLEXPORT Datum Set_send (PG_FUNCTION_ARGS)
 Send function for sets. More...
 
PGDLLEXPORT Datum Set_shift (PG_FUNCTION_ARGS)
 Shift the span by a value. More...
 
PGDLLEXPORT Datum Set_start_value (PG_FUNCTION_ARGS)
 Return the start value of a set. More...
 
PGDLLEXPORT Datum Set_to_span (PG_FUNCTION_ARGS)
 Return the span of a set. More...
 
PGDLLEXPORT Datum Set_unnest (PG_FUNCTION_ARGS)
 Generate a list of values from a set. More...
 
SetUnnestStateset_unnest_state_make (const Set *set, Datum *values, int count)
 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...
 
PGDLLEXPORT Datum Set_value_n (PG_FUNCTION_ARGS)
 Return the n-th value of a set. More...
 
PGDLLEXPORT Datum Set_values (PG_FUNCTION_ARGS)
 Return the values of a set. More...
 
PGDLLEXPORT Datum Tstzset_shift (PG_FUNCTION_ARGS)
 Shift a timestamp set by an interval. More...
 
PGDLLEXPORT Datum Tstzset_shift_tscale (PG_FUNCTION_ARGS)
 Shift and scale a timestamp set by the intervals. More...
 
PGDLLEXPORT Datum Tstzset_tscale (PG_FUNCTION_ARGS)
 Scale a timestamp set by an interval. More...
 
PGDLLEXPORT Datum Value_to_set (PG_FUNCTION_ARGS)
 Cast a value as a set. More...