MobilityDB 1.1
Data Structures | Macros | Enumerations | Functions
temporal.h File Reference
#include <postgres.h>
#include <lib/stringinfo.h>
#include "general/meos_catalog.h"
#include "general/span.h"
#include "general/set.h"
#include "general/tbox.h"
#include "point/stbox.h"
#include <c.h>
#include <utils/palloc.h>
#include <utils/elog.h>
#include <utils/array.h>
#include <utils/lsyscache.h>
#include <catalog/pg_type_d.h>
#include "pg_point/postgis.h"
Include dependency graph for temporal.h:
This graph shows which files directly or indirectly include this file:

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  tempsubtype_struct
 Structure to represent the temporal subtype array. 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 RTAfterStrategyNumber   30 /* for #>> */
 
#define RTBackStrategyNumber   34 /* for />> */
 
#define RTBeforeStrategyNumber   29 /* for <<# */
 
#define RTFrontStrategyNumber   33 /* for <</ */
 
#define RTOverAfterStrategyNumber   31 /* for #&> */
 
#define RTOverBackStrategyNumber   35 /* for /&> */
 
#define RTOverBeforeStrategyNumber   28 /* for &<# */
 
#define RTOverFrontStrategyNumber   32 /* for &</ */
 
#define TEMPSUBTYPE_MAX_LEN   13
 
#define TEMPSUBTYPE_STRUCT_ARRAY_LEN    (sizeof tempsubtype_struct_array/sizeof(struct tempsubtype_struct))
 
#define TYPMOD_GET_SUBTYPE(typmod)   ((int16) ((typmod == -1) ? (0) : (typmod & 0x0000000F)))
 

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...
 
void ensure_non_empty_array (ArrayType *array)
 Ensure that the array is not empty. More...
 
FunctionCallInfo fetch_fcinfo ()
 Fetch from the cache the fcinfo of the external function. More...
 
Datum float8_numeric (PG_FUNCTION_ARGS)
 
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...
 
Temporaltemporal_recv (StringInfo buf)
 Return a temporal value from its binary representation read from a buffer. More...
 
void temporal_write (const Temporal *temp, StringInfo buf)
 Write the binary representation of a temporal value into a buffer. More...
 
bool tempsubtype_from_string (const char *str, int16 *subtype)
 Return the enum value corresponding to the string representation of the concrete subtype of a temporal type. More...
 
const char * tempsubtype_name (int16 subtype)
 Return the string representation of the subtype of the temporal type corresponding to the enum value. More...
 
uint32_t time_max_header_size (void)
 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...