be/src/storage/segment/bitshuffle_page.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 <glog/logging.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <cstddef> |
24 | | #include <cstdint> |
25 | | #include <cstring> |
26 | | #include <ostream> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/cast_set.h" |
30 | | #include "common/compiler_util.h" // IWYU pragma: keep |
31 | | #include "common/status.h" |
32 | | #include "core/column/column.h" |
33 | | #include "core/data_type/data_type.h" |
34 | | #include "core/types.h" |
35 | | #include "storage/olap_common.h" |
36 | | #include "storage/segment/bitshuffle_wrapper.h" |
37 | | #include "storage/segment/common.h" |
38 | | #include "storage/segment/options.h" |
39 | | #include "storage/segment/page_builder.h" |
40 | | #include "storage/segment/page_decoder.h" |
41 | | #include "storage/types.h" |
42 | | #include "util/alignment.h" |
43 | | #include "util/coding.h" |
44 | | #include "util/faststring.h" |
45 | | #include "util/slice.h" |
46 | | |
47 | | namespace doris { |
48 | | namespace segment_v2 { |
49 | | |
50 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
51 | | |
52 | | void warn_with_bitshuffle_error(int64_t val); |
53 | | |
54 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
55 | | // size type blocks with lz4. |
56 | | // |
57 | | // The page format is as follows: |
58 | | // |
59 | | // 1. Header: (16 bytes total) |
60 | | // |
61 | | // <num_elements> [32-bit] |
62 | | // The number of elements encoded in the page. |
63 | | // |
64 | | // <compressed_size> [32-bit] |
65 | | // The post-compression size of the page, including this header. |
66 | | // |
67 | | // <padded_num_elements> [32-bit] |
68 | | // Padding is needed to meet the requirements of the bitshuffle |
69 | | // library such that the input/output is a multiple of 8. Some |
70 | | // ignored elements are appended to the end of the page if necessary |
71 | | // to meet this requirement. |
72 | | // |
73 | | // This header field is the post-padding element count. |
74 | | // |
75 | | // <elem_size_bytes> [32-bit] |
76 | | // The size of the elements, in bytes, as actually encoded. In the |
77 | | // case that all of the data in a page can fit into a smaller |
78 | | // integer type, then we may choose to encode that smaller type |
79 | | // to save CPU costs. |
80 | | // |
81 | | // This is currently only implemented in the UINT32 page type. |
82 | | // |
83 | | // NOTE: all on-disk ints are encoded little-endian |
84 | | // |
85 | | // 2. Element data |
86 | | // |
87 | | // The header is followed by the bitshuffle-compressed element data. |
88 | | // |
89 | | template <FieldType Type> |
90 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
91 | | public: |
92 | | using Self = BitshufflePageBuilder<Type>; |
93 | | friend class PageBuilderHelper<Self>; |
94 | | |
95 | 187k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 53.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 8.64k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 1.57k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 91.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 2.13k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 10.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 1.28k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 1.39k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 127 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 2.84k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 4.82k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 229 | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 133 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 1.51k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 2.86k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 2.47k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 860 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 276 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 269 | Status init() override { return reset(); } |
|
96 | | |
97 | 29.6M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 29.5M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 9.08k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 1.77k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 123k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 2.25k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 10.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 1.63k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 2.13k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 134 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 4.69k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 5.56k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 283 | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 42 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 1.62k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 3.28k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 3.60k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.06k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 213 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 205 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 737k | Status add(const uint8_t* vals, size_t* count) override { |
100 | 737k | return add_internal<false>(vals, count); |
101 | 737k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 566k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 566k | return add_internal<false>(vals, count); | 101 | 566k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 9.08k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 9.08k | return add_internal<false>(vals, count); | 101 | 9.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 1.77k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.77k | return add_internal<false>(vals, count); | 101 | 1.77k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 123k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 123k | return add_internal<false>(vals, count); | 101 | 123k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 2.25k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 2.25k | return add_internal<false>(vals, count); | 101 | 2.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 10.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.6k | return add_internal<false>(vals, count); | 101 | 10.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 1.63k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.63k | return add_internal<false>(vals, count); | 101 | 1.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 2.13k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 2.13k | return add_internal<false>(vals, count); | 101 | 2.13k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 134 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 134 | return add_internal<false>(vals, count); | 101 | 134 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 4.70k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 4.70k | return add_internal<false>(vals, count); | 101 | 4.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 5.56k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.56k | return add_internal<false>(vals, count); | 101 | 5.56k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 283 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 283 | return add_internal<false>(vals, count); | 101 | 283 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 42 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 42 | return add_internal<false>(vals, count); | 101 | 42 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 1.62k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.62k | return add_internal<false>(vals, count); | 101 | 1.62k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 3.28k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 3.28k | return add_internal<false>(vals, count); | 101 | 3.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 3.60k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 3.60k | return add_internal<false>(vals, count); | 101 | 3.60k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.06k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.06k | return add_internal<false>(vals, count); | 101 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 213 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 213 | return add_internal<false>(vals, count); | 101 | 213 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 205 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 205 | return add_internal<false>(vals, count); | 101 | 205 | } |
|
102 | | |
103 | 30.7M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 30.7M | return add_internal<true>(vals, count); |
105 | 30.7M | } |
106 | | |
107 | | template <bool single> |
108 | 31.2M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 31.2M | DCHECK(!_finished); |
110 | 31.2M | if (_remain_element_capacity == 0) { |
111 | 0 | *num_written = 0; |
112 | 0 | return Status::OK(); |
113 | 0 | } |
114 | | |
115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
116 | | // the row count of a single men tbl could be very large. |
117 | | // a real log: |
118 | | /* |
119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
120 | | */ |
121 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
125 | 31.2M | uint32_t to_add = cast_set<UInt32>( |
126 | 31.2M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
128 | 31.2M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 31.2M | size_t orig_size = _data.size(); |
130 | | // This may need a large memory, should return error if could not allocated |
131 | | // successfully, to avoid BE OOM. |
132 | 31.2M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 30.9M | _count += to_add; |
134 | 30.9M | _remain_element_capacity -= to_add; |
135 | 30.9M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 30.9M | *num_written = to_add; |
138 | 30.9M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 30.2M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 30.2M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 30.2M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 30.2M | return Status::OK(); |
150 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
152 | | *reinterpret_cast<const uint64_t*>(vals); |
153 | | return Status::OK(); |
154 | | } |
155 | 30.2M | } |
156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
158 | 30.9M | return Status::OK(); |
159 | 31.2M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 566k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 566k | DCHECK(!_finished); | 110 | 566k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 566k | uint32_t to_add = cast_set<UInt32>( | 126 | 566k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 566k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 566k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 566k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 566k | _count += to_add; | 134 | 566k | _remain_element_capacity -= to_add; | 135 | 566k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 566k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 566k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 566k | return Status::OK(); | 159 | 566k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 30.5M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 30.5M | DCHECK(!_finished); | 110 | 30.5M | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 30.5M | uint32_t to_add = cast_set<UInt32>( | 126 | 30.5M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 30.5M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 30.5M | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 30.5M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 30.2M | _count += to_add; | 134 | 30.2M | _remain_element_capacity -= to_add; | 135 | 30.2M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 30.2M | *num_written = to_add; | 138 | 30.2M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 30.2M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 30.2M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 30.2M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 30.2M | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | 30.2M | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 30.2M | return Status::OK(); | 159 | 30.5M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 9.08k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 9.08k | DCHECK(!_finished); | 110 | 9.08k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 9.08k | uint32_t to_add = cast_set<UInt32>( | 126 | 9.08k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 9.08k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 9.08k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 9.08k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 9.07k | _count += to_add; | 134 | 9.07k | _remain_element_capacity -= to_add; | 135 | 9.07k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 9.07k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 9.07k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 9.07k | return Status::OK(); | 159 | 9.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.77k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.77k | DCHECK(!_finished); | 110 | 1.77k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.77k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.77k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.77k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.77k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.77k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.77k | _count += to_add; | 134 | 1.77k | _remain_element_capacity -= to_add; | 135 | 1.77k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.77k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.77k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.77k | return Status::OK(); | 159 | 1.77k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 123k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 123k | DCHECK(!_finished); | 110 | 123k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 123k | uint32_t to_add = cast_set<UInt32>( | 126 | 123k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 123k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 123k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 123k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 123k | _count += to_add; | 134 | 123k | _remain_element_capacity -= to_add; | 135 | 123k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 123k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 123k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 123k | return Status::OK(); | 159 | 123k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 2.25k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 2.25k | DCHECK(!_finished); | 110 | 2.25k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 2.25k | uint32_t to_add = cast_set<UInt32>( | 126 | 2.25k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 2.25k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 2.25k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 2.25k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 2.25k | _count += to_add; | 134 | 2.25k | _remain_element_capacity -= to_add; | 135 | 2.25k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 2.25k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 2.25k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 2.25k | return Status::OK(); | 159 | 2.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.6k | DCHECK(!_finished); | 110 | 10.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 10.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 10.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 10.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.6k | _count += to_add; | 134 | 10.6k | _remain_element_capacity -= to_add; | 135 | 10.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 10.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.6k | return Status::OK(); | 159 | 10.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.63k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.63k | DCHECK(!_finished); | 110 | 1.63k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.63k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.63k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.63k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.63k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.63k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.63k | _count += to_add; | 134 | 1.63k | _remain_element_capacity -= to_add; | 135 | 1.63k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.63k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.63k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.63k | return Status::OK(); | 159 | 1.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 2.13k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 2.13k | DCHECK(!_finished); | 110 | 2.13k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 2.13k | uint32_t to_add = cast_set<UInt32>( | 126 | 2.13k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 2.13k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 2.13k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 2.13k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 2.13k | _count += to_add; | 134 | 2.13k | _remain_element_capacity -= to_add; | 135 | 2.13k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 2.13k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 2.13k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 2.13k | return Status::OK(); | 159 | 2.13k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 134 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 134 | DCHECK(!_finished); | 110 | 134 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 134 | uint32_t to_add = cast_set<UInt32>( | 126 | 134 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 134 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 134 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 134 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 134 | _count += to_add; | 134 | 134 | _remain_element_capacity -= to_add; | 135 | 134 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 134 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 134 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 134 | return Status::OK(); | 159 | 134 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 4.70k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 4.70k | DCHECK(!_finished); | 110 | 4.70k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 4.70k | uint32_t to_add = cast_set<UInt32>( | 126 | 4.70k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 4.70k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 4.70k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 4.70k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 4.70k | _count += to_add; | 134 | 4.70k | _remain_element_capacity -= to_add; | 135 | 4.70k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 4.70k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 4.70k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 4.70k | return Status::OK(); | 159 | 4.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.56k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.56k | DCHECK(!_finished); | 110 | 5.56k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 5.56k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.56k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 5.56k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.56k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 5.56k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.56k | _count += to_add; | 134 | 5.56k | _remain_element_capacity -= to_add; | 135 | 5.56k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.56k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.56k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.56k | return Status::OK(); | 159 | 5.56k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 283 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 283 | DCHECK(!_finished); | 110 | 283 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 283 | uint32_t to_add = cast_set<UInt32>( | 126 | 283 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 283 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 283 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 283 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 283 | _count += to_add; | 134 | 283 | _remain_element_capacity -= to_add; | 135 | 283 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 283 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 283 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 283 | return Status::OK(); | 159 | 283 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 42 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 42 | DCHECK(!_finished); | 110 | 42 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 42 | uint32_t to_add = cast_set<UInt32>( | 126 | 42 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 42 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 42 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 42 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 42 | _count += to_add; | 134 | 42 | _remain_element_capacity -= to_add; | 135 | 42 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 42 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 42 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 42 | return Status::OK(); | 159 | 42 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.62k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.62k | DCHECK(!_finished); | 110 | 1.62k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.62k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.62k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.62k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.62k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.62k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.62k | _count += to_add; | 134 | 1.62k | _remain_element_capacity -= to_add; | 135 | 1.62k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.62k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.62k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.62k | return Status::OK(); | 159 | 1.62k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 3.28k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 3.28k | DCHECK(!_finished); | 110 | 3.28k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 3.28k | uint32_t to_add = cast_set<UInt32>( | 126 | 3.28k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 3.28k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 3.28k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 3.28k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 3.28k | _count += to_add; | 134 | 3.28k | _remain_element_capacity -= to_add; | 135 | 3.28k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 3.28k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 3.28k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 3.28k | return Status::OK(); | 159 | 3.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 3.60k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 3.60k | DCHECK(!_finished); | 110 | 3.60k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 3.60k | uint32_t to_add = cast_set<UInt32>( | 126 | 3.60k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 3.60k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 3.60k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 3.60k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 3.60k | _count += to_add; | 134 | 3.60k | _remain_element_capacity -= to_add; | 135 | 3.60k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 3.60k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 3.60k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 3.60k | return Status::OK(); | 159 | 3.60k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.06k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.06k | DCHECK(!_finished); | 110 | 1.06k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.06k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.06k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.06k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.06k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.06k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.06k | _count += to_add; | 134 | 1.06k | _remain_element_capacity -= to_add; | 135 | 1.06k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.06k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.06k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.06k | return Status::OK(); | 159 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 213 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 213 | DCHECK(!_finished); | 110 | 213 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 213 | uint32_t to_add = cast_set<UInt32>( | 126 | 213 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 213 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 213 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 213 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 213 | _count += to_add; | 134 | 213 | _remain_element_capacity -= to_add; | 135 | 213 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 213 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 213 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 213 | return Status::OK(); | 159 | 213 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 205 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 205 | DCHECK(!_finished); | 110 | 205 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 205 | uint32_t to_add = cast_set<UInt32>( | 126 | 205 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 205 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 205 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 205 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 205 | _count += to_add; | 134 | 205 | _remain_element_capacity -= to_add; | 135 | 205 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 205 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 205 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 205 | return Status::OK(); | 159 | 205 | } |
|
160 | | |
161 | 189k | Status finish(OwnedSlice* slice) override { |
162 | 189k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 189k | return Status::OK(); |
164 | 189k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 53.6k | Status finish(OwnedSlice* slice) override { | 162 | 53.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 53.6k | return Status::OK(); | 164 | 53.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.59k | Status finish(OwnedSlice* slice) override { | 162 | 8.59k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.59k | return Status::OK(); | 164 | 8.59k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.53k | Status finish(OwnedSlice* slice) override { | 162 | 1.53k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.53k | return Status::OK(); | 164 | 1.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 91.6k | Status finish(OwnedSlice* slice) override { | 162 | 91.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 91.6k | return Status::OK(); | 164 | 91.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 2.08k | Status finish(OwnedSlice* slice) override { | 162 | 2.08k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 2.08k | return Status::OK(); | 164 | 2.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.5k | Status finish(OwnedSlice* slice) override { | 162 | 10.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.5k | return Status::OK(); | 164 | 10.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.28k | Status finish(OwnedSlice* slice) override { | 162 | 1.28k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.28k | return Status::OK(); | 164 | 1.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.81k | Status finish(OwnedSlice* slice) override { | 162 | 1.81k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.81k | return Status::OK(); | 164 | 1.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 139 | Status finish(OwnedSlice* slice) override { | 162 | 139 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 139 | return Status::OK(); | 164 | 139 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 3.04k | Status finish(OwnedSlice* slice) override { | 162 | 3.04k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 3.04k | return Status::OK(); | 164 | 3.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 5.16k | Status finish(OwnedSlice* slice) override { | 162 | 5.16k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 5.16k | return Status::OK(); | 164 | 5.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 382 | Status finish(OwnedSlice* slice) override { | 162 | 382 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 383 | return Status::OK(); | 164 | 382 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 46 | Status finish(OwnedSlice* slice) override { | 162 | 46 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 46 | return Status::OK(); | 164 | 46 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.51k | Status finish(OwnedSlice* slice) override { | 162 | 1.51k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.51k | return Status::OK(); | 164 | 1.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 3.08k | Status finish(OwnedSlice* slice) override { | 162 | 3.08k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 3.08k | return Status::OK(); | 164 | 3.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 3.40k | Status finish(OwnedSlice* slice) override { | 162 | 3.40k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 3.40k | return Status::OK(); | 164 | 3.40k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 765 | Status finish(OwnedSlice* slice) override { | 162 | 765 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 765 | return Status::OK(); | 164 | 765 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 190 | Status finish(OwnedSlice* slice) override { | 162 | 190 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 190 | return Status::OK(); | 164 | 190 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 182 | Status finish(OwnedSlice* slice) override { | 162 | 182 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 182 | return Status::OK(); | 164 | 182 | } |
|
165 | | |
166 | 414k | Status reset() override { |
167 | 414k | RETURN_IF_CATCH_EXCEPTION({ |
168 | 414k | size_t block_size = _options.data_page_size; |
169 | 414k | _count = 0; |
170 | 414k | _raw_data_size = 0; |
171 | 414k | _data.clear(); |
172 | 414k | _data.reserve(block_size); |
173 | 414k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 414k | << "buffer must be naturally-aligned"; |
175 | 414k | _buffer.clear(); |
176 | 414k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 414k | _finished = false; |
178 | 414k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 414k | }); |
180 | 414k | return Status::OK(); |
181 | 414k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 145k | Status reset() override { | 167 | 145k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 145k | size_t block_size = _options.data_page_size; | 169 | 145k | _count = 0; | 170 | 145k | _raw_data_size = 0; | 171 | 145k | _data.clear(); | 172 | 145k | _data.reserve(block_size); | 173 | 145k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 145k | << "buffer must be naturally-aligned"; | 175 | 145k | _buffer.clear(); | 176 | 145k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 145k | _finished = false; | 178 | 145k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 145k | }); | 180 | 145k | return Status::OK(); | 181 | 145k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 17.2k | Status reset() override { | 167 | 17.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 17.2k | size_t block_size = _options.data_page_size; | 169 | 17.2k | _count = 0; | 170 | 17.2k | _raw_data_size = 0; | 171 | 17.2k | _data.clear(); | 172 | 17.2k | _data.reserve(block_size); | 173 | 17.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 17.2k | << "buffer must be naturally-aligned"; | 175 | 17.2k | _buffer.clear(); | 176 | 17.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 17.2k | _finished = false; | 178 | 17.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 17.2k | }); | 180 | 17.2k | return Status::OK(); | 181 | 17.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 3.10k | Status reset() override { | 167 | 3.10k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 3.10k | size_t block_size = _options.data_page_size; | 169 | 3.10k | _count = 0; | 170 | 3.10k | _raw_data_size = 0; | 171 | 3.10k | _data.clear(); | 172 | 3.10k | _data.reserve(block_size); | 173 | 3.10k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 3.10k | << "buffer must be naturally-aligned"; | 175 | 3.10k | _buffer.clear(); | 176 | 3.10k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 3.10k | _finished = false; | 178 | 3.10k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 3.10k | }); | 180 | 3.10k | return Status::OK(); | 181 | 3.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 183k | Status reset() override { | 167 | 183k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 183k | size_t block_size = _options.data_page_size; | 169 | 183k | _count = 0; | 170 | 183k | _raw_data_size = 0; | 171 | 183k | _data.clear(); | 172 | 183k | _data.reserve(block_size); | 173 | 183k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 183k | << "buffer must be naturally-aligned"; | 175 | 183k | _buffer.clear(); | 176 | 183k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 183k | _finished = false; | 178 | 183k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 183k | }); | 180 | 183k | return Status::OK(); | 181 | 183k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 4.21k | Status reset() override { | 167 | 4.21k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 4.21k | size_t block_size = _options.data_page_size; | 169 | 4.21k | _count = 0; | 170 | 4.21k | _raw_data_size = 0; | 171 | 4.21k | _data.clear(); | 172 | 4.21k | _data.reserve(block_size); | 173 | 4.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 4.21k | << "buffer must be naturally-aligned"; | 175 | 4.21k | _buffer.clear(); | 176 | 4.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 4.21k | _finished = false; | 178 | 4.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 4.21k | }); | 180 | 4.21k | return Status::OK(); | 181 | 4.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 21.0k | Status reset() override { | 167 | 21.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 21.0k | size_t block_size = _options.data_page_size; | 169 | 21.0k | _count = 0; | 170 | 21.0k | _raw_data_size = 0; | 171 | 21.0k | _data.clear(); | 172 | 21.0k | _data.reserve(block_size); | 173 | 21.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 21.0k | << "buffer must be naturally-aligned"; | 175 | 21.0k | _buffer.clear(); | 176 | 21.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 21.0k | _finished = false; | 178 | 21.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 21.0k | }); | 180 | 21.0k | return Status::OK(); | 181 | 21.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 2.56k | Status reset() override { | 167 | 2.56k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.56k | size_t block_size = _options.data_page_size; | 169 | 2.56k | _count = 0; | 170 | 2.56k | _raw_data_size = 0; | 171 | 2.56k | _data.clear(); | 172 | 2.56k | _data.reserve(block_size); | 173 | 2.56k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.56k | << "buffer must be naturally-aligned"; | 175 | 2.56k | _buffer.clear(); | 176 | 2.56k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.56k | _finished = false; | 178 | 2.56k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.56k | }); | 180 | 2.57k | return Status::OK(); | 181 | 2.56k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 3.21k | Status reset() override { | 167 | 3.21k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 3.21k | size_t block_size = _options.data_page_size; | 169 | 3.21k | _count = 0; | 170 | 3.21k | _raw_data_size = 0; | 171 | 3.21k | _data.clear(); | 172 | 3.21k | _data.reserve(block_size); | 173 | 3.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 3.21k | << "buffer must be naturally-aligned"; | 175 | 3.21k | _buffer.clear(); | 176 | 3.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 3.21k | _finished = false; | 178 | 3.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 3.21k | }); | 180 | 3.21k | return Status::OK(); | 181 | 3.21k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 266 | Status reset() override { | 167 | 266 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 266 | size_t block_size = _options.data_page_size; | 169 | 266 | _count = 0; | 170 | 266 | _raw_data_size = 0; | 171 | 266 | _data.clear(); | 172 | 266 | _data.reserve(block_size); | 173 | 266 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 266 | << "buffer must be naturally-aligned"; | 175 | 266 | _buffer.clear(); | 176 | 266 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 266 | _finished = false; | 178 | 266 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 266 | }); | 180 | 266 | return Status::OK(); | 181 | 266 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 5.89k | Status reset() override { | 167 | 5.89k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 5.89k | size_t block_size = _options.data_page_size; | 169 | 5.89k | _count = 0; | 170 | 5.89k | _raw_data_size = 0; | 171 | 5.89k | _data.clear(); | 172 | 5.89k | _data.reserve(block_size); | 173 | 5.89k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 5.89k | << "buffer must be naturally-aligned"; | 175 | 5.89k | _buffer.clear(); | 176 | 5.89k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 5.89k | _finished = false; | 178 | 5.89k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 5.89k | }); | 180 | 5.89k | return Status::OK(); | 181 | 5.89k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 9.99k | Status reset() override { | 167 | 9.99k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 9.99k | size_t block_size = _options.data_page_size; | 169 | 9.99k | _count = 0; | 170 | 9.99k | _raw_data_size = 0; | 171 | 9.99k | _data.clear(); | 172 | 9.99k | _data.reserve(block_size); | 173 | 9.99k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 9.99k | << "buffer must be naturally-aligned"; | 175 | 9.99k | _buffer.clear(); | 176 | 9.99k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 9.99k | _finished = false; | 178 | 9.99k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 9.99k | }); | 180 | 9.99k | return Status::OK(); | 181 | 9.99k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 612 | Status reset() override { | 167 | 612 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 612 | size_t block_size = _options.data_page_size; | 169 | 612 | _count = 0; | 170 | 612 | _raw_data_size = 0; | 171 | 612 | _data.clear(); | 172 | 612 | _data.reserve(block_size); | 173 | 612 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 612 | << "buffer must be naturally-aligned"; | 175 | 612 | _buffer.clear(); | 176 | 612 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 612 | _finished = false; | 178 | 612 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 612 | }); | 180 | 612 | return Status::OK(); | 181 | 612 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 179 | Status reset() override { | 167 | 179 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 179 | size_t block_size = _options.data_page_size; | 169 | 179 | _count = 0; | 170 | 179 | _raw_data_size = 0; | 171 | 179 | _data.clear(); | 172 | 179 | _data.reserve(block_size); | 173 | 179 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 179 | << "buffer must be naturally-aligned"; | 175 | 179 | _buffer.clear(); | 176 | 179 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 179 | _finished = false; | 178 | 179 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 179 | }); | 180 | 179 | return Status::OK(); | 181 | 179 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 3.03k | Status reset() override { | 167 | 3.03k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 3.03k | size_t block_size = _options.data_page_size; | 169 | 3.03k | _count = 0; | 170 | 3.03k | _raw_data_size = 0; | 171 | 3.03k | _data.clear(); | 172 | 3.03k | _data.reserve(block_size); | 173 | 3.03k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 3.03k | << "buffer must be naturally-aligned"; | 175 | 3.03k | _buffer.clear(); | 176 | 3.03k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 3.03k | _finished = false; | 178 | 3.03k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 3.03k | }); | 180 | 3.03k | return Status::OK(); | 181 | 3.03k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 5.95k | Status reset() override { | 167 | 5.95k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 5.95k | size_t block_size = _options.data_page_size; | 169 | 5.95k | _count = 0; | 170 | 5.95k | _raw_data_size = 0; | 171 | 5.95k | _data.clear(); | 172 | 5.95k | _data.reserve(block_size); | 173 | 5.95k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 5.95k | << "buffer must be naturally-aligned"; | 175 | 5.95k | _buffer.clear(); | 176 | 5.95k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 5.95k | _finished = false; | 178 | 5.95k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 5.95k | }); | 180 | 5.95k | return Status::OK(); | 181 | 5.95k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 5.87k | Status reset() override { | 167 | 5.87k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 5.87k | size_t block_size = _options.data_page_size; | 169 | 5.87k | _count = 0; | 170 | 5.87k | _raw_data_size = 0; | 171 | 5.87k | _data.clear(); | 172 | 5.87k | _data.reserve(block_size); | 173 | 5.87k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 5.87k | << "buffer must be naturally-aligned"; | 175 | 5.87k | _buffer.clear(); | 176 | 5.87k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 5.87k | _finished = false; | 178 | 5.87k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 5.87k | }); | 180 | 5.87k | return Status::OK(); | 181 | 5.87k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 1.62k | Status reset() override { | 167 | 1.62k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.62k | size_t block_size = _options.data_page_size; | 169 | 1.62k | _count = 0; | 170 | 1.62k | _raw_data_size = 0; | 171 | 1.62k | _data.clear(); | 172 | 1.62k | _data.reserve(block_size); | 173 | 1.62k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.62k | << "buffer must be naturally-aligned"; | 175 | 1.62k | _buffer.clear(); | 176 | 1.62k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.62k | _finished = false; | 178 | 1.62k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.62k | }); | 180 | 1.62k | return Status::OK(); | 181 | 1.62k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 466 | Status reset() override { | 167 | 466 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 466 | size_t block_size = _options.data_page_size; | 169 | 466 | _count = 0; | 170 | 466 | _raw_data_size = 0; | 171 | 466 | _data.clear(); | 172 | 466 | _data.reserve(block_size); | 173 | 466 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 466 | << "buffer must be naturally-aligned"; | 175 | 466 | _buffer.clear(); | 176 | 466 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 466 | _finished = false; | 178 | 466 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 466 | }); | 180 | 467 | return Status::OK(); | 181 | 466 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 451 | Status reset() override { | 167 | 451 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 451 | size_t block_size = _options.data_page_size; | 169 | 451 | _count = 0; | 170 | 451 | _raw_data_size = 0; | 171 | 451 | _data.clear(); | 172 | 451 | _data.reserve(block_size); | 173 | 451 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 451 | << "buffer must be naturally-aligned"; | 175 | 451 | _buffer.clear(); | 176 | 451 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 451 | _finished = false; | 178 | 451 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 451 | }); | 180 | 451 | return Status::OK(); | 181 | 451 | } |
|
182 | | |
183 | 3 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 3 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv |
184 | | |
185 | 13.1k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 8.99k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 1.25k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 412 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 203 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 274 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 194 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 178 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 361 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 615 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 13 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 14 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 144 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 366 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv |
186 | | |
187 | 150k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 14.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.59k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.53k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 91.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 2.08k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.28k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.81k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 139 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 3.04k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 5.16k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 382 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 46 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.51k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 3.08k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 3.40k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 765 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 190 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 182 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 187k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 53.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.64k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.57k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 91.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2.13k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.28k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.39k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 127 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2.84k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 4.82k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 229 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 133 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.51k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2.86k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2.47k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 860 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 276 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 269 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 189k | OwnedSlice _finish(int final_size_of_type) { |
194 | 189k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 189k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 189k | int padding_elems = num_elems_after_padding - _count; |
199 | 189k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 7.10M | for (int i = 0; i < padding_bytes; i++) { |
201 | 6.91M | _data.push_back(0); |
202 | 6.91M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 189k | _buffer.resize( |
206 | 189k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 189k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 189k | int64_t bytes = |
210 | 189k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 189k | num_elems_after_padding, final_size_of_type, 0); |
212 | 189k | if (bytes < 0) [[unlikely]] { |
213 | | // This means the bitshuffle function fails. |
214 | | // Ideally, this should not happen. |
215 | 0 | warn_with_bitshuffle_error(bytes); |
216 | | // It does not matter what will be returned here, |
217 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
218 | 0 | return OwnedSlice(); |
219 | 0 | } |
220 | | // update header |
221 | 189k | encode_fixed32_le(&_buffer[0], _count); |
222 | 189k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 189k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 189k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 189k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 189k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 189k | return _buffer.build(); |
229 | 189k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 53.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 53.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 53.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 53.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 53.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 872k | for (int i = 0; i < padding_bytes; i++) { | 201 | 818k | _data.push_back(0); | 202 | 818k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 53.6k | _buffer.resize( | 206 | 53.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 53.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 53.6k | int64_t bytes = | 210 | 53.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 53.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 53.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 53.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 53.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 53.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 53.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 53.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 53.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 53.6k | return _buffer.build(); | 229 | 53.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 8.59k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.59k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.59k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.59k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.59k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 42.1k | _data.push_back(0); | 202 | 42.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.59k | _buffer.resize( | 206 | 8.59k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.59k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.59k | int64_t bytes = | 210 | 8.59k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.59k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.59k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 8.59k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.59k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.59k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.59k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.59k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.59k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.59k | return _buffer.build(); | 229 | 8.59k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 1.53k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.53k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.53k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.53k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.53k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.1k | _data.push_back(0); | 202 | 12.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.53k | _buffer.resize( | 206 | 1.53k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.53k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.53k | int64_t bytes = | 210 | 1.53k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.53k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.53k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.53k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.53k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.53k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.53k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.53k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.53k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.53k | return _buffer.build(); | 229 | 1.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 91.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 91.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 91.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 91.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 91.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.86M | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.77M | _data.push_back(0); | 202 | 4.77M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 91.6k | _buffer.resize( | 206 | 91.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 91.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 91.6k | int64_t bytes = | 210 | 91.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 91.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 91.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 91.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 91.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 91.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 91.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 91.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 91.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 91.6k | return _buffer.build(); | 229 | 91.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 2.08k | OwnedSlice _finish(int final_size_of_type) { | 194 | 2.08k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 2.08k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 2.08k | int padding_elems = num_elems_after_padding - _count; | 199 | 2.08k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 114k | for (int i = 0; i < padding_bytes; i++) { | 201 | 112k | _data.push_back(0); | 202 | 112k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 2.08k | _buffer.resize( | 206 | 2.08k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 2.08k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 2.08k | int64_t bytes = | 210 | 2.08k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 2.08k | num_elems_after_padding, final_size_of_type, 0); | 212 | 2.08k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 2.08k | encode_fixed32_le(&_buffer[0], _count); | 222 | 2.08k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 2.08k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 2.08k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 2.08k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 2.08k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 2.08k | return _buffer.build(); | 229 | 2.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 10.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 463k | for (int i = 0; i < padding_bytes; i++) { | 201 | 452k | _data.push_back(0); | 202 | 452k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.5k | _buffer.resize( | 206 | 10.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.5k | int64_t bytes = | 210 | 10.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 10.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.5k | return _buffer.build(); | 229 | 10.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 1.28k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.28k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.28k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.28k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.28k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 19.5k | for (int i = 0; i < padding_bytes; i++) { | 201 | 18.2k | _data.push_back(0); | 202 | 18.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.28k | _buffer.resize( | 206 | 1.28k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.28k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.28k | int64_t bytes = | 210 | 1.28k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.28k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.28k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.28k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.28k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.28k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.28k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.28k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.28k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.28k | return _buffer.build(); | 229 | 1.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 1.81k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.81k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.81k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.81k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.81k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 43.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 41.8k | _data.push_back(0); | 202 | 41.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.81k | _buffer.resize( | 206 | 1.81k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.81k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.81k | int64_t bytes = | 210 | 1.81k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.81k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.81k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.81k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.81k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.81k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.81k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.81k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.81k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.81k | return _buffer.build(); | 229 | 1.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 139 | OwnedSlice _finish(int final_size_of_type) { | 194 | 139 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 139 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 139 | int padding_elems = num_elems_after_padding - _count; | 199 | 139 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.46k | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.32k | _data.push_back(0); | 202 | 1.32k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 139 | _buffer.resize( | 206 | 139 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 139 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 139 | int64_t bytes = | 210 | 139 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 139 | num_elems_after_padding, final_size_of_type, 0); | 212 | 139 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 139 | encode_fixed32_le(&_buffer[0], _count); | 222 | 139 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 139 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 139 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 139 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 139 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 139 | return _buffer.build(); | 229 | 139 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 3.04k | OwnedSlice _finish(int final_size_of_type) { | 194 | 3.04k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 3.04k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 3.04k | int padding_elems = num_elems_after_padding - _count; | 199 | 3.04k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 49.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 46.0k | _data.push_back(0); | 202 | 46.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 3.04k | _buffer.resize( | 206 | 3.04k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 3.04k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 3.04k | int64_t bytes = | 210 | 3.04k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 3.04k | num_elems_after_padding, final_size_of_type, 0); | 212 | 3.04k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 3.04k | encode_fixed32_le(&_buffer[0], _count); | 222 | 3.04k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 3.04k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 3.04k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 3.04k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 3.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 3.04k | return _buffer.build(); | 229 | 3.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 5.16k | OwnedSlice _finish(int final_size_of_type) { | 194 | 5.16k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 5.16k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 5.16k | int padding_elems = num_elems_after_padding - _count; | 199 | 5.16k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 164k | for (int i = 0; i < padding_bytes; i++) { | 201 | 158k | _data.push_back(0); | 202 | 158k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 5.16k | _buffer.resize( | 206 | 5.16k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 5.16k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 5.16k | int64_t bytes = | 210 | 5.16k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 5.16k | num_elems_after_padding, final_size_of_type, 0); | 212 | 5.16k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 5.16k | encode_fixed32_le(&_buffer[0], _count); | 222 | 5.16k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 5.16k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 5.16k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 5.16k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 5.16k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 5.16k | return _buffer.build(); | 229 | 5.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 382 | OwnedSlice _finish(int final_size_of_type) { | 194 | 382 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 382 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 382 | int padding_elems = num_elems_after_padding - _count; | 199 | 382 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.01k | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.63k | _data.push_back(0); | 202 | 3.63k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 382 | _buffer.resize( | 206 | 382 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 382 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 382 | int64_t bytes = | 210 | 382 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 382 | num_elems_after_padding, final_size_of_type, 0); | 212 | 382 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 382 | encode_fixed32_le(&_buffer[0], _count); | 222 | 382 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 382 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 382 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 382 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 382 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 382 | return _buffer.build(); | 229 | 382 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 46 | OwnedSlice _finish(int final_size_of_type) { | 194 | 46 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 46 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 46 | int padding_elems = num_elems_after_padding - _count; | 199 | 46 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.13k | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.08k | _data.push_back(0); | 202 | 2.08k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 46 | _buffer.resize( | 206 | 46 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 46 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 46 | int64_t bytes = | 210 | 46 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 46 | num_elems_after_padding, final_size_of_type, 0); | 212 | 46 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 46 | encode_fixed32_le(&_buffer[0], _count); | 222 | 46 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 46 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 46 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 46 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 46 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 46 | return _buffer.build(); | 229 | 46 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 1.51k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.51k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.51k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.51k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.51k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 34.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 32.6k | _data.push_back(0); | 202 | 32.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.51k | _buffer.resize( | 206 | 1.51k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.51k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.51k | int64_t bytes = | 210 | 1.51k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.51k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.51k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.51k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.51k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.51k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.51k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.51k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.51k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.51k | return _buffer.build(); | 229 | 1.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 3.08k | OwnedSlice _finish(int final_size_of_type) { | 194 | 3.08k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 3.08k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 3.08k | int padding_elems = num_elems_after_padding - _count; | 199 | 3.08k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 113k | for (int i = 0; i < padding_bytes; i++) { | 201 | 110k | _data.push_back(0); | 202 | 110k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 3.08k | _buffer.resize( | 206 | 3.08k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 3.08k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 3.08k | int64_t bytes = | 210 | 3.08k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 3.08k | num_elems_after_padding, final_size_of_type, 0); | 212 | 3.08k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 3.08k | encode_fixed32_le(&_buffer[0], _count); | 222 | 3.08k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 3.08k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 3.08k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 3.08k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 3.08k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 3.08k | return _buffer.build(); | 229 | 3.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 3.40k | OwnedSlice _finish(int final_size_of_type) { | 194 | 3.40k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 3.40k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 3.40k | int padding_elems = num_elems_after_padding - _count; | 199 | 3.40k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 160k | for (int i = 0; i < padding_bytes; i++) { | 201 | 156k | _data.push_back(0); | 202 | 156k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 3.40k | _buffer.resize( | 206 | 3.40k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 3.40k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 3.40k | int64_t bytes = | 210 | 3.40k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 3.40k | num_elems_after_padding, final_size_of_type, 0); | 212 | 3.40k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 3.40k | encode_fixed32_le(&_buffer[0], _count); | 222 | 3.40k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 3.40k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 3.40k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 3.40k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 3.40k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 3.40k | return _buffer.build(); | 229 | 3.40k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 765 | OwnedSlice _finish(int final_size_of_type) { | 194 | 765 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 765 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 765 | int padding_elems = num_elems_after_padding - _count; | 199 | 765 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 113k | for (int i = 0; i < padding_bytes; i++) { | 201 | 112k | _data.push_back(0); | 202 | 112k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 765 | _buffer.resize( | 206 | 765 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 765 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 765 | int64_t bytes = | 210 | 765 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 765 | num_elems_after_padding, final_size_of_type, 0); | 212 | 765 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 765 | encode_fixed32_le(&_buffer[0], _count); | 222 | 765 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 765 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 765 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 765 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 765 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 765 | return _buffer.build(); | 229 | 765 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 190 | OwnedSlice _finish(int final_size_of_type) { | 194 | 190 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 190 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 190 | int padding_elems = num_elems_after_padding - _count; | 199 | 190 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.60k | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.41k | _data.push_back(0); | 202 | 3.41k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 190 | _buffer.resize( | 206 | 190 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 190 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 190 | int64_t bytes = | 210 | 190 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 190 | num_elems_after_padding, final_size_of_type, 0); | 212 | 190 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 190 | encode_fixed32_le(&_buffer[0], _count); | 222 | 190 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 190 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 190 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 190 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 190 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 190 | return _buffer.build(); | 229 | 190 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 182 | OwnedSlice _finish(int final_size_of_type) { | 194 | 182 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 182 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 182 | int padding_elems = num_elems_after_padding - _count; | 199 | 182 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 13.1k | _data.push_back(0); | 202 | 13.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 182 | _buffer.resize( | 206 | 182 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 182 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 182 | int64_t bytes = | 210 | 182 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 182 | num_elems_after_padding, final_size_of_type, 0); | 212 | 182 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 182 | encode_fixed32_le(&_buffer[0], _count); | 222 | 182 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 182 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 182 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 182 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 182 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 182 | return _buffer.build(); | 229 | 182 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 225k | int& size_of_element) { |
253 | 225k | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 225k | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 225k | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 225k | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 225k | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 225k | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 225k | switch (size_of_element) { |
271 | 16.8k | case 1: |
272 | 18.4k | case 2: |
273 | 20.8k | case 3: |
274 | 138k | case 4: |
275 | 198k | case 8: |
276 | 198k | case 12: |
277 | 225k | case 16: |
278 | 226k | case 32: |
279 | 226k | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 225k | } |
283 | 226k | return Status::OK(); |
284 | 225k | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 113k | : _data(data), |
291 | 113k | _options(options), |
292 | 113k | _parsed(false), |
293 | 113k | _num_elements(0), |
294 | 113k | _num_element_after_padding(0), |
295 | 113k | _size_of_element(0), |
296 | 113k | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 52.7k | : _data(data), | 291 | 52.7k | _options(options), | 292 | 52.7k | _parsed(false), | 293 | 52.7k | _num_elements(0), | 294 | 52.7k | _num_element_after_padding(0), | 295 | 52.7k | _size_of_element(0), | 296 | 52.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 8.43k | : _data(data), | 291 | 8.43k | _options(options), | 292 | 8.43k | _parsed(false), | 293 | 8.43k | _num_elements(0), | 294 | 8.43k | _num_element_after_padding(0), | 295 | 8.43k | _size_of_element(0), | 296 | 8.43k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 773 | : _data(data), | 291 | 773 | _options(options), | 292 | 773 | _parsed(false), | 293 | 773 | _num_elements(0), | 294 | 773 | _num_element_after_padding(0), | 295 | 773 | _size_of_element(0), | 296 | 773 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.22k | : _data(data), | 291 | 3.22k | _options(options), | 292 | 3.22k | _parsed(false), | 293 | 3.22k | _num_elements(0), | 294 | 3.22k | _num_element_after_padding(0), | 295 | 3.22k | _size_of_element(0), | 296 | 3.22k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.68k | : _data(data), | 291 | 1.68k | _options(options), | 292 | 1.68k | _parsed(false), | 293 | 1.68k | _num_elements(0), | 294 | 1.68k | _num_element_after_padding(0), | 295 | 1.68k | _size_of_element(0), | 296 | 1.68k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 7.07k | : _data(data), | 291 | 7.07k | _options(options), | 292 | 7.07k | _parsed(false), | 293 | 7.07k | _num_elements(0), | 294 | 7.07k | _num_element_after_padding(0), | 295 | 7.07k | _size_of_element(0), | 296 | 7.07k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.85k | : _data(data), | 291 | 1.85k | _options(options), | 292 | 1.85k | _parsed(false), | 293 | 1.85k | _num_elements(0), | 294 | 1.85k | _num_element_after_padding(0), | 295 | 1.85k | _size_of_element(0), | 296 | 1.85k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.07k | : _data(data), | 291 | 3.07k | _options(options), | 292 | 3.07k | _parsed(false), | 293 | 3.07k | _num_elements(0), | 294 | 3.07k | _num_element_after_padding(0), | 295 | 3.07k | _size_of_element(0), | 296 | 3.07k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.22k | : _data(data), | 291 | 1.22k | _options(options), | 292 | 1.22k | _parsed(false), | 293 | 1.22k | _num_elements(0), | 294 | 1.22k | _num_element_after_padding(0), | 295 | 1.22k | _size_of_element(0), | 296 | 1.22k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.75k | : _data(data), | 291 | 3.75k | _options(options), | 292 | 3.75k | _parsed(false), | 293 | 3.75k | _num_elements(0), | 294 | 3.75k | _num_element_after_padding(0), | 295 | 3.75k | _size_of_element(0), | 296 | 3.75k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.2k | : _data(data), | 291 | 13.2k | _options(options), | 292 | 13.2k | _parsed(false), | 293 | 13.2k | _num_elements(0), | 294 | 13.2k | _num_element_after_padding(0), | 295 | 13.2k | _size_of_element(0), | 296 | 13.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.11k | : _data(data), | 291 | 2.11k | _options(options), | 292 | 2.11k | _parsed(false), | 293 | 2.11k | _num_elements(0), | 294 | 2.11k | _num_element_after_padding(0), | 295 | 2.11k | _size_of_element(0), | 296 | 2.11k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 138 | : _data(data), | 291 | 138 | _options(options), | 292 | 138 | _parsed(false), | 293 | 138 | _num_elements(0), | 294 | 138 | _num_element_after_padding(0), | 295 | 138 | _size_of_element(0), | 296 | 138 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 367 | : _data(data), | 291 | 367 | _options(options), | 292 | 367 | _parsed(false), | 293 | 367 | _num_elements(0), | 294 | 367 | _num_element_after_padding(0), | 295 | 367 | _size_of_element(0), | 296 | 367 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.18k | : _data(data), | 291 | 1.18k | _options(options), | 292 | 1.18k | _parsed(false), | 293 | 1.18k | _num_elements(0), | 294 | 1.18k | _num_element_after_padding(0), | 295 | 1.18k | _size_of_element(0), | 296 | 1.18k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 11.8k | : _data(data), | 291 | 11.8k | _options(options), | 292 | 11.8k | _parsed(false), | 293 | 11.8k | _num_elements(0), | 294 | 11.8k | _num_element_after_padding(0), | 295 | 11.8k | _size_of_element(0), | 296 | 11.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 67 | : _data(data), | 291 | 67 | _options(options), | 292 | 67 | _parsed(false), | 293 | 67 | _num_elements(0), | 294 | 67 | _num_element_after_padding(0), | 295 | 67 | _size_of_element(0), | 296 | 67 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 100 | : _data(data), | 291 | 100 | _options(options), | 292 | 100 | _parsed(false), | 293 | 100 | _num_elements(0), | 294 | 100 | _num_element_after_padding(0), | 295 | 100 | _size_of_element(0), | 296 | 100 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 72 | : _data(data), | 291 | 72 | _options(options), | 292 | 72 | _parsed(false), | 293 | 72 | _num_elements(0), | 294 | 72 | _num_element_after_padding(0), | 295 | 72 | _size_of_element(0), | 296 | 72 | _cur_index(0) {} |
|
297 | | |
298 | 113k | Status init() override { |
299 | 113k | CHECK(!_parsed); |
300 | 113k | size_t unused; |
301 | 113k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 113k | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 113k | if (_data.size != |
305 | 113k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 0 | std::stringstream ss; |
307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 0 | return Status::InternalError(ss.str()); |
311 | 0 | } |
312 | | |
313 | | // Currently, only the UINT32 block encoder supports expanding size: |
314 | 113k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 113k | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 113k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 113k | _parsed = true; |
325 | 113k | return Status::OK(); |
326 | 113k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 52.7k | Status init() override { | 299 | 52.7k | CHECK(!_parsed); | 300 | 52.7k | size_t unused; | 301 | 52.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 52.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 52.7k | if (_data.size != | 305 | 52.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 52.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 52.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 52.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 52.7k | _parsed = true; | 325 | 52.7k | return Status::OK(); | 326 | 52.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 8.43k | Status init() override { | 299 | 8.43k | CHECK(!_parsed); | 300 | 8.43k | size_t unused; | 301 | 8.43k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 8.43k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 8.43k | if (_data.size != | 305 | 8.43k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 8.43k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 8.43k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 8.43k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 8.43k | _parsed = true; | 325 | 8.43k | return Status::OK(); | 326 | 8.43k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 773 | Status init() override { | 299 | 773 | CHECK(!_parsed); | 300 | 773 | size_t unused; | 301 | 773 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 773 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 773 | if (_data.size != | 305 | 773 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 773 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 773 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 773 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 773 | _parsed = true; | 325 | 773 | return Status::OK(); | 326 | 773 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 3.22k | Status init() override { | 299 | 3.22k | CHECK(!_parsed); | 300 | 3.22k | size_t unused; | 301 | 3.22k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.22k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.22k | if (_data.size != | 305 | 3.22k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.22k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.22k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.22k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.22k | _parsed = true; | 325 | 3.22k | return Status::OK(); | 326 | 3.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 1.68k | Status init() override { | 299 | 1.68k | CHECK(!_parsed); | 300 | 1.68k | size_t unused; | 301 | 1.68k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.68k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.68k | if (_data.size != | 305 | 1.68k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.68k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.68k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.68k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.68k | _parsed = true; | 325 | 1.68k | return Status::OK(); | 326 | 1.68k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 7.07k | Status init() override { | 299 | 7.07k | CHECK(!_parsed); | 300 | 7.07k | size_t unused; | 301 | 7.07k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 7.07k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 7.07k | if (_data.size != | 305 | 7.07k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 7.07k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 7.07k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 7.07k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 7.07k | _parsed = true; | 325 | 7.07k | return Status::OK(); | 326 | 7.07k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 1.85k | Status init() override { | 299 | 1.85k | CHECK(!_parsed); | 300 | 1.85k | size_t unused; | 301 | 1.85k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.85k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.85k | if (_data.size != | 305 | 1.85k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.85k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.85k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.85k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.85k | _parsed = true; | 325 | 1.85k | return Status::OK(); | 326 | 1.85k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 3.07k | Status init() override { | 299 | 3.07k | CHECK(!_parsed); | 300 | 3.07k | size_t unused; | 301 | 3.07k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.07k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.07k | if (_data.size != | 305 | 3.07k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.07k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.07k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.07k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.07k | _parsed = true; | 325 | 3.07k | return Status::OK(); | 326 | 3.07k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.22k | Status init() override { | 299 | 1.22k | CHECK(!_parsed); | 300 | 1.22k | size_t unused; | 301 | 1.22k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.22k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.22k | if (_data.size != | 305 | 1.22k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.22k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.22k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.22k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.22k | _parsed = true; | 325 | 1.22k | return Status::OK(); | 326 | 1.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 3.75k | Status init() override { | 299 | 3.75k | CHECK(!_parsed); | 300 | 3.75k | size_t unused; | 301 | 3.75k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.75k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.75k | if (_data.size != | 305 | 3.75k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.75k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.75k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.75k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.75k | _parsed = true; | 325 | 3.75k | return Status::OK(); | 326 | 3.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 13.2k | Status init() override { | 299 | 13.2k | CHECK(!_parsed); | 300 | 13.2k | size_t unused; | 301 | 13.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.2k | if (_data.size != | 305 | 13.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 13.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 13.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 13.2k | _parsed = true; | 325 | 13.2k | return Status::OK(); | 326 | 13.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.11k | Status init() override { | 299 | 2.11k | CHECK(!_parsed); | 300 | 2.11k | size_t unused; | 301 | 2.11k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.11k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.11k | if (_data.size != | 305 | 2.11k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.11k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.11k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.11k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.11k | _parsed = true; | 325 | 2.11k | return Status::OK(); | 326 | 2.11k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 138 | Status init() override { | 299 | 138 | CHECK(!_parsed); | 300 | 138 | size_t unused; | 301 | 138 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 138 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 138 | if (_data.size != | 305 | 138 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 138 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 138 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 138 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 138 | _parsed = true; | 325 | 138 | return Status::OK(); | 326 | 138 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 367 | Status init() override { | 299 | 367 | CHECK(!_parsed); | 300 | 367 | size_t unused; | 301 | 367 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 367 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 367 | if (_data.size != | 305 | 367 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 367 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 367 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 367 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 367 | _parsed = true; | 325 | 367 | return Status::OK(); | 326 | 367 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 1.18k | Status init() override { | 299 | 1.18k | CHECK(!_parsed); | 300 | 1.18k | size_t unused; | 301 | 1.18k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.18k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.18k | if (_data.size != | 305 | 1.18k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.18k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.18k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.18k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.18k | _parsed = true; | 325 | 1.18k | return Status::OK(); | 326 | 1.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 11.8k | Status init() override { | 299 | 11.8k | CHECK(!_parsed); | 300 | 11.8k | size_t unused; | 301 | 11.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 11.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 11.8k | if (_data.size != | 305 | 11.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 11.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 11.8k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 11.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 11.8k | _parsed = true; | 325 | 11.8k | return Status::OK(); | 326 | 11.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 67 | Status init() override { | 299 | 67 | CHECK(!_parsed); | 300 | 67 | size_t unused; | 301 | 67 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 67 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 67 | if (_data.size != | 305 | 67 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 67 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 67 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 67 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 67 | _parsed = true; | 325 | 67 | return Status::OK(); | 326 | 67 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 100 | Status init() override { | 299 | 100 | CHECK(!_parsed); | 300 | 100 | size_t unused; | 301 | 100 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 100 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 100 | if (_data.size != | 305 | 100 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 100 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 100 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 100 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 100 | _parsed = true; | 325 | 100 | return Status::OK(); | 326 | 100 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 72 | Status init() override { | 299 | 72 | CHECK(!_parsed); | 300 | 72 | size_t unused; | 301 | 72 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 72 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 72 | if (_data.size != | 305 | 72 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 72 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 72 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 72 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 72 | _parsed = true; | 325 | 72 | return Status::OK(); | 326 | 72 | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 1.97M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 1.97M | if (_num_elements == 0) [[unlikely]] { |
337 | 1.32k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 1.32k | } |
342 | | |
343 | 1.97M | DCHECK_LE(pos, _num_elements); |
344 | 1.97M | _cur_index = pos; |
345 | 1.97M | return Status::OK(); |
346 | 1.97M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 723k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 723k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.28k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1.28k | } | 342 | | | 343 | 723k | DCHECK_LE(pos, _num_elements); | 344 | 723k | _cur_index = pos; | 345 | 723k | return Status::OK(); | 346 | 723k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 11.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 11.7k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 11.7k | DCHECK_LE(pos, _num_elements); | 344 | 11.7k | _cur_index = pos; | 345 | 11.7k | return Status::OK(); | 346 | 11.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 207 | Status seek_to_position_in_page(size_t pos) override { | 335 | 207 | DCHECK(_parsed) << "Must call init()"; | 336 | 207 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 207 | DCHECK_LE(pos, _num_elements); | 344 | 207 | _cur_index = pos; | 345 | 207 | return Status::OK(); | 346 | 207 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.69k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.69k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.69k | if (_num_elements == 0) [[unlikely]] { | 337 | 7 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 7 | } | 342 | | | 343 | 1.69k | DCHECK_LE(pos, _num_elements); | 344 | 1.69k | _cur_index = pos; | 345 | 1.69k | return Status::OK(); | 346 | 1.69k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 698 | Status seek_to_position_in_page(size_t pos) override { | 335 | 698 | DCHECK(_parsed) << "Must call init()"; | 336 | 698 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 698 | DCHECK_LE(pos, _num_elements); | 344 | 698 | _cur_index = pos; | 345 | 698 | return Status::OK(); | 346 | 698 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 404 | Status seek_to_position_in_page(size_t pos) override { | 335 | 404 | DCHECK(_parsed) << "Must call init()"; | 336 | 404 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 404 | DCHECK_LE(pos, _num_elements); | 344 | 404 | _cur_index = pos; | 345 | 404 | return Status::OK(); | 346 | 404 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 227k | Status seek_to_position_in_page(size_t pos) override { | 335 | 227k | DCHECK(_parsed) << "Must call init()"; | 336 | 227k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 227k | DCHECK_LE(pos, _num_elements); | 344 | 227k | _cur_index = pos; | 345 | 227k | return Status::OK(); | 346 | 227k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 201k | Status seek_to_position_in_page(size_t pos) override { | 335 | 201k | DCHECK(_parsed) << "Must call init()"; | 336 | 201k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 201k | DCHECK_LE(pos, _num_elements); | 344 | 201k | _cur_index = pos; | 345 | 201k | return Status::OK(); | 346 | 201k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 212k | Status seek_to_position_in_page(size_t pos) override { | 335 | 212k | DCHECK(_parsed) << "Must call init()"; | 336 | 212k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 212k | DCHECK_LE(pos, _num_elements); | 344 | 212k | _cur_index = pos; | 345 | 212k | return Status::OK(); | 346 | 212k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 222k | Status seek_to_position_in_page(size_t pos) override { | 335 | 222k | DCHECK(_parsed) << "Must call init()"; | 336 | 222k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 222k | DCHECK_LE(pos, _num_elements); | 344 | 222k | _cur_index = pos; | 345 | 222k | return Status::OK(); | 346 | 222k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 61.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 61.1k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 61.1k | DCHECK_LE(pos, _num_elements); | 344 | 61.1k | _cur_index = pos; | 345 | 61.1k | return Status::OK(); | 346 | 61.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 201k | Status seek_to_position_in_page(size_t pos) override { | 335 | 201k | DCHECK(_parsed) << "Must call init()"; | 336 | 201k | if (_num_elements == 0) [[unlikely]] { | 337 | 16 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 16 | } | 342 | | | 343 | 201k | DCHECK_LE(pos, _num_elements); | 344 | 201k | _cur_index = pos; | 345 | 201k | return Status::OK(); | 346 | 201k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 99 | Status seek_to_position_in_page(size_t pos) override { | 335 | 99 | DCHECK(_parsed) << "Must call init()"; | 336 | 99 | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 12 | } | 342 | | | 343 | 99 | DCHECK_LE(pos, _num_elements); | 344 | 99 | _cur_index = pos; | 345 | 99 | return Status::OK(); | 346 | 99 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13 | Status seek_to_position_in_page(size_t pos) override { | 335 | 13 | DCHECK(_parsed) << "Must call init()"; | 336 | 13 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 13 | DCHECK_LE(pos, _num_elements); | 344 | 13 | _cur_index = pos; | 345 | 13 | return Status::OK(); | 346 | 13 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13 | Status seek_to_position_in_page(size_t pos) override { | 335 | 13 | DCHECK(_parsed) << "Must call init()"; | 336 | 13 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 13 | DCHECK_LE(pos, _num_elements); | 344 | 13 | _cur_index = pos; | 345 | 13 | return Status::OK(); | 346 | 13 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 112k | Status seek_to_position_in_page(size_t pos) override { | 335 | 112k | DCHECK(_parsed) << "Must call init()"; | 336 | 112k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 112k | DCHECK_LE(pos, _num_elements); | 344 | 112k | _cur_index = pos; | 345 | 112k | return Status::OK(); | 346 | 112k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 4 | Status seek_to_position_in_page(size_t pos) override { | 335 | 4 | DCHECK(_parsed) << "Must call init()"; | 336 | 4 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 4 | DCHECK_LE(pos, _num_elements); | 344 | 4 | _cur_index = pos; | 345 | 4 | return Status::OK(); | 346 | 4 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6 | Status seek_to_position_in_page(size_t pos) override { | 335 | 6 | DCHECK(_parsed) << "Must call init()"; | 336 | 6 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 6 | DCHECK_LE(pos, _num_elements); | 344 | 6 | _cur_index = pos; | 345 | 6 | return Status::OK(); | 346 | 6 | } |
|
347 | | |
348 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | |
|
351 | 0 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 0 | size_t left = 0; |
356 | 0 | size_t right = _num_elements; |
357 | |
|
358 | 0 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 0 | while (left < right) { |
364 | 0 | size_t mid = left + (right - left) / 2; |
365 | 0 | mid_value = get_data(mid); |
366 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 0 | left = mid + 1; |
368 | 0 | } else { |
369 | 0 | right = mid; |
370 | 0 | } |
371 | 0 | } |
372 | 0 | if (left >= _num_elements) { |
373 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 0 | } |
375 | 0 | void* find_value = get_data(left); |
376 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 0 | *exact_match = true; |
378 | 0 | } else { |
379 | 0 | *exact_match = false; |
380 | 0 | } |
381 | |
|
382 | 0 | _cur_index = left; |
383 | 0 | return Status::OK(); |
384 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb |
385 | | |
386 | | template <bool forward_index = true> |
387 | 123k | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 123k | DCHECK(_parsed); |
389 | 123k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 123k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
395 | | |
396 | 123k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 123k | *n = max_fetch; |
398 | 123k | if constexpr (forward_index) { |
399 | 115k | _cur_index += max_fetch; |
400 | 115k | } |
401 | | |
402 | 123k | return Status::OK(); |
403 | 123k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 25.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 25.5k | DCHECK(_parsed); | 389 | 25.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 25.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 25.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 25.5k | *n = max_fetch; | 398 | 25.5k | if constexpr (forward_index) { | 399 | 25.5k | _cur_index += max_fetch; | 400 | 25.5k | } | 401 | | | 402 | 25.5k | return Status::OK(); | 403 | 25.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 20.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20.7k | DCHECK(_parsed); | 389 | 20.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 20.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20.7k | *n = max_fetch; | 398 | 20.7k | if constexpr (forward_index) { | 399 | 20.7k | _cur_index += max_fetch; | 400 | 20.7k | } | 401 | | | 402 | 20.7k | return Status::OK(); | 403 | 20.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 840 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 840 | DCHECK(_parsed); | 389 | 840 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 840 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 840 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 840 | *n = max_fetch; | 398 | 840 | if constexpr (forward_index) { | 399 | 840 | _cur_index += max_fetch; | 400 | 840 | } | 401 | | | 402 | 840 | return Status::OK(); | 403 | 840 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.10k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.10k | DCHECK(_parsed); | 389 | 8.10k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.10k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 8.10k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.10k | *n = max_fetch; | 398 | 8.10k | if constexpr (forward_index) { | 399 | 8.10k | _cur_index += max_fetch; | 400 | 8.10k | } | 401 | | | 402 | 8.10k | return Status::OK(); | 403 | 8.10k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.68k | DCHECK(_parsed); | 389 | 1.68k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.68k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.68k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.68k | *n = max_fetch; | 398 | 1.68k | if constexpr (forward_index) { | 399 | 1.68k | _cur_index += max_fetch; | 400 | 1.68k | } | 401 | | | 402 | 1.68k | return Status::OK(); | 403 | 1.68k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.59k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.59k | DCHECK(_parsed); | 389 | 7.59k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.59k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 7.59k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.59k | *n = max_fetch; | 398 | 7.59k | if constexpr (forward_index) { | 399 | 7.59k | _cur_index += max_fetch; | 400 | 7.59k | } | 401 | | | 402 | 7.59k | return Status::OK(); | 403 | 7.59k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.85k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.85k | DCHECK(_parsed); | 389 | 7.85k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.85k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 7.85k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.85k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 7.85k | return Status::OK(); | 403 | 7.85k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.10k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.10k | DCHECK(_parsed); | 389 | 1.10k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.10k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.10k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.10k | *n = max_fetch; | 398 | 1.10k | if constexpr (forward_index) { | 399 | 1.10k | _cur_index += max_fetch; | 400 | 1.10k | } | 401 | | | 402 | 1.10k | return Status::OK(); | 403 | 1.10k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.81k | DCHECK(_parsed); | 389 | 1.81k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.81k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.81k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.81k | *n = max_fetch; | 398 | 1.81k | if constexpr (forward_index) { | 399 | 1.81k | _cur_index += max_fetch; | 400 | 1.81k | } | 401 | | | 402 | 1.81k | return Status::OK(); | 403 | 1.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 597 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 597 | DCHECK(_parsed); | 389 | 597 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 597 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 597 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 597 | *n = max_fetch; | 398 | 597 | if constexpr (forward_index) { | 399 | 597 | _cur_index += max_fetch; | 400 | 597 | } | 401 | | | 402 | 597 | return Status::OK(); | 403 | 597 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 5.62k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 5.62k | DCHECK(_parsed); | 389 | 5.62k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 5.62k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 5.62k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 5.62k | *n = max_fetch; | 398 | 5.62k | if constexpr (forward_index) { | 399 | 5.62k | _cur_index += max_fetch; | 400 | 5.62k | } | 401 | | | 402 | 5.62k | return Status::OK(); | 403 | 5.62k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 32.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 32.2k | DCHECK(_parsed); | 389 | 32.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 32.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 32.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 32.2k | *n = max_fetch; | 398 | 32.2k | if constexpr (forward_index) { | 399 | 32.2k | _cur_index += max_fetch; | 400 | 32.2k | } | 401 | | | 402 | 32.2k | return Status::OK(); | 403 | 32.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.27k | DCHECK(_parsed); | 389 | 1.27k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.27k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.27k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.27k | *n = max_fetch; | 398 | 1.27k | if constexpr (forward_index) { | 399 | 1.27k | _cur_index += max_fetch; | 400 | 1.27k | } | 401 | | | 402 | 1.27k | return Status::OK(); | 403 | 1.27k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 154 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 154 | DCHECK(_parsed); | 389 | 154 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 154 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 154 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 154 | *n = max_fetch; | 398 | 154 | if constexpr (forward_index) { | 399 | 154 | _cur_index += max_fetch; | 400 | 154 | } | 401 | | | 402 | 154 | return Status::OK(); | 403 | 154 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 115 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 115 | DCHECK(_parsed); | 389 | 115 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 115 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 115 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 115 | *n = max_fetch; | 398 | 115 | if constexpr (forward_index) { | 399 | 115 | _cur_index += max_fetch; | 400 | 115 | } | 401 | | | 402 | 115 | return Status::OK(); | 403 | 115 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 677 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 677 | DCHECK(_parsed); | 389 | 677 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 677 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 677 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 677 | *n = max_fetch; | 398 | 677 | if constexpr (forward_index) { | 399 | 677 | _cur_index += max_fetch; | 400 | 677 | } | 401 | | | 402 | 677 | return Status::OK(); | 403 | 677 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.01k | DCHECK(_parsed); | 389 | 7.01k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.01k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 7.01k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.01k | *n = max_fetch; | 398 | 7.01k | if constexpr (forward_index) { | 399 | 7.01k | _cur_index += max_fetch; | 400 | 7.01k | } | 401 | | | 402 | 7.01k | return Status::OK(); | 403 | 7.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 35 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 35 | DCHECK(_parsed); | 389 | 35 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 35 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 35 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 35 | *n = max_fetch; | 398 | 35 | if constexpr (forward_index) { | 399 | 35 | _cur_index += max_fetch; | 400 | 35 | } | 401 | | | 402 | 35 | return Status::OK(); | 403 | 35 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 66 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 66 | DCHECK(_parsed); | 389 | 66 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 66 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 66 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 66 | *n = max_fetch; | 398 | 66 | if constexpr (forward_index) { | 399 | 66 | _cur_index += max_fetch; | 400 | 66 | } | 401 | | | 402 | 66 | return Status::OK(); | 403 | 66 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 49 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 49 | DCHECK(_parsed); | 389 | 49 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 49 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 49 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 49 | *n = max_fetch; | 398 | 49 | if constexpr (forward_index) { | 399 | 49 | _cur_index += max_fetch; | 400 | 49 | } | 401 | | | 402 | 49 | return Status::OK(); | 403 | 49 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 115k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 25.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 20.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 840 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 8.10k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.59k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.10k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 597 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 5.62k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 32.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 154 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 115 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 678 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 35 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 66 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 49 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
406 | | |
407 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
408 | 34.5k | MutableColumnPtr& dst) override { |
409 | 34.5k | DCHECK(_parsed); |
410 | 34.5k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 34.5k | auto total = *n; |
416 | 34.5k | auto read_count = 0; |
417 | 34.5k | _buffer.resize(total); |
418 | 26.8M | for (size_t i = 0; i < total; ++i) { |
419 | 26.8M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 26.8M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 1.69k | break; |
422 | 1.69k | } |
423 | | |
424 | 26.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 26.8M | } |
426 | | |
427 | 34.5k | if (LIKELY(read_count > 0)) { |
428 | 34.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 34.5k | } |
430 | | |
431 | 34.5k | *n = read_count; |
432 | 34.5k | return Status::OK(); |
433 | 34.5k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.07k | MutableColumnPtr& dst) override { | 409 | 7.07k | DCHECK(_parsed); | 410 | 7.07k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.07k | auto total = *n; | 416 | 7.07k | auto read_count = 0; | 417 | 7.07k | _buffer.resize(total); | 418 | 4.59M | for (size_t i = 0; i < total; ++i) { | 419 | 4.58M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 4.58M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 9 | break; | 422 | 9 | } | 423 | | | 424 | 4.58M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 4.58M | } | 426 | | | 427 | 7.07k | if (LIKELY(read_count > 0)) { | 428 | 7.07k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.07k | } | 430 | | | 431 | 7.07k | *n = read_count; | 432 | 7.07k | return Status::OK(); | 433 | 7.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.62k | MutableColumnPtr& dst) override { | 409 | 1.62k | DCHECK(_parsed); | 410 | 1.62k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.62k | auto total = *n; | 416 | 1.62k | auto read_count = 0; | 417 | 1.62k | _buffer.resize(total); | 418 | 560k | for (size_t i = 0; i < total; ++i) { | 419 | 558k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 558k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 558k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 558k | } | 426 | | | 427 | 1.62k | if (LIKELY(read_count > 0)) { | 428 | 1.62k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.62k | } | 430 | | | 431 | 1.62k | *n = read_count; | 432 | 1.62k | return Status::OK(); | 433 | 1.62k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 303 | MutableColumnPtr& dst) override { | 409 | 303 | DCHECK(_parsed); | 410 | 303 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 303 | auto total = *n; | 416 | 303 | auto read_count = 0; | 417 | 303 | _buffer.resize(total); | 418 | 25.8k | for (size_t i = 0; i < total; ++i) { | 419 | 25.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 25.5k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 25.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 25.5k | } | 426 | | | 427 | 304 | if (LIKELY(read_count > 0)) { | 428 | 304 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 304 | } | 430 | | | 431 | 303 | *n = read_count; | 432 | 303 | return Status::OK(); | 433 | 303 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.29k | MutableColumnPtr& dst) override { | 409 | 2.29k | DCHECK(_parsed); | 410 | 2.29k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.29k | auto total = *n; | 416 | 2.29k | auto read_count = 0; | 417 | 2.29k | _buffer.resize(total); | 418 | 648k | for (size_t i = 0; i < total; ++i) { | 419 | 646k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 646k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 12 | break; | 422 | 12 | } | 423 | | | 424 | 646k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 646k | } | 426 | | | 427 | 2.29k | if (LIKELY(read_count > 0)) { | 428 | 2.29k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.29k | } | 430 | | | 431 | 2.29k | *n = read_count; | 432 | 2.29k | return Status::OK(); | 433 | 2.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 670 | MutableColumnPtr& dst) override { | 409 | 670 | DCHECK(_parsed); | 410 | 670 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 670 | auto total = *n; | 416 | 670 | auto read_count = 0; | 417 | 670 | _buffer.resize(total); | 418 | 1.84k | for (size_t i = 0; i < total; ++i) { | 419 | 1.17k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.17k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.17k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.17k | } | 426 | | | 427 | 670 | if (LIKELY(read_count > 0)) { | 428 | 670 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 670 | } | 430 | | | 431 | 670 | *n = read_count; | 432 | 670 | return Status::OK(); | 433 | 670 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.04k | MutableColumnPtr& dst) override { | 409 | 1.04k | DCHECK(_parsed); | 410 | 1.04k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.04k | auto total = *n; | 416 | 1.04k | auto read_count = 0; | 417 | 1.04k | _buffer.resize(total); | 418 | 88.6k | for (size_t i = 0; i < total; ++i) { | 419 | 87.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 87.6k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 31 | break; | 422 | 31 | } | 423 | | | 424 | 87.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 87.6k | } | 426 | | | 427 | 1.04k | if (LIKELY(read_count > 0)) { | 428 | 1.04k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.04k | } | 430 | | | 431 | 1.04k | *n = read_count; | 432 | 1.04k | return Status::OK(); | 433 | 1.04k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.61k | MutableColumnPtr& dst) override { | 409 | 1.61k | DCHECK(_parsed); | 410 | 1.61k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.61k | auto total = *n; | 416 | 1.61k | auto read_count = 0; | 417 | 1.61k | _buffer.resize(total); | 418 | 1.00M | for (size_t i = 0; i < total; ++i) { | 419 | 1.00M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.00M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 29 | break; | 422 | 29 | } | 423 | | | 424 | 1.00M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.00M | } | 426 | | | 427 | 1.61k | if (LIKELY(read_count > 0)) { | 428 | 1.61k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.61k | } | 430 | | | 431 | 1.61k | *n = read_count; | 432 | 1.61k | return Status::OK(); | 433 | 1.61k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.31k | MutableColumnPtr& dst) override { | 409 | 2.31k | DCHECK(_parsed); | 410 | 2.31k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.31k | auto total = *n; | 416 | 2.31k | auto read_count = 0; | 417 | 2.31k | _buffer.resize(total); | 418 | 988k | for (size_t i = 0; i < total; ++i) { | 419 | 986k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 986k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 366 | break; | 422 | 366 | } | 423 | | | 424 | 986k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 986k | } | 426 | | | 427 | 2.31k | if (LIKELY(read_count > 0)) { | 428 | 2.31k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.31k | } | 430 | | | 431 | 2.31k | *n = read_count; | 432 | 2.31k | return Status::OK(); | 433 | 2.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.14k | MutableColumnPtr& dst) override { | 409 | 1.14k | DCHECK(_parsed); | 410 | 1.14k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.14k | auto total = *n; | 416 | 1.14k | auto read_count = 0; | 417 | 1.14k | _buffer.resize(total); | 418 | 465k | for (size_t i = 0; i < total; ++i) { | 419 | 463k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 463k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 15 | break; | 422 | 15 | } | 423 | | | 424 | 463k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 463k | } | 426 | | | 427 | 1.14k | if (LIKELY(read_count > 0)) { | 428 | 1.14k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.14k | } | 430 | | | 431 | 1.14k | *n = read_count; | 432 | 1.14k | return Status::OK(); | 433 | 1.14k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.11k | MutableColumnPtr& dst) override { | 409 | 2.11k | DCHECK(_parsed); | 410 | 2.11k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.11k | auto total = *n; | 416 | 2.11k | auto read_count = 0; | 417 | 2.11k | _buffer.resize(total); | 418 | 745k | for (size_t i = 0; i < total; ++i) { | 419 | 743k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 743k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 30 | break; | 422 | 30 | } | 423 | | | 424 | 743k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 743k | } | 426 | | | 427 | 2.11k | if (LIKELY(read_count > 0)) { | 428 | 2.11k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.11k | } | 430 | | | 431 | 2.11k | *n = read_count; | 432 | 2.11k | return Status::OK(); | 433 | 2.11k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.28k | MutableColumnPtr& dst) override { | 409 | 6.28k | DCHECK(_parsed); | 410 | 6.28k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.28k | auto total = *n; | 416 | 6.28k | auto read_count = 0; | 417 | 6.28k | _buffer.resize(total); | 418 | 8.86M | for (size_t i = 0; i < total; ++i) { | 419 | 8.86M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.86M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 205 | break; | 422 | 205 | } | 423 | | | 424 | 8.86M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.86M | } | 426 | | | 427 | 6.28k | if (LIKELY(read_count > 0)) { | 428 | 6.28k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.28k | } | 430 | | | 431 | 6.28k | *n = read_count; | 432 | 6.28k | return Status::OK(); | 433 | 6.28k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.59k | MutableColumnPtr& dst) override { | 409 | 1.59k | DCHECK(_parsed); | 410 | 1.59k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.59k | auto total = *n; | 416 | 1.59k | auto read_count = 0; | 417 | 1.59k | _buffer.resize(total); | 418 | 480k | for (size_t i = 0; i < total; ++i) { | 419 | 479k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 479k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 246 | break; | 422 | 246 | } | 423 | | | 424 | 478k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 478k | } | 426 | | | 427 | 1.59k | if (LIKELY(read_count > 0)) { | 428 | 1.59k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.59k | } | 430 | | | 431 | 1.59k | *n = read_count; | 432 | 1.59k | return Status::OK(); | 433 | 1.59k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 44 | MutableColumnPtr& dst) override { | 409 | 44 | DCHECK(_parsed); | 410 | 44 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 44 | auto total = *n; | 416 | 44 | auto read_count = 0; | 417 | 44 | _buffer.resize(total); | 418 | 88 | for (size_t i = 0; i < total; ++i) { | 419 | 44 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 44 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 44 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 44 | } | 426 | | | 427 | 44 | if (LIKELY(read_count > 0)) { | 428 | 44 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 44 | } | 430 | | | 431 | 44 | *n = read_count; | 432 | 44 | return Status::OK(); | 433 | 44 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 257 | MutableColumnPtr& dst) override { | 409 | 257 | DCHECK(_parsed); | 410 | 257 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 257 | auto total = *n; | 416 | 257 | auto read_count = 0; | 417 | 257 | _buffer.resize(total); | 418 | 5.52k | for (size_t i = 0; i < total; ++i) { | 419 | 5.27k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 5.27k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 5.27k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 5.27k | } | 426 | | | 427 | 257 | if (LIKELY(read_count > 0)) { | 428 | 257 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 257 | } | 430 | | | 431 | 257 | *n = read_count; | 432 | 257 | return Status::OK(); | 433 | 257 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 393 | MutableColumnPtr& dst) override { | 409 | 393 | DCHECK(_parsed); | 410 | 393 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 393 | auto total = *n; | 416 | 393 | auto read_count = 0; | 417 | 393 | _buffer.resize(total); | 418 | 799 | for (size_t i = 0; i < total; ++i) { | 419 | 406 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 406 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 406 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 406 | } | 426 | | | 427 | 393 | if (LIKELY(read_count > 0)) { | 428 | 393 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 393 | } | 430 | | | 431 | 393 | *n = read_count; | 432 | 393 | return Status::OK(); | 433 | 393 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.67k | MutableColumnPtr& dst) override { | 409 | 5.67k | DCHECK(_parsed); | 410 | 5.67k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.67k | auto total = *n; | 416 | 5.67k | auto read_count = 0; | 417 | 5.67k | _buffer.resize(total); | 418 | 8.39M | for (size_t i = 0; i < total; ++i) { | 419 | 8.38M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.38M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 755 | break; | 422 | 755 | } | 423 | | | 424 | 8.38M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.38M | } | 426 | | | 427 | 5.67k | if (LIKELY(read_count > 0)) { | 428 | 5.67k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.67k | } | 430 | | | 431 | 5.67k | *n = read_count; | 432 | 5.67k | return Status::OK(); | 433 | 5.67k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28 | MutableColumnPtr& dst) override { | 409 | 28 | DCHECK(_parsed); | 410 | 28 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28 | auto total = *n; | 416 | 28 | auto read_count = 0; | 417 | 28 | _buffer.resize(total); | 418 | 388 | for (size_t i = 0; i < total; ++i) { | 419 | 360 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 360 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 360 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 360 | } | 426 | | | 427 | 28 | if (LIKELY(read_count > 0)) { | 428 | 28 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28 | } | 430 | | | 431 | 28 | *n = read_count; | 432 | 28 | return Status::OK(); | 433 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 39 | MutableColumnPtr& dst) override { | 409 | 39 | DCHECK(_parsed); | 410 | 39 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 39 | auto total = *n; | 416 | 39 | auto read_count = 0; | 417 | 39 | _buffer.resize(total); | 418 | 144 | for (size_t i = 0; i < total; ++i) { | 419 | 105 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 105 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 105 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 105 | } | 426 | | | 427 | 40 | if (LIKELY(read_count > 0)) { | 428 | 40 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 40 | } | 430 | | | 431 | 39 | *n = read_count; | 432 | 39 | return Status::OK(); | 433 | 39 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 22 | MutableColumnPtr& dst) override { | 409 | 22 | DCHECK(_parsed); | 410 | 22 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 22 | auto total = *n; | 416 | 22 | auto read_count = 0; | 417 | 22 | _buffer.resize(total); | 418 | 104 | for (size_t i = 0; i < total; ++i) { | 419 | 82 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 82 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 82 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 82 | } | 426 | | | 427 | 22 | if (LIKELY(read_count > 0)) { | 428 | 22 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 22 | } | 430 | | | 431 | 22 | *n = read_count; | 432 | 22 | return Status::OK(); | 433 | 22 | } |
|
434 | | |
435 | 7.85k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 7.85k | return next_batch<false>(n, dst); |
437 | 7.85k | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 7.85k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 7.85k | return next_batch<false>(n, dst); | 437 | 7.85k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
438 | | |
439 | 3 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 3 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv |
440 | | |
441 | 1.87M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 673k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 2 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 2 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 1.08k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 4 | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 226k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 199k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 211k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 219k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 35.1k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 200k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 9 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 6 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 4 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 110k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 10 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 13 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 27.0M | char* get_data(size_t index) const { |
444 | 27.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 27.0M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 4.70M | char* get_data(size_t index) const { | 444 | 4.70M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.70M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 579k | char* get_data(size_t index) const { | 444 | 579k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 579k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 26.4k | char* get_data(size_t index) const { | 444 | 26.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 26.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 654k | char* get_data(size_t index) const { | 444 | 654k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 654k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 2.85k | char* get_data(size_t index) const { | 444 | 2.85k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.85k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 103k | char* get_data(size_t index) const { | 444 | 103k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 103k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.00M | char* get_data(size_t index) const { | 444 | 1.00M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.00M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 988k | char* get_data(size_t index) const { | 444 | 988k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 988k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 464k | char* get_data(size_t index) const { | 444 | 464k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 464k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 749k | char* get_data(size_t index) const { | 444 | 749k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 749k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 8.89M | char* get_data(size_t index) const { | 444 | 8.89M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.89M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 480k | char* get_data(size_t index) const { | 444 | 480k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 480k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 198 | char* get_data(size_t index) const { | 444 | 198 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 198 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 5.38k | char* get_data(size_t index) const { | 444 | 5.38k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.38k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 1.08k | char* get_data(size_t index) const { | 444 | 1.08k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.08k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.39M | char* get_data(size_t index) const { | 444 | 8.39M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.39M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 395 | char* get_data(size_t index) const { | 444 | 395 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 395 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 170 | char* get_data(size_t index) const { | 444 | 170 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 170 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 131 | char* get_data(size_t index) const { | 444 | 131 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 131 | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |