MobilityDB 1.1
Functions
tpoint_gist.c File Reference
#include "pg_point/tpoint_gist.h"
#include <assert.h>
#include <float.h>
#include <postgres.h>
#include <access/gist.h>
#include <utils/timestamp.h>
#include <meos.h>
#include <meos_internal.h>
#include "general/set.h"
#include "general/type_util.h"
#include "pg_general/meos_catalog.h"
#include "pg_general/temporal.h"
#include "pg_general/time_gist.h"
#include "pg_general/tnumber_gist.h"
Include dependency graph for tpoint_gist.c:

Functions

void stbox_adjust (void *bbox1, void *bbox2)
 Increase the first box to include the second one. More...
 
static bool stbox_gist_consistent (const STBox *key, const STBox *query, StrategyNumber strategy)
 Internal-page consistent method for temporal points. More...
 
PGDLLEXPORT Datum Stbox_gist_consistent (PG_FUNCTION_ARGS)
 GiST consistent method for temporal points. More...
 
PGDLLEXPORT Datum Stbox_gist_distance (PG_FUNCTION_ARGS)
 GiST support function. More...
 
PGDLLEXPORT Datum Stbox_gist_penalty (PG_FUNCTION_ARGS)
 GiST penalty method for temporal points. More...
 
PGDLLEXPORT Datum Stbox_gist_picksplit (PG_FUNCTION_ARGS)
 GiST picksplit method for temporal points. More...
 
PGDLLEXPORT Datum Stbox_gist_same (PG_FUNCTION_ARGS)
 GiST same method for temporal points. More...
 
PGDLLEXPORT Datum Stbox_gist_union (PG_FUNCTION_ARGS)
 GiST union method for temporal points. More...
 
bool stbox_index_consistent_leaf (const STBox *key, const STBox *query, StrategyNumber strategy)
 R-tree GiST index for temporal points. More...
 
double stbox_penalty (void *bbox1, void *bbox2)
 Return the amount by which the union of the two boxes is larger than the original STBox's volume. More...
 
static double stbox_size (const STBox *box)
 Return the size of a spatiotemporal box for penalty-calculation purposes. More...
 
static void stbox_union_rt (const STBox *a, const STBox *b, STBox *new)
 Calculate the union of two tboxes. More...
 
PGDLLEXPORT Datum Tpoint_gist_compress (PG_FUNCTION_ARGS)
 GiST compress methods for temporal points. More...
 
static bool tpoint_gist_get_stbox (FunctionCallInfo fcinfo, STBox *result, meosType type)
 Transform the query argument into a box initializing the dimensions that must not be taken into account by the operators to infinity. More...
 
bool tpoint_index_recheck (StrategyNumber strategy)
 Determine whether a recheck is necessary depending on the strategy. More...