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 | 915k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 444k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 52.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 7.83k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 162k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 9.01k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 75.3k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 12.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 19.6k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 185 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 45.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 282 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.08k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 197 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.75k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.16k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 798 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 691 | Status init() override { return reset(); } |
|
96 | | |
97 | 172M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 171M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 53.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 10.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 386k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 49.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 76.2k | 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 | 12.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 21.7k | 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 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 113k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 115k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 337 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.06k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 100 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.22k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 23.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 50.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 35.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 8.12k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.65M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.65M | return add_internal<false>(vals, count); |
101 | 1.65M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 680k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 680k | return add_internal<false>(vals, count); | 101 | 680k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 53.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 53.8k | return add_internal<false>(vals, count); | 101 | 53.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 10.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.5k | return add_internal<false>(vals, count); | 101 | 10.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 386k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 386k | return add_internal<false>(vals, count); | 101 | 386k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 49.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 49.1k | return add_internal<false>(vals, count); | 101 | 49.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 76.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 76.2k | return add_internal<false>(vals, count); | 101 | 76.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 12.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.0k | return add_internal<false>(vals, count); | 101 | 12.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 21.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 21.7k | return add_internal<false>(vals, count); | 101 | 21.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 192 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 192 | return add_internal<false>(vals, count); | 101 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 113k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 113k | return add_internal<false>(vals, count); | 101 | 113k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 115k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 115k | return add_internal<false>(vals, count); | 101 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 337 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 337 | return add_internal<false>(vals, count); | 101 | 337 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.06k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.06k | return add_internal<false>(vals, count); | 101 | 7.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 100 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 100 | return add_internal<false>(vals, count); | 101 | 100 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.22k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.22k | return add_internal<false>(vals, count); | 101 | 5.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 23.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 23.7k | return add_internal<false>(vals, count); | 101 | 23.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 50.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 50.0k | return add_internal<false>(vals, count); | 101 | 50.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.37k | return add_internal<false>(vals, count); | 101 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 35.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 35.7k | return add_internal<false>(vals, count); | 101 | 35.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 8.12k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.12k | return add_internal<false>(vals, count); | 101 | 8.12k | } |
|
102 | | |
103 | 174M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 174M | return add_internal<true>(vals, count); |
105 | 174M | } |
106 | | |
107 | | template <bool single> |
108 | 174M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 174M | DCHECK(!_finished); |
110 | 174M | 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 | 174M | uint32_t to_add = cast_set<UInt32>( |
126 | 174M | 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 | 174M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 174M | 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 | 174M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 174M | _count += to_add; |
134 | 174M | _remain_element_capacity -= to_add; |
135 | 174M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 174M | *num_written = to_add; |
138 | 174M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | _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 | 172M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 172M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 172M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 172M | 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 | 172M | } |
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 | 174M | return Status::OK(); |
159 | 174M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 680k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 680k | DCHECK(!_finished); | 110 | 680k | 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 | 680k | uint32_t to_add = cast_set<UInt32>( | 126 | 680k | 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 | 680k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 680k | 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 | 680k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 680k | _count += to_add; | 134 | 680k | _remain_element_capacity -= to_add; | 135 | 680k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 680k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 680k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 680k | return Status::OK(); | 159 | 680k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 172M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 172M | DCHECK(!_finished); | 110 | 172M | 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 | 172M | uint32_t to_add = cast_set<UInt32>( | 126 | 172M | 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 | 172M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 172M | 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 | 172M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 172M | _count += to_add; | 134 | 172M | _remain_element_capacity -= to_add; | 135 | 172M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 172M | *num_written = to_add; | 138 | 172M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 172M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 172M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 172M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 172M | 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 | 172M | } | 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 | 172M | return Status::OK(); | 159 | 172M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 53.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 53.8k | DCHECK(!_finished); | 110 | 53.8k | 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 | 53.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 53.8k | 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 | 53.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 53.8k | 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 | 53.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 53.8k | _count += to_add; | 134 | 53.8k | _remain_element_capacity -= to_add; | 135 | 53.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 53.8k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 53.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 53.8k | return Status::OK(); | 159 | 53.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.5k | DCHECK(!_finished); | 110 | 10.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.5k | 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.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.5k | _count += to_add; | 134 | 10.5k | _remain_element_capacity -= to_add; | 135 | 10.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.5k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.5k | return Status::OK(); | 159 | 10.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 385k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 385k | DCHECK(!_finished); | 110 | 385k | 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 | 385k | uint32_t to_add = cast_set<UInt32>( | 126 | 385k | 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 | 385k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 385k | 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 | 385k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 386k | _count += to_add; | 134 | 386k | _remain_element_capacity -= to_add; | 135 | 386k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 386k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 386k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 386k | return Status::OK(); | 159 | 385k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 49.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 49.1k | DCHECK(!_finished); | 110 | 49.1k | 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 | 49.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 49.1k | 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 | 49.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 49.1k | 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 | 49.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 49.1k | _count += to_add; | 134 | 49.1k | _remain_element_capacity -= to_add; | 135 | 49.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 49.1k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 49.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 49.1k | return Status::OK(); | 159 | 49.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 76.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 76.2k | DCHECK(!_finished); | 110 | 76.2k | 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 | 76.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 76.2k | 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 | 76.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 76.2k | 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 | 76.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 76.2k | _count += to_add; | 134 | 76.2k | _remain_element_capacity -= to_add; | 135 | 76.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 76.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 76.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 76.2k | return Status::OK(); | 159 | 76.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.0k | DCHECK(!_finished); | 110 | 12.0k | 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 | 12.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.0k | 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 | 12.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.0k | 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 | 12.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.0k | _count += to_add; | 134 | 12.0k | _remain_element_capacity -= to_add; | 135 | 12.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 12.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.0k | return Status::OK(); | 159 | 12.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 21.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 21.7k | DCHECK(!_finished); | 110 | 21.7k | 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 | 21.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 21.7k | 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 | 21.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 21.7k | 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 | 21.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 21.7k | _count += to_add; | 134 | 21.7k | _remain_element_capacity -= to_add; | 135 | 21.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 21.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 21.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 21.7k | return Status::OK(); | 159 | 21.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 192 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 192 | DCHECK(!_finished); | 110 | 192 | 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 | 192 | uint32_t to_add = cast_set<UInt32>( | 126 | 192 | 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 | 192 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 192 | 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 | 192 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 192 | _count += to_add; | 134 | 192 | _remain_element_capacity -= to_add; | 135 | 192 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 192 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 192 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 192 | return Status::OK(); | 159 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 113k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 113k | DCHECK(!_finished); | 110 | 113k | 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 | 113k | uint32_t to_add = cast_set<UInt32>( | 126 | 113k | 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 | 113k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 113k | 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 | 113k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 113k | _count += to_add; | 134 | 113k | _remain_element_capacity -= to_add; | 135 | 113k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 113k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 113k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 113k | return Status::OK(); | 159 | 113k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 115k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 115k | DCHECK(!_finished); | 110 | 115k | 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 | 115k | uint32_t to_add = cast_set<UInt32>( | 126 | 115k | 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 | 115k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 115k | 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 | 115k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 115k | _count += to_add; | 134 | 115k | _remain_element_capacity -= to_add; | 135 | 115k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 115k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 115k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 115k | return Status::OK(); | 159 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 337 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 337 | DCHECK(!_finished); | 110 | 337 | 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 | 337 | uint32_t to_add = cast_set<UInt32>( | 126 | 337 | 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 | 337 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 337 | 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 | 337 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 337 | _count += to_add; | 134 | 337 | _remain_element_capacity -= to_add; | 135 | 337 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 337 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 337 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 337 | return Status::OK(); | 159 | 337 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.06k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.06k | DCHECK(!_finished); | 110 | 7.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 | 7.06k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.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 | 7.06k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.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 | 7.06k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.06k | _count += to_add; | 134 | 7.06k | _remain_element_capacity -= to_add; | 135 | 7.06k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.06k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 7.06k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.06k | return Status::OK(); | 159 | 7.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 100 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 100 | DCHECK(!_finished); | 110 | 100 | 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 | 100 | uint32_t to_add = cast_set<UInt32>( | 126 | 100 | 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 | 100 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 100 | 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 | 100 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 100 | _count += to_add; | 134 | 100 | _remain_element_capacity -= to_add; | 135 | 100 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 100 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 100 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 100 | return Status::OK(); | 159 | 100 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.22k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.22k | DCHECK(!_finished); | 110 | 5.22k | 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.22k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.22k | 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.22k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.22k | 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.22k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.22k | _count += to_add; | 134 | 5.22k | _remain_element_capacity -= to_add; | 135 | 5.22k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.22k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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.22k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.22k | return Status::OK(); | 159 | 5.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 23.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 23.7k | DCHECK(!_finished); | 110 | 23.7k | 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 | 23.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 23.7k | 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 | 23.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 23.7k | 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 | 23.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 23.7k | _count += to_add; | 134 | 23.7k | _remain_element_capacity -= to_add; | 135 | 23.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 23.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 23.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 23.7k | return Status::OK(); | 159 | 23.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 50.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 50.0k | DCHECK(!_finished); | 110 | 50.0k | 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 | 50.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 50.0k | 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 | 50.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 50.0k | 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 | 50.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 50.0k | _count += to_add; | 134 | 50.0k | _remain_element_capacity -= to_add; | 135 | 50.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 50.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 50.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 50.0k | return Status::OK(); | 159 | 50.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.37k | DCHECK(!_finished); | 110 | 1.37k | 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.37k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.37k | 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.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.37k | 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.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.37k | _count += to_add; | 134 | 1.37k | _remain_element_capacity -= to_add; | 135 | 1.37k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.37k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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.37k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.37k | return Status::OK(); | 159 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 35.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 35.7k | DCHECK(!_finished); | 110 | 35.7k | 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 | 35.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 35.7k | 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 | 35.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 35.7k | 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 | 35.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 35.7k | _count += to_add; | 134 | 35.7k | _remain_element_capacity -= to_add; | 135 | 35.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 35.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 35.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 35.7k | return Status::OK(); | 159 | 35.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.12k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.12k | DCHECK(!_finished); | 110 | 8.12k | 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 | 8.12k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.12k | 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 | 8.12k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.12k | 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 | 8.12k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.12k | _count += to_add; | 134 | 8.12k | _remain_element_capacity -= to_add; | 135 | 8.12k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.12k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _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 | 8.12k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.12k | return Status::OK(); | 159 | 8.12k | } |
|
160 | | |
161 | 905k | Status finish(OwnedSlice* slice) override { |
162 | 905k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 905k | return Status::OK(); |
164 | 905k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 427k | Status finish(OwnedSlice* slice) override { | 162 | 427k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 427k | return Status::OK(); | 164 | 427k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 52.3k | Status finish(OwnedSlice* slice) override { | 162 | 52.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 52.3k | return Status::OK(); | 164 | 52.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.82k | Status finish(OwnedSlice* slice) override { | 162 | 7.82k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.82k | return Status::OK(); | 164 | 7.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 164k | Status finish(OwnedSlice* slice) override { | 162 | 164k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 164k | return Status::OK(); | 164 | 164k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.24k | Status finish(OwnedSlice* slice) override { | 162 | 9.24k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.24k | return Status::OK(); | 164 | 9.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 75.3k | Status finish(OwnedSlice* slice) override { | 162 | 75.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 75.3k | return Status::OK(); | 164 | 75.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.5k | Status finish(OwnedSlice* slice) override { | 162 | 11.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.5k | return Status::OK(); | 164 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.5k | Status finish(OwnedSlice* slice) override { | 162 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.5k | return Status::OK(); | 164 | 19.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 197 | Status finish(OwnedSlice* slice) override { | 162 | 197 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 197 | return Status::OK(); | 164 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 37.7k | Status finish(OwnedSlice* slice) override { | 162 | 37.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 37.7k | return Status::OK(); | 164 | 37.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 44.7k | Status finish(OwnedSlice* slice) override { | 162 | 44.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 44.7k | return Status::OK(); | 164 | 44.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 437 | Status finish(OwnedSlice* slice) override { | 162 | 437 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 437 | return Status::OK(); | 164 | 437 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.15k | Status finish(OwnedSlice* slice) override { | 162 | 7.15k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.15k | return Status::OK(); | 164 | 7.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 108 | Status finish(OwnedSlice* slice) override { | 162 | 108 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 108 | return Status::OK(); | 164 | 108 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.75k | Status finish(OwnedSlice* slice) override { | 162 | 9.75k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.75k | return Status::OK(); | 164 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.7k | Status finish(OwnedSlice* slice) override { | 162 | 18.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.7k | return Status::OK(); | 164 | 18.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 16.5k | Status finish(OwnedSlice* slice) override { | 162 | 16.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 16.5k | return Status::OK(); | 164 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.06k | Status finish(OwnedSlice* slice) override { | 162 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.06k | return Status::OK(); | 164 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 709 | Status finish(OwnedSlice* slice) override { | 162 | 709 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 709 | return Status::OK(); | 164 | 709 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 611 | Status finish(OwnedSlice* slice) override { | 162 | 611 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 611 | return Status::OK(); | 164 | 611 | } |
|
165 | | |
166 | 2.18M | Status reset() override { |
167 | 2.18M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 2.18M | size_t block_size = _options.data_page_size; |
169 | 2.18M | _count = 0; |
170 | 2.18M | _raw_data_size = 0; |
171 | 2.18M | _data.clear(); |
172 | 2.18M | _data.reserve(block_size); |
173 | 2.18M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 2.18M | << "buffer must be naturally-aligned"; |
175 | 2.18M | _buffer.clear(); |
176 | 2.18M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 2.18M | _finished = false; |
178 | 2.18M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 2.18M | }); |
180 | 2.18M | return Status::OK(); |
181 | 2.18M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.23M | Status reset() override { | 167 | 1.23M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.23M | size_t block_size = _options.data_page_size; | 169 | 1.23M | _count = 0; | 170 | 1.23M | _raw_data_size = 0; | 171 | 1.23M | _data.clear(); | 172 | 1.23M | _data.reserve(block_size); | 173 | 1.23M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.23M | << "buffer must be naturally-aligned"; | 175 | 1.23M | _buffer.clear(); | 176 | 1.23M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.23M | _finished = false; | 178 | 1.23M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.23M | }); | 180 | 1.23M | return Status::OK(); | 181 | 1.23M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 104k | Status reset() override { | 167 | 104k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 104k | size_t block_size = _options.data_page_size; | 169 | 104k | _count = 0; | 170 | 104k | _raw_data_size = 0; | 171 | 104k | _data.clear(); | 172 | 104k | _data.reserve(block_size); | 173 | 104k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 104k | << "buffer must be naturally-aligned"; | 175 | 104k | _buffer.clear(); | 176 | 104k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 104k | _finished = false; | 178 | 104k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 104k | }); | 180 | 104k | return Status::OK(); | 181 | 104k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 15.6k | Status reset() override { | 167 | 15.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.6k | size_t block_size = _options.data_page_size; | 169 | 15.6k | _count = 0; | 170 | 15.6k | _raw_data_size = 0; | 171 | 15.6k | _data.clear(); | 172 | 15.6k | _data.reserve(block_size); | 173 | 15.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.6k | << "buffer must be naturally-aligned"; | 175 | 15.6k | _buffer.clear(); | 176 | 15.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.6k | _finished = false; | 178 | 15.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.6k | }); | 180 | 15.6k | return Status::OK(); | 181 | 15.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 326k | Status reset() override { | 167 | 326k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 326k | size_t block_size = _options.data_page_size; | 169 | 326k | _count = 0; | 170 | 326k | _raw_data_size = 0; | 171 | 326k | _data.clear(); | 172 | 326k | _data.reserve(block_size); | 173 | 326k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 326k | << "buffer must be naturally-aligned"; | 175 | 326k | _buffer.clear(); | 176 | 326k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 326k | _finished = false; | 178 | 326k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 326k | }); | 180 | 327k | return Status::OK(); | 181 | 326k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 18.2k | Status reset() override { | 167 | 18.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 18.2k | size_t block_size = _options.data_page_size; | 169 | 18.2k | _count = 0; | 170 | 18.2k | _raw_data_size = 0; | 171 | 18.2k | _data.clear(); | 172 | 18.2k | _data.reserve(block_size); | 173 | 18.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 18.2k | << "buffer must be naturally-aligned"; | 175 | 18.2k | _buffer.clear(); | 176 | 18.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 18.2k | _finished = false; | 178 | 18.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 18.2k | }); | 180 | 18.2k | return Status::OK(); | 181 | 18.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 150k | Status reset() override { | 167 | 150k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 150k | size_t block_size = _options.data_page_size; | 169 | 150k | _count = 0; | 170 | 150k | _raw_data_size = 0; | 171 | 150k | _data.clear(); | 172 | 150k | _data.reserve(block_size); | 173 | 150k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 150k | << "buffer must be naturally-aligned"; | 175 | 150k | _buffer.clear(); | 176 | 150k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 150k | _finished = false; | 178 | 150k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 150k | }); | 180 | 150k | return Status::OK(); | 181 | 150k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 23.8k | Status reset() override { | 167 | 23.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 23.8k | size_t block_size = _options.data_page_size; | 169 | 23.8k | _count = 0; | 170 | 23.8k | _raw_data_size = 0; | 171 | 23.8k | _data.clear(); | 172 | 23.8k | _data.reserve(block_size); | 173 | 23.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 23.8k | << "buffer must be naturally-aligned"; | 175 | 23.8k | _buffer.clear(); | 176 | 23.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 23.8k | _finished = false; | 178 | 23.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 23.8k | }); | 180 | 23.8k | return Status::OK(); | 181 | 23.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 39.2k | Status reset() override { | 167 | 39.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 39.2k | size_t block_size = _options.data_page_size; | 169 | 39.2k | _count = 0; | 170 | 39.2k | _raw_data_size = 0; | 171 | 39.2k | _data.clear(); | 172 | 39.2k | _data.reserve(block_size); | 173 | 39.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 39.2k | << "buffer must be naturally-aligned"; | 175 | 39.2k | _buffer.clear(); | 176 | 39.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 39.2k | _finished = false; | 178 | 39.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 39.2k | }); | 180 | 39.2k | return Status::OK(); | 181 | 39.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 381 | Status reset() override { | 167 | 381 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 381 | size_t block_size = _options.data_page_size; | 169 | 381 | _count = 0; | 170 | 381 | _raw_data_size = 0; | 171 | 381 | _data.clear(); | 172 | 381 | _data.reserve(block_size); | 173 | 381 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 381 | << "buffer must be naturally-aligned"; | 175 | 381 | _buffer.clear(); | 176 | 381 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 381 | _finished = false; | 178 | 381 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 381 | }); | 180 | 382 | return Status::OK(); | 181 | 381 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 74.8k | Status reset() override { | 167 | 74.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 74.8k | size_t block_size = _options.data_page_size; | 169 | 74.8k | _count = 0; | 170 | 74.8k | _raw_data_size = 0; | 171 | 74.8k | _data.clear(); | 172 | 74.8k | _data.reserve(block_size); | 173 | 74.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 74.8k | << "buffer must be naturally-aligned"; | 175 | 74.8k | _buffer.clear(); | 176 | 74.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 74.8k | _finished = false; | 178 | 74.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 74.8k | }); | 180 | 74.9k | return Status::OK(); | 181 | 74.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 90.3k | Status reset() override { | 167 | 90.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 90.3k | size_t block_size = _options.data_page_size; | 169 | 90.3k | _count = 0; | 170 | 90.3k | _raw_data_size = 0; | 171 | 90.3k | _data.clear(); | 172 | 90.3k | _data.reserve(block_size); | 173 | 90.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 90.3k | << "buffer must be naturally-aligned"; | 175 | 90.3k | _buffer.clear(); | 176 | 90.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 90.3k | _finished = false; | 178 | 90.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 90.3k | }); | 180 | 90.4k | return Status::OK(); | 181 | 90.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 720 | Status reset() override { | 167 | 720 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 720 | size_t block_size = _options.data_page_size; | 169 | 720 | _count = 0; | 170 | 720 | _raw_data_size = 0; | 171 | 720 | _data.clear(); | 172 | 720 | _data.reserve(block_size); | 173 | 720 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 720 | << "buffer must be naturally-aligned"; | 175 | 720 | _buffer.clear(); | 176 | 720 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 720 | _finished = false; | 178 | 720 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 720 | }); | 180 | 720 | return Status::OK(); | 181 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 14.2k | Status reset() override { | 167 | 14.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 14.2k | size_t block_size = _options.data_page_size; | 169 | 14.2k | _count = 0; | 170 | 14.2k | _raw_data_size = 0; | 171 | 14.2k | _data.clear(); | 172 | 14.2k | _data.reserve(block_size); | 173 | 14.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 14.2k | << "buffer must be naturally-aligned"; | 175 | 14.2k | _buffer.clear(); | 176 | 14.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 14.2k | _finished = false; | 178 | 14.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 14.2k | }); | 180 | 14.3k | return Status::OK(); | 181 | 14.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 305 | Status reset() override { | 167 | 305 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 305 | size_t block_size = _options.data_page_size; | 169 | 305 | _count = 0; | 170 | 305 | _raw_data_size = 0; | 171 | 305 | _data.clear(); | 172 | 305 | _data.reserve(block_size); | 173 | 305 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 305 | << "buffer must be naturally-aligned"; | 175 | 305 | _buffer.clear(); | 176 | 305 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 305 | _finished = false; | 178 | 305 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 305 | }); | 180 | 305 | return Status::OK(); | 181 | 305 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.5k | Status reset() override { | 167 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.5k | size_t block_size = _options.data_page_size; | 169 | 19.5k | _count = 0; | 170 | 19.5k | _raw_data_size = 0; | 171 | 19.5k | _data.clear(); | 172 | 19.5k | _data.reserve(block_size); | 173 | 19.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.5k | << "buffer must be naturally-aligned"; | 175 | 19.5k | _buffer.clear(); | 176 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.5k | _finished = false; | 178 | 19.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.5k | }); | 180 | 19.5k | return Status::OK(); | 181 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.0k | Status reset() override { | 167 | 31.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.0k | size_t block_size = _options.data_page_size; | 169 | 31.0k | _count = 0; | 170 | 31.0k | _raw_data_size = 0; | 171 | 31.0k | _data.clear(); | 172 | 31.0k | _data.reserve(block_size); | 173 | 31.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.0k | << "buffer must be naturally-aligned"; | 175 | 31.0k | _buffer.clear(); | 176 | 31.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.0k | _finished = false; | 178 | 31.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.0k | }); | 180 | 31.0k | return Status::OK(); | 181 | 31.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 32.8k | Status reset() override { | 167 | 32.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 32.8k | size_t block_size = _options.data_page_size; | 169 | 32.8k | _count = 0; | 170 | 32.8k | _raw_data_size = 0; | 171 | 32.8k | _data.clear(); | 172 | 32.8k | _data.reserve(block_size); | 173 | 32.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 32.8k | << "buffer must be naturally-aligned"; | 175 | 32.8k | _buffer.clear(); | 176 | 32.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 32.8k | _finished = false; | 178 | 32.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 32.8k | }); | 180 | 32.8k | return Status::OK(); | 181 | 32.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.22k | Status reset() override { | 167 | 2.22k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.22k | size_t block_size = _options.data_page_size; | 169 | 2.22k | _count = 0; | 170 | 2.22k | _raw_data_size = 0; | 171 | 2.22k | _data.clear(); | 172 | 2.22k | _data.reserve(block_size); | 173 | 2.22k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.22k | << "buffer must be naturally-aligned"; | 175 | 2.22k | _buffer.clear(); | 176 | 2.22k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.22k | _finished = false; | 178 | 2.22k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.22k | }); | 180 | 2.23k | return Status::OK(); | 181 | 2.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.50k | Status reset() override { | 167 | 1.50k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.50k | size_t block_size = _options.data_page_size; | 169 | 1.50k | _count = 0; | 170 | 1.50k | _raw_data_size = 0; | 171 | 1.50k | _data.clear(); | 172 | 1.50k | _data.reserve(block_size); | 173 | 1.50k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.50k | << "buffer must be naturally-aligned"; | 175 | 1.50k | _buffer.clear(); | 176 | 1.50k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.50k | _finished = false; | 178 | 1.50k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.50k | }); | 180 | 1.50k | return Status::OK(); | 181 | 1.50k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.30k | Status reset() override { | 167 | 1.30k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.30k | size_t block_size = _options.data_page_size; | 169 | 1.30k | _count = 0; | 170 | 1.30k | _raw_data_size = 0; | 171 | 1.30k | _data.clear(); | 172 | 1.30k | _data.reserve(block_size); | 173 | 1.30k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.30k | << "buffer must be naturally-aligned"; | 175 | 1.30k | _buffer.clear(); | 176 | 1.30k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.30k | _finished = false; | 178 | 1.30k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.30k | }); | 180 | 1.30k | return Status::OK(); | 181 | 1.30k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | 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 | 102k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 55.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 16.8k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 775 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 17.5k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.05k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 2.37k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 714 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 797 | 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 | 1.79k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.75k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 158 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 339 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.17k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 26 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 563k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 84.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 52.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.82k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 164k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.24k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 75.3k | 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 | 11.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.5k | 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 | 197 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 37.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 44.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 437 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.15k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 108 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.75k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 16.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 708 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 611 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 915k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 445k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 52.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.83k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 162k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.01k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 75.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 19.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 184 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 45.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 282 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.07k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 197 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.75k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.16k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 798 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 691 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 905k | OwnedSlice _finish(int final_size_of_type) { |
194 | 905k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 905k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 905k | int padding_elems = num_elems_after_padding - _count; |
199 | 905k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 27.5M | for (int i = 0; i < padding_bytes; i++) { |
201 | 26.6M | _data.push_back(0); |
202 | 26.6M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 905k | _buffer.resize( |
206 | 905k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 905k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 905k | int64_t bytes = |
210 | 905k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 905k | num_elems_after_padding, final_size_of_type, 0); |
212 | 905k | 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 | 905k | encode_fixed32_le(&_buffer[0], _count); |
222 | 905k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 905k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 905k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 905k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 905k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 905k | return _buffer.build(); |
229 | 905k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 427k | OwnedSlice _finish(int final_size_of_type) { | 194 | 427k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 427k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 427k | int padding_elems = num_elems_after_padding - _count; | 199 | 427k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 8.55M | for (int i = 0; i < padding_bytes; i++) { | 201 | 8.12M | _data.push_back(0); | 202 | 8.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 427k | _buffer.resize( | 206 | 427k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 427k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 427k | int64_t bytes = | 210 | 427k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 427k | num_elems_after_padding, final_size_of_type, 0); | 212 | 427k | 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 | 427k | encode_fixed32_le(&_buffer[0], _count); | 222 | 427k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 427k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 427k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 427k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 427k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 427k | return _buffer.build(); | 229 | 427k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 52.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 52.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 52.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 52.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 52.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 328k | for (int i = 0; i < padding_bytes; i++) { | 201 | 275k | _data.push_back(0); | 202 | 275k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 52.3k | _buffer.resize( | 206 | 52.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 52.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 52.3k | int64_t bytes = | 210 | 52.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 52.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 52.3k | 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 | 52.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 52.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 52.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 52.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 52.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 52.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 52.3k | return _buffer.build(); | 229 | 52.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 7.82k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.82k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.82k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.82k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.82k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 78.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 70.2k | _data.push_back(0); | 202 | 70.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.82k | _buffer.resize( | 206 | 7.82k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.82k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.82k | int64_t bytes = | 210 | 7.82k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.82k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.82k | 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 | 7.82k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.82k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.82k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.82k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.82k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.82k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.82k | return _buffer.build(); | 229 | 7.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 164k | OwnedSlice _finish(int final_size_of_type) { | 194 | 164k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 164k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 164k | int padding_elems = num_elems_after_padding - _count; | 199 | 164k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 8.21M | for (int i = 0; i < padding_bytes; i++) { | 201 | 8.04M | _data.push_back(0); | 202 | 8.04M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 164k | _buffer.resize( | 206 | 164k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 164k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 164k | int64_t bytes = | 210 | 164k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 164k | num_elems_after_padding, final_size_of_type, 0); | 212 | 164k | 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 | 164k | encode_fixed32_le(&_buffer[0], _count); | 222 | 164k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 164k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 164k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 164k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 164k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 164k | return _buffer.build(); | 229 | 164k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 9.24k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.24k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.24k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.24k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.24k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 571k | for (int i = 0; i < padding_bytes; i++) { | 201 | 562k | _data.push_back(0); | 202 | 562k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.24k | _buffer.resize( | 206 | 9.24k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.24k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.24k | int64_t bytes = | 210 | 9.24k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.24k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.24k | 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 | 9.24k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.24k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.24k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.24k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.24k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.24k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.24k | return _buffer.build(); | 229 | 9.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 75.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 75.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 75.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 75.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 75.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.63M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.56M | _data.push_back(0); | 202 | 3.56M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 75.3k | _buffer.resize( | 206 | 75.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 75.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 75.3k | int64_t bytes = | 210 | 75.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 75.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 75.3k | 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 | 75.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 75.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 75.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 75.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 75.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 75.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 75.3k | return _buffer.build(); | 229 | 75.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 11.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 251k | for (int i = 0; i < padding_bytes; i++) { | 201 | 239k | _data.push_back(0); | 202 | 239k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.5k | _buffer.resize( | 206 | 11.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.5k | int64_t bytes = | 210 | 11.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.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 | 11.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.5k | return _buffer.build(); | 229 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 19.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 882k | for (int i = 0; i < padding_bytes; i++) { | 201 | 863k | _data.push_back(0); | 202 | 863k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.5k | _buffer.resize( | 206 | 19.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.5k | int64_t bytes = | 210 | 19.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.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 | 19.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.5k | return _buffer.build(); | 229 | 19.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 197 | OwnedSlice _finish(int final_size_of_type) { | 194 | 197 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 197 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 197 | int padding_elems = num_elems_after_padding - _count; | 199 | 197 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.70k | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.50k | _data.push_back(0); | 202 | 2.50k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 197 | _buffer.resize( | 206 | 197 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 197 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 197 | int64_t bytes = | 210 | 197 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 197 | num_elems_after_padding, final_size_of_type, 0); | 212 | 197 | 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 | 197 | encode_fixed32_le(&_buffer[0], _count); | 222 | 197 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 197 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 197 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 197 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 197 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 197 | return _buffer.build(); | 229 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 37.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 37.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 37.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 37.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 37.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 811k | for (int i = 0; i < padding_bytes; i++) { | 201 | 773k | _data.push_back(0); | 202 | 773k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 37.7k | _buffer.resize( | 206 | 37.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 37.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 37.7k | int64_t bytes = | 210 | 37.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 37.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 37.7k | 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 | 37.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 37.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 37.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 37.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 37.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 37.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 37.7k | return _buffer.build(); | 229 | 37.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 44.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 44.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 44.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 44.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 44.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.89M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.85M | _data.push_back(0); | 202 | 1.85M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 44.7k | _buffer.resize( | 206 | 44.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 44.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 44.7k | int64_t bytes = | 210 | 44.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 44.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 44.7k | 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 | 44.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 44.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 44.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 44.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 44.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 44.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 44.7k | return _buffer.build(); | 229 | 44.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 437 | OwnedSlice _finish(int final_size_of_type) { | 194 | 437 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 437 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 437 | int padding_elems = num_elems_after_padding - _count; | 199 | 437 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.97k | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.53k | _data.push_back(0); | 202 | 6.53k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 437 | _buffer.resize( | 206 | 437 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 437 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 437 | int64_t bytes = | 210 | 437 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 437 | num_elems_after_padding, final_size_of_type, 0); | 212 | 437 | 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 | 437 | encode_fixed32_le(&_buffer[0], _count); | 222 | 437 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 437 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 437 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 437 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 437 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 437 | return _buffer.build(); | 229 | 437 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.15k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.15k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.15k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.15k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.15k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 374k | for (int i = 0; i < padding_bytes; i++) { | 201 | 367k | _data.push_back(0); | 202 | 367k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.15k | _buffer.resize( | 206 | 7.15k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.15k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.15k | int64_t bytes = | 210 | 7.15k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.15k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.15k | 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 | 7.15k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.15k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.15k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.15k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.15k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.15k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.15k | return _buffer.build(); | 229 | 7.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 108 | OwnedSlice _finish(int final_size_of_type) { | 194 | 108 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 108 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 108 | int padding_elems = num_elems_after_padding - _count; | 199 | 108 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.54k | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.43k | _data.push_back(0); | 202 | 6.43k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 108 | _buffer.resize( | 206 | 108 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 108 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 108 | int64_t bytes = | 210 | 108 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 108 | num_elems_after_padding, final_size_of_type, 0); | 212 | 108 | 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 | 108 | encode_fixed32_le(&_buffer[0], _count); | 222 | 108 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 108 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 108 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 108 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 108 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 108 | return _buffer.build(); | 229 | 108 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.75k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.75k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.75k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.75k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.75k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 119k | for (int i = 0; i < padding_bytes; i++) { | 201 | 109k | _data.push_back(0); | 202 | 109k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.75k | _buffer.resize( | 206 | 9.75k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.75k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.75k | int64_t bytes = | 210 | 9.75k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.75k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.75k | 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 | 9.75k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.75k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.75k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.75k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.75k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.75k | return _buffer.build(); | 229 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 497k | for (int i = 0; i < padding_bytes; i++) { | 201 | 479k | _data.push_back(0); | 202 | 479k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.7k | _buffer.resize( | 206 | 18.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.7k | int64_t bytes = | 210 | 18.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.7k | 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 | 18.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.7k | return _buffer.build(); | 229 | 18.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 16.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 16.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 16.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 16.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 16.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.13M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.11M | _data.push_back(0); | 202 | 1.11M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 16.5k | _buffer.resize( | 206 | 16.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 16.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 16.5k | int64_t bytes = | 210 | 16.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 16.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 16.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 | 16.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 16.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 16.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 16.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 16.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 16.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 16.5k | return _buffer.build(); | 229 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.06k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 162k | for (int i = 0; i < padding_bytes; i++) { | 201 | 161k | _data.push_back(0); | 202 | 161k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.06k | _buffer.resize( | 206 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.06k | int64_t bytes = | 210 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.06k | 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.06k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.06k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.06k | return _buffer.build(); | 229 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 708 | OwnedSlice _finish(int final_size_of_type) { | 194 | 708 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 708 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 708 | int padding_elems = num_elems_after_padding - _count; | 199 | 708 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 14.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 14.1k | _data.push_back(0); | 202 | 14.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 708 | _buffer.resize( | 206 | 708 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 708 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 708 | int64_t bytes = | 210 | 708 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 708 | num_elems_after_padding, final_size_of_type, 0); | 212 | 708 | 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 | 708 | encode_fixed32_le(&_buffer[0], _count); | 222 | 708 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 708 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 708 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 708 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 708 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 708 | return _buffer.build(); | 229 | 708 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 611 | OwnedSlice _finish(int final_size_of_type) { | 194 | 611 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 611 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 611 | int padding_elems = num_elems_after_padding - _count; | 199 | 611 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 48.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 47.7k | _data.push_back(0); | 202 | 47.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 611 | _buffer.resize( | 206 | 611 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 611 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 611 | int64_t bytes = | 210 | 611 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 611 | num_elems_after_padding, final_size_of_type, 0); | 212 | 611 | 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 | 611 | encode_fixed32_le(&_buffer[0], _count); | 222 | 611 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 611 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 611 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 611 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 611 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 611 | return _buffer.build(); | 229 | 611 | } |
|
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 | 2.03M | int& size_of_element) { |
253 | 2.03M | 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 | 2.03M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.03M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.03M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.03M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.03M | 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 | 2.03M | switch (size_of_element) { |
271 | 195k | case 1: |
272 | 222k | case 2: |
273 | 225k | case 3: |
274 | 1.40M | case 4: |
275 | 1.95M | case 8: |
276 | 1.95M | case 12: |
277 | 2.02M | case 16: |
278 | 2.03M | case 32: |
279 | 2.03M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.03M | } |
283 | 2.03M | return Status::OK(); |
284 | 2.03M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.23M | : _data(data), |
291 | 1.23M | _options(options), |
292 | 1.23M | _parsed(false), |
293 | 1.23M | _num_elements(0), |
294 | 1.23M | _num_element_after_padding(0), |
295 | 1.23M | _size_of_element(0), |
296 | 1.23M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 602k | : _data(data), | 291 | 602k | _options(options), | 292 | 602k | _parsed(false), | 293 | 602k | _num_elements(0), | 294 | 602k | _num_element_after_padding(0), | 295 | 602k | _size_of_element(0), | 296 | 602k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 129k | : _data(data), | 291 | 129k | _options(options), | 292 | 129k | _parsed(false), | 293 | 129k | _num_elements(0), | 294 | 129k | _num_element_after_padding(0), | 295 | 129k | _size_of_element(0), | 296 | 129k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 19.7k | : _data(data), | 291 | 19.7k | _options(options), | 292 | 19.7k | _parsed(false), | 293 | 19.7k | _num_elements(0), | 294 | 19.7k | _num_element_after_padding(0), | 295 | 19.7k | _size_of_element(0), | 296 | 19.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 85.9k | : _data(data), | 291 | 85.9k | _options(options), | 292 | 85.9k | _parsed(false), | 293 | 85.9k | _num_elements(0), | 294 | 85.9k | _num_element_after_padding(0), | 295 | 85.9k | _size_of_element(0), | 296 | 85.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.0k | : _data(data), | 291 | 16.0k | _options(options), | 292 | 16.0k | _parsed(false), | 293 | 16.0k | _num_elements(0), | 294 | 16.0k | _num_element_after_padding(0), | 295 | 16.0k | _size_of_element(0), | 296 | 16.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 92.8k | : _data(data), | 291 | 92.8k | _options(options), | 292 | 92.8k | _parsed(false), | 293 | 92.8k | _num_elements(0), | 294 | 92.8k | _num_element_after_padding(0), | 295 | 92.8k | _size_of_element(0), | 296 | 92.8k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 20.0k | : _data(data), | 291 | 20.0k | _options(options), | 292 | 20.0k | _parsed(false), | 293 | 20.0k | _num_elements(0), | 294 | 20.0k | _num_element_after_padding(0), | 295 | 20.0k | _size_of_element(0), | 296 | 20.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.1k | : _data(data), | 291 | 30.1k | _options(options), | 292 | 30.1k | _parsed(false), | 293 | 30.1k | _num_elements(0), | 294 | 30.1k | _num_element_after_padding(0), | 295 | 30.1k | _size_of_element(0), | 296 | 30.1k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.78k | : _data(data), | 291 | 1.78k | _options(options), | 292 | 1.78k | _parsed(false), | 293 | 1.78k | _num_elements(0), | 294 | 1.78k | _num_element_after_padding(0), | 295 | 1.78k | _size_of_element(0), | 296 | 1.78k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 58.5k | : _data(data), | 291 | 58.5k | _options(options), | 292 | 58.5k | _parsed(false), | 293 | 58.5k | _num_elements(0), | 294 | 58.5k | _num_element_after_padding(0), | 295 | 58.5k | _size_of_element(0), | 296 | 58.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 69.2k | : _data(data), | 291 | 69.2k | _options(options), | 292 | 69.2k | _parsed(false), | 293 | 69.2k | _num_elements(0), | 294 | 69.2k | _num_element_after_padding(0), | 295 | 69.2k | _size_of_element(0), | 296 | 69.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.57k | : _data(data), | 291 | 2.57k | _options(options), | 292 | 2.57k | _parsed(false), | 293 | 2.57k | _num_elements(0), | 294 | 2.57k | _num_element_after_padding(0), | 295 | 2.57k | _size_of_element(0), | 296 | 2.57k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.7k | : _data(data), | 291 | 14.7k | _options(options), | 292 | 14.7k | _parsed(false), | 293 | 14.7k | _num_elements(0), | 294 | 14.7k | _num_element_after_padding(0), | 295 | 14.7k | _size_of_element(0), | 296 | 14.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.46k | : _data(data), | 291 | 1.46k | _options(options), | 292 | 1.46k | _parsed(false), | 293 | 1.46k | _num_elements(0), | 294 | 1.46k | _num_element_after_padding(0), | 295 | 1.46k | _size_of_element(0), | 296 | 1.46k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.2k | : _data(data), | 291 | 15.2k | _options(options), | 292 | 15.2k | _parsed(false), | 293 | 15.2k | _num_elements(0), | 294 | 15.2k | _num_element_after_padding(0), | 295 | 15.2k | _size_of_element(0), | 296 | 15.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 38.8k | : _data(data), | 291 | 38.8k | _options(options), | 292 | 38.8k | _parsed(false), | 293 | 38.8k | _num_elements(0), | 294 | 38.8k | _num_element_after_padding(0), | 295 | 38.8k | _size_of_element(0), | 296 | 38.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.1k | : _data(data), | 291 | 30.1k | _options(options), | 292 | 30.1k | _parsed(false), | 293 | 30.1k | _num_elements(0), | 294 | 30.1k | _num_element_after_padding(0), | 295 | 30.1k | _size_of_element(0), | 296 | 30.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.76k | : _data(data), | 291 | 1.76k | _options(options), | 292 | 1.76k | _parsed(false), | 293 | 1.76k | _num_elements(0), | 294 | 1.76k | _num_element_after_padding(0), | 295 | 1.76k | _size_of_element(0), | 296 | 1.76k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.20k | : _data(data), | 291 | 1.20k | _options(options), | 292 | 1.20k | _parsed(false), | 293 | 1.20k | _num_elements(0), | 294 | 1.20k | _num_element_after_padding(0), | 295 | 1.20k | _size_of_element(0), | 296 | 1.20k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.10k | : _data(data), | 291 | 1.10k | _options(options), | 292 | 1.10k | _parsed(false), | 293 | 1.10k | _num_elements(0), | 294 | 1.10k | _num_element_after_padding(0), | 295 | 1.10k | _size_of_element(0), | 296 | 1.10k | _cur_index(0) {} |
|
297 | | |
298 | 1.23M | Status init() override { |
299 | 1.23M | CHECK(!_parsed); |
300 | 1.23M | size_t unused; |
301 | 1.23M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.23M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.23M | if (_data.size != |
305 | 1.23M | _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.23M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.23M | _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.23M | 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.23M | _parsed = true; |
325 | 1.23M | return Status::OK(); |
326 | 1.23M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 602k | Status init() override { | 299 | 602k | CHECK(!_parsed); | 300 | 602k | size_t unused; | 301 | 602k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 602k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 602k | if (_data.size != | 305 | 602k | _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 | 602k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 602k | _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 | 602k | 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 | 602k | _parsed = true; | 325 | 602k | return Status::OK(); | 326 | 602k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 129k | Status init() override { | 299 | 129k | CHECK(!_parsed); | 300 | 129k | size_t unused; | 301 | 129k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 129k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 129k | if (_data.size != | 305 | 129k | _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 | 129k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 129k | _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 | 129k | 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 | 129k | _parsed = true; | 325 | 129k | return Status::OK(); | 326 | 129k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 19.7k | Status init() override { | 299 | 19.7k | CHECK(!_parsed); | 300 | 19.7k | size_t unused; | 301 | 19.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 19.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 19.7k | if (_data.size != | 305 | 19.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 | 19.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 19.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 | 19.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 | 19.7k | _parsed = true; | 325 | 19.7k | return Status::OK(); | 326 | 19.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 85.8k | Status init() override { | 299 | 85.8k | CHECK(!_parsed); | 300 | 85.8k | size_t unused; | 301 | 85.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 85.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 85.8k | if (_data.size != | 305 | 85.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 | 85.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 85.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 | 85.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 | 85.8k | _parsed = true; | 325 | 85.8k | return Status::OK(); | 326 | 85.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 16.0k | Status init() override { | 299 | 16.0k | CHECK(!_parsed); | 300 | 16.0k | size_t unused; | 301 | 16.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.0k | if (_data.size != | 305 | 16.0k | _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 | 16.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.0k | _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 | 16.0k | 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 | 16.0k | _parsed = true; | 325 | 16.0k | return Status::OK(); | 326 | 16.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 92.8k | Status init() override { | 299 | 92.8k | CHECK(!_parsed); | 300 | 92.8k | size_t unused; | 301 | 92.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 92.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 92.8k | if (_data.size != | 305 | 92.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 | 92.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 92.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 | 92.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 | 92.8k | _parsed = true; | 325 | 92.8k | return Status::OK(); | 326 | 92.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 20.0k | Status init() override { | 299 | 20.0k | CHECK(!_parsed); | 300 | 20.0k | size_t unused; | 301 | 20.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 20.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 20.0k | if (_data.size != | 305 | 20.0k | _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 | 20.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 20.0k | _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 | 20.0k | 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 | 20.0k | _parsed = true; | 325 | 20.0k | return Status::OK(); | 326 | 20.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 30.1k | Status init() override { | 299 | 30.1k | CHECK(!_parsed); | 300 | 30.1k | size_t unused; | 301 | 30.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.1k | if (_data.size != | 305 | 30.1k | _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 | 30.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.1k | _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 | 30.1k | 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 | 30.1k | _parsed = true; | 325 | 30.1k | return Status::OK(); | 326 | 30.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.78k | Status init() override { | 299 | 1.78k | CHECK(!_parsed); | 300 | 1.78k | size_t unused; | 301 | 1.78k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.78k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.78k | if (_data.size != | 305 | 1.78k | _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.78k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.78k | _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.78k | 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.78k | _parsed = true; | 325 | 1.78k | return Status::OK(); | 326 | 1.78k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 58.4k | Status init() override { | 299 | 58.4k | CHECK(!_parsed); | 300 | 58.4k | size_t unused; | 301 | 58.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 58.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 58.4k | if (_data.size != | 305 | 58.4k | _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 | 58.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 58.4k | _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 | 58.4k | 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 | 58.4k | _parsed = true; | 325 | 58.4k | return Status::OK(); | 326 | 58.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 69.2k | Status init() override { | 299 | 69.2k | CHECK(!_parsed); | 300 | 69.2k | size_t unused; | 301 | 69.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 69.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 69.2k | if (_data.size != | 305 | 69.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 | 69.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 69.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 | 69.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 | 69.2k | _parsed = true; | 325 | 69.2k | return Status::OK(); | 326 | 69.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.57k | Status init() override { | 299 | 2.57k | CHECK(!_parsed); | 300 | 2.57k | size_t unused; | 301 | 2.57k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.57k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.57k | if (_data.size != | 305 | 2.57k | _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.57k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.57k | _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.57k | 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.57k | _parsed = true; | 325 | 2.57k | return Status::OK(); | 326 | 2.57k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 14.7k | Status init() override { | 299 | 14.7k | CHECK(!_parsed); | 300 | 14.7k | size_t unused; | 301 | 14.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.7k | if (_data.size != | 305 | 14.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 | 14.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.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 | 14.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 | 14.7k | _parsed = true; | 325 | 14.7k | return Status::OK(); | 326 | 14.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.46k | Status init() override { | 299 | 1.46k | CHECK(!_parsed); | 300 | 1.46k | size_t unused; | 301 | 1.46k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.46k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.46k | if (_data.size != | 305 | 1.46k | _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.46k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.46k | _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.46k | 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.46k | _parsed = true; | 325 | 1.46k | return Status::OK(); | 326 | 1.46k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.2k | Status init() override { | 299 | 15.2k | CHECK(!_parsed); | 300 | 15.2k | size_t unused; | 301 | 15.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.2k | if (_data.size != | 305 | 15.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 | 15.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.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 | 15.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 | 15.2k | _parsed = true; | 325 | 15.2k | return Status::OK(); | 326 | 15.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 38.8k | Status init() override { | 299 | 38.8k | CHECK(!_parsed); | 300 | 38.8k | size_t unused; | 301 | 38.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 38.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 38.8k | if (_data.size != | 305 | 38.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 | 38.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 38.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 | 38.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 | 38.8k | _parsed = true; | 325 | 38.8k | return Status::OK(); | 326 | 38.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.1k | Status init() override { | 299 | 30.1k | CHECK(!_parsed); | 300 | 30.1k | size_t unused; | 301 | 30.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.1k | if (_data.size != | 305 | 30.1k | _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 | 30.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.1k | _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 | 30.1k | 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 | 30.1k | _parsed = true; | 325 | 30.1k | return Status::OK(); | 326 | 30.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.76k | Status init() override { | 299 | 1.76k | CHECK(!_parsed); | 300 | 1.76k | size_t unused; | 301 | 1.76k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.76k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.76k | if (_data.size != | 305 | 1.76k | _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.76k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.76k | _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.76k | 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.76k | _parsed = true; | 325 | 1.76k | return Status::OK(); | 326 | 1.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 1.20k | Status init() override { | 299 | 1.20k | CHECK(!_parsed); | 300 | 1.20k | size_t unused; | 301 | 1.20k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.20k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.20k | if (_data.size != | 305 | 1.20k | _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.20k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.20k | _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.20k | 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.20k | _parsed = true; | 325 | 1.20k | return Status::OK(); | 326 | 1.20k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 1.10k | Status init() override { | 299 | 1.10k | CHECK(!_parsed); | 300 | 1.10k | size_t unused; | 301 | 1.10k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.10k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.10k | if (_data.size != | 305 | 1.10k | _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.10k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.10k | _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.10k | 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.10k | _parsed = true; | 325 | 1.10k | return Status::OK(); | 326 | 1.10k | } |
|
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 | 4.26M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.26M | if (_num_elements == 0) [[unlikely]] { |
337 | 6.64k | 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 | 6.64k | } |
342 | | |
343 | 4.26M | DCHECK_LE(pos, _num_elements); |
344 | 4.26M | _cur_index = pos; |
345 | 4.26M | return Status::OK(); |
346 | 4.26M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.85M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.85M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.84k | 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.84k | } | 342 | | | 343 | 1.85M | DCHECK_LE(pos, _num_elements); | 344 | 1.85M | _cur_index = pos; | 345 | 1.85M | return Status::OK(); | 346 | 1.85M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 316k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 316k | if (_num_elements == 0) [[unlikely]] { | 337 | 531 | 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 | 531 | } | 342 | | | 343 | 316k | DCHECK_LE(pos, _num_elements); | 344 | 316k | _cur_index = pos; | 345 | 316k | return Status::OK(); | 346 | 316k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 232k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 232k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.35k | 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.35k | } | 342 | | | 343 | 232k | DCHECK_LE(pos, _num_elements); | 344 | 232k | _cur_index = pos; | 345 | 232k | return Status::OK(); | 346 | 232k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 140k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 140k | if (_num_elements == 0) [[unlikely]] { | 337 | 590 | 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 | 590 | } | 342 | | | 343 | 140k | DCHECK_LE(pos, _num_elements); | 344 | 140k | _cur_index = pos; | 345 | 140k | return Status::OK(); | 346 | 140k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 123k | Status seek_to_position_in_page(size_t pos) override { | 335 | 123k | DCHECK(_parsed) << "Must call init()"; | 336 | 123k | if (_num_elements == 0) [[unlikely]] { | 337 | 6 | 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 | 6 | } | 342 | | | 343 | 123k | DCHECK_LE(pos, _num_elements); | 344 | 123k | _cur_index = pos; | 345 | 123k | return Status::OK(); | 346 | 123k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.49k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.49k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.49k | 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.49k | DCHECK_LE(pos, _num_elements); | 344 | 6.49k | _cur_index = pos; | 345 | 6.49k | return Status::OK(); | 346 | 6.49k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 233k | Status seek_to_position_in_page(size_t pos) override { | 335 | 233k | DCHECK(_parsed) << "Must call init()"; | 336 | 233k | 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 | 233k | DCHECK_LE(pos, _num_elements); | 344 | 233k | _cur_index = pos; | 345 | 233k | return Status::OK(); | 346 | 233k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 209k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 209k | if (_num_elements == 0) [[unlikely]] { | 337 | 5 | 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 | 5 | } | 342 | | | 343 | 209k | DCHECK_LE(pos, _num_elements); | 344 | 209k | _cur_index = pos; | 345 | 209k | return Status::OK(); | 346 | 209k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 226k | Status seek_to_position_in_page(size_t pos) override { | 335 | 226k | DCHECK(_parsed) << "Must call init()"; | 336 | 226k | if (_num_elements == 0) [[unlikely]] { | 337 | 4 | 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 | 4 | } | 342 | | | 343 | 226k | DCHECK_LE(pos, _num_elements); | 344 | 226k | _cur_index = pos; | 345 | 226k | return Status::OK(); | 346 | 226k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 495k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 495k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.85k | 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.85k | } | 342 | | | 343 | 495k | DCHECK_LE(pos, _num_elements); | 344 | 495k | _cur_index = pos; | 345 | 495k | return Status::OK(); | 346 | 495k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 73.0k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 73.0k | if (_num_elements == 0) [[unlikely]] { | 337 | 18 | 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 | 18 | } | 342 | | | 343 | 73.0k | DCHECK_LE(pos, _num_elements); | 344 | 73.0k | _cur_index = pos; | 345 | 73.0k | return Status::OK(); | 346 | 73.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 205k | Status seek_to_position_in_page(size_t pos) override { | 335 | 205k | DCHECK(_parsed) << "Must call init()"; | 336 | 205k | 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 | 205k | DCHECK_LE(pos, _num_elements); | 344 | 205k | _cur_index = pos; | 345 | 205k | return Status::OK(); | 346 | 205k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.66k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 6.66k | if (_num_elements == 0) [[unlikely]] { | 337 | 353 | 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 | 353 | } | 342 | | | 343 | 6.66k | DCHECK_LE(pos, _num_elements); | 344 | 6.66k | _cur_index = pos; | 345 | 6.66k | return Status::OK(); | 346 | 6.66k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 140 | Status seek_to_position_in_page(size_t pos) override { | 335 | 140 | DCHECK(_parsed) << "Must call init()"; | 336 | 140 | 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 | 140 | DCHECK_LE(pos, _num_elements); | 344 | 140 | _cur_index = pos; | 345 | 140 | return Status::OK(); | 346 | 140 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 860 | Status seek_to_position_in_page(size_t pos) override { | 335 | 860 | DCHECK(_parsed) << "Must call init()"; | 336 | 860 | if (_num_elements == 0) [[unlikely]] { | 337 | 25 | 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 | 25 | } | 342 | | | 343 | 860 | DCHECK_LE(pos, _num_elements); | 344 | 860 | _cur_index = pos; | 345 | 860 | return Status::OK(); | 346 | 860 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 16.7k | DCHECK(_parsed) << "Must call init()"; | 336 | 16.7k | 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 | 16.7k | DCHECK_LE(pos, _num_elements); | 344 | 16.7k | _cur_index = pos; | 345 | 16.7k | return Status::OK(); | 346 | 16.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 125k | Status seek_to_position_in_page(size_t pos) override { | 335 | 125k | DCHECK(_parsed) << "Must call init()"; | 336 | 125k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | 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 | 10 | } | 342 | | | 343 | 125k | DCHECK_LE(pos, _num_elements); | 344 | 125k | _cur_index = pos; | 345 | 125k | return Status::OK(); | 346 | 125k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.95k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.95k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.95k | if (_num_elements == 0) [[unlikely]] { | 337 | 2 | 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 | 2 | } | 342 | | | 343 | 1.95k | DCHECK_LE(pos, _num_elements); | 344 | 1.95k | _cur_index = pos; | 345 | 1.95k | return Status::OK(); | 346 | 1.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 54 | Status seek_to_position_in_page(size_t pos) override { | 335 | 54 | DCHECK(_parsed) << "Must call init()"; | 336 | 54 | 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 | 54 | DCHECK_LE(pos, _num_elements); | 344 | 54 | _cur_index = pos; | 345 | 54 | return Status::OK(); | 346 | 54 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 89 | Status seek_to_position_in_page(size_t pos) override { | 335 | 89 | DCHECK(_parsed) << "Must call init()"; | 336 | 89 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | 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 | } | 342 | | | 343 | 89 | DCHECK_LE(pos, _num_elements); | 344 | 89 | _cur_index = pos; | 345 | 89 | return Status::OK(); | 346 | 89 | } |
|
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 | 1.88M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.88M | DCHECK(_parsed); |
389 | 1.88M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.88M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.88M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.88M | *n = max_fetch; |
398 | 1.88M | if constexpr (forward_index) { |
399 | 1.66M | _cur_index += max_fetch; |
400 | 1.66M | } |
401 | | |
402 | 1.88M | return Status::OK(); |
403 | 1.88M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 521k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 521k | DCHECK(_parsed); | 389 | 521k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 521k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 521k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 521k | *n = max_fetch; | 398 | 521k | if constexpr (forward_index) { | 399 | 521k | _cur_index += max_fetch; | 400 | 521k | } | 401 | | | 402 | 521k | return Status::OK(); | 403 | 521k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 216k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 216k | DCHECK(_parsed); | 389 | 216k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 216k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 216k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 216k | *n = max_fetch; | 398 | 216k | if constexpr (forward_index) { | 399 | 216k | _cur_index += max_fetch; | 400 | 216k | } | 401 | | | 402 | 216k | return Status::OK(); | 403 | 216k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.2k | DCHECK(_parsed); | 389 | 16.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.2k | *n = max_fetch; | 398 | 16.2k | if constexpr (forward_index) { | 399 | 16.2k | _cur_index += max_fetch; | 400 | 16.2k | } | 401 | | | 402 | 16.2k | return Status::OK(); | 403 | 16.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 84.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 84.9k | DCHECK(_parsed); | 389 | 84.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 84.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 84.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 84.9k | *n = max_fetch; | 398 | 84.9k | if constexpr (forward_index) { | 399 | 84.9k | _cur_index += max_fetch; | 400 | 84.9k | } | 401 | | | 402 | 84.9k | return Status::OK(); | 403 | 84.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 29.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 29.3k | DCHECK(_parsed); | 389 | 29.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 29.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 29.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 29.3k | *n = max_fetch; | 398 | 29.3k | if constexpr (forward_index) { | 399 | 29.3k | _cur_index += max_fetch; | 400 | 29.3k | } | 401 | | | 402 | 29.3k | return Status::OK(); | 403 | 29.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 162k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 162k | DCHECK(_parsed); | 389 | 162k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 162k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 162k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 162k | *n = max_fetch; | 398 | 162k | if constexpr (forward_index) { | 399 | 162k | _cur_index += max_fetch; | 400 | 162k | } | 401 | | | 402 | 162k | return Status::OK(); | 403 | 162k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 218k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 218k | DCHECK(_parsed); | 389 | 218k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 218k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 218k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 218k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 218k | return Status::OK(); | 403 | 218k | } |
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 | 14.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 14.5k | DCHECK(_parsed); | 389 | 14.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 14.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 14.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 14.5k | *n = max_fetch; | 398 | 14.5k | if constexpr (forward_index) { | 399 | 14.5k | _cur_index += max_fetch; | 400 | 14.5k | } | 401 | | | 402 | 14.5k | return Status::OK(); | 403 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 26.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 26.7k | DCHECK(_parsed); | 389 | 26.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 26.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 26.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 26.7k | *n = max_fetch; | 398 | 26.7k | if constexpr (forward_index) { | 399 | 26.7k | _cur_index += max_fetch; | 400 | 26.7k | } | 401 | | | 402 | 26.7k | return Status::OK(); | 403 | 26.7k | } |
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 | 11.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.8k | DCHECK(_parsed); | 389 | 11.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.8k | *n = max_fetch; | 398 | 11.8k | if constexpr (forward_index) { | 399 | 11.8k | _cur_index += max_fetch; | 400 | 11.8k | } | 401 | | | 402 | 11.8k | return Status::OK(); | 403 | 11.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 387k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 387k | DCHECK(_parsed); | 389 | 387k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 387k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 387k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 387k | *n = max_fetch; | 398 | 387k | if constexpr (forward_index) { | 399 | 387k | _cur_index += max_fetch; | 400 | 387k | } | 401 | | | 402 | 387k | return Status::OK(); | 403 | 387k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 89.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 89.3k | DCHECK(_parsed); | 389 | 89.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 89.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 89.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 89.3k | *n = max_fetch; | 398 | 89.3k | if constexpr (forward_index) { | 399 | 89.3k | _cur_index += max_fetch; | 400 | 89.3k | } | 401 | | | 402 | 89.3k | return Status::OK(); | 403 | 89.3k | } |
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.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, _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_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.56k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.56k | DCHECK(_parsed); | 389 | 7.56k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.56k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.56k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.56k | *n = max_fetch; | 398 | 7.56k | if constexpr (forward_index) { | 399 | 7.56k | _cur_index += max_fetch; | 400 | 7.56k | } | 401 | | | 402 | 7.56k | return Status::OK(); | 403 | 7.56k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.35k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.35k | DCHECK(_parsed); | 389 | 1.35k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.35k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.35k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.35k | *n = max_fetch; | 398 | 1.35k | if constexpr (forward_index) { | 399 | 1.35k | _cur_index += max_fetch; | 400 | 1.35k | } | 401 | | | 402 | 1.35k | return Status::OK(); | 403 | 1.35k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.37k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.37k | DCHECK(_parsed); | 389 | 8.37k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.37k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.37k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.37k | *n = max_fetch; | 398 | 8.37k | if constexpr (forward_index) { | 399 | 8.37k | _cur_index += max_fetch; | 400 | 8.37k | } | 401 | | | 402 | 8.37k | return Status::OK(); | 403 | 8.37k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 29.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 29.2k | DCHECK(_parsed); | 389 | 29.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 29.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 29.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 29.2k | *n = max_fetch; | 398 | 29.2k | if constexpr (forward_index) { | 399 | 29.2k | _cur_index += max_fetch; | 400 | 29.2k | } | 401 | | | 402 | 29.2k | return Status::OK(); | 403 | 29.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 31.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 31.2k | DCHECK(_parsed); | 389 | 31.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 31.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 31.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 31.2k | *n = max_fetch; | 398 | 31.2k | if constexpr (forward_index) { | 399 | 31.2k | _cur_index += max_fetch; | 400 | 31.2k | } | 401 | | | 402 | 31.2k | return Status::OK(); | 403 | 31.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.17k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.17k | DCHECK(_parsed); | 389 | 3.17k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.17k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.17k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.17k | *n = max_fetch; | 398 | 3.17k | if constexpr (forward_index) { | 399 | 3.17k | _cur_index += max_fetch; | 400 | 3.17k | } | 401 | | | 402 | 3.17k | return Status::OK(); | 403 | 3.17k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 13.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 13.3k | DCHECK(_parsed); | 389 | 13.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 13.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 13.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 13.3k | *n = max_fetch; | 398 | 13.3k | if constexpr (forward_index) { | 399 | 13.3k | _cur_index += max_fetch; | 400 | 13.3k | } | 401 | | | 402 | 13.3k | return Status::OK(); | 403 | 13.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.29k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.29k | DCHECK(_parsed); | 389 | 8.29k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.29k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.29k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.29k | *n = max_fetch; | 398 | 8.29k | if constexpr (forward_index) { | 399 | 8.29k | _cur_index += max_fetch; | 400 | 8.29k | } | 401 | | | 402 | 8.29k | return Status::OK(); | 403 | 8.29k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.66M | 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 | 521k | 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 | 215k | 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 | 16.2k | 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 | 84.9k | 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 | 29.3k | 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 | 162k | 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 | 14.5k | 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 | 26.7k | 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 | 11.8k | 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 | 387k | 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 | 89.3k | 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.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.56k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.35k | 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 | 8.37k | 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 | 29.2k | 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 | 31.2k | 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 | 3.17k | 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 | 13.3k | 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 | 8.29k | 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 | 401k | MutableColumnPtr& dst) override { |
409 | 401k | DCHECK(_parsed); |
410 | 401k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 401k | auto total = *n; |
416 | 401k | auto read_count = 0; |
417 | 401k | _buffer.resize(total); |
418 | 90.5M | for (size_t i = 0; i < total; ++i) { |
419 | 90.1M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 90.1M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 11.9k | break; |
422 | 11.9k | } |
423 | | |
424 | 90.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 90.1M | } |
426 | | |
427 | 401k | if (LIKELY(read_count > 0)) { |
428 | 401k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 401k | } |
430 | | |
431 | 401k | *n = read_count; |
432 | 401k | return Status::OK(); |
433 | 401k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 90.5k | MutableColumnPtr& dst) override { | 409 | 90.5k | DCHECK(_parsed); | 410 | 90.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 90.5k | auto total = *n; | 416 | 90.5k | auto read_count = 0; | 417 | 90.5k | _buffer.resize(total); | 418 | 17.9M | for (size_t i = 0; i < total; ++i) { | 419 | 17.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 17.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.31k | break; | 422 | 1.31k | } | 423 | | | 424 | 17.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 17.8M | } | 426 | | | 427 | 90.5k | if (LIKELY(read_count > 0)) { | 428 | 90.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 90.5k | } | 430 | | | 431 | 90.5k | *n = read_count; | 432 | 90.5k | return Status::OK(); | 433 | 90.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 57.2k | MutableColumnPtr& dst) override { | 409 | 57.2k | DCHECK(_parsed); | 410 | 57.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 57.2k | auto total = *n; | 416 | 57.2k | auto read_count = 0; | 417 | 57.2k | _buffer.resize(total); | 418 | 1.77M | for (size_t i = 0; i < total; ++i) { | 419 | 1.71M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.71M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.71M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.71M | } | 426 | | | 427 | 57.2k | if (LIKELY(read_count > 0)) { | 428 | 57.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 57.2k | } | 430 | | | 431 | 57.2k | *n = read_count; | 432 | 57.2k | return Status::OK(); | 433 | 57.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.96k | MutableColumnPtr& dst) override { | 409 | 9.96k | DCHECK(_parsed); | 410 | 9.96k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.96k | auto total = *n; | 416 | 9.96k | auto read_count = 0; | 417 | 9.96k | _buffer.resize(total); | 418 | 653k | for (size_t i = 0; i < total; ++i) { | 419 | 643k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 643k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 12 | break; | 422 | 12 | } | 423 | | | 424 | 643k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 643k | } | 426 | | | 427 | 9.96k | if (LIKELY(read_count > 0)) { | 428 | 9.96k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.96k | } | 430 | | | 431 | 9.96k | *n = read_count; | 432 | 9.96k | return Status::OK(); | 433 | 9.96k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 49.1k | MutableColumnPtr& dst) override { | 409 | 49.1k | DCHECK(_parsed); | 410 | 49.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 49.1k | auto total = *n; | 416 | 49.1k | auto read_count = 0; | 417 | 49.1k | _buffer.resize(total); | 418 | 14.6M | for (size_t i = 0; i < total; ++i) { | 419 | 14.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.5M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 926 | break; | 422 | 926 | } | 423 | | | 424 | 14.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.5M | } | 426 | | | 427 | 49.1k | if (LIKELY(read_count > 0)) { | 428 | 49.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 49.1k | } | 430 | | | 431 | 49.1k | *n = read_count; | 432 | 49.1k | return Status::OK(); | 433 | 49.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.10k | MutableColumnPtr& dst) override { | 409 | 8.10k | DCHECK(_parsed); | 410 | 8.10k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.10k | auto total = *n; | 416 | 8.10k | auto read_count = 0; | 417 | 8.10k | _buffer.resize(total); | 418 | 1.27M | for (size_t i = 0; i < total; ++i) { | 419 | 1.27M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.27M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 570 | break; | 422 | 570 | } | 423 | | | 424 | 1.27M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.27M | } | 426 | | | 427 | 8.10k | if (LIKELY(read_count > 0)) { | 428 | 8.10k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.10k | } | 430 | | | 431 | 8.10k | *n = read_count; | 432 | 8.10k | return Status::OK(); | 433 | 8.10k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.7k | MutableColumnPtr& dst) override { | 409 | 32.7k | DCHECK(_parsed); | 410 | 32.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.7k | auto total = *n; | 416 | 32.7k | auto read_count = 0; | 417 | 32.7k | _buffer.resize(total); | 418 | 484k | for (size_t i = 0; i < total; ++i) { | 419 | 451k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 451k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 451k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 451k | } | 426 | | | 427 | 32.7k | if (LIKELY(read_count > 0)) { | 428 | 32.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.7k | } | 430 | | | 431 | 32.7k | *n = read_count; | 432 | 32.7k | return Status::OK(); | 433 | 32.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.1k | MutableColumnPtr& dst) override { | 409 | 10.1k | DCHECK(_parsed); | 410 | 10.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.1k | auto total = *n; | 416 | 10.1k | auto read_count = 0; | 417 | 10.1k | _buffer.resize(total); | 418 | 1.20M | for (size_t i = 0; i < total; ++i) { | 419 | 1.19M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.19M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 30 | break; | 422 | 30 | } | 423 | | | 424 | 1.19M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.19M | } | 426 | | | 427 | 10.1k | if (LIKELY(read_count > 0)) { | 428 | 10.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.1k | } | 430 | | | 431 | 10.1k | *n = read_count; | 432 | 10.1k | return Status::OK(); | 433 | 10.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 17.1k | MutableColumnPtr& dst) override { | 409 | 17.1k | DCHECK(_parsed); | 410 | 17.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 17.1k | auto total = *n; | 416 | 17.1k | auto read_count = 0; | 417 | 17.1k | _buffer.resize(total); | 418 | 5.96M | for (size_t i = 0; i < total; ++i) { | 419 | 5.95M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 5.95M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.45k | break; | 422 | 1.45k | } | 423 | | | 424 | 5.95M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 5.95M | } | 426 | | | 427 | 17.2k | if (LIKELY(read_count > 0)) { | 428 | 17.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 17.2k | } | 430 | | | 431 | 17.1k | *n = read_count; | 432 | 17.1k | return Status::OK(); | 433 | 17.1k | } |
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.42k | MutableColumnPtr& dst) override { | 409 | 1.42k | DCHECK(_parsed); | 410 | 1.42k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.42k | auto total = *n; | 416 | 1.42k | auto read_count = 0; | 417 | 1.42k | _buffer.resize(total); | 418 | 473k | for (size_t i = 0; i < total; ++i) { | 419 | 472k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 472k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 11 | break; | 422 | 11 | } | 423 | | | 424 | 472k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 472k | } | 426 | | | 427 | 1.42k | if (LIKELY(read_count > 0)) { | 428 | 1.42k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.42k | } | 430 | | | 431 | 1.42k | *n = read_count; | 432 | 1.42k | return Status::OK(); | 433 | 1.42k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.2k | MutableColumnPtr& dst) override { | 409 | 29.2k | DCHECK(_parsed); | 410 | 29.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.2k | auto total = *n; | 416 | 29.2k | auto read_count = 0; | 417 | 29.2k | _buffer.resize(total); | 418 | 6.47M | for (size_t i = 0; i < total; ++i) { | 419 | 6.44M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.44M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 744 | break; | 422 | 744 | } | 423 | | | 424 | 6.44M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.44M | } | 426 | | | 427 | 29.2k | if (LIKELY(read_count > 0)) { | 428 | 29.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.2k | } | 430 | | | 431 | 29.2k | *n = read_count; | 432 | 29.2k | return Status::OK(); | 433 | 29.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 34.3k | MutableColumnPtr& dst) override { | 409 | 34.3k | DCHECK(_parsed); | 410 | 34.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 34.3k | auto total = *n; | 416 | 34.3k | auto read_count = 0; | 417 | 34.3k | _buffer.resize(total); | 418 | 9.62M | for (size_t i = 0; i < total; ++i) { | 419 | 9.58M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.58M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 215 | break; | 422 | 215 | } | 423 | | | 424 | 9.58M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.58M | } | 426 | | | 427 | 34.3k | if (LIKELY(read_count > 0)) { | 428 | 34.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 34.3k | } | 430 | | | 431 | 34.3k | *n = read_count; | 432 | 34.3k | return Status::OK(); | 433 | 34.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.84k | MutableColumnPtr& dst) override { | 409 | 1.84k | DCHECK(_parsed); | 410 | 1.84k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.84k | auto total = *n; | 416 | 1.84k | auto read_count = 0; | 417 | 1.84k | _buffer.resize(total); | 418 | 471k | for (size_t i = 0; i < total; ++i) { | 419 | 469k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 469k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 251 | break; | 422 | 251 | } | 423 | | | 424 | 469k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 469k | } | 426 | | | 427 | 1.84k | if (LIKELY(read_count > 0)) { | 428 | 1.84k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.84k | } | 430 | | | 431 | 1.84k | *n = read_count; | 432 | 1.84k | return Status::OK(); | 433 | 1.84k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 11.6k | MutableColumnPtr& dst) override { | 409 | 11.6k | DCHECK(_parsed); | 410 | 11.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 11.6k | auto total = *n; | 416 | 11.6k | auto read_count = 0; | 417 | 11.6k | _buffer.resize(total); | 418 | 24.7k | for (size_t i = 0; i < total; ++i) { | 419 | 13.1k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.1k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.1k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.1k | } | 426 | | | 427 | 11.6k | if (LIKELY(read_count > 0)) { | 428 | 11.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 11.6k | } | 430 | | | 431 | 11.6k | *n = read_count; | 432 | 11.6k | return Status::OK(); | 433 | 11.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 199 | MutableColumnPtr& dst) override { | 409 | 199 | DCHECK(_parsed); | 410 | 199 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 199 | auto total = *n; | 416 | 199 | auto read_count = 0; | 417 | 199 | _buffer.resize(total); | 418 | 403 | for (size_t i = 0; i < total; ++i) { | 419 | 204 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 204 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 204 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 204 | } | 426 | | | 427 | 199 | if (LIKELY(read_count > 0)) { | 428 | 199 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 199 | } | 430 | | | 431 | 199 | *n = read_count; | 432 | 199 | return Status::OK(); | 433 | 199 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.79k | MutableColumnPtr& dst) override { | 409 | 4.79k | DCHECK(_parsed); | 410 | 4.79k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.79k | auto total = *n; | 416 | 4.79k | auto read_count = 0; | 417 | 4.79k | _buffer.resize(total); | 418 | 19.5k | for (size_t i = 0; i < total; ++i) { | 419 | 14.7k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.7k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.7k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.7k | } | 426 | | | 427 | 4.79k | if (LIKELY(read_count > 0)) { | 428 | 4.79k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.79k | } | 430 | | | 431 | 4.79k | *n = read_count; | 432 | 4.79k | return Status::OK(); | 433 | 4.79k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.0k | MutableColumnPtr& dst) override { | 409 | 27.0k | DCHECK(_parsed); | 410 | 27.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.0k | auto total = *n; | 416 | 27.0k | auto read_count = 0; | 417 | 27.0k | _buffer.resize(total); | 418 | 20.6M | for (size_t i = 0; i < total; ++i) { | 419 | 20.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 20.6M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.68k | break; | 422 | 5.68k | } | 423 | | | 424 | 20.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 20.6M | } | 426 | | | 427 | 27.0k | if (LIKELY(read_count > 0)) { | 428 | 27.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.0k | } | 430 | | | 431 | 27.0k | *n = read_count; | 432 | 27.0k | return Status::OK(); | 433 | 27.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.8k | MutableColumnPtr& dst) override { | 409 | 13.8k | DCHECK(_parsed); | 410 | 13.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.8k | auto total = *n; | 416 | 13.8k | auto read_count = 0; | 417 | 13.8k | _buffer.resize(total); | 418 | 8.79M | for (size_t i = 0; i < total; ++i) { | 419 | 8.77M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.77M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 737 | break; | 422 | 737 | } | 423 | | | 424 | 8.77M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.77M | } | 426 | | | 427 | 13.8k | if (LIKELY(read_count > 0)) { | 428 | 13.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.8k | } | 430 | | | 431 | 13.8k | *n = read_count; | 432 | 13.8k | return Status::OK(); | 433 | 13.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 963 | MutableColumnPtr& dst) override { | 409 | 963 | DCHECK(_parsed); | 410 | 963 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 963 | auto total = *n; | 416 | 963 | auto read_count = 0; | 417 | 963 | _buffer.resize(total); | 418 | 2.77k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 963 | if (LIKELY(read_count > 0)) { | 428 | 963 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 963 | } | 430 | | | 431 | 963 | *n = read_count; | 432 | 963 | return Status::OK(); | 433 | 963 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 456 | MutableColumnPtr& dst) override { | 409 | 456 | DCHECK(_parsed); | 410 | 456 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 456 | auto total = *n; | 416 | 456 | auto read_count = 0; | 417 | 456 | _buffer.resize(total); | 418 | 1.17k | for (size_t i = 0; i < total; ++i) { | 419 | 720 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 720 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 720 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 720 | } | 426 | | | 427 | 456 | if (LIKELY(read_count > 0)) { | 428 | 456 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 456 | } | 430 | | | 431 | 456 | *n = read_count; | 432 | 456 | return Status::OK(); | 433 | 456 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 354 | MutableColumnPtr& dst) override { | 409 | 354 | DCHECK(_parsed); | 410 | 354 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 354 | auto total = *n; | 416 | 354 | auto read_count = 0; | 417 | 354 | _buffer.resize(total); | 418 | 1.22k | for (size_t i = 0; i < total; ++i) { | 419 | 869 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 869 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 869 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 869 | } | 426 | | | 427 | 354 | if (LIKELY(read_count > 0)) { | 428 | 354 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 354 | } | 430 | | | 431 | 354 | *n = read_count; | 432 | 354 | return Status::OK(); | 433 | 354 | } |
|
434 | | |
435 | 218k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 218k | return next_batch<false>(n, dst); |
437 | 218k | } 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 | 218k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 218k | return next_batch<false>(n, dst); | 437 | 218k | } |
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 | 4 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | 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 | 3.95M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 2.01M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 227k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 226k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 100k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 119k | 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 | 232k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 205k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 217k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 232k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 47.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 204k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.04k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 14 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.38k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 752 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 121k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 308 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 52 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 99 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 93.1M | char* get_data(size_t index) const { |
444 | 93.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 93.1M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 19.5M | char* get_data(size_t index) const { | 444 | 19.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 19.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.93M | char* get_data(size_t index) const { | 444 | 1.93M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.93M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 660k | char* get_data(size_t index) const { | 444 | 660k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 660k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 14.6M | char* get_data(size_t index) const { | 444 | 14.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 14.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.30M | char* get_data(size_t index) const { | 444 | 1.30M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.30M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 832k | char* get_data(size_t index) const { | 444 | 832k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 832k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.20M | char* get_data(size_t index) const { | 444 | 1.20M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.20M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 5.97M | char* get_data(size_t index) const { | 444 | 5.97M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.97M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 484k | char* get_data(size_t index) const { | 444 | 484k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 484k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.83M | char* get_data(size_t index) const { | 444 | 6.83M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.83M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.67M | char* get_data(size_t index) const { | 444 | 9.67M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.67M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 470k | char* get_data(size_t index) const { | 444 | 470k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 470k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 20.6k | char* get_data(size_t index) const { | 444 | 20.6k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.6k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.56k | char* get_data(size_t index) const { | 444 | 1.56k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.56k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 23.1k | char* get_data(size_t index) const { | 444 | 23.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 20.6M | char* get_data(size_t index) const { | 444 | 20.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.80M | char* get_data(size_t index) const { | 444 | 8.80M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.80M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.98k | char* get_data(size_t index) const { | 444 | 4.98k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.98k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 14.0k | char* get_data(size_t index) const { | 444 | 14.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 14.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 9.16k | char* get_data(size_t index) const { | 444 | 9.16k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.16k | } |
|
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 |