MobilityDB 1.1
Data Structures | Macros | Typedefs | Functions
temporal_tile.h File Reference
#include "temporal.h"
Include dependency graph for temporal_tile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  SpanBucketState
 Struct for storing the state that persists across multiple calls generating the bucket list. More...
 
struct  TboxGridState
 Struct for storing the state that persists across multiple calls generating the multidimensional grid. More...
 
struct  ValueTimeSplitState
 Struct for storing the state that persists across multiple calls to output the temporal fragments. More...
 

Macros

#define MAXDIMS   4
 

Typedefs

typedef struct SpanBucketState SpanBucketState
 Struct for storing the state that persists across multiple calls generating the bucket list. More...
 
typedef struct TboxGridState TboxGridState
 Struct for storing the state that persists across multiple calls generating the multidimensional grid. More...
 
typedef struct ValueTimeSplitState ValueTimeSplitState
 Struct for storing the state that persists across multiple calls to output the temporal fragments. More...
 

Functions

Datum datum_bucket (Datum value, Datum size, Datum offset, meosType basetype)
 Return the initial value of the bucket in which a number value falls. More...
 
int64 interval_units (const Interval *interval)
 Return the interval in the same representation as Postgres timestamps. More...
 
Spanspan_bucket_get (Datum lower, Datum size, meosType basetype)
 Generate an integer or float span bucket from a bucket list. More...
 
void span_bucket_set (Datum lower, Datum size, meosType basetype, Span *span)
 Bucket and tile functions for temporal types. More...
 
SpanBucketStatespan_bucket_state_make (const Span *s, Datum size, Datum origin)
 Create the initial state that persists across multiple calls of the function. More...
 
void span_bucket_state_next (SpanBucketState *state)
 Increment the current state to the next bucket of the bucket list. More...
 
void tbox_tile_get (double value, TimestampTz t, double xsize, int64 tunits, TBox *box)
 Generate a tile from the a multidimensional grid. More...
 
TboxGridStatetbox_tile_state_make (const TBox *box, double xsize, const Interval *duration, double xorigin, TimestampTz torigin)
 Create the initial state that persists across multiple calls of the function. More...
 
void tbox_tile_state_next (TboxGridState *state)
 Increment the current state to the next tile of the multidimensional grid. More...
 
Temporal ** temporal_time_split1 (const Temporal *temp, TimestampTz start, TimestampTz end, int64 tunits, TimestampTz torigin, int count, TimestampTz **buckets, int *newcount)
 Split a temporal value into fragments with respect to period buckets. More...
 
Temporal ** temporal_value_time_split1 (Temporal *temp, Datum size, Interval *duration, Datum vorigin, TimestampTz torigin, bool valuesplit, bool timesplit, Datum **value_buckets, TimestampTz **time_buckets, int *newcount)
 Split a temporal value with respect to a base value and possibly a temporal grid. More...
 
TimestampTz timestamptz_bucket1 (TimestampTz timestamp, int64 tunits, TimestampTz torigin)
 Return the initial timestamp of the bucket in which a timestamp falls. More...