be/src/exprs/aggregate/aggregate_function_linear_histogram.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <rapidjson/document.h> |
21 | | #include <rapidjson/prettywriter.h> |
22 | | #include <rapidjson/stringbuffer.h> |
23 | | |
24 | | #include <unordered_map> |
25 | | #include <vector> |
26 | | |
27 | | #include "core/data_type/data_type_decimal.h" |
28 | | #include "core/types.h" |
29 | | #include "exprs/aggregate/aggregate_function.h" |
30 | | #include "exprs/aggregate/aggregate_function_simple_factory.h" |
31 | | |
32 | | // TODO: optimize count=0 |
33 | | // TODO: support datetime |
34 | | // TODO: support foreach |
35 | | |
36 | | namespace doris { |
37 | | #include "common/compile_check_begin.h" |
38 | | |
39 | | template <PrimitiveType T> |
40 | | struct AggregateFunctionLinearHistogramData { |
41 | | // bucket key limits |
42 | | const static int32_t MIN_BUCKET_KEY = std::numeric_limits<int32_t>::min(); |
43 | | const static int32_t MAX_BUCKET_KEY = std::numeric_limits<int32_t>::max(); |
44 | | |
45 | | private: |
46 | | // influxdb use double |
47 | | double interval = 0; |
48 | | double offset; |
49 | | double lower; // not used yet |
50 | | double upper; // not used yet |
51 | | std::unordered_map<int32_t, size_t, |
52 | 2.45k | decltype([](int32_t key) { return static_cast<size_t>(key); })>_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EEUliE_clEi Line | Count | Source | 52 | 442 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EEUliE_clEi Line | Count | Source | 52 | 442 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EEUliE_clEi Line | Count | Source | 52 | 442 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EEUliE_clEi Line | Count | Source | 52 | 442 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EEUliE_clEi Line | Count | Source | 52 | 442 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EEUliE_clEi Line | Count | Source | 52 | 40 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EEUliE_clEi Line | Count | Source | 52 | 40 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EEUliE_clEi Line | Count | Source | 52 | 40 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EEUliE_clEi Line | Count | Source | 52 | 40 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EEUliE_clEi Line | Count | Source | 52 | 40 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EEUliE_clEi Line | Count | Source | 52 | 40 | decltype([](int32_t key) { return static_cast<size_t>(key); })> |
|
53 | | buckets; |
54 | | |
55 | | public: |
56 | | // reset |
57 | 0 | void reset() { |
58 | 0 | offset = 0; |
59 | 0 | interval = 0; |
60 | 0 | buckets.clear(); |
61 | 0 | } Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE5resetEv Unexecuted instantiation: _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE5resetEv |
62 | | |
63 | 2.12k | void set_parameters(double input_interval, double input_offset) { |
64 | 2.12k | interval = input_interval; |
65 | 2.12k | offset = input_offset; |
66 | 2.12k | } _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE14set_parametersEdd Line | Count | Source | 63 | 400 | void set_parameters(double input_interval, double input_offset) { | 64 | 400 | interval = input_interval; | 65 | 400 | offset = input_offset; | 66 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE14set_parametersEdd Line | Count | Source | 63 | 400 | void set_parameters(double input_interval, double input_offset) { | 64 | 400 | interval = input_interval; | 65 | 400 | offset = input_offset; | 66 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE14set_parametersEdd Line | Count | Source | 63 | 400 | void set_parameters(double input_interval, double input_offset) { | 64 | 400 | interval = input_interval; | 65 | 400 | offset = input_offset; | 66 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE14set_parametersEdd Line | Count | Source | 63 | 400 | void set_parameters(double input_interval, double input_offset) { | 64 | 400 | interval = input_interval; | 65 | 400 | offset = input_offset; | 66 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE14set_parametersEdd Line | Count | Source | 63 | 400 | void set_parameters(double input_interval, double input_offset) { | 64 | 400 | interval = input_interval; | 65 | 400 | offset = input_offset; | 66 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE14set_parametersEdd Line | Count | Source | 63 | 20 | void set_parameters(double input_interval, double input_offset) { | 64 | 20 | interval = input_interval; | 65 | 20 | offset = input_offset; | 66 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE14set_parametersEdd Line | Count | Source | 63 | 20 | void set_parameters(double input_interval, double input_offset) { | 64 | 20 | interval = input_interval; | 65 | 20 | offset = input_offset; | 66 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE14set_parametersEdd Line | Count | Source | 63 | 20 | void set_parameters(double input_interval, double input_offset) { | 64 | 20 | interval = input_interval; | 65 | 20 | offset = input_offset; | 66 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE14set_parametersEdd Line | Count | Source | 63 | 20 | void set_parameters(double input_interval, double input_offset) { | 64 | 20 | interval = input_interval; | 65 | 20 | offset = input_offset; | 66 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE14set_parametersEdd Line | Count | Source | 63 | 20 | void set_parameters(double input_interval, double input_offset) { | 64 | 20 | interval = input_interval; | 65 | 20 | offset = input_offset; | 66 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE14set_parametersEdd Line | Count | Source | 63 | 20 | void set_parameters(double input_interval, double input_offset) { | 64 | 20 | interval = input_interval; | 65 | 20 | offset = input_offset; | 66 | 20 | } |
|
67 | | |
68 | | // add |
69 | 2.12k | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { |
70 | 2.12k | double val = 0; |
71 | 2.12k | if constexpr (is_decimal(T)) { |
72 | 80 | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; |
73 | 80 | val = static_cast<double>(value.value) / |
74 | 80 | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); |
75 | 2.04k | } else { |
76 | 2.04k | val = static_cast<double>(value); |
77 | 2.04k | } |
78 | 2.12k | double key = std::floor((val - offset) / interval); |
79 | 2.12k | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { |
80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", |
81 | 0 | val); |
82 | 0 | } |
83 | 2.12k | buckets[static_cast<int32_t>(key)]++; |
84 | 2.12k | } _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE3addERKaj Line | Count | Source | 69 | 400 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 400 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 400 | } else { | 76 | 400 | val = static_cast<double>(value); | 77 | 400 | } | 78 | 400 | double key = std::floor((val - offset) / interval); | 79 | 400 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 400 | buckets[static_cast<int32_t>(key)]++; | 84 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE3addERKsj Line | Count | Source | 69 | 400 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 400 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 400 | } else { | 76 | 400 | val = static_cast<double>(value); | 77 | 400 | } | 78 | 400 | double key = std::floor((val - offset) / interval); | 79 | 400 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 400 | buckets[static_cast<int32_t>(key)]++; | 84 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE3addERKij Line | Count | Source | 69 | 400 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 400 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 400 | } else { | 76 | 400 | val = static_cast<double>(value); | 77 | 400 | } | 78 | 400 | double key = std::floor((val - offset) / interval); | 79 | 400 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 400 | buckets[static_cast<int32_t>(key)]++; | 84 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE3addERKlj Line | Count | Source | 69 | 400 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 400 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 400 | } else { | 76 | 400 | val = static_cast<double>(value); | 77 | 400 | } | 78 | 400 | double key = std::floor((val - offset) / interval); | 79 | 400 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 400 | buckets[static_cast<int32_t>(key)]++; | 84 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE3addERKnj Line | Count | Source | 69 | 400 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 400 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 400 | } else { | 76 | 400 | val = static_cast<double>(value); | 77 | 400 | } | 78 | 400 | double key = std::floor((val - offset) / interval); | 79 | 400 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 400 | buckets[static_cast<int32_t>(key)]++; | 84 | 400 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE3addERKfj Line | Count | Source | 69 | 20 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 20 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 20 | } else { | 76 | 20 | val = static_cast<double>(value); | 77 | 20 | } | 78 | 20 | double key = std::floor((val - offset) / interval); | 79 | 20 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 20 | buckets[static_cast<int32_t>(key)]++; | 84 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE3addERKdj Line | Count | Source | 69 | 20 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 20 | double val = 0; | 71 | | if constexpr (is_decimal(T)) { | 72 | | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | | val = static_cast<double>(value.value) / | 74 | | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | 20 | } else { | 76 | 20 | val = static_cast<double>(value); | 77 | 20 | } | 78 | 20 | double key = std::floor((val - offset) / interval); | 79 | 20 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 20 | buckets[static_cast<int32_t>(key)]++; | 84 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE3addERKNS_7DecimalIiEEj Line | Count | Source | 69 | 20 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 20 | double val = 0; | 71 | 20 | if constexpr (is_decimal(T)) { | 72 | 20 | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | 20 | val = static_cast<double>(value.value) / | 74 | 20 | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | | } else { | 76 | | val = static_cast<double>(value); | 77 | | } | 78 | 20 | double key = std::floor((val - offset) / interval); | 79 | 20 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 20 | buckets[static_cast<int32_t>(key)]++; | 84 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE3addERKNS_7DecimalIlEEj Line | Count | Source | 69 | 20 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 20 | double val = 0; | 71 | 20 | if constexpr (is_decimal(T)) { | 72 | 20 | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | 20 | val = static_cast<double>(value.value) / | 74 | 20 | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | | } else { | 76 | | val = static_cast<double>(value); | 77 | | } | 78 | 20 | double key = std::floor((val - offset) / interval); | 79 | 20 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 20 | buckets[static_cast<int32_t>(key)]++; | 84 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE3addERKNS_12Decimal128V3Ej Line | Count | Source | 69 | 20 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 20 | double val = 0; | 71 | 20 | if constexpr (is_decimal(T)) { | 72 | 20 | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | 20 | val = static_cast<double>(value.value) / | 74 | 20 | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | | } else { | 76 | | val = static_cast<double>(value); | 77 | | } | 78 | 20 | double key = std::floor((val - offset) / interval); | 79 | 20 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 20 | buckets[static_cast<int32_t>(key)]++; | 84 | 20 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE3addERKNS_7DecimalIN4wide7integerILm256EiEEEEj Line | Count | Source | 69 | 20 | void add(const typename PrimitiveTypeTraits<T>::CppType& value, UInt32 scale) { | 70 | 20 | double val = 0; | 71 | 20 | if constexpr (is_decimal(T)) { | 72 | 20 | using NativeType = typename PrimitiveTypeTraits<T>::CppType::NativeType; | 73 | 20 | val = static_cast<double>(value.value) / | 74 | 20 | static_cast<double>(decimal_scale_multiplier<NativeType>(scale)); | 75 | | } else { | 76 | | val = static_cast<double>(value); | 77 | | } | 78 | 20 | double key = std::floor((val - offset) / interval); | 79 | 20 | if (key <= MIN_BUCKET_KEY || key >= MAX_BUCKET_KEY) { | 80 | 0 | throw doris::Exception(ErrorCode::INVALID_ARGUMENT, "{} exceeds the bucket range limit", | 81 | 0 | val); | 82 | 0 | } | 83 | 20 | buckets[static_cast<int32_t>(key)]++; | 84 | 20 | } |
|
85 | | |
86 | | // merge |
87 | 33 | void merge(const AggregateFunctionLinearHistogramData& rhs) { |
88 | 33 | if (rhs.interval == 0) { |
89 | 11 | return; |
90 | 11 | } |
91 | | |
92 | 22 | interval = rhs.interval; |
93 | 22 | offset = rhs.offset; |
94 | | |
95 | 165 | for (const auto& [key, count] : rhs.buckets) { |
96 | 165 | buckets[key] += count; |
97 | 165 | } |
98 | 22 | } _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 21 | for (const auto& [key, count] : rhs.buckets) { | 96 | 21 | buckets[key] += count; | 97 | 21 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 21 | for (const auto& [key, count] : rhs.buckets) { | 96 | 21 | buckets[key] += count; | 97 | 21 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 21 | for (const auto& [key, count] : rhs.buckets) { | 96 | 21 | buckets[key] += count; | 97 | 21 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 21 | for (const auto& [key, count] : rhs.buckets) { | 96 | 21 | buckets[key] += count; | 97 | 21 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 21 | for (const auto& [key, count] : rhs.buckets) { | 96 | 21 | buckets[key] += count; | 97 | 21 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 10 | for (const auto& [key, count] : rhs.buckets) { | 96 | 10 | buckets[key] += count; | 97 | 10 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 10 | for (const auto& [key, count] : rhs.buckets) { | 96 | 10 | buckets[key] += count; | 97 | 10 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 10 | for (const auto& [key, count] : rhs.buckets) { | 96 | 10 | buckets[key] += count; | 97 | 10 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 10 | for (const auto& [key, count] : rhs.buckets) { | 96 | 10 | buckets[key] += count; | 97 | 10 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 10 | for (const auto& [key, count] : rhs.buckets) { | 96 | 10 | buckets[key] += count; | 97 | 10 | } | 98 | 2 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE5mergeERKS2_ Line | Count | Source | 87 | 3 | void merge(const AggregateFunctionLinearHistogramData& rhs) { | 88 | 3 | if (rhs.interval == 0) { | 89 | 1 | return; | 90 | 1 | } | 91 | | | 92 | 2 | interval = rhs.interval; | 93 | 2 | offset = rhs.offset; | 94 | | | 95 | 10 | for (const auto& [key, count] : rhs.buckets) { | 96 | 10 | buckets[key] += count; | 97 | 10 | } | 98 | 2 | } |
|
99 | | |
100 | | // write |
101 | 33 | void write(BufferWritable& buf) const { |
102 | 33 | buf.write_binary(offset); |
103 | 33 | buf.write_binary(interval); |
104 | 33 | buf.write_binary(lower); |
105 | 33 | buf.write_binary(upper); |
106 | 33 | buf.write_binary(buckets.size()); |
107 | 165 | for (const auto& [key, count] : buckets) { |
108 | 165 | buf.write_binary(key); |
109 | 165 | buf.write_binary(count); |
110 | 165 | } |
111 | 33 | } _ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 21 | for (const auto& [key, count] : buckets) { | 108 | 21 | buf.write_binary(key); | 109 | 21 | buf.write_binary(count); | 110 | 21 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 21 | for (const auto& [key, count] : buckets) { | 108 | 21 | buf.write_binary(key); | 109 | 21 | buf.write_binary(count); | 110 | 21 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 21 | for (const auto& [key, count] : buckets) { | 108 | 21 | buf.write_binary(key); | 109 | 21 | buf.write_binary(count); | 110 | 21 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 21 | for (const auto& [key, count] : buckets) { | 108 | 21 | buf.write_binary(key); | 109 | 21 | buf.write_binary(count); | 110 | 21 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 21 | for (const auto& [key, count] : buckets) { | 108 | 21 | buf.write_binary(key); | 109 | 21 | buf.write_binary(count); | 110 | 21 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 10 | for (const auto& [key, count] : buckets) { | 108 | 10 | buf.write_binary(key); | 109 | 10 | buf.write_binary(count); | 110 | 10 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 10 | for (const auto& [key, count] : buckets) { | 108 | 10 | buf.write_binary(key); | 109 | 10 | buf.write_binary(count); | 110 | 10 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 10 | for (const auto& [key, count] : buckets) { | 108 | 10 | buf.write_binary(key); | 109 | 10 | buf.write_binary(count); | 110 | 10 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 10 | for (const auto& [key, count] : buckets) { | 108 | 10 | buf.write_binary(key); | 109 | 10 | buf.write_binary(count); | 110 | 10 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 10 | for (const auto& [key, count] : buckets) { | 108 | 10 | buf.write_binary(key); | 109 | 10 | buf.write_binary(count); | 110 | 10 | } | 111 | 3 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE5writeERNS_14BufferWritableE Line | Count | Source | 101 | 3 | void write(BufferWritable& buf) const { | 102 | 3 | buf.write_binary(offset); | 103 | 3 | buf.write_binary(interval); | 104 | 3 | buf.write_binary(lower); | 105 | 3 | buf.write_binary(upper); | 106 | 3 | buf.write_binary(buckets.size()); | 107 | 10 | for (const auto& [key, count] : buckets) { | 108 | 10 | buf.write_binary(key); | 109 | 10 | buf.write_binary(count); | 110 | 10 | } | 111 | 3 | } |
|
112 | | |
113 | | // read |
114 | 33 | void read(BufferReadable& buf) { |
115 | 33 | buf.read_binary(offset); |
116 | 33 | buf.read_binary(interval); |
117 | 33 | buf.read_binary(lower); |
118 | 33 | buf.read_binary(upper); |
119 | 33 | size_t size; |
120 | 33 | buf.read_binary(size); |
121 | 198 | for (size_t i = 0; i < size; i++) { |
122 | 165 | int32_t key; |
123 | 165 | size_t count; |
124 | 165 | buf.read_binary(key); |
125 | 165 | buf.read_binary(count); |
126 | 165 | buckets[key] = count; |
127 | 165 | } |
128 | 33 | } _ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 24 | for (size_t i = 0; i < size; i++) { | 122 | 21 | int32_t key; | 123 | 21 | size_t count; | 124 | 21 | buf.read_binary(key); | 125 | 21 | buf.read_binary(count); | 126 | 21 | buckets[key] = count; | 127 | 21 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 24 | for (size_t i = 0; i < size; i++) { | 122 | 21 | int32_t key; | 123 | 21 | size_t count; | 124 | 21 | buf.read_binary(key); | 125 | 21 | buf.read_binary(count); | 126 | 21 | buckets[key] = count; | 127 | 21 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 24 | for (size_t i = 0; i < size; i++) { | 122 | 21 | int32_t key; | 123 | 21 | size_t count; | 124 | 21 | buf.read_binary(key); | 125 | 21 | buf.read_binary(count); | 126 | 21 | buckets[key] = count; | 127 | 21 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 24 | for (size_t i = 0; i < size; i++) { | 122 | 21 | int32_t key; | 123 | 21 | size_t count; | 124 | 21 | buf.read_binary(key); | 125 | 21 | buf.read_binary(count); | 126 | 21 | buckets[key] = count; | 127 | 21 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 24 | for (size_t i = 0; i < size; i++) { | 122 | 21 | int32_t key; | 123 | 21 | size_t count; | 124 | 21 | buf.read_binary(key); | 125 | 21 | buf.read_binary(count); | 126 | 21 | buckets[key] = count; | 127 | 21 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 13 | for (size_t i = 0; i < size; i++) { | 122 | 10 | int32_t key; | 123 | 10 | size_t count; | 124 | 10 | buf.read_binary(key); | 125 | 10 | buf.read_binary(count); | 126 | 10 | buckets[key] = count; | 127 | 10 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 13 | for (size_t i = 0; i < size; i++) { | 122 | 10 | int32_t key; | 123 | 10 | size_t count; | 124 | 10 | buf.read_binary(key); | 125 | 10 | buf.read_binary(count); | 126 | 10 | buckets[key] = count; | 127 | 10 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 13 | for (size_t i = 0; i < size; i++) { | 122 | 10 | int32_t key; | 123 | 10 | size_t count; | 124 | 10 | buf.read_binary(key); | 125 | 10 | buf.read_binary(count); | 126 | 10 | buckets[key] = count; | 127 | 10 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 13 | for (size_t i = 0; i < size; i++) { | 122 | 10 | int32_t key; | 123 | 10 | size_t count; | 124 | 10 | buf.read_binary(key); | 125 | 10 | buf.read_binary(count); | 126 | 10 | buckets[key] = count; | 127 | 10 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 13 | for (size_t i = 0; i < size; i++) { | 122 | 10 | int32_t key; | 123 | 10 | size_t count; | 124 | 10 | buf.read_binary(key); | 125 | 10 | buf.read_binary(count); | 126 | 10 | buckets[key] = count; | 127 | 10 | } | 128 | 3 | } |
_ZN5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE4readERNS_14BufferReadableE Line | Count | Source | 114 | 3 | void read(BufferReadable& buf) { | 115 | 3 | buf.read_binary(offset); | 116 | 3 | buf.read_binary(interval); | 117 | 3 | buf.read_binary(lower); | 118 | 3 | buf.read_binary(upper); | 119 | 3 | size_t size; | 120 | 3 | buf.read_binary(size); | 121 | 13 | for (size_t i = 0; i < size; i++) { | 122 | 10 | int32_t key; | 123 | 10 | size_t count; | 124 | 10 | buf.read_binary(key); | 125 | 10 | buf.read_binary(count); | 126 | 10 | buckets[key] = count; | 127 | 10 | } | 128 | 3 | } |
|
129 | | |
130 | | // insert_result_into |
131 | 66 | void insert_result_into(IColumn& to) const { |
132 | 66 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); |
133 | 66 | std::sort(bucket_vector.begin(), bucket_vector.end(), |
134 | 366 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; });_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 54 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 54 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 54 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 54 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 54 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 16 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 16 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 16 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 16 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 16 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
_ZZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE18insert_result_intoERNS_7IColumnEENKUlRKT_RKT0_E_clISt4pairIimESE_EEDaS7_SA_ Line | Count | Source | 134 | 16 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); |
|
135 | | |
136 | 66 | rapidjson::Document doc; |
137 | 66 | doc.SetObject(); |
138 | 66 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); |
139 | | |
140 | 66 | unsigned num_buckets = bucket_vector.empty() ? 0 |
141 | 66 | : bucket_vector.rbegin()->first - |
142 | 44 | bucket_vector.begin()->first + 1; |
143 | 66 | doc.AddMember("num_buckets", num_buckets, allocator); |
144 | | |
145 | 66 | rapidjson::Value bucket_arr(rapidjson::kArrayType); |
146 | 66 | bucket_arr.Reserve(num_buckets, allocator); |
147 | | |
148 | 66 | if (num_buckets > 0) { |
149 | 44 | int32_t idx = bucket_vector.begin()->first; |
150 | 44 | double left = bucket_vector.begin()->first * interval + offset; |
151 | 44 | size_t count = 0; |
152 | 44 | size_t acc_count = 0; |
153 | | |
154 | 330 | for (const auto& [key, count_] : bucket_vector) { |
155 | 756 | for (; idx <= key; ++idx) { |
156 | 426 | rapidjson::Value bucket_json(rapidjson::kObjectType); |
157 | 426 | bucket_json.AddMember("lower", left, allocator); |
158 | 426 | left += interval; |
159 | 426 | bucket_json.AddMember("upper", left, allocator); |
160 | 426 | count = (idx == key) ? count_ : 0; |
161 | 426 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); |
162 | 426 | acc_count += count; |
163 | 426 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); |
164 | 426 | bucket_arr.PushBack(bucket_json, allocator); |
165 | 426 | } |
166 | 330 | } |
167 | 44 | } |
168 | | |
169 | 66 | doc.AddMember("buckets", bucket_arr, allocator); |
170 | | |
171 | 66 | rapidjson::StringBuffer buffer; |
172 | 66 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); |
173 | 66 | doc.Accept(writer); |
174 | | |
175 | 66 | auto& column = assert_cast<ColumnString&>(to); |
176 | 66 | column.insert_data(buffer.GetString(), buffer.GetSize()); |
177 | 66 | } _ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE3EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 42 | for (const auto& [key, count_] : bucket_vector) { | 155 | 84 | for (; idx <= key; ++idx) { | 156 | 42 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 42 | bucket_json.AddMember("lower", left, allocator); | 158 | 42 | left += interval; | 159 | 42 | bucket_json.AddMember("upper", left, allocator); | 160 | 42 | count = (idx == key) ? count_ : 0; | 161 | 42 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 42 | acc_count += count; | 163 | 42 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 42 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 42 | } | 166 | 42 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE4EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 42 | for (const auto& [key, count_] : bucket_vector) { | 155 | 84 | for (; idx <= key; ++idx) { | 156 | 42 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 42 | bucket_json.AddMember("lower", left, allocator); | 158 | 42 | left += interval; | 159 | 42 | bucket_json.AddMember("upper", left, allocator); | 160 | 42 | count = (idx == key) ? count_ : 0; | 161 | 42 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 42 | acc_count += count; | 163 | 42 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 42 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 42 | } | 166 | 42 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE5EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 42 | for (const auto& [key, count_] : bucket_vector) { | 155 | 84 | for (; idx <= key; ++idx) { | 156 | 42 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 42 | bucket_json.AddMember("lower", left, allocator); | 158 | 42 | left += interval; | 159 | 42 | bucket_json.AddMember("upper", left, allocator); | 160 | 42 | count = (idx == key) ? count_ : 0; | 161 | 42 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 42 | acc_count += count; | 163 | 42 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 42 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 42 | } | 166 | 42 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE6EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 42 | for (const auto& [key, count_] : bucket_vector) { | 155 | 84 | for (; idx <= key; ++idx) { | 156 | 42 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 42 | bucket_json.AddMember("lower", left, allocator); | 158 | 42 | left += interval; | 159 | 42 | bucket_json.AddMember("upper", left, allocator); | 160 | 42 | count = (idx == key) ? count_ : 0; | 161 | 42 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 42 | acc_count += count; | 163 | 42 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 42 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 42 | } | 166 | 42 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE7EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 42 | for (const auto& [key, count_] : bucket_vector) { | 155 | 84 | for (; idx <= key; ++idx) { | 156 | 42 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 42 | bucket_json.AddMember("lower", left, allocator); | 158 | 42 | left += interval; | 159 | 42 | bucket_json.AddMember("upper", left, allocator); | 160 | 42 | count = (idx == key) ? count_ : 0; | 161 | 42 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 42 | acc_count += count; | 163 | 42 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 42 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 42 | } | 166 | 42 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE8EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 20 | for (const auto& [key, count_] : bucket_vector) { | 155 | 56 | for (; idx <= key; ++idx) { | 156 | 36 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 36 | bucket_json.AddMember("lower", left, allocator); | 158 | 36 | left += interval; | 159 | 36 | bucket_json.AddMember("upper", left, allocator); | 160 | 36 | count = (idx == key) ? count_ : 0; | 161 | 36 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 36 | acc_count += count; | 163 | 36 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 36 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 36 | } | 166 | 20 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE9EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 20 | for (const auto& [key, count_] : bucket_vector) { | 155 | 56 | for (; idx <= key; ++idx) { | 156 | 36 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 36 | bucket_json.AddMember("lower", left, allocator); | 158 | 36 | left += interval; | 159 | 36 | bucket_json.AddMember("upper", left, allocator); | 160 | 36 | count = (idx == key) ? count_ : 0; | 161 | 36 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 36 | acc_count += count; | 163 | 36 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 36 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 36 | } | 166 | 20 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE28EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 20 | for (const auto& [key, count_] : bucket_vector) { | 155 | 56 | for (; idx <= key; ++idx) { | 156 | 36 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 36 | bucket_json.AddMember("lower", left, allocator); | 158 | 36 | left += interval; | 159 | 36 | bucket_json.AddMember("upper", left, allocator); | 160 | 36 | count = (idx == key) ? count_ : 0; | 161 | 36 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 36 | acc_count += count; | 163 | 36 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 36 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 36 | } | 166 | 20 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE29EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 20 | for (const auto& [key, count_] : bucket_vector) { | 155 | 56 | for (; idx <= key; ++idx) { | 156 | 36 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 36 | bucket_json.AddMember("lower", left, allocator); | 158 | 36 | left += interval; | 159 | 36 | bucket_json.AddMember("upper", left, allocator); | 160 | 36 | count = (idx == key) ? count_ : 0; | 161 | 36 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 36 | acc_count += count; | 163 | 36 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 36 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 36 | } | 166 | 20 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE30EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 20 | for (const auto& [key, count_] : bucket_vector) { | 155 | 56 | for (; idx <= key; ++idx) { | 156 | 36 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 36 | bucket_json.AddMember("lower", left, allocator); | 158 | 36 | left += interval; | 159 | 36 | bucket_json.AddMember("upper", left, allocator); | 160 | 36 | count = (idx == key) ? count_ : 0; | 161 | 36 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 36 | acc_count += count; | 163 | 36 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 36 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 36 | } | 166 | 20 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
_ZNK5doris36AggregateFunctionLinearHistogramDataILNS_13PrimitiveTypeE35EE18insert_result_intoERNS_7IColumnE Line | Count | Source | 131 | 6 | void insert_result_into(IColumn& to) const { | 132 | 6 | std::vector<std::pair<int32_t, size_t>> bucket_vector(buckets.begin(), buckets.end()); | 133 | 6 | std::sort(bucket_vector.begin(), bucket_vector.end(), | 134 | 6 | [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); | 135 | | | 136 | 6 | rapidjson::Document doc; | 137 | 6 | doc.SetObject(); | 138 | 6 | rapidjson::Document::AllocatorType& allocator = doc.GetAllocator(); | 139 | | | 140 | 6 | unsigned num_buckets = bucket_vector.empty() ? 0 | 141 | 6 | : bucket_vector.rbegin()->first - | 142 | 4 | bucket_vector.begin()->first + 1; | 143 | 6 | doc.AddMember("num_buckets", num_buckets, allocator); | 144 | | | 145 | 6 | rapidjson::Value bucket_arr(rapidjson::kArrayType); | 146 | 6 | bucket_arr.Reserve(num_buckets, allocator); | 147 | | | 148 | 6 | if (num_buckets > 0) { | 149 | 4 | int32_t idx = bucket_vector.begin()->first; | 150 | 4 | double left = bucket_vector.begin()->first * interval + offset; | 151 | 4 | size_t count = 0; | 152 | 4 | size_t acc_count = 0; | 153 | | | 154 | 20 | for (const auto& [key, count_] : bucket_vector) { | 155 | 56 | for (; idx <= key; ++idx) { | 156 | 36 | rapidjson::Value bucket_json(rapidjson::kObjectType); | 157 | 36 | bucket_json.AddMember("lower", left, allocator); | 158 | 36 | left += interval; | 159 | 36 | bucket_json.AddMember("upper", left, allocator); | 160 | 36 | count = (idx == key) ? count_ : 0; | 161 | 36 | bucket_json.AddMember("count", static_cast<uint64_t>(count), allocator); | 162 | 36 | acc_count += count; | 163 | 36 | bucket_json.AddMember("acc_count", static_cast<uint64_t>(acc_count), allocator); | 164 | 36 | bucket_arr.PushBack(bucket_json, allocator); | 165 | 36 | } | 166 | 20 | } | 167 | 4 | } | 168 | | | 169 | 6 | doc.AddMember("buckets", bucket_arr, allocator); | 170 | | | 171 | 6 | rapidjson::StringBuffer buffer; | 172 | 6 | rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); | 173 | 6 | doc.Accept(writer); | 174 | | | 175 | 6 | auto& column = assert_cast<ColumnString&>(to); | 176 | 6 | column.insert_data(buffer.GetString(), buffer.GetSize()); | 177 | 6 | } |
|
178 | | }; |
179 | | |
180 | | class AggregateFunctionLinearHistogramConsts { |
181 | | public: |
182 | | const static std::string NAME; |
183 | | }; |
184 | | |
185 | | template <PrimitiveType T, typename Data, bool has_offset> |
186 | | class AggregateFunctionLinearHistogram final |
187 | | : public IAggregateFunctionDataHelper< |
188 | | Data, AggregateFunctionLinearHistogram<T, Data, has_offset>>, |
189 | | MultiExpression, |
190 | | NotNullableAggregateFunction { |
191 | | public: |
192 | | using ColVecType = typename PrimitiveTypeTraits<T>::ColumnType; |
193 | | |
194 | | AggregateFunctionLinearHistogram(const DataTypes& argument_types_) |
195 | 33 | : IAggregateFunctionDataHelper<Data, |
196 | 33 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( |
197 | 33 | argument_types_), |
198 | 33 | scale(get_decimal_scale(*argument_types_[0])) {}_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 1 | : IAggregateFunctionDataHelper<Data, | 196 | 1 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 1 | argument_types_), | 198 | 1 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
_ZN5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EEC2ERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS9_EE Line | Count | Source | 195 | 2 | : IAggregateFunctionDataHelper<Data, | 196 | 2 | AggregateFunctionLinearHistogram<T, Data, has_offset>>( | 197 | 2 | argument_types_), | 198 | 2 | scale(get_decimal_scale(*argument_types_[0])) {} |
|
199 | | |
200 | 0 | std::string get_name() const override { return AggregateFunctionLinearHistogramConsts::NAME; }Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE8get_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE8get_nameB5cxx11Ev |
201 | | |
202 | 0 | DataTypePtr get_return_type() const override { return std::make_shared<DataTypeString>(); }Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE15get_return_typeEv Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE15get_return_typeEv |
203 | | |
204 | | void add(AggregateDataPtr __restrict place, const IColumn** columns, ssize_t row_num, |
205 | 2.12k | Arena&) const override { |
206 | 2.12k | double interval = |
207 | 2.12k | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) |
208 | 2.12k | .get_data()[row_num]; |
209 | 2.12k | if (interval <= 0) { |
210 | 0 | throw doris::Exception( |
211 | 0 | ErrorCode::INVALID_ARGUMENT, |
212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, |
213 | 0 | row_num); |
214 | 0 | } |
215 | | |
216 | 2.12k | double offset = 0; |
217 | 2.12k | if constexpr (has_offset) { |
218 | 1.06k | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) |
219 | 1.06k | .get_data()[row_num]; |
220 | 1.06k | if (offset < 0 || offset >= interval) { |
221 | 0 | throw doris::Exception( |
222 | 0 | ErrorCode::INVALID_ARGUMENT, |
223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, |
224 | 0 | row_num); |
225 | 0 | } |
226 | 1.06k | } |
227 | | |
228 | 1.06k | this->data(place).set_parameters(interval, offset); |
229 | | |
230 | 2.12k | this->data(place).add( |
231 | 2.12k | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) |
232 | 2.12k | .get_data()[row_num], |
233 | 2.12k | scale); |
234 | 2.12k | } _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | 200 | if constexpr (has_offset) { | 218 | 200 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 200 | .get_data()[row_num]; | 220 | 200 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 200 | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | 200 | if constexpr (has_offset) { | 218 | 200 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 200 | .get_data()[row_num]; | 220 | 200 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 200 | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | 200 | if constexpr (has_offset) { | 218 | 200 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 200 | .get_data()[row_num]; | 220 | 200 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 200 | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | 200 | if constexpr (has_offset) { | 218 | 200 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 200 | .get_data()[row_num]; | 220 | 200 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 200 | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | 200 | if constexpr (has_offset) { | 218 | 200 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 200 | .get_data()[row_num]; | 220 | 200 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 200 | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | 10 | if constexpr (has_offset) { | 218 | 10 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 10 | .get_data()[row_num]; | 220 | 10 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 10 | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | 10 | if constexpr (has_offset) { | 218 | 10 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 10 | .get_data()[row_num]; | 220 | 10 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 10 | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | 10 | if constexpr (has_offset) { | 218 | 10 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 10 | .get_data()[row_num]; | 220 | 10 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 10 | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | 10 | if constexpr (has_offset) { | 218 | 10 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 10 | .get_data()[row_num]; | 220 | 10 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 10 | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | 10 | if constexpr (has_offset) { | 218 | 10 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 10 | .get_data()[row_num]; | 220 | 10 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 10 | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | 10 | if constexpr (has_offset) { | 218 | 10 | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | 10 | .get_data()[row_num]; | 220 | 10 | if (offset < 0 || offset >= interval) { | 221 | 0 | throw doris::Exception( | 222 | 0 | ErrorCode::INVALID_ARGUMENT, | 223 | 0 | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | 0 | row_num); | 225 | 0 | } | 226 | 10 | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 200 | Arena&) const override { | 206 | 200 | double interval = | 207 | 200 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 200 | .get_data()[row_num]; | 209 | 200 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 200 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 200 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 200 | this->data(place).add( | 231 | 200 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 200 | .get_data()[row_num], | 233 | 200 | scale); | 234 | 200 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE3addEPcPPKNS_7IColumnElRNS_5ArenaE Line | Count | Source | 205 | 10 | Arena&) const override { | 206 | 10 | double interval = | 207 | 10 | assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[1]) | 208 | 10 | .get_data()[row_num]; | 209 | 10 | if (interval <= 0) { | 210 | 0 | throw doris::Exception( | 211 | 0 | ErrorCode::INVALID_ARGUMENT, | 212 | 0 | "Invalid interval {}, row_num {}, interval should be larger than 0", interval, | 213 | 0 | row_num); | 214 | 0 | } | 215 | | | 216 | 10 | double offset = 0; | 217 | | if constexpr (has_offset) { | 218 | | offset = assert_cast<const ColumnFloat64&, TypeCheckOnRelease::DISABLE>(*columns[2]) | 219 | | .get_data()[row_num]; | 220 | | if (offset < 0 || offset >= interval) { | 221 | | throw doris::Exception( | 222 | | ErrorCode::INVALID_ARGUMENT, | 223 | | "Invalid offset {}, row_num {}, offset should be in [0, interval)", offset, | 224 | | row_num); | 225 | | } | 226 | | } | 227 | | | 228 | 10 | this->data(place).set_parameters(interval, offset); | 229 | | | 230 | 10 | this->data(place).add( | 231 | 10 | assert_cast<const ColVecType&, TypeCheckOnRelease::DISABLE>(*columns[0]) | 232 | 10 | .get_data()[row_num], | 233 | 10 | scale); | 234 | 10 | } |
|
235 | | |
236 | 0 | void reset(AggregateDataPtr place) const override { this->data(place).reset(); }Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE5resetEPc Unexecuted instantiation: _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE5resetEPc |
237 | | |
238 | | void merge(AggregateDataPtr __restrict place, ConstAggregateDataPtr rhs, |
239 | 33 | Arena&) const override { |
240 | 33 | this->data(place).merge(this->data(rhs)); |
241 | 33 | } _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 1 | Arena&) const override { | 240 | 1 | this->data(place).merge(this->data(rhs)); | 241 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE5mergeEPcPKcRNS_5ArenaE Line | Count | Source | 239 | 2 | Arena&) const override { | 240 | 2 | this->data(place).merge(this->data(rhs)); | 241 | 2 | } |
|
242 | | |
243 | 33 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { |
244 | 33 | this->data(place).write(buf); |
245 | 33 | } _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 1 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 1 | this->data(place).write(buf); | 245 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE9serializeEPKcRNS_14BufferWritableE Line | Count | Source | 243 | 2 | void serialize(ConstAggregateDataPtr __restrict place, BufferWritable& buf) const override { | 244 | 2 | this->data(place).write(buf); | 245 | 2 | } |
|
246 | | |
247 | | void deserialize(AggregateDataPtr __restrict place, BufferReadable& buf, |
248 | 33 | Arena&) const override { |
249 | 33 | this->data(place).read(buf); |
250 | 33 | } _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 1 | Arena&) const override { | 249 | 1 | this->data(place).read(buf); | 250 | 1 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE11deserializeEPcRNS_14BufferReadableERNS_5ArenaE Line | Count | Source | 248 | 2 | Arena&) const override { | 249 | 2 | this->data(place).read(buf); | 250 | 2 | } |
|
251 | | |
252 | 66 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { |
253 | 66 | this->data(place).insert_result_into(to); |
254 | 66 | } _ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb1EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 2 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 2 | this->data(place).insert_result_into(to); | 254 | 2 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE3ENS_36AggregateFunctionLinearHistogramDataILS1_3EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE4ENS_36AggregateFunctionLinearHistogramDataILS1_4EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE5ENS_36AggregateFunctionLinearHistogramDataILS1_5EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE6ENS_36AggregateFunctionLinearHistogramDataILS1_6EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE7ENS_36AggregateFunctionLinearHistogramDataILS1_7EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE8ENS_36AggregateFunctionLinearHistogramDataILS1_8EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE9ENS_36AggregateFunctionLinearHistogramDataILS1_9EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE28ENS_36AggregateFunctionLinearHistogramDataILS1_28EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE29ENS_36AggregateFunctionLinearHistogramDataILS1_29EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE30ENS_36AggregateFunctionLinearHistogramDataILS1_30EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
_ZNK5doris32AggregateFunctionLinearHistogramILNS_13PrimitiveTypeE35ENS_36AggregateFunctionLinearHistogramDataILS1_35EEELb0EE18insert_result_intoEPKcRNS_7IColumnE Line | Count | Source | 252 | 4 | void insert_result_into(ConstAggregateDataPtr __restrict place, IColumn& to) const override { | 253 | 4 | this->data(place).insert_result_into(to); | 254 | 4 | } |
|
255 | | |
256 | | private: |
257 | | UInt32 scale; |
258 | | }; |
259 | | |
260 | | } // namespace doris |
261 | | |
262 | | #include "common/compile_check_end.h" |