MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
span_tile_meos.c File Reference

Bin and tile functions for span types. More...

#include "temporal/temporal_tile.h"
#include <assert.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <postgres.h>
#include <utils/date.h>
#include <utils/datetime.h>
#include <meos.h>
#include <meos_internal.h>
#include "temporal/span.h"
#include "temporal/spanset.h"
#include "temporal/temporal_restrict.h"
#include "temporal/tsequence.h"
#include "temporal/type_util.h"

Functions

Spanbigintspan_bins (const Span *s, int64 size, int64 origin, int *count)
 Return the bins of a big integer span. More...
 
Spanbigintspanset_bins (const SpanSet *ss, int64 vsize, int64 vorigin, int *count)
 Return the bins of a big integer span set. More...
 
Spandatespan_bins (const Span *s, const Interval *duration, DateADT origin, int *count)
 Return the bins of a date span. More...
 
Spandatespanset_bins (const SpanSet *ss, const Interval *duration, DateADT torigin, int *count)
 Return the bins of a date span set. More...
 
Spanfloatspan_bins (const Span *s, double size, double origin, int *count)
 Return the bins of a float span. More...
 
Spanfloatspanset_bins (const SpanSet *ss, double vsize, double vorigin, int *count)
 Return the bins of a float span set. More...
 
Spanintspan_bins (const Span *s, int size, int origin, int *count)
 Return the bins of an integer span. More...
 
Spanintspanset_bins (const SpanSet *ss, int vsize, int vorigin, int *count)
 Return the bins of an integer span set. More...
 
Spantfloat_value_bins (const Temporal *temp, double vsize, double vorigin, int *count)
 Return the bins of a float span. More...
 
Spantint_value_bins (const Temporal *temp, int vsize, int vorigin, int *count)
 Return the bins of an integer span. More...
 
Spantstzspan_bins (const Span *s, const Interval *duration, TimestampTz origin, int *count)
 Return the bins of a timestamptz span. More...
 
Spantstzspanset_bins (const SpanSet *ss, const Interval *duration, TimestampTz torigin, int *count)
 Return the bins of a timestamptz span set. More...
 

Detailed Description

Bin and tile functions for span types.

Note
The time bin functions are inspired from TimescaleDB https://docs.timescale.com/latest/api#time_bucket