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