#include <userver/storages/clickhouse/io/floating_point_types.hpp>
Class that can be escaped for clickhouse queries instead of [double] and [float]. [double] and [float] are escaped as FloatingWithPrecision<double, 12> and FloatingWithPrecision<float, 6> respectively. These constants were derived from the accuracity the numbers from ranges [0.0-100000.0] (doubles) and [0.0-100.0] (floats) can be represented by these type. Clickhouse also supports inf, -inf and nan, see clickhouse docs.
Definition at line 20 of file floating_point_types.hpp.
Public Member Functions | |
| template<typename U> | |
| FloatingWithPrecision (U value) | |
| template<typename U, std::uint32_t AnotherPrecision> | |
| FloatingWithPrecision (const FloatingWithPrecision< U, AnotherPrecision > &other) | |
| template<typename U, std::uint32_t AnotherPrecision> | |
| FloatingWithPrecision (FloatingWithPrecision< U, AnotherPrecision > &&other) | |
| template<typename U, std::uint32_t AnotherPrecision> | |
| FloatingWithPrecision & | operator= (const FloatingWithPrecision< U, AnotherPrecision > &other) |
| template<typename U, std::uint32_t AnotherPrecision> | |
| FloatingWithPrecision & | operator= (FloatingWithPrecision< U, AnotherPrecision > &&other) |
| std::string | ToString () |
|
inline |
Definition at line 23 of file floating_point_types.hpp.
|
inline |
Definition at line 28 of file floating_point_types.hpp.
|
inline |
Definition at line 33 of file floating_point_types.hpp.
|
inline |
Definition at line 38 of file floating_point_types.hpp.
|
inline |
Definition at line 44 of file floating_point_types.hpp.
|
inline |
Definition at line 52 of file floating_point_types.hpp.
|
friend |
Definition at line 58 of file floating_point_types.hpp.