1 | #include "duckdb/storage/statistics/numeric_stats_union.hpp" |
---|---|
2 | |
3 | namespace duckdb { |
4 | |
5 | template <> |
6 | bool &NumericValueUnion::GetReferenceUnsafe() { |
7 | return value_.boolean; |
8 | } |
9 | |
10 | template <> |
11 | int8_t &NumericValueUnion::GetReferenceUnsafe() { |
12 | return value_.tinyint; |
13 | } |
14 | |
15 | template <> |
16 | int16_t &NumericValueUnion::GetReferenceUnsafe() { |
17 | return value_.smallint; |
18 | } |
19 | |
20 | template <> |
21 | int32_t &NumericValueUnion::GetReferenceUnsafe() { |
22 | return value_.integer; |
23 | } |
24 | |
25 | template <> |
26 | int64_t &NumericValueUnion::GetReferenceUnsafe() { |
27 | return value_.bigint; |
28 | } |
29 | |
30 | template <> |
31 | hugeint_t &NumericValueUnion::GetReferenceUnsafe() { |
32 | return value_.hugeint; |
33 | } |
34 | |
35 | template <> |
36 | uint8_t &NumericValueUnion::GetReferenceUnsafe() { |
37 | return value_.utinyint; |
38 | } |
39 | |
40 | template <> |
41 | uint16_t &NumericValueUnion::GetReferenceUnsafe() { |
42 | return value_.usmallint; |
43 | } |
44 | |
45 | template <> |
46 | uint32_t &NumericValueUnion::GetReferenceUnsafe() { |
47 | return value_.uinteger; |
48 | } |
49 | |
50 | template <> |
51 | uint64_t &NumericValueUnion::GetReferenceUnsafe() { |
52 | return value_.ubigint; |
53 | } |
54 | |
55 | template <> |
56 | float &NumericValueUnion::GetReferenceUnsafe() { |
57 | return value_.float_; |
58 | } |
59 | |
60 | template <> |
61 | double &NumericValueUnion::GetReferenceUnsafe() { |
62 | return value_.double_; |
63 | } |
64 | |
65 | } // namespace duckdb |
66 |