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

Go to the source code of this file.

Data Structures

struct  SpanBinState
 Struct for storing the state that persists across multiple calls generating the bin list. More...
 
struct  TboxGridState
 Struct for storing the state for tiling operations. More...
 

Macros

#define MAXDIMS   4
 

Typedefs

typedef struct SpanBinState SpanBinState
 Struct for storing the state that persists across multiple calls generating the bin list. More...
 
typedef struct TboxGridState TboxGridState
 Struct for storing the state for tiling operations. More...
 

Functions

Datum datum_bin (Datum value, Datum size, Datum offset, meosType basetype)
 Return the initial value of the bin that contains a number value. More...
 
int64 interval_units (const Interval *interval)
 Return the interval in the same representation as Postgres timestamps. More...
 
Spanspan_bins (const Span *s, Datum size, Datum origin, int *count)
 Return the bins from a span. More...
 
int span_num_bins (const Span *s, Datum size, Datum origin, Datum *start_bin, Datum *end_bin)
 Get the time bins of a temporal value. More...
 
Spanspanset_bins (const SpanSet *ss, Datum size, Datum origin, int *count)
 Return the bins from a span set. More...
 
bool tbox_tile_state_get (TboxGridState *state, TBox *box)
 Get the current tile of the multidimensional grid. More...
 
TboxGridStatetbox_tile_state_make (const Temporal *temp, const TBox *box, Datum vsize, const Interval *duration, Datum xorigin, TimestampTz torigin)
 Create the initial state for tiling operations. More...
 
void tbox_tile_state_next (TboxGridState *state)
 Increment the current state to the next tile of the multidimensional grid. More...
 
void tbox_tile_state_set (Datum value, TimestampTz t, Datum vsize, int64 tunits, meosType basetype, meosType spantype, TBox *box)
 Generate a tile from the a multidimensional grid. More...
 
SpanBinStatetemporal_time_bin_init (const Temporal *temp, const Interval *duration, TimestampTz torigin, int *nbins)
 Set the state with a temporal value and a time bin for splitting or obtaining a set of spans. More...
 
TimestampTz timestamptz_bin_start (TimestampTz timestamp, int64 tunits, TimestampTz torigin)
 Return the initial timestamp of the bin that contains a timestamptz (internal function) More...
 
TboxGridStatetnumber_value_time_tile_init (const Temporal *temp, Datum vsize, const Interval *duration, Datum vorigin, TimestampTz torigin, int *ntiles)
 Set the state with a temporal number and a value and possibly time grid for splitting or obtaining a set of temporal boxes. More...