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 | 710k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 324k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 48.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.27k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 109k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 10.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 66.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 5.61k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 6.82k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 353 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 42.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 448 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.59k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 340 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.84k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.21k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 721 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 718 | Status init() override { return reset(); } |
|
96 | | |
97 | 141M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 141M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 55.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 10.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 411k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 10.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 67.0k | 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 | 5.48k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 8.33k | 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 | 369 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 44.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 42.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 511 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.62k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 253 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.29k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 23.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 17.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.39k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 628 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 641 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.38M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.38M | return add_internal<false>(vals, count); |
101 | 1.38M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 673k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 673k | return add_internal<false>(vals, count); | 101 | 673k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 55.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 55.4k | return add_internal<false>(vals, count); | 101 | 55.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 10.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.9k | return add_internal<false>(vals, count); | 101 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 411k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 411k | return add_internal<false>(vals, count); | 101 | 411k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 10.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.4k | return add_internal<false>(vals, count); | 101 | 10.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 67.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 67.0k | return add_internal<false>(vals, count); | 101 | 67.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 5.48k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.48k | return add_internal<false>(vals, count); | 101 | 5.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 8.33k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.33k | return add_internal<false>(vals, count); | 101 | 8.33k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 369 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 369 | return add_internal<false>(vals, count); | 101 | 369 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 44.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.0k | return add_internal<false>(vals, count); | 101 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 42.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 42.2k | return add_internal<false>(vals, count); | 101 | 42.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 511 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 511 | return add_internal<false>(vals, count); | 101 | 511 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.62k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.62k | return add_internal<false>(vals, count); | 101 | 7.62k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 253 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 253 | return add_internal<false>(vals, count); | 101 | 253 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.29k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.29k | return add_internal<false>(vals, count); | 101 | 5.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 23.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 23.3k | return add_internal<false>(vals, count); | 101 | 23.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 17.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 17.8k | return add_internal<false>(vals, count); | 101 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.39k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.39k | return add_internal<false>(vals, count); | 101 | 1.39k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 628 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 628 | return add_internal<false>(vals, count); | 101 | 628 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 641 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 641 | return add_internal<false>(vals, count); | 101 | 641 | } |
|
102 | | |
103 | 141M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 141M | return add_internal<true>(vals, count); |
105 | 141M | } |
106 | | |
107 | | template <bool single> |
108 | 140M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 140M | DCHECK(!_finished); |
110 | 140M | 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 | 140M | uint32_t to_add = cast_set<UInt32>( |
126 | 140M | 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 | 140M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 140M | 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 | 140M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 143M | _count += to_add; |
134 | 143M | _remain_element_capacity -= to_add; |
135 | 143M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 143M | *num_written = to_add; |
138 | 143M | 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 | 141M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 141M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 141M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 141M | 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 | 141M | } |
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 | 143M | return Status::OK(); |
159 | 140M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 673k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 673k | DCHECK(!_finished); | 110 | 673k | 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 | 673k | uint32_t to_add = cast_set<UInt32>( | 126 | 673k | 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 | 673k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 673k | 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 | 673k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 673k | _count += to_add; | 134 | 673k | _remain_element_capacity -= to_add; | 135 | 673k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 673k | *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 | 673k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 673k | return Status::OK(); | 159 | 673k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 138M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 138M | DCHECK(!_finished); | 110 | 138M | 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 | 138M | uint32_t to_add = cast_set<UInt32>( | 126 | 138M | 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 | 138M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 138M | 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 | 138M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 141M | _count += to_add; | 134 | 141M | _remain_element_capacity -= to_add; | 135 | 141M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 141M | *num_written = to_add; | 138 | 141M | 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 | 141M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 141M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 141M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 141M | 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 | 141M | } | 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 | 141M | return Status::OK(); | 159 | 138M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 55.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 55.4k | DCHECK(!_finished); | 110 | 55.4k | 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 | 55.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 55.4k | 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 | 55.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 55.4k | 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 | 55.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 55.4k | _count += to_add; | 134 | 55.4k | _remain_element_capacity -= to_add; | 135 | 55.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 55.4k | *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 | 55.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 55.4k | return Status::OK(); | 159 | 55.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.9k | DCHECK(!_finished); | 110 | 10.9k | 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.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.9k | 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.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.9k | 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.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.9k | _count += to_add; | 134 | 10.9k | _remain_element_capacity -= to_add; | 135 | 10.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.9k | *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.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.9k | return Status::OK(); | 159 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 411k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 411k | DCHECK(!_finished); | 110 | 411k | 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 | 411k | uint32_t to_add = cast_set<UInt32>( | 126 | 411k | 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 | 411k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 411k | 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 | 411k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 411k | _count += to_add; | 134 | 411k | _remain_element_capacity -= to_add; | 135 | 411k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 411k | *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 | 411k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 411k | return Status::OK(); | 159 | 411k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.4k | DCHECK(!_finished); | 110 | 10.4k | 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.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.4k | 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.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.4k | 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.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.4k | _count += to_add; | 134 | 10.4k | _remain_element_capacity -= to_add; | 135 | 10.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.4k | *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.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.4k | return Status::OK(); | 159 | 10.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 67.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 67.0k | DCHECK(!_finished); | 110 | 67.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 | 67.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 67.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 | 67.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 67.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 | 67.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 67.0k | _count += to_add; | 134 | 67.0k | _remain_element_capacity -= to_add; | 135 | 67.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 67.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 | 67.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 67.0k | return Status::OK(); | 159 | 67.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.48k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.48k | DCHECK(!_finished); | 110 | 5.48k | 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.48k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.48k | 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.48k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.48k | 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.48k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.48k | _count += to_add; | 134 | 5.48k | _remain_element_capacity -= to_add; | 135 | 5.48k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.48k | *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.48k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.48k | return Status::OK(); | 159 | 5.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.33k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.33k | DCHECK(!_finished); | 110 | 8.33k | 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.33k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.33k | 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.33k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.33k | 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.33k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.33k | _count += to_add; | 134 | 8.33k | _remain_element_capacity -= to_add; | 135 | 8.33k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.33k | *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.33k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.33k | return Status::OK(); | 159 | 8.33k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 369 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 369 | DCHECK(!_finished); | 110 | 369 | 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 | 369 | uint32_t to_add = cast_set<UInt32>( | 126 | 369 | 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 | 369 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 369 | 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 | 369 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 369 | _count += to_add; | 134 | 369 | _remain_element_capacity -= to_add; | 135 | 369 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 369 | *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 | 369 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 369 | return Status::OK(); | 159 | 369 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.0k | DCHECK(!_finished); | 110 | 44.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 | 44.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.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 | 44.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.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 | 44.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.0k | _count += to_add; | 134 | 44.0k | _remain_element_capacity -= to_add; | 135 | 44.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.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 | 44.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.0k | return Status::OK(); | 159 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 42.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 42.2k | DCHECK(!_finished); | 110 | 42.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 | 42.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 42.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 | 42.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 42.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 | 42.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 42.2k | _count += to_add; | 134 | 42.2k | _remain_element_capacity -= to_add; | 135 | 42.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 42.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 | 42.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 42.2k | return Status::OK(); | 159 | 42.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 511 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 511 | DCHECK(!_finished); | 110 | 511 | 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 | 511 | uint32_t to_add = cast_set<UInt32>( | 126 | 511 | 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 | 511 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 511 | 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 | 511 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 511 | _count += to_add; | 134 | 511 | _remain_element_capacity -= to_add; | 135 | 511 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 511 | *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 | 511 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 511 | return Status::OK(); | 159 | 511 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.62k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.62k | DCHECK(!_finished); | 110 | 7.62k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 7.62k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.62k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 7.62k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.62k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 7.62k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.62k | _count += to_add; | 134 | 7.62k | _remain_element_capacity -= to_add; | 135 | 7.62k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.62k | *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.62k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.62k | return Status::OK(); | 159 | 7.62k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 253 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 253 | DCHECK(!_finished); | 110 | 253 | 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 | 253 | uint32_t to_add = cast_set<UInt32>( | 126 | 253 | 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 | 253 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 253 | 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 | 253 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 253 | _count += to_add; | 134 | 253 | _remain_element_capacity -= to_add; | 135 | 253 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 253 | *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 | 253 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 253 | return Status::OK(); | 159 | 253 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.29k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.29k | DCHECK(!_finished); | 110 | 5.29k | 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.29k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.29k | 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.29k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.29k | 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.29k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.29k | _count += to_add; | 134 | 5.29k | _remain_element_capacity -= to_add; | 135 | 5.29k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.29k | *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.29k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.29k | return Status::OK(); | 159 | 5.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 23.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 23.3k | DCHECK(!_finished); | 110 | 23.3k | 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.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 23.3k | 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.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 23.3k | 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.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 23.3k | _count += to_add; | 134 | 23.3k | _remain_element_capacity -= to_add; | 135 | 23.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 23.3k | *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.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 23.3k | return Status::OK(); | 159 | 23.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 17.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 17.8k | DCHECK(!_finished); | 110 | 17.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 | 17.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 17.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 | 17.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 17.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 | 17.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 17.8k | _count += to_add; | 134 | 17.8k | _remain_element_capacity -= to_add; | 135 | 17.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 17.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 | 17.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 17.8k | return Status::OK(); | 159 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.39k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.39k | DCHECK(!_finished); | 110 | 1.39k | 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.39k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.39k | 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.39k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.39k | 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.39k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.39k | _count += to_add; | 134 | 1.39k | _remain_element_capacity -= to_add; | 135 | 1.39k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.39k | *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.39k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.39k | return Status::OK(); | 159 | 1.39k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 628 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 628 | DCHECK(!_finished); | 110 | 628 | 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 | 628 | uint32_t to_add = cast_set<UInt32>( | 126 | 628 | 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 | 628 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 628 | 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 | 628 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 628 | _count += to_add; | 134 | 628 | _remain_element_capacity -= to_add; | 135 | 628 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 628 | *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 | 628 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 628 | return Status::OK(); | 159 | 628 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 641 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 641 | DCHECK(!_finished); | 110 | 641 | 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 | 641 | uint32_t to_add = cast_set<UInt32>( | 126 | 641 | 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 | 641 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 641 | 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 | 641 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 641 | _count += to_add; | 134 | 641 | _remain_element_capacity -= to_add; | 135 | 641 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 641 | *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 | 641 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 641 | return Status::OK(); | 159 | 641 | } |
|
160 | | |
161 | 705k | Status finish(OwnedSlice* slice) override { |
162 | 705k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 705k | return Status::OK(); |
164 | 705k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 310k | Status finish(OwnedSlice* slice) override { | 162 | 310k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 310k | return Status::OK(); | 164 | 310k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 47.5k | Status finish(OwnedSlice* slice) override { | 162 | 47.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 47.5k | return Status::OK(); | 164 | 47.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.81k | Status finish(OwnedSlice* slice) override { | 162 | 7.81k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.81k | return Status::OK(); | 164 | 7.81k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 113k | Status finish(OwnedSlice* slice) override { | 162 | 113k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 113k | return Status::OK(); | 164 | 113k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.5k | Status finish(OwnedSlice* slice) override { | 162 | 10.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.5k | return Status::OK(); | 164 | 10.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 66.2k | Status finish(OwnedSlice* slice) override { | 162 | 66.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 66.2k | return Status::OK(); | 164 | 66.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 5.23k | Status finish(OwnedSlice* slice) override { | 162 | 5.23k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 5.23k | return Status::OK(); | 164 | 5.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.16k | Status finish(OwnedSlice* slice) override { | 162 | 7.16k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.16k | return Status::OK(); | 164 | 7.16k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 364 | Status finish(OwnedSlice* slice) override { | 162 | 364 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 364 | return Status::OK(); | 164 | 364 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.0k | Status finish(OwnedSlice* slice) override { | 162 | 38.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.1k | return Status::OK(); | 164 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 41.5k | Status finish(OwnedSlice* slice) override { | 162 | 41.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 41.5k | return Status::OK(); | 164 | 41.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 601 | Status finish(OwnedSlice* slice) override { | 162 | 601 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 601 | return Status::OK(); | 164 | 601 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.70k | Status finish(OwnedSlice* slice) override { | 162 | 7.70k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.71k | return Status::OK(); | 164 | 7.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 255 | Status finish(OwnedSlice* slice) override { | 162 | 255 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 255 | return Status::OK(); | 164 | 255 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.83k | Status finish(OwnedSlice* slice) override { | 162 | 9.83k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.83k | return Status::OK(); | 164 | 9.83k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.3k | Status finish(OwnedSlice* slice) override { | 162 | 18.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.3k | return Status::OK(); | 164 | 18.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.0k | Status finish(OwnedSlice* slice) override { | 162 | 17.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.0k | return Status::OK(); | 164 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.12k | Status finish(OwnedSlice* slice) override { | 162 | 1.12k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.12k | return Status::OK(); | 164 | 1.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 634 | Status finish(OwnedSlice* slice) override { | 162 | 634 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 634 | return Status::OK(); | 164 | 634 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 631 | Status finish(OwnedSlice* slice) override { | 162 | 631 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 631 | return Status::OK(); | 164 | 631 | } |
|
165 | | |
166 | 1.67M | Status reset() override { |
167 | 1.67M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.67M | size_t block_size = _options.data_page_size; |
169 | 1.67M | _count = 0; |
170 | 1.67M | _raw_data_size = 0; |
171 | 1.67M | _data.clear(); |
172 | 1.67M | _data.reserve(block_size); |
173 | 1.67M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.67M | << "buffer must be naturally-aligned"; |
175 | 1.67M | _buffer.clear(); |
176 | 1.67M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.67M | _finished = false; |
178 | 1.67M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.67M | }); |
180 | 1.68M | return Status::OK(); |
181 | 1.67M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 898k | Status reset() override { | 167 | 898k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 898k | size_t block_size = _options.data_page_size; | 169 | 898k | _count = 0; | 170 | 898k | _raw_data_size = 0; | 171 | 898k | _data.clear(); | 172 | 898k | _data.reserve(block_size); | 173 | 898k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 898k | << "buffer must be naturally-aligned"; | 175 | 898k | _buffer.clear(); | 176 | 898k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 898k | _finished = false; | 178 | 898k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 898k | }); | 180 | 900k | return Status::OK(); | 181 | 898k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 95.6k | Status reset() override { | 167 | 95.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 95.6k | size_t block_size = _options.data_page_size; | 169 | 95.6k | _count = 0; | 170 | 95.6k | _raw_data_size = 0; | 171 | 95.6k | _data.clear(); | 172 | 95.6k | _data.reserve(block_size); | 173 | 95.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 95.6k | << "buffer must be naturally-aligned"; | 175 | 95.6k | _buffer.clear(); | 176 | 95.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 95.6k | _finished = false; | 178 | 95.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 95.6k | }); | 180 | 95.7k | return Status::OK(); | 181 | 95.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 16.0k | Status reset() override { | 167 | 16.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 16.0k | size_t block_size = _options.data_page_size; | 169 | 16.0k | _count = 0; | 170 | 16.0k | _raw_data_size = 0; | 171 | 16.0k | _data.clear(); | 172 | 16.0k | _data.reserve(block_size); | 173 | 16.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 16.0k | << "buffer must be naturally-aligned"; | 175 | 16.0k | _buffer.clear(); | 176 | 16.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 16.0k | _finished = false; | 178 | 16.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 16.0k | }); | 180 | 16.0k | return Status::OK(); | 181 | 16.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 223k | Status reset() override { | 167 | 223k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 223k | size_t block_size = _options.data_page_size; | 169 | 223k | _count = 0; | 170 | 223k | _raw_data_size = 0; | 171 | 223k | _data.clear(); | 172 | 223k | _data.reserve(block_size); | 173 | 223k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 223k | << "buffer must be naturally-aligned"; | 175 | 223k | _buffer.clear(); | 176 | 223k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 223k | _finished = false; | 178 | 223k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 223k | }); | 180 | 224k | return Status::OK(); | 181 | 223k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 21.0k | Status reset() override { | 167 | 21.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 21.0k | size_t block_size = _options.data_page_size; | 169 | 21.0k | _count = 0; | 170 | 21.0k | _raw_data_size = 0; | 171 | 21.0k | _data.clear(); | 172 | 21.0k | _data.reserve(block_size); | 173 | 21.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 21.0k | << "buffer must be naturally-aligned"; | 175 | 21.0k | _buffer.clear(); | 176 | 21.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 21.0k | _finished = false; | 178 | 21.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 21.0k | }); | 180 | 21.0k | return Status::OK(); | 181 | 21.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 132k | Status reset() override { | 167 | 132k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 132k | size_t block_size = _options.data_page_size; | 169 | 132k | _count = 0; | 170 | 132k | _raw_data_size = 0; | 171 | 132k | _data.clear(); | 172 | 132k | _data.reserve(block_size); | 173 | 132k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 132k | << "buffer must be naturally-aligned"; | 175 | 132k | _buffer.clear(); | 176 | 132k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 132k | _finished = false; | 178 | 132k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 132k | }); | 180 | 132k | return Status::OK(); | 181 | 132k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 10.8k | Status reset() override { | 167 | 10.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 10.8k | size_t block_size = _options.data_page_size; | 169 | 10.8k | _count = 0; | 170 | 10.8k | _raw_data_size = 0; | 171 | 10.8k | _data.clear(); | 172 | 10.8k | _data.reserve(block_size); | 173 | 10.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 10.8k | << "buffer must be naturally-aligned"; | 175 | 10.8k | _buffer.clear(); | 176 | 10.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 10.8k | _finished = false; | 178 | 10.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 10.8k | }); | 180 | 10.8k | return Status::OK(); | 181 | 10.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 13.9k | Status reset() override { | 167 | 13.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 13.9k | size_t block_size = _options.data_page_size; | 169 | 13.9k | _count = 0; | 170 | 13.9k | _raw_data_size = 0; | 171 | 13.9k | _data.clear(); | 172 | 13.9k | _data.reserve(block_size); | 173 | 13.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 13.9k | << "buffer must be naturally-aligned"; | 175 | 13.9k | _buffer.clear(); | 176 | 13.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 13.9k | _finished = false; | 178 | 13.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 13.9k | }); | 180 | 13.9k | return Status::OK(); | 181 | 13.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 717 | Status reset() override { | 167 | 717 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 717 | size_t block_size = _options.data_page_size; | 169 | 717 | _count = 0; | 170 | 717 | _raw_data_size = 0; | 171 | 717 | _data.clear(); | 172 | 717 | _data.reserve(block_size); | 173 | 717 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 717 | << "buffer must be naturally-aligned"; | 175 | 717 | _buffer.clear(); | 176 | 717 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 717 | _finished = false; | 178 | 717 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 717 | }); | 180 | 717 | return Status::OK(); | 181 | 717 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.6k | Status reset() override { | 167 | 75.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.6k | size_t block_size = _options.data_page_size; | 169 | 75.6k | _count = 0; | 170 | 75.6k | _raw_data_size = 0; | 171 | 75.6k | _data.clear(); | 172 | 75.6k | _data.reserve(block_size); | 173 | 75.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.6k | << "buffer must be naturally-aligned"; | 175 | 75.6k | _buffer.clear(); | 176 | 75.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.6k | _finished = false; | 178 | 75.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.6k | }); | 180 | 75.7k | return Status::OK(); | 181 | 75.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 84.1k | Status reset() override { | 167 | 84.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 84.1k | size_t block_size = _options.data_page_size; | 169 | 84.1k | _count = 0; | 170 | 84.1k | _raw_data_size = 0; | 171 | 84.1k | _data.clear(); | 172 | 84.1k | _data.reserve(block_size); | 173 | 84.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 84.1k | << "buffer must be naturally-aligned"; | 175 | 84.1k | _buffer.clear(); | 176 | 84.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 84.1k | _finished = false; | 178 | 84.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 84.1k | }); | 180 | 84.1k | return Status::OK(); | 181 | 84.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.04k | Status reset() override { | 167 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.04k | size_t block_size = _options.data_page_size; | 169 | 1.04k | _count = 0; | 170 | 1.04k | _raw_data_size = 0; | 171 | 1.04k | _data.clear(); | 172 | 1.04k | _data.reserve(block_size); | 173 | 1.04k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.04k | << "buffer must be naturally-aligned"; | 175 | 1.04k | _buffer.clear(); | 176 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.04k | _finished = false; | 178 | 1.04k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.04k | }); | 180 | 1.04k | return Status::OK(); | 181 | 1.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 15.2k | Status reset() override { | 167 | 15.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.2k | size_t block_size = _options.data_page_size; | 169 | 15.2k | _count = 0; | 170 | 15.2k | _raw_data_size = 0; | 171 | 15.2k | _data.clear(); | 172 | 15.2k | _data.reserve(block_size); | 173 | 15.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.2k | << "buffer must be naturally-aligned"; | 175 | 15.2k | _buffer.clear(); | 176 | 15.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.2k | _finished = false; | 178 | 15.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.2k | }); | 180 | 15.4k | return Status::OK(); | 181 | 15.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 595 | Status reset() override { | 167 | 595 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 595 | size_t block_size = _options.data_page_size; | 169 | 595 | _count = 0; | 170 | 595 | _raw_data_size = 0; | 171 | 595 | _data.clear(); | 172 | 595 | _data.reserve(block_size); | 173 | 595 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 595 | << "buffer must be naturally-aligned"; | 175 | 595 | _buffer.clear(); | 176 | 595 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 595 | _finished = false; | 178 | 595 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 595 | }); | 180 | 595 | return Status::OK(); | 181 | 595 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.6k | Status reset() override { | 167 | 19.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.6k | size_t block_size = _options.data_page_size; | 169 | 19.6k | _count = 0; | 170 | 19.6k | _raw_data_size = 0; | 171 | 19.6k | _data.clear(); | 172 | 19.6k | _data.reserve(block_size); | 173 | 19.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.6k | << "buffer must be naturally-aligned"; | 175 | 19.6k | _buffer.clear(); | 176 | 19.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.6k | _finished = false; | 178 | 19.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.6k | }); | 180 | 19.6k | return Status::OK(); | 181 | 19.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 30.3k | Status reset() override { | 167 | 30.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 30.3k | size_t block_size = _options.data_page_size; | 169 | 30.3k | _count = 0; | 170 | 30.3k | _raw_data_size = 0; | 171 | 30.3k | _data.clear(); | 172 | 30.3k | _data.reserve(block_size); | 173 | 30.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 30.3k | << "buffer must be naturally-aligned"; | 175 | 30.3k | _buffer.clear(); | 176 | 30.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 30.3k | _finished = false; | 178 | 30.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 30.3k | }); | 180 | 30.3k | return Status::OK(); | 181 | 30.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 33.8k | Status reset() override { | 167 | 33.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 33.8k | size_t block_size = _options.data_page_size; | 169 | 33.8k | _count = 0; | 170 | 33.8k | _raw_data_size = 0; | 171 | 33.8k | _data.clear(); | 172 | 33.8k | _data.reserve(block_size); | 173 | 33.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 33.8k | << "buffer must be naturally-aligned"; | 175 | 33.8k | _buffer.clear(); | 176 | 33.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 33.8k | _finished = false; | 178 | 33.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 33.8k | }); | 180 | 33.8k | return Status::OK(); | 181 | 33.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.34k | Status reset() override { | 167 | 2.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.34k | size_t block_size = _options.data_page_size; | 169 | 2.34k | _count = 0; | 170 | 2.34k | _raw_data_size = 0; | 171 | 2.34k | _data.clear(); | 172 | 2.34k | _data.reserve(block_size); | 173 | 2.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.34k | << "buffer must be naturally-aligned"; | 175 | 2.34k | _buffer.clear(); | 176 | 2.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.34k | _finished = false; | 178 | 2.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.34k | }); | 180 | 2.34k | return Status::OK(); | 181 | 2.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.35k | Status reset() override { | 167 | 1.35k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.35k | size_t block_size = _options.data_page_size; | 169 | 1.35k | _count = 0; | 170 | 1.35k | _raw_data_size = 0; | 171 | 1.35k | _data.clear(); | 172 | 1.35k | _data.reserve(block_size); | 173 | 1.35k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.35k | << "buffer must be naturally-aligned"; | 175 | 1.35k | _buffer.clear(); | 176 | 1.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.35k | _finished = false; | 178 | 1.35k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.35k | }); | 180 | 1.35k | return Status::OK(); | 181 | 1.35k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.34k | Status reset() override { | 167 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.34k | size_t block_size = _options.data_page_size; | 169 | 1.34k | _count = 0; | 170 | 1.34k | _raw_data_size = 0; | 171 | 1.34k | _data.clear(); | 172 | 1.34k | _data.reserve(block_size); | 173 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.34k | << "buffer must be naturally-aligned"; | 175 | 1.34k | _buffer.clear(); | 176 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.34k | _finished = false; | 178 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.34k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.34k | } |
|
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 | 36.1k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 19.4k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.26k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 982 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 3.05k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.43k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 811 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 569 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 512 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 56 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.64k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.31k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 63 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 56 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 52 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 235 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 341 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.16k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 54 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 76 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 60 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 457k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 62.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 47.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.81k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 113k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.2k | 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 | 5.23k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.16k | 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 | 364 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 41.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 601 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.71k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 255 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.83k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.12k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 634 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 631 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 709k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 323k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 48.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.27k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 109k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 66.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 5.61k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 6.82k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 353 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 42.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 448 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.52k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 340 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.83k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.21k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 721 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 717 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 705k | OwnedSlice _finish(int final_size_of_type) { |
194 | 705k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 705k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 705k | int padding_elems = num_elems_after_padding - _count; |
199 | 705k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 20.7M | for (int i = 0; i < padding_bytes; i++) { |
201 | 20.0M | _data.push_back(0); |
202 | 20.0M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 705k | _buffer.resize( |
206 | 705k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 705k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 705k | int64_t bytes = |
210 | 705k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 705k | num_elems_after_padding, final_size_of_type, 0); |
212 | 705k | 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 | 705k | encode_fixed32_le(&_buffer[0], _count); |
222 | 705k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 705k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 705k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 705k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 705k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 705k | return _buffer.build(); |
229 | 705k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 310k | OwnedSlice _finish(int final_size_of_type) { | 194 | 310k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 310k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 310k | int padding_elems = num_elems_after_padding - _count; | 199 | 310k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.97M | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.66M | _data.push_back(0); | 202 | 5.66M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 310k | _buffer.resize( | 206 | 310k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 310k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 310k | int64_t bytes = | 210 | 310k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 310k | num_elems_after_padding, final_size_of_type, 0); | 212 | 310k | 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 | 310k | encode_fixed32_le(&_buffer[0], _count); | 222 | 310k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 310k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 310k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 310k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 310k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 310k | return _buffer.build(); | 229 | 310k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 47.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 47.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 47.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 47.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 47.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 300k | for (int i = 0; i < padding_bytes; i++) { | 201 | 252k | _data.push_back(0); | 202 | 252k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 47.5k | _buffer.resize( | 206 | 47.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 47.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 47.5k | int64_t bytes = | 210 | 47.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 47.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 47.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 | 47.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 47.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 47.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 47.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 47.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 47.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 47.5k | return _buffer.build(); | 229 | 47.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 7.81k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.81k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.81k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.81k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.81k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 78.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 70.8k | _data.push_back(0); | 202 | 70.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.81k | _buffer.resize( | 206 | 7.81k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.81k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.81k | int64_t bytes = | 210 | 7.81k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.81k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.81k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.81k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.81k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.81k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.81k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.81k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.81k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.81k | return _buffer.build(); | 229 | 7.81k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 113k | OwnedSlice _finish(int final_size_of_type) { | 194 | 113k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 113k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 113k | int padding_elems = num_elems_after_padding - _count; | 199 | 113k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.12M | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.00M | _data.push_back(0); | 202 | 5.00M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 113k | _buffer.resize( | 206 | 113k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 113k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 113k | int64_t bytes = | 210 | 113k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 113k | num_elems_after_padding, final_size_of_type, 0); | 212 | 113k | 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 | 113k | encode_fixed32_le(&_buffer[0], _count); | 222 | 113k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 113k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 113k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 113k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 113k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 113k | return _buffer.build(); | 229 | 113k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 10.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 681k | for (int i = 0; i < padding_bytes; i++) { | 201 | 670k | _data.push_back(0); | 202 | 670k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.5k | _buffer.resize( | 206 | 10.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.5k | int64_t bytes = | 210 | 10.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 10.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.5k | return _buffer.build(); | 229 | 10.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 66.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 66.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 66.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 66.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 66.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.21M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.15M | _data.push_back(0); | 202 | 3.15M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 66.2k | _buffer.resize( | 206 | 66.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 66.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 66.2k | int64_t bytes = | 210 | 66.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 66.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 66.2k | 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 | 66.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 66.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 66.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 66.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 66.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 66.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 66.2k | return _buffer.build(); | 229 | 66.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 5.23k | OwnedSlice _finish(int final_size_of_type) { | 194 | 5.23k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 5.23k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 5.23k | int padding_elems = num_elems_after_padding - _count; | 199 | 5.23k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 108k | for (int i = 0; i < padding_bytes; i++) { | 201 | 103k | _data.push_back(0); | 202 | 103k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 5.23k | _buffer.resize( | 206 | 5.23k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 5.23k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 5.23k | int64_t bytes = | 210 | 5.23k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 5.23k | num_elems_after_padding, final_size_of_type, 0); | 212 | 5.23k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 5.23k | encode_fixed32_le(&_buffer[0], _count); | 222 | 5.23k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 5.23k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 5.23k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 5.23k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 5.23k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 5.23k | return _buffer.build(); | 229 | 5.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 7.16k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.16k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.16k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.16k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.16k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 275k | for (int i = 0; i < padding_bytes; i++) { | 201 | 267k | _data.push_back(0); | 202 | 267k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.16k | _buffer.resize( | 206 | 7.16k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.16k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.16k | int64_t bytes = | 210 | 7.16k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.16k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.16k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.16k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.16k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.16k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.16k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.16k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.16k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.16k | return _buffer.build(); | 229 | 7.16k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 364 | OwnedSlice _finish(int final_size_of_type) { | 194 | 364 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 364 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 364 | int padding_elems = num_elems_after_padding - _count; | 199 | 364 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.45k | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.08k | _data.push_back(0); | 202 | 5.08k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 364 | _buffer.resize( | 206 | 364 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 364 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 364 | int64_t bytes = | 210 | 364 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 364 | num_elems_after_padding, final_size_of_type, 0); | 212 | 364 | 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 | 364 | encode_fixed32_le(&_buffer[0], _count); | 222 | 364 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 364 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 364 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 364 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 364 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 364 | return _buffer.build(); | 229 | 364 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 809k | for (int i = 0; i < padding_bytes; i++) { | 201 | 771k | _data.push_back(0); | 202 | 771k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.1k | _buffer.resize( | 206 | 38.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.1k | int64_t bytes = | 210 | 38.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.1k | 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 | 38.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.1k | return _buffer.build(); | 229 | 38.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 41.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 41.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 41.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 41.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 41.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.73M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.69M | _data.push_back(0); | 202 | 1.69M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 41.5k | _buffer.resize( | 206 | 41.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 41.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 41.5k | int64_t bytes = | 210 | 41.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 41.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 41.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 | 41.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 41.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 41.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 41.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 41.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 41.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 41.5k | return _buffer.build(); | 229 | 41.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 601 | OwnedSlice _finish(int final_size_of_type) { | 194 | 601 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 601 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 601 | int padding_elems = num_elems_after_padding - _count; | 199 | 601 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 13.2k | _data.push_back(0); | 202 | 13.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 601 | _buffer.resize( | 206 | 601 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 601 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 601 | int64_t bytes = | 210 | 601 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 601 | num_elems_after_padding, final_size_of_type, 0); | 212 | 601 | 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 | 601 | encode_fixed32_le(&_buffer[0], _count); | 222 | 601 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 601 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 601 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 601 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 601 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 601 | return _buffer.build(); | 229 | 601 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.71k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.71k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.71k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.71k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.71k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 401k | for (int i = 0; i < padding_bytes; i++) { | 201 | 394k | _data.push_back(0); | 202 | 394k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.71k | _buffer.resize( | 206 | 7.71k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.71k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.71k | int64_t bytes = | 210 | 7.71k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.71k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.71k | 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.71k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.71k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.71k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.71k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.71k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.71k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.71k | return _buffer.build(); | 229 | 7.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 255 | OwnedSlice _finish(int final_size_of_type) { | 194 | 255 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 255 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 255 | int padding_elems = num_elems_after_padding - _count; | 199 | 255 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 15.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.5k | _data.push_back(0); | 202 | 15.5k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 255 | _buffer.resize( | 206 | 255 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 255 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 255 | int64_t bytes = | 210 | 255 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 255 | num_elems_after_padding, final_size_of_type, 0); | 212 | 255 | 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 | 255 | encode_fixed32_le(&_buffer[0], _count); | 222 | 255 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 255 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 255 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 255 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 255 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 255 | return _buffer.build(); | 229 | 255 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.83k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.83k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.83k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.83k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.83k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 120k | for (int i = 0; i < padding_bytes; i++) { | 201 | 110k | _data.push_back(0); | 202 | 110k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.83k | _buffer.resize( | 206 | 9.83k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.83k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.83k | int64_t bytes = | 210 | 9.83k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.83k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.83k | 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.83k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.83k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.83k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.83k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.83k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.83k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.83k | return _buffer.build(); | 229 | 9.83k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 485k | for (int i = 0; i < padding_bytes; i++) { | 201 | 466k | _data.push_back(0); | 202 | 466k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.3k | _buffer.resize( | 206 | 18.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.3k | int64_t bytes = | 210 | 18.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.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 | 18.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.3k | return _buffer.build(); | 229 | 18.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.13M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.12M | _data.push_back(0); | 202 | 1.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.0k | _buffer.resize( | 206 | 17.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.0k | int64_t bytes = | 210 | 17.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.0k | 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 | 17.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.0k | return _buffer.build(); | 229 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.12k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.12k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.12k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.12k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.12k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 176k | for (int i = 0; i < padding_bytes; i++) { | 201 | 175k | _data.push_back(0); | 202 | 175k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.12k | _buffer.resize( | 206 | 1.12k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.12k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.12k | int64_t bytes = | 210 | 1.12k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.12k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.12k | 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.12k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.12k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.12k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.12k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.12k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.12k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.12k | return _buffer.build(); | 229 | 1.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 634 | OwnedSlice _finish(int final_size_of_type) { | 194 | 634 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 634 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 634 | int padding_elems = num_elems_after_padding - _count; | 199 | 634 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.3k | _data.push_back(0); | 202 | 12.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 634 | _buffer.resize( | 206 | 634 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 634 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 634 | int64_t bytes = | 210 | 634 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 634 | num_elems_after_padding, final_size_of_type, 0); | 212 | 634 | 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 | 634 | encode_fixed32_le(&_buffer[0], _count); | 222 | 634 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 634 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 634 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 634 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 634 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 634 | return _buffer.build(); | 229 | 634 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 631 | OwnedSlice _finish(int final_size_of_type) { | 194 | 631 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 631 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 631 | int padding_elems = num_elems_after_padding - _count; | 199 | 631 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 51.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 50.8k | _data.push_back(0); | 202 | 50.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 631 | _buffer.resize( | 206 | 631 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 631 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 631 | int64_t bytes = | 210 | 631 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 631 | num_elems_after_padding, final_size_of_type, 0); | 212 | 631 | 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 | 631 | encode_fixed32_le(&_buffer[0], _count); | 222 | 631 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 631 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 631 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 631 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 631 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 631 | return _buffer.build(); | 229 | 631 | } |
|
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 | 1.79M | int& size_of_element) { |
253 | 1.79M | 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 | 1.79M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 1.79M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 1.79M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 1.79M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 1.79M | 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 | 1.79M | switch (size_of_element) { |
271 | 138k | case 1: |
272 | 162k | case 2: |
273 | 164k | case 3: |
274 | 1.10M | case 4: |
275 | 1.71M | case 8: |
276 | 1.71M | case 12: |
277 | 1.79M | case 16: |
278 | 1.79M | case 32: |
279 | 1.79M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 1.79M | } |
283 | 1.79M | return Status::OK(); |
284 | 1.79M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.11M | : _data(data), |
291 | 1.11M | _options(options), |
292 | 1.11M | _parsed(false), |
293 | 1.11M | _num_elements(0), |
294 | 1.11M | _num_element_after_padding(0), |
295 | 1.11M | _size_of_element(0), |
296 | 1.11M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 495k | : _data(data), | 291 | 495k | _options(options), | 292 | 495k | _parsed(false), | 293 | 495k | _num_elements(0), | 294 | 495k | _num_element_after_padding(0), | 295 | 495k | _size_of_element(0), | 296 | 495k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 92.1k | : _data(data), | 291 | 92.1k | _options(options), | 292 | 92.1k | _parsed(false), | 293 | 92.1k | _num_elements(0), | 294 | 92.1k | _num_element_after_padding(0), | 295 | 92.1k | _size_of_element(0), | 296 | 92.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 18.3k | : _data(data), | 291 | 18.3k | _options(options), | 292 | 18.3k | _parsed(false), | 293 | 18.3k | _num_elements(0), | 294 | 18.3k | _num_element_after_padding(0), | 295 | 18.3k | _size_of_element(0), | 296 | 18.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 136k | : _data(data), | 291 | 136k | _options(options), | 292 | 136k | _parsed(false), | 293 | 136k | _num_elements(0), | 294 | 136k | _num_element_after_padding(0), | 295 | 136k | _size_of_element(0), | 296 | 136k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.5k | : _data(data), | 291 | 17.5k | _options(options), | 292 | 17.5k | _parsed(false), | 293 | 17.5k | _num_elements(0), | 294 | 17.5k | _num_element_after_padding(0), | 295 | 17.5k | _size_of_element(0), | 296 | 17.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 87.7k | : _data(data), | 291 | 87.7k | _options(options), | 292 | 87.7k | _parsed(false), | 293 | 87.7k | _num_elements(0), | 294 | 87.7k | _num_element_after_padding(0), | 295 | 87.7k | _size_of_element(0), | 296 | 87.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 10.3k | : _data(data), | 291 | 10.3k | _options(options), | 292 | 10.3k | _parsed(false), | 293 | 10.3k | _num_elements(0), | 294 | 10.3k | _num_element_after_padding(0), | 295 | 10.3k | _size_of_element(0), | 296 | 10.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 18.1k | : _data(data), | 291 | 18.1k | _options(options), | 292 | 18.1k | _parsed(false), | 293 | 18.1k | _num_elements(0), | 294 | 18.1k | _num_element_after_padding(0), | 295 | 18.1k | _size_of_element(0), | 296 | 18.1k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.53k | : _data(data), | 291 | 1.53k | _options(options), | 292 | 1.53k | _parsed(false), | 293 | 1.53k | _num_elements(0), | 294 | 1.53k | _num_element_after_padding(0), | 295 | 1.53k | _size_of_element(0), | 296 | 1.53k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 58.4k | : _data(data), | 291 | 58.4k | _options(options), | 292 | 58.4k | _parsed(false), | 293 | 58.4k | _num_elements(0), | 294 | 58.4k | _num_element_after_padding(0), | 295 | 58.4k | _size_of_element(0), | 296 | 58.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 64.9k | : _data(data), | 291 | 64.9k | _options(options), | 292 | 64.9k | _parsed(false), | 293 | 64.9k | _num_elements(0), | 294 | 64.9k | _num_element_after_padding(0), | 295 | 64.9k | _size_of_element(0), | 296 | 64.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.54k | : _data(data), | 291 | 2.54k | _options(options), | 292 | 2.54k | _parsed(false), | 293 | 2.54k | _num_elements(0), | 294 | 2.54k | _num_element_after_padding(0), | 295 | 2.54k | _size_of_element(0), | 296 | 2.54k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_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_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.6k | : _data(data), | 291 | 15.6k | _options(options), | 292 | 15.6k | _parsed(false), | 293 | 15.6k | _num_elements(0), | 294 | 15.6k | _num_element_after_padding(0), | 295 | 15.6k | _size_of_element(0), | 296 | 15.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 41.2k | : _data(data), | 291 | 41.2k | _options(options), | 292 | 41.2k | _parsed(false), | 293 | 41.2k | _num_elements(0), | 294 | 41.2k | _num_element_after_padding(0), | 295 | 41.2k | _size_of_element(0), | 296 | 41.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.0k | : _data(data), | 291 | 30.0k | _options(options), | 292 | 30.0k | _parsed(false), | 293 | 30.0k | _num_elements(0), | 294 | 30.0k | _num_element_after_padding(0), | 295 | 30.0k | _size_of_element(0), | 296 | 30.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.74k | : _data(data), | 291 | 1.74k | _options(options), | 292 | 1.74k | _parsed(false), | 293 | 1.74k | _num_elements(0), | 294 | 1.74k | _num_element_after_padding(0), | 295 | 1.74k | _size_of_element(0), | 296 | 1.74k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 934 | : _data(data), | 291 | 934 | _options(options), | 292 | 934 | _parsed(false), | 293 | 934 | _num_elements(0), | 294 | 934 | _num_element_after_padding(0), | 295 | 934 | _size_of_element(0), | 296 | 934 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 971 | : _data(data), | 291 | 971 | _options(options), | 292 | 971 | _parsed(false), | 293 | 971 | _num_elements(0), | 294 | 971 | _num_element_after_padding(0), | 295 | 971 | _size_of_element(0), | 296 | 971 | _cur_index(0) {} |
|
297 | | |
298 | 1.11M | Status init() override { |
299 | 1.11M | CHECK(!_parsed); |
300 | 1.11M | size_t unused; |
301 | 1.11M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.11M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.11M | if (_data.size != |
305 | 1.11M | _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.11M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.11M | _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.11M | 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.11M | _parsed = true; |
325 | 1.11M | return Status::OK(); |
326 | 1.11M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 494k | Status init() override { | 299 | 494k | CHECK(!_parsed); | 300 | 494k | size_t unused; | 301 | 494k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 494k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 494k | if (_data.size != | 305 | 494k | _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 | 494k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 494k | _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 | 494k | 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 | 494k | _parsed = true; | 325 | 494k | return Status::OK(); | 326 | 494k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 92.1k | Status init() override { | 299 | 92.1k | CHECK(!_parsed); | 300 | 92.1k | size_t unused; | 301 | 92.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 92.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 92.1k | if (_data.size != | 305 | 92.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 | 92.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 92.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 | 92.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 | 92.1k | _parsed = true; | 325 | 92.1k | return Status::OK(); | 326 | 92.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 18.3k | Status init() override { | 299 | 18.3k | CHECK(!_parsed); | 300 | 18.3k | size_t unused; | 301 | 18.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 18.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 18.3k | if (_data.size != | 305 | 18.3k | _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 | 18.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 18.3k | _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 | 18.3k | 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 | 18.3k | _parsed = true; | 325 | 18.3k | return Status::OK(); | 326 | 18.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 136k | Status init() override { | 299 | 136k | CHECK(!_parsed); | 300 | 136k | size_t unused; | 301 | 136k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 136k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 136k | if (_data.size != | 305 | 136k | _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 | 136k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 136k | _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 | 136k | 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 | 136k | _parsed = true; | 325 | 136k | return Status::OK(); | 326 | 136k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 17.4k | Status init() override { | 299 | 17.4k | CHECK(!_parsed); | 300 | 17.4k | size_t unused; | 301 | 17.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 17.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 17.4k | if (_data.size != | 305 | 17.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 | 17.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 17.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 | 17.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 | 17.4k | _parsed = true; | 325 | 17.4k | return Status::OK(); | 326 | 17.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 87.7k | Status init() override { | 299 | 87.7k | CHECK(!_parsed); | 300 | 87.7k | size_t unused; | 301 | 87.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 87.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 87.7k | if (_data.size != | 305 | 87.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 | 87.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 87.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 | 87.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 | 87.7k | _parsed = true; | 325 | 87.7k | return Status::OK(); | 326 | 87.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 10.3k | Status init() override { | 299 | 10.3k | CHECK(!_parsed); | 300 | 10.3k | size_t unused; | 301 | 10.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 10.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 10.3k | if (_data.size != | 305 | 10.3k | _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 | 10.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 10.3k | _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 | 10.3k | 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 | 10.3k | _parsed = true; | 325 | 10.3k | return Status::OK(); | 326 | 10.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 18.1k | Status init() override { | 299 | 18.1k | CHECK(!_parsed); | 300 | 18.1k | size_t unused; | 301 | 18.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 18.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 18.1k | if (_data.size != | 305 | 18.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 | 18.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 18.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 | 18.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 | 18.1k | _parsed = true; | 325 | 18.1k | return Status::OK(); | 326 | 18.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.53k | Status init() override { | 299 | 1.53k | CHECK(!_parsed); | 300 | 1.53k | size_t unused; | 301 | 1.53k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.53k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.53k | if (_data.size != | 305 | 1.53k | _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.53k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.53k | _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.53k | 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.53k | _parsed = true; | 325 | 1.53k | return Status::OK(); | 326 | 1.53k | } |
_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 | 64.8k | Status init() override { | 299 | 64.8k | CHECK(!_parsed); | 300 | 64.8k | size_t unused; | 301 | 64.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 64.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 64.8k | if (_data.size != | 305 | 64.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 | 64.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 64.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 | 64.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 | 64.8k | _parsed = true; | 325 | 64.8k | return Status::OK(); | 326 | 64.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.54k | Status init() override { | 299 | 2.54k | CHECK(!_parsed); | 300 | 2.54k | size_t unused; | 301 | 2.54k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.54k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.54k | if (_data.size != | 305 | 2.54k | _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.54k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.54k | _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.54k | 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.54k | _parsed = true; | 325 | 2.54k | return Status::OK(); | 326 | 2.54k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv 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_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.6k | Status init() override { | 299 | 15.6k | CHECK(!_parsed); | 300 | 15.6k | size_t unused; | 301 | 15.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.6k | if (_data.size != | 305 | 15.6k | _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.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.6k | _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.6k | 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.6k | _parsed = true; | 325 | 15.6k | return Status::OK(); | 326 | 15.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 41.2k | Status init() override { | 299 | 41.2k | CHECK(!_parsed); | 300 | 41.2k | size_t unused; | 301 | 41.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 41.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 41.2k | if (_data.size != | 305 | 41.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 | 41.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 41.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 | 41.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 | 41.2k | _parsed = true; | 325 | 41.2k | return Status::OK(); | 326 | 41.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.0k | Status init() override { | 299 | 30.0k | CHECK(!_parsed); | 300 | 30.0k | size_t unused; | 301 | 30.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.0k | if (_data.size != | 305 | 30.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 | 30.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.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 | 30.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 | 30.0k | _parsed = true; | 325 | 30.0k | return Status::OK(); | 326 | 30.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.74k | Status init() override { | 299 | 1.74k | CHECK(!_parsed); | 300 | 1.74k | size_t unused; | 301 | 1.74k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.74k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.74k | if (_data.size != | 305 | 1.74k | _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.74k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.74k | _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.74k | 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.74k | _parsed = true; | 325 | 1.74k | return Status::OK(); | 326 | 1.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 934 | Status init() override { | 299 | 934 | CHECK(!_parsed); | 300 | 934 | size_t unused; | 301 | 934 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 934 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 934 | if (_data.size != | 305 | 934 | _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 | 934 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 934 | _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 | 934 | 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 | 934 | _parsed = true; | 325 | 934 | return Status::OK(); | 326 | 934 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 972 | Status init() override { | 299 | 972 | CHECK(!_parsed); | 300 | 972 | size_t unused; | 301 | 972 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 972 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 972 | if (_data.size != | 305 | 972 | _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 | 972 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 972 | _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 | 972 | 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 | 972 | _parsed = true; | 325 | 972 | return Status::OK(); | 326 | 972 | } |
|
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 | 3.88M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 3.88M | if (_num_elements == 0) [[unlikely]] { |
337 | 8.13k | 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 | 8.13k | } |
342 | | |
343 | 3.88M | DCHECK_LE(pos, _num_elements); |
344 | 3.88M | _cur_index = pos; |
345 | 3.88M | return Status::OK(); |
346 | 3.88M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.41M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.41M | if (_num_elements == 0) [[unlikely]] { | 337 | 4.44k | 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.44k | } | 342 | | | 343 | 1.41M | DCHECK_LE(pos, _num_elements); | 344 | 1.41M | _cur_index = pos; | 345 | 1.41M | return Status::OK(); | 346 | 1.41M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 310k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 310k | if (_num_elements == 0) [[unlikely]] { | 337 | 355 | 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 | 355 | } | 342 | | | 343 | 310k | DCHECK_LE(pos, _num_elements); | 344 | 310k | _cur_index = pos; | 345 | 310k | return Status::OK(); | 346 | 310k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_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_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 168k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 168k | if (_num_elements == 0) [[unlikely]] { | 337 | 460 | 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 | 460 | } | 342 | | | 343 | 168k | DCHECK_LE(pos, _num_elements); | 344 | 168k | _cur_index = pos; | 345 | 168k | return Status::OK(); | 346 | 168k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 126k | Status seek_to_position_in_page(size_t pos) override { | 335 | 126k | DCHECK(_parsed) << "Must call init()"; | 336 | 126k | 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 | 126k | DCHECK_LE(pos, _num_elements); | 344 | 126k | _cur_index = pos; | 345 | 126k | return Status::OK(); | 346 | 126k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 11.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 11.5k | DCHECK(_parsed) << "Must call init()"; | 336 | 11.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 11.5k | DCHECK_LE(pos, _num_elements); | 344 | 11.5k | _cur_index = pos; | 345 | 11.5k | return Status::OK(); | 346 | 11.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 237k | Status seek_to_position_in_page(size_t pos) override { | 335 | 237k | DCHECK(_parsed) << "Must call init()"; | 336 | 237k | 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 | 237k | DCHECK_LE(pos, _num_elements); | 344 | 237k | _cur_index = pos; | 345 | 237k | return Status::OK(); | 346 | 237k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 212k | Status seek_to_position_in_page(size_t pos) override { | 335 | 212k | DCHECK(_parsed) << "Must call init()"; | 336 | 212k | if (_num_elements == 0) [[unlikely]] { | 337 | 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 | 212k | DCHECK_LE(pos, _num_elements); | 344 | 212k | _cur_index = pos; | 345 | 212k | return Status::OK(); | 346 | 212k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 224k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 224k | 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 | 224k | DCHECK_LE(pos, _num_elements); | 344 | 224k | _cur_index = pos; | 345 | 224k | return Status::OK(); | 346 | 224k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 504k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 504k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | 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 | 197 | } | 342 | | | 343 | 504k | DCHECK_LE(pos, _num_elements); | 344 | 504k | _cur_index = pos; | 345 | 504k | return Status::OK(); | 346 | 504k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 76.0k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 76.0k | if (_num_elements == 0) [[unlikely]] { | 337 | 14 | 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 | 14 | } | 342 | | | 343 | 76.0k | DCHECK_LE(pos, _num_elements); | 344 | 76.0k | _cur_index = pos; | 345 | 76.0k | return Status::OK(); | 346 | 76.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 209k | Status seek_to_position_in_page(size_t pos) override { | 335 | 209k | DCHECK(_parsed) << "Must call init()"; | 336 | 209k | 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 | 209k | DCHECK_LE(pos, _num_elements); | 344 | 209k | _cur_index = pos; | 345 | 209k | return Status::OK(); | 346 | 209k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.02k | Status seek_to_position_in_page(size_t pos) override { | 335 | 7.02k | DCHECK(_parsed) << "Must call init()"; | 336 | 7.02k | 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 | 7.02k | DCHECK_LE(pos, _num_elements); | 344 | 7.02k | _cur_index = pos; | 345 | 7.02k | return Status::OK(); | 346 | 7.02k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 124 | Status seek_to_position_in_page(size_t pos) override { | 335 | 124 | DCHECK(_parsed) << "Must call init()"; | 336 | 124 | 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 | 124 | DCHECK_LE(pos, _num_elements); | 344 | 124 | _cur_index = pos; | 345 | 124 | return Status::OK(); | 346 | 124 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 864 | Status seek_to_position_in_page(size_t pos) override { | 335 | 864 | DCHECK(_parsed) << "Must call init()"; | 336 | 864 | 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 | 864 | DCHECK_LE(pos, _num_elements); | 344 | 864 | _cur_index = pos; | 345 | 864 | return Status::OK(); | 346 | 864 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.9k | Status seek_to_position_in_page(size_t pos) override { | 335 | 16.9k | DCHECK(_parsed) << "Must call init()"; | 336 | 16.9k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.70k | 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.70k | } | 342 | | | 343 | 16.9k | DCHECK_LE(pos, _num_elements); | 344 | 16.9k | _cur_index = pos; | 345 | 16.9k | return Status::OK(); | 346 | 16.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 127k | Status seek_to_position_in_page(size_t pos) override { | 335 | 127k | DCHECK(_parsed) << "Must call init()"; | 336 | 127k | if (_num_elements == 0) [[unlikely]] { | 337 | 549 | 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 | 549 | } | 342 | | | 343 | 127k | DCHECK_LE(pos, _num_elements); | 344 | 127k | _cur_index = pos; | 345 | 127k | return Status::OK(); | 346 | 127k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.94k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.94k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.94k | 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 | 1.94k | DCHECK_LE(pos, _num_elements); | 344 | 1.94k | _cur_index = pos; | 345 | 1.94k | return Status::OK(); | 346 | 1.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 25 | Status seek_to_position_in_page(size_t pos) override { | 335 | 25 | DCHECK(_parsed) << "Must call init()"; | 336 | 25 | 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 | 25 | DCHECK_LE(pos, _num_elements); | 344 | 25 | _cur_index = pos; | 345 | 25 | return Status::OK(); | 346 | 25 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 30 | Status seek_to_position_in_page(size_t pos) override { | 335 | 30 | DCHECK(_parsed) << "Must call init()"; | 336 | 30 | 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 | 30 | DCHECK_LE(pos, _num_elements); | 344 | 30 | _cur_index = pos; | 345 | 30 | return Status::OK(); | 346 | 30 | } |
|
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.85M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.85M | DCHECK(_parsed); |
389 | 1.85M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.85M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.85M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.85M | *n = max_fetch; |
398 | 1.85M | if constexpr (forward_index) { |
399 | 1.63M | _cur_index += max_fetch; |
400 | 1.63M | } |
401 | | |
402 | 1.85M | return Status::OK(); |
403 | 1.85M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 531k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 531k | DCHECK(_parsed); | 389 | 531k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 531k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 531k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 531k | *n = max_fetch; | 398 | 531k | if constexpr (forward_index) { | 399 | 531k | _cur_index += max_fetch; | 400 | 531k | } | 401 | | | 402 | 531k | return Status::OK(); | 403 | 531k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 226k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 226k | DCHECK(_parsed); | 389 | 226k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 226k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 226k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 226k | *n = max_fetch; | 398 | 226k | if constexpr (forward_index) { | 399 | 226k | _cur_index += max_fetch; | 400 | 226k | } | 401 | | | 402 | 226k | return Status::OK(); | 403 | 226k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 17.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 17.1k | DCHECK(_parsed); | 389 | 17.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 17.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 17.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 17.1k | *n = max_fetch; | 398 | 17.1k | if constexpr (forward_index) { | 399 | 17.1k | _cur_index += max_fetch; | 400 | 17.1k | } | 401 | | | 402 | 17.1k | return Status::OK(); | 403 | 17.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 132k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 132k | DCHECK(_parsed); | 389 | 132k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 132k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 132k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 132k | *n = max_fetch; | 398 | 132k | if constexpr (forward_index) { | 399 | 132k | _cur_index += max_fetch; | 400 | 132k | } | 401 | | | 402 | 132k | return Status::OK(); | 403 | 132k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 15.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.2k | DCHECK(_parsed); | 389 | 15.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 15.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.2k | *n = max_fetch; | 398 | 15.2k | if constexpr (forward_index) { | 399 | 15.2k | _cur_index += max_fetch; | 400 | 15.2k | } | 401 | | | 402 | 15.2k | return Status::OK(); | 403 | 15.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 164k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 164k | DCHECK(_parsed); | 389 | 164k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 164k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 164k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 164k | *n = max_fetch; | 398 | 164k | if constexpr (forward_index) { | 399 | 164k | _cur_index += max_fetch; | 400 | 164k | } | 401 | | | 402 | 164k | return Status::OK(); | 403 | 164k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 228k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 228k | DCHECK(_parsed); | 389 | 228k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 228k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 228k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 228k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 228k | return Status::OK(); | 403 | 228k | } |
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 | 8.10k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.10k | DCHECK(_parsed); | 389 | 8.10k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.10k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.10k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.10k | *n = max_fetch; | 398 | 8.10k | if constexpr (forward_index) { | 399 | 8.10k | _cur_index += max_fetch; | 400 | 8.10k | } | 401 | | | 402 | 8.10k | return Status::OK(); | 403 | 8.10k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 19.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 19.6k | DCHECK(_parsed); | 389 | 19.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 19.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 19.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 19.6k | *n = max_fetch; | 398 | 19.6k | if constexpr (forward_index) { | 399 | 19.6k | _cur_index += max_fetch; | 400 | 19.6k | } | 401 | | | 402 | 19.6k | return Status::OK(); | 403 | 19.6k | } |
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 | 3.78k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.78k | DCHECK(_parsed); | 389 | 3.78k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.78k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.78k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.78k | *n = max_fetch; | 398 | 3.78k | if constexpr (forward_index) { | 399 | 3.78k | _cur_index += max_fetch; | 400 | 3.78k | } | 401 | | | 402 | 3.78k | return Status::OK(); | 403 | 3.78k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 368k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 368k | DCHECK(_parsed); | 389 | 368k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 368k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 368k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 368k | *n = max_fetch; | 398 | 368k | if constexpr (forward_index) { | 399 | 368k | _cur_index += max_fetch; | 400 | 368k | } | 401 | | | 402 | 368k | return Status::OK(); | 403 | 368k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 64.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 64.8k | DCHECK(_parsed); | 389 | 64.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 64.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 64.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 64.8k | *n = max_fetch; | 398 | 64.8k | if constexpr (forward_index) { | 399 | 64.8k | _cur_index += max_fetch; | 400 | 64.8k | } | 401 | | | 402 | 64.8k | return Status::OK(); | 403 | 64.8k | } |
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.54k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.54k | DCHECK(_parsed); | 389 | 1.54k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.54k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.54k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.54k | *n = max_fetch; | 398 | 1.54k | if constexpr (forward_index) { | 399 | 1.54k | _cur_index += max_fetch; | 400 | 1.54k | } | 401 | | | 402 | 1.54k | return Status::OK(); | 403 | 1.54k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.17k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.17k | DCHECK(_parsed); | 389 | 8.17k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.17k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.17k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.17k | *n = max_fetch; | 398 | 8.17k | if constexpr (forward_index) { | 399 | 8.17k | _cur_index += max_fetch; | 400 | 8.17k | } | 401 | | | 402 | 8.17k | return Status::OK(); | 403 | 8.17k | } |
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.37k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.37k | DCHECK(_parsed); | 389 | 1.37k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.37k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.37k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.37k | *n = max_fetch; | 398 | 1.37k | if constexpr (forward_index) { | 399 | 1.37k | _cur_index += max_fetch; | 400 | 1.37k | } | 401 | | | 402 | 1.37k | return Status::OK(); | 403 | 1.37k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.27k | DCHECK(_parsed); | 389 | 9.28k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.27k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.27k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.27k | *n = max_fetch; | 398 | 9.27k | if constexpr (forward_index) { | 399 | 9.27k | _cur_index += max_fetch; | 400 | 9.27k | } | 401 | | | 402 | 9.27k | return Status::OK(); | 403 | 9.27k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 31.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 31.8k | DCHECK(_parsed); | 389 | 31.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 31.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 31.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 31.8k | *n = max_fetch; | 398 | 31.8k | if constexpr (forward_index) { | 399 | 31.8k | _cur_index += max_fetch; | 400 | 31.8k | } | 401 | | | 402 | 31.8k | return Status::OK(); | 403 | 31.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 21.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 21.4k | DCHECK(_parsed); | 389 | 21.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 21.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 21.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 21.4k | *n = max_fetch; | 398 | 21.4k | if constexpr (forward_index) { | 399 | 21.4k | _cur_index += max_fetch; | 400 | 21.4k | } | 401 | | | 402 | 21.4k | return Status::OK(); | 403 | 21.4k | } |
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.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.14k | DCHECK(_parsed); | 389 | 3.14k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.14k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.14k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.14k | *n = max_fetch; | 398 | 3.14k | if constexpr (forward_index) { | 399 | 3.14k | _cur_index += max_fetch; | 400 | 3.14k | } | 401 | | | 402 | 3.14k | return Status::OK(); | 403 | 3.14k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 646 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 646 | DCHECK(_parsed); | 389 | 646 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 646 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 646 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 646 | *n = max_fetch; | 398 | 646 | if constexpr (forward_index) { | 399 | 646 | _cur_index += max_fetch; | 400 | 646 | } | 401 | | | 402 | 646 | return Status::OK(); | 403 | 646 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 667 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 667 | DCHECK(_parsed); | 389 | 667 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 667 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 667 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 667 | *n = max_fetch; | 398 | 667 | if constexpr (forward_index) { | 399 | 667 | _cur_index += max_fetch; | 400 | 667 | } | 401 | | | 402 | 667 | return Status::OK(); | 403 | 667 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.62M | 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 | 529k | 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 | 225k | 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 | 17.1k | 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 | 132k | 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 | 15.2k | 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 | 164k | 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 | 8.10k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 19.6k | 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 | 3.77k | 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 | 368k | 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 | 64.8k | 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.54k | 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 | 8.16k | 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.37k | 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 | 9.28k | 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 | 31.8k | 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 | 21.4k | 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.14k | 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 | 646 | 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 | 667 | 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 | 338k | MutableColumnPtr& dst) override { |
409 | 338k | DCHECK(_parsed); |
410 | 338k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 338k | auto total = *n; |
416 | 338k | auto read_count = 0; |
417 | 338k | _buffer.resize(total); |
418 | 91.1M | for (size_t i = 0; i < total; ++i) { |
419 | 90.8M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 90.8M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 12.2k | break; |
422 | 12.2k | } |
423 | | |
424 | 90.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 90.8M | } |
426 | | |
427 | 339k | if (LIKELY(read_count > 0)) { |
428 | 339k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 339k | } |
430 | | |
431 | 338k | *n = read_count; |
432 | 338k | return Status::OK(); |
433 | 338k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 64.7k | MutableColumnPtr& dst) override { | 409 | 64.7k | DCHECK(_parsed); | 410 | 64.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 64.7k | auto total = *n; | 416 | 64.7k | auto read_count = 0; | 417 | 64.7k | _buffer.resize(total); | 418 | 14.9M | for (size_t i = 0; i < total; ++i) { | 419 | 14.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.9M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.62k | break; | 422 | 1.62k | } | 423 | | | 424 | 14.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.9M | } | 426 | | | 427 | 64.7k | if (LIKELY(read_count > 0)) { | 428 | 64.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 64.7k | } | 430 | | | 431 | 64.7k | *n = read_count; | 432 | 64.7k | return Status::OK(); | 433 | 64.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.7k | MutableColumnPtr& dst) override { | 409 | 29.7k | DCHECK(_parsed); | 410 | 29.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.7k | auto total = *n; | 416 | 29.7k | auto read_count = 0; | 417 | 29.7k | _buffer.resize(total); | 418 | 1.71M | for (size_t i = 0; i < total; ++i) { | 419 | 1.68M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.68M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.68M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.68M | } | 426 | | | 427 | 29.7k | if (LIKELY(read_count > 0)) { | 428 | 29.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.7k | } | 430 | | | 431 | 29.7k | *n = read_count; | 432 | 29.7k | return Status::OK(); | 433 | 29.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.45k | MutableColumnPtr& dst) override { | 409 | 7.45k | DCHECK(_parsed); | 410 | 7.45k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.45k | auto total = *n; | 416 | 7.45k | auto read_count = 0; | 417 | 7.45k | _buffer.resize(total); | 418 | 631k | for (size_t i = 0; i < total; ++i) { | 419 | 623k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 623k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 13 | break; | 422 | 13 | } | 423 | | | 424 | 623k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 623k | } | 426 | | | 427 | 7.45k | if (LIKELY(read_count > 0)) { | 428 | 7.45k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.45k | } | 430 | | | 431 | 7.45k | *n = read_count; | 432 | 7.45k | return Status::OK(); | 433 | 7.45k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 63.3k | MutableColumnPtr& dst) override { | 409 | 63.3k | DCHECK(_parsed); | 410 | 63.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 63.3k | auto total = *n; | 416 | 63.3k | auto read_count = 0; | 417 | 63.3k | _buffer.resize(total); | 418 | 17.8M | for (size_t i = 0; i < total; ++i) { | 419 | 17.7M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 17.7M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.52k | break; | 422 | 1.52k | } | 423 | | | 424 | 17.7M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 17.7M | } | 426 | | | 427 | 63.4k | if (LIKELY(read_count > 0)) { | 428 | 63.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 63.4k | } | 430 | | | 431 | 63.3k | *n = read_count; | 432 | 63.3k | return Status::OK(); | 433 | 63.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.74k | MutableColumnPtr& dst) override { | 409 | 7.74k | DCHECK(_parsed); | 410 | 7.74k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.74k | auto total = *n; | 416 | 7.74k | auto read_count = 0; | 417 | 7.74k | _buffer.resize(total); | 418 | 1.18M | for (size_t i = 0; i < total; ++i) { | 419 | 1.18M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.18M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 575 | break; | 422 | 575 | } | 423 | | | 424 | 1.17M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.17M | } | 426 | | | 427 | 7.74k | if (LIKELY(read_count > 0)) { | 428 | 7.74k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.74k | } | 430 | | | 431 | 7.74k | *n = read_count; | 432 | 7.74k | return Status::OK(); | 433 | 7.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 31.6k | MutableColumnPtr& dst) override { | 409 | 31.6k | DCHECK(_parsed); | 410 | 31.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 31.6k | auto total = *n; | 416 | 31.6k | auto read_count = 0; | 417 | 31.6k | _buffer.resize(total); | 418 | 584k | for (size_t i = 0; i < total; ++i) { | 419 | 553k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 553k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 553k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 553k | } | 426 | | | 427 | 31.6k | if (LIKELY(read_count > 0)) { | 428 | 31.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 31.6k | } | 430 | | | 431 | 31.6k | *n = read_count; | 432 | 31.6k | return Status::OK(); | 433 | 31.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.42k | MutableColumnPtr& dst) override { | 409 | 4.42k | DCHECK(_parsed); | 410 | 4.42k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.42k | auto total = *n; | 416 | 4.42k | auto read_count = 0; | 417 | 4.42k | _buffer.resize(total); | 418 | 1.20M | for (size_t i = 0; i < total; ++i) { | 419 | 1.20M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.20M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 29 | break; | 422 | 29 | } | 423 | | | 424 | 1.20M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.20M | } | 426 | | | 427 | 4.42k | if (LIKELY(read_count > 0)) { | 428 | 4.42k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.42k | } | 430 | | | 431 | 4.42k | *n = read_count; | 432 | 4.42k | return Status::OK(); | 433 | 4.42k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.5k | MutableColumnPtr& dst) override { | 409 | 10.5k | DCHECK(_parsed); | 410 | 10.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.5k | auto total = *n; | 416 | 10.5k | auto read_count = 0; | 417 | 10.5k | _buffer.resize(total); | 418 | 6.29M | for (size_t i = 0; i < total; ++i) { | 419 | 6.28M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.28M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.42k | break; | 422 | 1.42k | } | 423 | | | 424 | 6.28M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.28M | } | 426 | | | 427 | 10.5k | if (LIKELY(read_count > 0)) { | 428 | 10.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.5k | } | 430 | | | 431 | 10.5k | *n = read_count; | 432 | 10.5k | return Status::OK(); | 433 | 10.5k | } |
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.38k | MutableColumnPtr& dst) override { | 409 | 1.38k | DCHECK(_parsed); | 410 | 1.38k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.38k | auto total = *n; | 416 | 1.38k | auto read_count = 0; | 417 | 1.38k | _buffer.resize(total); | 418 | 501k | for (size_t i = 0; i < total; ++i) { | 419 | 500k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 500k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 500k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 500k | } | 426 | | | 427 | 1.38k | if (LIKELY(read_count > 0)) { | 428 | 1.38k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.38k | } | 430 | | | 431 | 1.38k | *n = read_count; | 432 | 1.38k | return Status::OK(); | 433 | 1.38k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.0k | MutableColumnPtr& dst) override { | 409 | 28.0k | DCHECK(_parsed); | 410 | 28.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.0k | auto total = *n; | 416 | 28.0k | auto read_count = 0; | 417 | 28.0k | _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 | 639 | break; | 422 | 639 | } | 423 | | | 424 | 6.44M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.44M | } | 426 | | | 427 | 28.0k | if (LIKELY(read_count > 0)) { | 428 | 28.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.0k | } | 430 | | | 431 | 28.0k | *n = read_count; | 432 | 28.0k | return Status::OK(); | 433 | 28.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 31.0k | MutableColumnPtr& dst) override { | 409 | 31.0k | DCHECK(_parsed); | 410 | 31.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 31.0k | auto total = *n; | 416 | 31.0k | auto read_count = 0; | 417 | 31.0k | _buffer.resize(total); | 418 | 9.56M | for (size_t i = 0; i < total; ++i) { | 419 | 9.53M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.53M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 196 | break; | 422 | 196 | } | 423 | | | 424 | 9.53M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.53M | } | 426 | | | 427 | 31.0k | if (LIKELY(read_count > 0)) { | 428 | 31.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 31.0k | } | 430 | | | 431 | 31.0k | *n = read_count; | 432 | 31.0k | return Status::OK(); | 433 | 31.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.90k | MutableColumnPtr& dst) override { | 409 | 1.90k | DCHECK(_parsed); | 410 | 1.90k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.90k | auto total = *n; | 416 | 1.90k | auto read_count = 0; | 417 | 1.90k | _buffer.resize(total); | 418 | 507k | for (size_t i = 0; i < total; ++i) { | 419 | 505k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 505k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 246 | break; | 422 | 246 | } | 423 | | | 424 | 505k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 505k | } | 426 | | | 427 | 1.90k | if (LIKELY(read_count > 0)) { | 428 | 1.90k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.90k | } | 430 | | | 431 | 1.90k | *n = read_count; | 432 | 1.90k | return Status::OK(); | 433 | 1.90k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.5k | MutableColumnPtr& dst) override { | 409 | 12.5k | DCHECK(_parsed); | 410 | 12.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.5k | auto total = *n; | 416 | 12.5k | auto read_count = 0; | 417 | 12.5k | _buffer.resize(total); | 418 | 26.5k | for (size_t i = 0; i < total; ++i) { | 419 | 14.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.0k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.0k | } | 426 | | | 427 | 12.5k | if (LIKELY(read_count > 0)) { | 428 | 12.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.5k | } | 430 | | | 431 | 12.5k | *n = read_count; | 432 | 12.5k | return Status::OK(); | 433 | 12.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 174 | MutableColumnPtr& dst) override { | 409 | 174 | DCHECK(_parsed); | 410 | 174 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 174 | auto total = *n; | 416 | 174 | auto read_count = 0; | 417 | 174 | _buffer.resize(total); | 418 | 353 | for (size_t i = 0; i < total; ++i) { | 419 | 179 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 179 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 179 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 179 | } | 426 | | | 427 | 174 | if (LIKELY(read_count > 0)) { | 428 | 174 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 174 | } | 430 | | | 431 | 174 | *n = read_count; | 432 | 174 | return Status::OK(); | 433 | 174 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.56k | MutableColumnPtr& dst) override { | 409 | 4.56k | DCHECK(_parsed); | 410 | 4.56k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.56k | auto total = *n; | 416 | 4.56k | auto read_count = 0; | 417 | 4.56k | _buffer.resize(total); | 418 | 18.9k | for (size_t i = 0; i < total; ++i) { | 419 | 14.3k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.3k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.3k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.3k | } | 426 | | | 427 | 4.56k | if (LIKELY(read_count > 0)) { | 428 | 4.56k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.56k | } | 430 | | | 431 | 4.56k | *n = read_count; | 432 | 4.56k | return Status::OK(); | 433 | 4.56k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 24.9k | MutableColumnPtr& dst) override { | 409 | 24.9k | DCHECK(_parsed); | 410 | 24.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 24.9k | auto total = *n; | 416 | 24.9k | auto read_count = 0; | 417 | 24.9k | _buffer.resize(total); | 418 | 20.8M | for (size_t i = 0; i < total; ++i) { | 419 | 20.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 20.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.26k | break; | 422 | 5.26k | } | 423 | | | 424 | 20.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 20.8M | } | 426 | | | 427 | 24.9k | if (LIKELY(read_count > 0)) { | 428 | 24.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 24.9k | } | 430 | | | 431 | 24.9k | *n = read_count; | 432 | 24.9k | return Status::OK(); | 433 | 24.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.0k | MutableColumnPtr& dst) override { | 409 | 13.0k | DCHECK(_parsed); | 410 | 13.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.0k | auto total = *n; | 416 | 13.0k | auto read_count = 0; | 417 | 13.0k | _buffer.resize(total); | 418 | 8.76M | for (size_t i = 0; i < total; ++i) { | 419 | 8.74M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.74M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 735 | break; | 422 | 735 | } | 423 | | | 424 | 8.74M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.74M | } | 426 | | | 427 | 13.0k | if (LIKELY(read_count > 0)) { | 428 | 13.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.0k | } | 430 | | | 431 | 13.0k | *n = read_count; | 432 | 13.0k | return Status::OK(); | 433 | 13.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 964 | MutableColumnPtr& dst) override { | 409 | 964 | DCHECK(_parsed); | 410 | 964 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 964 | auto total = *n; | 416 | 964 | auto read_count = 0; | 417 | 964 | _buffer.resize(total); | 418 | 2.78k | 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 | 964 | if (LIKELY(read_count > 0)) { | 428 | 964 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 964 | } | 430 | | | 431 | 964 | *n = read_count; | 432 | 964 | return Status::OK(); | 433 | 964 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 290 | MutableColumnPtr& dst) override { | 409 | 290 | DCHECK(_parsed); | 410 | 290 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 290 | auto total = *n; | 416 | 290 | auto read_count = 0; | 417 | 290 | _buffer.resize(total); | 418 | 824 | for (size_t i = 0; i < total; ++i) { | 419 | 534 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 534 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 534 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 534 | } | 426 | | | 427 | 290 | if (LIKELY(read_count > 0)) { | 428 | 290 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 290 | } | 430 | | | 431 | 290 | *n = read_count; | 432 | 290 | return Status::OK(); | 433 | 290 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 323 | MutableColumnPtr& dst) override { | 409 | 323 | DCHECK(_parsed); | 410 | 323 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 323 | auto total = *n; | 416 | 323 | auto read_count = 0; | 417 | 323 | _buffer.resize(total); | 418 | 1.16k | for (size_t i = 0; i < total; ++i) { | 419 | 838 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 838 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 838 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 838 | } | 426 | | | 427 | 323 | if (LIKELY(read_count > 0)) { | 428 | 323 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 323 | } | 430 | | | 431 | 323 | *n = read_count; | 432 | 323 | return Status::OK(); | 433 | 323 | } |
|
434 | | |
435 | 229k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 229k | return next_batch<false>(n, dst); |
437 | 229k | } 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 | 229k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 229k | return next_batch<false>(n, dst); | 437 | 229k | } |
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.00M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.01M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 232k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 230k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 120k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 120k | 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 | 236k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 207k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 221k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 239k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 49.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 208k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.03k | 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.63k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 2.36k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 122k | 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 | 41 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 47 | 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 | 15.8M | char* get_data(size_t index) const { | 444 | 15.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 15.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.91M | char* get_data(size_t index) const { | 444 | 1.91M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.91M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 641k | char* get_data(size_t index) const { | 444 | 641k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 641k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 17.8M | char* get_data(size_t index) const { | 444 | 17.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 17.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.19M | char* get_data(size_t index) const { | 444 | 1.19M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.19M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 946k | char* get_data(size_t index) const { | 444 | 946k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 946k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.21M | char* get_data(size_t index) const { | 444 | 1.21M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.21M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 6.30M | char* get_data(size_t index) const { | 444 | 6.30M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.30M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 503k | char* get_data(size_t index) const { | 444 | 503k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 503k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.81M | char* get_data(size_t index) const { | 444 | 6.81M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.81M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.59M | char* get_data(size_t index) const { | 444 | 9.59M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.59M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 506k | char* get_data(size_t index) const { | 444 | 506k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 506k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 22.2k | char* get_data(size_t index) const { | 444 | 22.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.55k | char* get_data(size_t index) const { | 444 | 1.55k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.55k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 23.6k | char* get_data(size_t index) const { | 444 | 23.6k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.6k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 20.8M | char* get_data(size_t index) const { | 444 | 20.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.76M | char* get_data(size_t index) const { | 444 | 8.76M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.76M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.96k | char* get_data(size_t index) const { | 444 | 4.96k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.96k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.18k | char* get_data(size_t index) const { | 444 | 1.18k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.18k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.50k | char* get_data(size_t index) const { | 444 | 1.50k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.50k | } |
|
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 |