|
MobilityDB 1.1
|
#include "general/span.h"#include <assert.h>#include <postgres.h>#include <catalog/pg_type_d.h>#include <libpq/pqformat.h>#include <utils/rangetypes.h>#include <utils/timestamp.h>#include <meos.h>#include <meos_internal.h>#include "general/type_out.h"#include "general/type_util.h"#include "pg_general/meos_catalog.h"#include "pg_general/span.h"#include "pg_general/tnumber_mathfuncs.h"#include "pg_general/type_util.h"
Functions | |
| Span * | floatspan_round (const Span *span, Datum size) |
| Set the precision of the float span to the number of decimal places. More... | |
| PGDLLEXPORT Datum | Floatspan_round (PG_FUNCTION_ARGS) |
| Set the precision of the float span to the number of decimal places. More... | |
| PGDLLEXPORT Datum | Period_duration (PG_FUNCTION_ARGS) |
| Return the duration of the period. More... | |
| PGDLLEXPORT Datum | Period_shift (PG_FUNCTION_ARGS) |
| Shift the period value by the interval. More... | |
| PGDLLEXPORT Datum | Period_shift_tscale (PG_FUNCTION_ARGS) |
| Shift the period value by the interval. More... | |
| PGDLLEXPORT Datum | Period_tscale (PG_FUNCTION_ARGS) |
| Shift the period value by the interval. More... | |
| PGDLLEXPORT Datum | Range_to_span (PG_FUNCTION_ARGS) |
| Convert the PostgreSQL range value as a span value. More... | |
| Span * | range_to_span (RangeType *range, TypeCacheEntry *typcache) |
| Convert the PostgreSQL range value as a span value. More... | |
| PGDLLEXPORT Datum | Span_as_text (PG_FUNCTION_ARGS) |
| Output function for periods. More... | |
| PGDLLEXPORT Datum | Span_cmp (PG_FUNCTION_ARGS) |
| Return -1, 0, or 1 depending on whether the first span is less than, equal, or greater than the second one. More... | |
| PGDLLEXPORT Datum | Span_constructor (PG_FUNCTION_ARGS) |
| Construct a span from the four arguments. More... | |
| PGDLLEXPORT Datum | Span_eq (PG_FUNCTION_ARGS) |
| Return true if the first span is equal to the second one. More... | |
| PGDLLEXPORT Datum | Span_ge (PG_FUNCTION_ARGS) |
| Return true if the first span is greater than or equal to the second one. More... | |
| PGDLLEXPORT Datum | Span_gt (PG_FUNCTION_ARGS) |
| Return true if the first span is greater than the second one. More... | |
| PGDLLEXPORT Datum | Span_hash (PG_FUNCTION_ARGS) |
| Return the 32-bit hash value of a span. More... | |
| PGDLLEXPORT Datum | Span_hash_extended (PG_FUNCTION_ARGS) |
| Return the 64-bit hash value of a span obtained with a seed. More... | |
| PGDLLEXPORT Datum | Span_in (PG_FUNCTION_ARGS) |
| Input function for periods. More... | |
| PGDLLEXPORT Datum | Span_le (PG_FUNCTION_ARGS) |
| Return true if the first span is less than or equal to the second one. More... | |
| PGDLLEXPORT Datum | Span_lower (PG_FUNCTION_ARGS) |
| Return the lower bound value. More... | |
| PGDLLEXPORT Datum | Span_lower_inc (PG_FUNCTION_ARGS) |
| Return true if the lower bound value is inclusive. More... | |
| PGDLLEXPORT Datum | Span_lt (PG_FUNCTION_ARGS) |
| Return true if the first span is less than the second one. More... | |
| PGDLLEXPORT Datum | Span_ne (PG_FUNCTION_ARGS) |
| Return true if the first span is different from the second one. More... | |
| PGDLLEXPORT Datum | Span_out (PG_FUNCTION_ARGS) |
| Output function for periods. More... | |
| PGDLLEXPORT Datum | Span_recv (PG_FUNCTION_ARGS) |
| Generic receive function for spans. More... | |
| Span * | span_recv (StringInfo buf) |
| Return a span from its binary representation read from a buffer. More... | |
| PGDLLEXPORT Datum | Span_send (PG_FUNCTION_ARGS) |
| PGDLLEXPORT Datum | Span_shift (PG_FUNCTION_ARGS) |
| Shift the span by a value. More... | |
| PGDLLEXPORT Datum | Span_to_range (PG_FUNCTION_ARGS) |
| Convert a span as a range value. More... | |
| PGDLLEXPORT Datum | Span_upper (PG_FUNCTION_ARGS) |
| Return the upper bound value. More... | |
| PGDLLEXPORT Datum | Span_upper_inc (PG_FUNCTION_ARGS) |
| Return true if the upper bound value is inclusive. More... | |
| PGDLLEXPORT Datum | Span_width (PG_FUNCTION_ARGS) |
| Return the width of a numeric span. More... | |
| void | span_write (const Span *s, StringInfo buf) |
| Write the binary representation of a span into a buffer. More... | |
| PGDLLEXPORT Datum | Value_to_span (PG_FUNCTION_ARGS) |
| Cast a value as a span. More... | |