MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Enumerations | Functions
temporal.h File Reference
#include <postgres.h>
#include <fmgr.h>
#include <catalog/pg_type_d.h>
#include <lib/stringinfo.h>
#include <utils/array.h>
#include <utils/lsyscache.h>
#include <meos.h>
#include "temporal/meos_catalog.h"

Go to the source code of this file.

Data Structures

struct  CommonEntry
 Structure to represent information about an entry that can be placed to either group without affecting overlap over selected axis ("common entry"). More...
 
struct  SplitInterval
 Structure to represent a projection of bounding box to an axis. More...
 
struct  TempUnnestState
 Structure to represent the state when unnesting a temporal type. More...
 

Macros

#define FLOAT8_EQ(a, b)   (float8_cmp_internal(a, b) == 0)
 
#define FLOAT8_GE(a, b)   (float8_cmp_internal(a, b) >= 0)
 
#define FLOAT8_GT(a, b)   (float8_cmp_internal(a, b) > 0)
 
#define FLOAT8_LE(a, b)   (float8_cmp_internal(a, b) <= 0)
 
#define FLOAT8_LT(a, b)   (float8_cmp_internal(a, b) < 0)
 
#define FLOAT8_MAX(a, b)   (FLOAT8_GT(a, b) ? (a) : (b))
 
#define FLOAT8_MIN(a, b)   (FLOAT8_LT(a, b) ? (a) : (b))
 
#define GinContainedStrategy   3 /* for <@ ?@ */
 
#define GinContainsStrategy   2 /* for @> @? */
 
#define GinEqualStrategy   4 /* for = @=*/
 
#define GinOverlapStrategy   1 /* for && @@ */
 
#define LIMIT_RATIO   0.3
 
#define PG_GETARG_ANYDATUM(X)
 
#define TIME_MAX_HEADER_SIZE   DOUBLE_PAD(Max(sizeof(Set), sizeof(SpanSet)))
 Return the size in bytes to read from toast to get the basic information from a variable-length time type: Time struct (i.e., Set or SpanSet) and bounding box size. More...
 
#define TYPMOD_GET_TEMPSUBTYPE(typmod)   ((typmod & 0x60000000)>>29)
 
#define TYPMOD_MAXLEN   64
 
#define TYPMOD_SET_TEMPSUBTYPE(typmod, tempsubtype)   ((typmod) = (((typmod) & 0x9FFFFFFF) | ((tempsubtype & 0x00000003)<<29)))
 

Enumerations

enum  SPGistIndexType { SPGIST_QUADTREE , SPGIST_KDTREE }
 Enumeration for the types of SP-GiST indexes. More...
 

Functions

void _PG_init (void)
 Initialize the MobilityDB extension. More...
 
textDatum_as_hexwkb (FunctionCallInfo fcinfo, Datum value, meosType type)
 Output a value in the Well-Known Binary (WKB) or Extended Well-Known Binary (EWKB) representation in ASCII hex-encoded. More...
 
byteaDatum_as_wkb (FunctionCallInfo fcinfo, Datum value, meosType type, bool extended)
 Output a value in the (Extended) Well-Known Binary (WKB or EWKB) representation. More...
 
Datum EAcomp_temporal_temporal (FunctionCallInfo fcinfo, int(*func)(const Temporal *, const Temporal *))
 Generic function for the ever/always comparison operators. More...
 
bool ensure_not_empty_array (ArrayType *array)
 Ensure that the array is not empty. More...
 
FunctionCallInfo fetch_fcinfo (void)
 Fetch from the cache the fcinfo of the external function. More...
 
Datum float8_numeric (PG_FUNCTION_ARGS)
 
interpType input_interp_string (FunctionCallInfo fcinfo, int argno)
 Return a temporal instant from a value and a timestamptz @sqlfn tint(), tfloat(), ... More...
 
Datum numeric_float8 (PG_FUNCTION_ARGS)
 Basic functions for temporal types of any subtype. More...
 
Datum numeric_round (PG_FUNCTION_ARGS)
 
void store_fcinfo (FunctionCallInfo fcinfo)
 Store in the cache the fcinfo of the external function. More...
 
Datum Tcomp_temporal_base (FunctionCallInfo fcinfo, Datum(*func)(Datum, Datum, meosType))
 Return the temporal comparison of a temporal value and a base value. More...
 
Datum Tcomp_temporal_temporal (FunctionCallInfo fcinfo, Datum(*func)(Datum, Datum, meosType))
 Return the temporal comparison of two temporal values. More...
 
Temporaltemporal_recv (StringInfo buf)
 Return a temporal value from its binary representation read from a buffer. More...
 
Temporaltemporal_slice (Datum tempdatum)
 Peek into a temporal datum to find the bounding box. More...
 
void temporal_write (const Temporal *temp, StringInfo buf)
 Write the binary representation of a temporal value into a buffer. More...
 
uint32_t time_max_header_size (void)