31 #ifndef __TEMPORAL_TILE_H__ 32 #define __TEMPORAL_TILE_H__ 137 int64 tunits, TimestampTz torigin);
Struct for storing the state that persists across multiple calls to output the temporal fragments...
Definition: temporal_tile.h:94
Datum tnumber_value_time_split(PG_FUNCTION_ARGS)
Split a temporal value into fragments with respect to period tiles.
Definition: temporal_tile.c:1888
bool done
Definition: temporal_tile.h:79
TimestampTz t
Definition: temporal_tile.h:70
struct TboxGridState TboxGridState
Struct for storing the state that persists across multiple calls generating the multidimensional grid...
Structure to represent the common structure of temporal values of any temporal subtype.
Definition: temporal.h:241
Datum origin
Definition: temporal_tile.h:52
bool done
Definition: temporal_tile.h:64
TimestampTz t
Definition: temporal_tile.h:85
Datum value
Definition: temporal_tile.h:55
int i
Definition: temporal_tile.h:65
Oid basetypid
Definition: temporal_tile.h:49
bool done
Definition: temporal_tile.h:47
Temporal ** fragments
Definition: temporal_tile.h:99
Datum timestamptz_bucket(PG_FUNCTION_ARGS)
Return the initial timestamp of the bucket in which a timestamp falls.
Definition: temporal_tile.c:240
Datum tbox_multidim_tile(PG_FUNCTION_ARGS)
Generate a tile in a multidimensional grid for temporal numbers.
Definition: temporal_tile.c:1196
int64 tunits
Definition: temporal_tile.h:111
struct PeriodBucketState PeriodBucketState
Struct for storing the state that persists across multiple calls generating the bucket list...
bool done
Definition: temporal_tile.h:96
Datum * buckets
Definition: temporal_tile.h:98
Struct for storing the state that persists across multiple calls generating the bucket list...
Definition: temporal_tile.h:62
TimestampTz mint
Definition: temporal_tile.h:68
int64 get_interval_units(Interval *interval)
Returns the interval in the same representation as Postgres timestamps.
Definition: temporal_tile.c:230
Struct for storing the state that persists across multiple calls to output the temporal fragments...
Definition: temporal_tile.h:122
Basic functions for temporal types of any subtype.
int64 tunits
Definition: temporal_tile.h:66
Datum * value_buckets
Definition: temporal_tile.h:125
Struct for storing the state that persists across multiple calls generating the bucket list...
Definition: temporal_tile.h:45
Datum size
Definition: temporal_tile.h:97
Temporal ** fragments
Definition: temporal_tile.h:113
Struct for storing the state that persists across multiple calls to output the temporal fragments...
Definition: temporal_tile.h:108
Datum maxvalue
Definition: temporal_tile.h:54
int i
Definition: temporal_tile.h:80
struct TimeSplitState TimeSplitState
Struct for storing the state that persists across multiple calls to output the temporal fragments...
int64 torigin
Definition: temporal_tile.h:67
Datum range_bucket(PG_FUNCTION_ARGS)
Generate an integer or float range bucket in a bucket list for ranges.
Definition: temporal_tile.c:404
Structure to represent temporal boxes.
Definition: tbox.h:53
Datum temporal_time_split(PG_FUNCTION_ARGS)
Split a temporal value into fragments with respect to period buckets.
Definition: temporal_tile.c:951
bool done
Definition: temporal_tile.h:124
struct ValueTimeSplitState ValueTimeSplitState
Struct for storing the state that persists across multiple calls to output the temporal fragments...
Temporal * temp
Definition: temporal_tile.h:50
Datum range_bucket_list(PG_FUNCTION_ARGS)
Generate a range bucket list.
Definition: temporal_tile.c:331
int64 tunits
Definition: temporal_tile.h:82
struct RangeBucketState RangeBucketState
Struct for storing the state that persists across multiple calls generating the bucket list...
double float_bucket_internal(double value, double size, double origin)
Return the initial value of the bucket in which a float value falls.
Definition: temporal_tile.c:114
TimestampTz maxt
Definition: temporal_tile.h:69
int i
Definition: temporal_tile.h:48
int i
Definition: temporal_tile.h:114
TimestampTz timestamptz_bucket_internal(TimestampTz timestamp, int64 tunits, TimestampTz torigin)
Return the initial timestamp of the bucket in which a timestamp falls.
Definition: temporal_tile.c:188
int i
Definition: temporal_tile.h:128
Datum number_bucket(PG_FUNCTION_ARGS)
Return the initial value of the bucket in which an integer value falls.
Definition: temporal_tile.c:165
Datum tnumber_value_split(PG_FUNCTION_ARGS)
Split a temporal value into fragments with respect to period buckets.
Definition: temporal_tile.c:1754
double value
Definition: temporal_tile.h:84
Datum tbox_multidim_grid(PG_FUNCTION_ARGS)
Generate a multidimensional grid for temporal numbers.
Definition: temporal_tile.c:1124
TimestampTz * buckets
Definition: temporal_tile.h:112
bool done
Definition: temporal_tile.h:110
Datum period_bucket(PG_FUNCTION_ARGS)
Generate a bucket in a bucket list for periods.
Definition: temporal_tile.c:552
Datum minvalue
Definition: temporal_tile.h:53
int count
Definition: temporal_tile.h:101
struct ValueSplitState ValueSplitState
Struct for storing the state that persists across multiple calls to output the temporal fragments...
Datum size
Definition: temporal_tile.h:51
TimestampTz * time_buckets
Definition: temporal_tile.h:126
Temporal ** fragments
Definition: temporal_tile.h:127
int count
Definition: temporal_tile.h:115
double xsize
Definition: temporal_tile.h:81
Datum period_bucket_list(PG_FUNCTION_ARGS)
Generate a period bucket list.
Definition: temporal_tile.c:486
int i
Definition: temporal_tile.h:100
int count
Definition: temporal_tile.h:129
TBOX box
Definition: temporal_tile.h:83
Struct for storing the state that persists across multiple calls generating the multidimensional grid...
Definition: temporal_tile.h:77