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 | 767k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 376k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 45.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 6.94k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 101k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 71.3k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 8.80k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 12.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 14.7k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 186 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 36.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 283 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.05k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 193 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.71k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.15k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 785 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 697 | Status init() override { return reset(); } |
|
96 | | |
97 | 157M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 156M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 45.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 12.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 436k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 72.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 21.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 12.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 16.6k | 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 | 193 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 78.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 81.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 337 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 6.90k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 98 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.20k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 24.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 22.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.36k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 25.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 5.62k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.62M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.62M | return add_internal<false>(vals, count); |
101 | 1.62M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 752k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 752k | return add_internal<false>(vals, count); | 101 | 752k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 45.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.7k | return add_internal<false>(vals, count); | 101 | 45.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 12.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.3k | return add_internal<false>(vals, count); | 101 | 12.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 436k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 436k | return add_internal<false>(vals, count); | 101 | 436k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 72.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 72.4k | return add_internal<false>(vals, count); | 101 | 72.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 21.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 21.6k | return add_internal<false>(vals, count); | 101 | 21.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 12.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.0k | return add_internal<false>(vals, count); | 101 | 12.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 16.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 16.6k | return add_internal<false>(vals, count); | 101 | 16.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 193 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 193 | return add_internal<false>(vals, count); | 101 | 193 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 78.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 78.8k | return add_internal<false>(vals, count); | 101 | 78.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 81.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 81.7k | return add_internal<false>(vals, count); | 101 | 81.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 337 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 337 | return add_internal<false>(vals, count); | 101 | 337 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 6.90k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.90k | return add_internal<false>(vals, count); | 101 | 6.90k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 98 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 98 | return add_internal<false>(vals, count); | 101 | 98 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.20k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.20k | return add_internal<false>(vals, count); | 101 | 5.20k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 24.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 24.6k | return add_internal<false>(vals, count); | 101 | 24.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 22.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 22.4k | return add_internal<false>(vals, count); | 101 | 22.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.36k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.36k | return add_internal<false>(vals, count); | 101 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 25.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 25.7k | return add_internal<false>(vals, count); | 101 | 25.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 5.62k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.62k | return add_internal<false>(vals, count); | 101 | 5.62k | } |
|
102 | | |
103 | 156M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 156M | return add_internal<true>(vals, count); |
105 | 156M | } |
106 | | |
107 | | template <bool single> |
108 | 157M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 157M | DCHECK(!_finished); |
110 | 157M | 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 | 157M | uint32_t to_add = cast_set<UInt32>( |
126 | 157M | 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 | 157M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 157M | 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 | 157M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 157M | _count += to_add; |
134 | 157M | _remain_element_capacity -= to_add; |
135 | 157M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 157M | *num_written = to_add; |
138 | 157M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 156M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 156M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 156M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 156M | 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 | 156M | } |
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 | 157M | return Status::OK(); |
159 | 157M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 752k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 752k | DCHECK(!_finished); | 110 | 752k | 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 | 752k | uint32_t to_add = cast_set<UInt32>( | 126 | 752k | 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 | 752k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 752k | 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 | 752k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 752k | _count += to_add; | 134 | 752k | _remain_element_capacity -= to_add; | 135 | 752k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 752k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 752k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 752k | return Status::OK(); | 159 | 752k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 156M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 156M | DCHECK(!_finished); | 110 | 156M | 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 | 156M | uint32_t to_add = cast_set<UInt32>( | 126 | 156M | 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 | 156M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 156M | 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 | 156M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 156M | _count += to_add; | 134 | 156M | _remain_element_capacity -= to_add; | 135 | 156M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 156M | *num_written = to_add; | 138 | 156M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 156M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 156M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 156M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 156M | 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 | 156M | } | 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 | 156M | return Status::OK(); | 159 | 156M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.7k | DCHECK(!_finished); | 110 | 45.7k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 45.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 45.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.7k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 45.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.7k | _count += to_add; | 134 | 45.7k | _remain_element_capacity -= to_add; | 135 | 45.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 45.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.7k | return Status::OK(); | 159 | 45.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.3k | DCHECK(!_finished); | 110 | 12.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 | 12.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.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 | 12.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.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 | 12.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.3k | _count += to_add; | 134 | 12.3k | _remain_element_capacity -= to_add; | 135 | 12.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.3k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 12.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.3k | return Status::OK(); | 159 | 12.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 436k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 436k | DCHECK(!_finished); | 110 | 436k | 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 | 436k | uint32_t to_add = cast_set<UInt32>( | 126 | 436k | 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 | 436k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 436k | 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 | 436k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 436k | _count += to_add; | 134 | 436k | _remain_element_capacity -= to_add; | 135 | 436k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 436k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 436k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 436k | return Status::OK(); | 159 | 436k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 72.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 72.4k | DCHECK(!_finished); | 110 | 72.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 | 72.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 72.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 | 72.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 72.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 | 72.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 72.4k | _count += to_add; | 134 | 72.4k | _remain_element_capacity -= to_add; | 135 | 72.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 72.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 72.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 72.4k | return Status::OK(); | 159 | 72.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 21.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 21.6k | DCHECK(!_finished); | 110 | 21.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 21.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 21.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 21.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 21.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 21.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 21.6k | _count += to_add; | 134 | 21.6k | _remain_element_capacity -= to_add; | 135 | 21.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 21.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 21.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 21.6k | return Status::OK(); | 159 | 21.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.0k | DCHECK(!_finished); | 110 | 12.0k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 12.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 12.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.0k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 12.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.0k | _count += to_add; | 134 | 12.0k | _remain_element_capacity -= to_add; | 135 | 12.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 12.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.0k | return Status::OK(); | 159 | 12.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 16.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 16.6k | DCHECK(!_finished); | 110 | 16.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 16.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 16.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 16.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 16.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 16.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 16.6k | _count += to_add; | 134 | 16.6k | _remain_element_capacity -= to_add; | 135 | 16.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 16.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 16.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 16.6k | return Status::OK(); | 159 | 16.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 193 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 193 | DCHECK(!_finished); | 110 | 193 | 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 | 193 | uint32_t to_add = cast_set<UInt32>( | 126 | 193 | 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 | 193 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 193 | 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 | 193 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 193 | _count += to_add; | 134 | 193 | _remain_element_capacity -= to_add; | 135 | 193 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 193 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 193 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 193 | return Status::OK(); | 159 | 193 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 78.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 78.8k | DCHECK(!_finished); | 110 | 78.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 | 78.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 78.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 | 78.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 78.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 | 78.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 78.8k | _count += to_add; | 134 | 78.8k | _remain_element_capacity -= to_add; | 135 | 78.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 78.8k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 78.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 78.8k | return Status::OK(); | 159 | 78.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 81.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 81.7k | DCHECK(!_finished); | 110 | 81.7k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 81.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 81.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 81.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 81.7k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 81.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 81.7k | _count += to_add; | 134 | 81.7k | _remain_element_capacity -= to_add; | 135 | 81.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 81.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 81.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 81.7k | return Status::OK(); | 159 | 81.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 337 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 337 | DCHECK(!_finished); | 110 | 337 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 337 | uint32_t to_add = cast_set<UInt32>( | 126 | 337 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 337 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 337 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 337 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 337 | _count += to_add; | 134 | 337 | _remain_element_capacity -= to_add; | 135 | 337 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 337 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 337 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 337 | return Status::OK(); | 159 | 337 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.90k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.90k | DCHECK(!_finished); | 110 | 6.90k | 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 | 6.90k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.90k | 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 | 6.90k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.90k | 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 | 6.90k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.90k | _count += to_add; | 134 | 6.90k | _remain_element_capacity -= to_add; | 135 | 6.90k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.90k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 6.90k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.90k | return Status::OK(); | 159 | 6.90k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 98 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 98 | DCHECK(!_finished); | 110 | 98 | 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 | 98 | uint32_t to_add = cast_set<UInt32>( | 126 | 98 | 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 | 98 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 98 | 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 | 98 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 98 | _count += to_add; | 134 | 98 | _remain_element_capacity -= to_add; | 135 | 98 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 98 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 98 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 98 | return Status::OK(); | 159 | 98 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.20k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.20k | DCHECK(!_finished); | 110 | 5.20k | 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.20k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.20k | 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.20k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.20k | 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.20k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.20k | _count += to_add; | 134 | 5.20k | _remain_element_capacity -= to_add; | 135 | 5.20k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.20k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.20k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.20k | return Status::OK(); | 159 | 5.20k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 24.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 24.6k | DCHECK(!_finished); | 110 | 24.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 24.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 24.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 24.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 24.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 24.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 24.6k | _count += to_add; | 134 | 24.6k | _remain_element_capacity -= to_add; | 135 | 24.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 24.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 24.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 24.6k | return Status::OK(); | 159 | 24.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 22.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 22.4k | DCHECK(!_finished); | 110 | 22.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 | 22.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 22.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 | 22.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 22.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 | 22.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 22.4k | _count += to_add; | 134 | 22.4k | _remain_element_capacity -= to_add; | 135 | 22.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 22.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 22.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 22.4k | return Status::OK(); | 159 | 22.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.36k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.36k | DCHECK(!_finished); | 110 | 1.36k | 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.36k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.36k | 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.36k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.36k | 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.36k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.36k | _count += to_add; | 134 | 1.36k | _remain_element_capacity -= to_add; | 135 | 1.36k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.36k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.36k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.36k | return Status::OK(); | 159 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 25.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 25.7k | DCHECK(!_finished); | 110 | 25.7k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 25.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 25.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 25.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 25.7k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 25.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 25.7k | _count += to_add; | 134 | 25.7k | _remain_element_capacity -= to_add; | 135 | 25.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 25.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 25.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 25.7k | return Status::OK(); | 159 | 25.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.62k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.62k | DCHECK(!_finished); | 110 | 5.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 | 5.62k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.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 | 5.62k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.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 | 5.62k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.62k | _count += to_add; | 134 | 5.62k | _remain_element_capacity -= to_add; | 135 | 5.62k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.62k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.62k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.62k | return Status::OK(); | 159 | 5.62k | } |
|
160 | | |
161 | 760k | Status finish(OwnedSlice* slice) override { |
162 | 760k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 760k | return Status::OK(); |
164 | 760k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 360k | Status finish(OwnedSlice* slice) override { | 162 | 360k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 360k | return Status::OK(); | 164 | 360k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 44.3k | Status finish(OwnedSlice* slice) override { | 162 | 44.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 44.3k | return Status::OK(); | 164 | 44.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.86k | Status finish(OwnedSlice* slice) override { | 162 | 6.86k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.86k | return Status::OK(); | 164 | 6.86k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 105k | Status finish(OwnedSlice* slice) override { | 162 | 105k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 105k | return Status::OK(); | 164 | 105k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 71.4k | Status finish(OwnedSlice* slice) override { | 162 | 71.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 71.4k | return Status::OK(); | 164 | 71.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.01k | Status finish(OwnedSlice* slice) override { | 162 | 9.01k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.01k | return Status::OK(); | 164 | 9.01k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.4k | Status finish(OwnedSlice* slice) override { | 162 | 11.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.4k | return Status::OK(); | 164 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 14.5k | Status finish(OwnedSlice* slice) override { | 162 | 14.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 14.5k | return Status::OK(); | 164 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 198 | Status finish(OwnedSlice* slice) override { | 162 | 198 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 198 | return Status::OK(); | 164 | 198 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 37.4k | Status finish(OwnedSlice* slice) override { | 162 | 37.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 37.4k | return Status::OK(); | 164 | 37.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.6k | Status finish(OwnedSlice* slice) override { | 162 | 43.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.6k | return Status::OK(); | 164 | 43.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 437 | Status finish(OwnedSlice* slice) override { | 162 | 437 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 437 | return Status::OK(); | 164 | 437 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.09k | Status finish(OwnedSlice* slice) override { | 162 | 7.09k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.10k | return Status::OK(); | 164 | 7.09k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 106 | Status finish(OwnedSlice* slice) override { | 162 | 106 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 106 | return Status::OK(); | 164 | 106 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.70k | Status finish(OwnedSlice* slice) override { | 162 | 9.70k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.70k | return Status::OK(); | 164 | 9.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.9k | Status finish(OwnedSlice* slice) override { | 162 | 18.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.9k | return Status::OK(); | 164 | 18.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 16.5k | Status finish(OwnedSlice* slice) override { | 162 | 16.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 16.5k | return Status::OK(); | 164 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.05k | Status finish(OwnedSlice* slice) override { | 162 | 1.05k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.05k | return Status::OK(); | 164 | 1.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 699 | Status finish(OwnedSlice* slice) override { | 162 | 699 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 699 | return Status::OK(); | 164 | 699 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 615 | Status finish(OwnedSlice* slice) override { | 162 | 615 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 615 | return Status::OK(); | 164 | 615 | } |
|
165 | | |
166 | 1.83M | Status reset() override { |
167 | 1.83M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.83M | size_t block_size = _options.data_page_size; |
169 | 1.83M | _count = 0; |
170 | 1.83M | _raw_data_size = 0; |
171 | 1.83M | _data.clear(); |
172 | 1.83M | _data.reserve(block_size); |
173 | 1.83M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.83M | << "buffer must be naturally-aligned"; |
175 | 1.83M | _buffer.clear(); |
176 | 1.83M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.83M | _finished = false; |
178 | 1.83M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.83M | }); |
180 | 1.84M | return Status::OK(); |
181 | 1.83M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.04M | Status reset() override { | 167 | 1.04M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.04M | size_t block_size = _options.data_page_size; | 169 | 1.04M | _count = 0; | 170 | 1.04M | _raw_data_size = 0; | 171 | 1.04M | _data.clear(); | 172 | 1.04M | _data.reserve(block_size); | 173 | 1.04M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.04M | << "buffer must be naturally-aligned"; | 175 | 1.04M | _buffer.clear(); | 176 | 1.04M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.04M | _finished = false; | 178 | 1.04M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.04M | }); | 180 | 1.04M | return Status::OK(); | 181 | 1.04M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 89.4k | Status reset() override { | 167 | 89.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 89.4k | size_t block_size = _options.data_page_size; | 169 | 89.4k | _count = 0; | 170 | 89.4k | _raw_data_size = 0; | 171 | 89.4k | _data.clear(); | 172 | 89.4k | _data.reserve(block_size); | 173 | 89.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 89.4k | << "buffer must be naturally-aligned"; | 175 | 89.4k | _buffer.clear(); | 176 | 89.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 89.4k | _finished = false; | 178 | 89.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 89.4k | }); | 180 | 89.5k | return Status::OK(); | 181 | 89.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 13.8k | Status reset() override { | 167 | 13.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 13.8k | size_t block_size = _options.data_page_size; | 169 | 13.8k | _count = 0; | 170 | 13.8k | _raw_data_size = 0; | 171 | 13.8k | _data.clear(); | 172 | 13.8k | _data.reserve(block_size); | 173 | 13.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 13.8k | << "buffer must be naturally-aligned"; | 175 | 13.8k | _buffer.clear(); | 176 | 13.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 13.8k | _finished = false; | 178 | 13.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 13.8k | }); | 180 | 13.8k | return Status::OK(); | 181 | 13.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 207k | Status reset() override { | 167 | 207k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 207k | size_t block_size = _options.data_page_size; | 169 | 207k | _count = 0; | 170 | 207k | _raw_data_size = 0; | 171 | 207k | _data.clear(); | 172 | 207k | _data.reserve(block_size); | 173 | 207k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 207k | << "buffer must be naturally-aligned"; | 175 | 207k | _buffer.clear(); | 176 | 207k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 207k | _finished = false; | 178 | 207k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 207k | }); | 180 | 207k | return Status::OK(); | 181 | 207k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 142k | Status reset() override { | 167 | 142k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 142k | size_t block_size = _options.data_page_size; | 169 | 142k | _count = 0; | 170 | 142k | _raw_data_size = 0; | 171 | 142k | _data.clear(); | 172 | 142k | _data.reserve(block_size); | 173 | 142k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 142k | << "buffer must be naturally-aligned"; | 175 | 142k | _buffer.clear(); | 176 | 142k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 142k | _finished = false; | 178 | 142k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 142k | }); | 180 | 142k | return Status::OK(); | 181 | 142k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 17.8k | Status reset() override { | 167 | 17.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 17.8k | size_t block_size = _options.data_page_size; | 169 | 17.8k | _count = 0; | 170 | 17.8k | _raw_data_size = 0; | 171 | 17.8k | _data.clear(); | 172 | 17.8k | _data.reserve(block_size); | 173 | 17.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 17.8k | << "buffer must be naturally-aligned"; | 175 | 17.8k | _buffer.clear(); | 176 | 17.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 17.8k | _finished = false; | 178 | 17.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 17.8k | }); | 180 | 17.8k | return Status::OK(); | 181 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 23.7k | Status reset() override { | 167 | 23.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 23.7k | size_t block_size = _options.data_page_size; | 169 | 23.7k | _count = 0; | 170 | 23.7k | _raw_data_size = 0; | 171 | 23.7k | _data.clear(); | 172 | 23.7k | _data.reserve(block_size); | 173 | 23.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 23.7k | << "buffer must be naturally-aligned"; | 175 | 23.7k | _buffer.clear(); | 176 | 23.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 23.7k | _finished = false; | 178 | 23.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 23.7k | }); | 180 | 23.7k | return Status::OK(); | 181 | 23.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 29.3k | Status reset() override { | 167 | 29.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 29.3k | size_t block_size = _options.data_page_size; | 169 | 29.3k | _count = 0; | 170 | 29.3k | _raw_data_size = 0; | 171 | 29.3k | _data.clear(); | 172 | 29.3k | _data.reserve(block_size); | 173 | 29.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 29.3k | << "buffer must be naturally-aligned"; | 175 | 29.3k | _buffer.clear(); | 176 | 29.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 29.3k | _finished = false; | 178 | 29.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 29.3k | }); | 180 | 29.3k | return Status::OK(); | 181 | 29.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 384 | Status reset() override { | 167 | 384 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 384 | size_t block_size = _options.data_page_size; | 169 | 384 | _count = 0; | 170 | 384 | _raw_data_size = 0; | 171 | 384 | _data.clear(); | 172 | 384 | _data.reserve(block_size); | 173 | 384 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 384 | << "buffer must be naturally-aligned"; | 175 | 384 | _buffer.clear(); | 176 | 384 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 384 | _finished = false; | 178 | 384 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 384 | }); | 180 | 384 | return Status::OK(); | 181 | 384 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 74.2k | Status reset() override { | 167 | 74.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 74.2k | size_t block_size = _options.data_page_size; | 169 | 74.2k | _count = 0; | 170 | 74.2k | _raw_data_size = 0; | 171 | 74.2k | _data.clear(); | 172 | 74.2k | _data.reserve(block_size); | 173 | 74.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 74.2k | << "buffer must be naturally-aligned"; | 175 | 74.2k | _buffer.clear(); | 176 | 74.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 74.2k | _finished = false; | 178 | 74.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 74.2k | }); | 180 | 74.2k | return Status::OK(); | 181 | 74.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 88.2k | Status reset() override { | 167 | 88.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 88.2k | size_t block_size = _options.data_page_size; | 169 | 88.2k | _count = 0; | 170 | 88.2k | _raw_data_size = 0; | 171 | 88.2k | _data.clear(); | 172 | 88.2k | _data.reserve(block_size); | 173 | 88.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 88.2k | << "buffer must be naturally-aligned"; | 175 | 88.2k | _buffer.clear(); | 176 | 88.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 88.2k | _finished = false; | 178 | 88.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 88.2k | }); | 180 | 88.3k | return Status::OK(); | 181 | 88.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 720 | Status reset() override { | 167 | 720 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 720 | size_t block_size = _options.data_page_size; | 169 | 720 | _count = 0; | 170 | 720 | _raw_data_size = 0; | 171 | 720 | _data.clear(); | 172 | 720 | _data.reserve(block_size); | 173 | 720 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 720 | << "buffer must be naturally-aligned"; | 175 | 720 | _buffer.clear(); | 176 | 720 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 720 | _finished = false; | 178 | 720 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 720 | }); | 180 | 720 | return Status::OK(); | 181 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 14.1k | Status reset() override { | 167 | 14.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 14.1k | size_t block_size = _options.data_page_size; | 169 | 14.1k | _count = 0; | 170 | 14.1k | _raw_data_size = 0; | 171 | 14.1k | _data.clear(); | 172 | 14.1k | _data.reserve(block_size); | 173 | 14.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 14.1k | << "buffer must be naturally-aligned"; | 175 | 14.1k | _buffer.clear(); | 176 | 14.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 14.1k | _finished = false; | 178 | 14.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 14.1k | }); | 180 | 14.2k | return Status::OK(); | 181 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 299 | Status reset() override { | 167 | 299 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 299 | size_t block_size = _options.data_page_size; | 169 | 299 | _count = 0; | 170 | 299 | _raw_data_size = 0; | 171 | 299 | _data.clear(); | 172 | 299 | _data.reserve(block_size); | 173 | 299 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 299 | << "buffer must be naturally-aligned"; | 175 | 299 | _buffer.clear(); | 176 | 299 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 299 | _finished = false; | 178 | 299 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 299 | }); | 180 | 299 | return Status::OK(); | 181 | 299 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.4k | Status reset() override { | 167 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.4k | size_t block_size = _options.data_page_size; | 169 | 19.4k | _count = 0; | 170 | 19.4k | _raw_data_size = 0; | 171 | 19.4k | _data.clear(); | 172 | 19.4k | _data.reserve(block_size); | 173 | 19.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.4k | << "buffer must be naturally-aligned"; | 175 | 19.4k | _buffer.clear(); | 176 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.4k | _finished = false; | 178 | 19.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.4k | }); | 180 | 19.4k | return Status::OK(); | 181 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.1k | Status reset() override { | 167 | 31.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.1k | size_t block_size = _options.data_page_size; | 169 | 31.1k | _count = 0; | 170 | 31.1k | _raw_data_size = 0; | 171 | 31.1k | _data.clear(); | 172 | 31.1k | _data.reserve(block_size); | 173 | 31.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.1k | << "buffer must be naturally-aligned"; | 175 | 31.1k | _buffer.clear(); | 176 | 31.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.1k | _finished = false; | 178 | 31.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.1k | }); | 180 | 31.1k | return Status::OK(); | 181 | 31.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 32.8k | Status reset() override { | 167 | 32.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 32.8k | size_t block_size = _options.data_page_size; | 169 | 32.8k | _count = 0; | 170 | 32.8k | _raw_data_size = 0; | 171 | 32.8k | _data.clear(); | 172 | 32.8k | _data.reserve(block_size); | 173 | 32.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 32.8k | << "buffer must be naturally-aligned"; | 175 | 32.8k | _buffer.clear(); | 176 | 32.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 32.8k | _finished = false; | 178 | 32.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 32.8k | }); | 180 | 32.8k | return Status::OK(); | 181 | 32.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.20k | Status reset() override { | 167 | 2.20k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.20k | size_t block_size = _options.data_page_size; | 169 | 2.20k | _count = 0; | 170 | 2.20k | _raw_data_size = 0; | 171 | 2.20k | _data.clear(); | 172 | 2.20k | _data.reserve(block_size); | 173 | 2.20k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.20k | << "buffer must be naturally-aligned"; | 175 | 2.20k | _buffer.clear(); | 176 | 2.20k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.20k | _finished = false; | 178 | 2.20k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.20k | }); | 180 | 2.20k | return Status::OK(); | 181 | 2.20k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.48k | Status reset() override { | 167 | 1.48k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.48k | size_t block_size = _options.data_page_size; | 169 | 1.48k | _count = 0; | 170 | 1.48k | _raw_data_size = 0; | 171 | 1.48k | _data.clear(); | 172 | 1.48k | _data.reserve(block_size); | 173 | 1.48k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.48k | << "buffer must be naturally-aligned"; | 175 | 1.48k | _buffer.clear(); | 176 | 1.48k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.48k | _finished = false; | 178 | 1.48k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.48k | }); | 180 | 1.48k | return Status::OK(); | 181 | 1.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.31k | Status reset() override { | 167 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.31k | size_t block_size = _options.data_page_size; | 169 | 1.31k | _count = 0; | 170 | 1.31k | _raw_data_size = 0; | 171 | 1.31k | _data.clear(); | 172 | 1.31k | _data.reserve(block_size); | 173 | 1.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.31k | << "buffer must be naturally-aligned"; | 175 | 1.31k | _buffer.clear(); | 176 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.31k | _finished = false; | 178 | 1.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.31k | }); | 180 | 1.31k | return Status::OK(); | 181 | 1.31k | } |
|
182 | | |
183 | 3 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 3 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv 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 | 42.7k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 22.4k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 4.62k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 753 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 4.53k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 2.11k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 990 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 712 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 798 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.66k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.48k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 151 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 315 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.17k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 26 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 465k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 44.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6.86k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 105k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 71.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.01k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 11.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 14.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 198 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 37.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 437 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.09k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 106 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.70k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 16.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.05k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 699 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 615 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 767k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 376k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 45.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 6.94k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 101k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 71.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.80k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 14.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 186 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 36.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 283 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.08k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 193 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.71k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.14k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 785 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 697 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 760k | OwnedSlice _finish(int final_size_of_type) { |
194 | 760k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 760k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 760k | int padding_elems = num_elems_after_padding - _count; |
199 | 760k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 21.5M | for (int i = 0; i < padding_bytes; i++) { |
201 | 20.8M | _data.push_back(0); |
202 | 20.8M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 760k | _buffer.resize( |
206 | 760k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 760k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 760k | int64_t bytes = |
210 | 760k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 760k | num_elems_after_padding, final_size_of_type, 0); |
212 | 760k | 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 | 760k | encode_fixed32_le(&_buffer[0], _count); |
222 | 760k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 760k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 760k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 760k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 760k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 760k | return _buffer.build(); |
229 | 760k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 360k | OwnedSlice _finish(int final_size_of_type) { | 194 | 360k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 360k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 360k | int padding_elems = num_elems_after_padding - _count; | 199 | 360k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.89M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.53M | _data.push_back(0); | 202 | 6.53M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 360k | _buffer.resize( | 206 | 360k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 360k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 360k | int64_t bytes = | 210 | 360k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 360k | num_elems_after_padding, final_size_of_type, 0); | 212 | 360k | 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 | 360k | encode_fixed32_le(&_buffer[0], _count); | 222 | 360k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 360k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 360k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 360k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 360k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 360k | return _buffer.build(); | 229 | 360k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 44.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 44.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 44.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 44.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 44.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 273k | for (int i = 0; i < padding_bytes; i++) { | 201 | 229k | _data.push_back(0); | 202 | 229k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 44.3k | _buffer.resize( | 206 | 44.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 44.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 44.3k | int64_t bytes = | 210 | 44.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 44.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 44.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 | 44.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 44.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 44.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 44.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 44.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 44.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 44.3k | return _buffer.build(); | 229 | 44.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 6.86k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.86k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.86k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.86k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.86k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 69.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 63.0k | _data.push_back(0); | 202 | 63.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.86k | _buffer.resize( | 206 | 6.86k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.86k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.86k | int64_t bytes = | 210 | 6.86k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.86k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.86k | 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 | 6.86k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.86k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.86k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.86k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.86k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.86k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.86k | return _buffer.build(); | 229 | 6.86k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 105k | OwnedSlice _finish(int final_size_of_type) { | 194 | 105k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 105k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 105k | int padding_elems = num_elems_after_padding - _count; | 199 | 105k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.47M | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.37M | _data.push_back(0); | 202 | 4.37M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 105k | _buffer.resize( | 206 | 105k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 105k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 105k | int64_t bytes = | 210 | 105k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 105k | num_elems_after_padding, final_size_of_type, 0); | 212 | 105k | 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 | 105k | encode_fixed32_le(&_buffer[0], _count); | 222 | 105k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 105k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 105k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 105k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 105k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 105k | return _buffer.build(); | 229 | 105k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 71.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 71.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 71.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 71.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 71.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.43M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.36M | _data.push_back(0); | 202 | 3.36M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 71.4k | _buffer.resize( | 206 | 71.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 71.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 71.4k | int64_t bytes = | 210 | 71.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 71.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 71.4k | 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 | 71.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 71.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 71.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 71.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 71.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 71.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 71.4k | return _buffer.build(); | 229 | 71.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 9.01k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.01k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.01k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.01k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.01k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 573k | for (int i = 0; i < padding_bytes; i++) { | 201 | 564k | _data.push_back(0); | 202 | 564k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.01k | _buffer.resize( | 206 | 9.01k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.01k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.01k | int64_t bytes = | 210 | 9.01k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.01k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.01k | 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.01k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.01k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.01k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.01k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.01k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.01k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.01k | return _buffer.build(); | 229 | 9.01k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 11.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 250k | for (int i = 0; i < padding_bytes; i++) { | 201 | 239k | _data.push_back(0); | 202 | 239k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.4k | _buffer.resize( | 206 | 11.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.4k | int64_t bytes = | 210 | 11.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 11.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.4k | return _buffer.build(); | 229 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 14.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 14.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 14.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 14.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 14.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 610k | for (int i = 0; i < padding_bytes; i++) { | 201 | 596k | _data.push_back(0); | 202 | 596k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 14.5k | _buffer.resize( | 206 | 14.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 14.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 14.5k | int64_t bytes = | 210 | 14.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 14.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 14.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 | 14.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 14.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 14.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 14.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 14.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 14.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 14.5k | return _buffer.build(); | 229 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 198 | OwnedSlice _finish(int final_size_of_type) { | 194 | 198 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 198 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 198 | int padding_elems = num_elems_after_padding - _count; | 199 | 198 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.70k | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.50k | _data.push_back(0); | 202 | 2.50k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 198 | _buffer.resize( | 206 | 198 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 198 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 198 | int64_t bytes = | 210 | 198 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 198 | num_elems_after_padding, final_size_of_type, 0); | 212 | 198 | 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 | 198 | encode_fixed32_le(&_buffer[0], _count); | 222 | 198 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 198 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 198 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 198 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 198 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 198 | return _buffer.build(); | 229 | 198 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 37.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 37.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 37.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 37.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 37.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 802k | for (int i = 0; i < padding_bytes; i++) { | 201 | 764k | _data.push_back(0); | 202 | 764k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 37.4k | _buffer.resize( | 206 | 37.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 37.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 37.4k | int64_t bytes = | 210 | 37.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 37.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 37.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 37.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 37.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 37.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 37.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 37.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 37.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 37.4k | return _buffer.build(); | 229 | 37.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.84M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.80M | _data.push_back(0); | 202 | 1.80M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.6k | _buffer.resize( | 206 | 43.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.6k | int64_t bytes = | 210 | 43.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.6k | return _buffer.build(); | 229 | 43.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 437 | OwnedSlice _finish(int final_size_of_type) { | 194 | 437 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 437 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 437 | int padding_elems = num_elems_after_padding - _count; | 199 | 437 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.97k | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.53k | _data.push_back(0); | 202 | 6.53k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 437 | _buffer.resize( | 206 | 437 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 437 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 437 | int64_t bytes = | 210 | 437 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 437 | num_elems_after_padding, final_size_of_type, 0); | 212 | 437 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 437 | encode_fixed32_le(&_buffer[0], _count); | 222 | 437 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 437 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 437 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 437 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 437 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 437 | return _buffer.build(); | 229 | 437 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.09k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.09k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.09k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.09k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.09k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 372k | for (int i = 0; i < padding_bytes; i++) { | 201 | 364k | _data.push_back(0); | 202 | 364k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.09k | _buffer.resize( | 206 | 7.09k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.09k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.09k | int64_t bytes = | 210 | 7.09k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.09k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.09k | 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.09k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.09k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.09k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.09k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.09k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.09k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.09k | return _buffer.build(); | 229 | 7.09k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 106 | OwnedSlice _finish(int final_size_of_type) { | 194 | 106 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 106 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 106 | int padding_elems = num_elems_after_padding - _count; | 199 | 106 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.52k | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.42k | _data.push_back(0); | 202 | 6.42k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 106 | _buffer.resize( | 206 | 106 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 106 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 106 | int64_t bytes = | 210 | 106 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 106 | num_elems_after_padding, final_size_of_type, 0); | 212 | 106 | 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 | 106 | encode_fixed32_le(&_buffer[0], _count); | 222 | 106 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 106 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 106 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 106 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 106 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 106 | return _buffer.build(); | 229 | 106 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.70k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.70k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.70k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.70k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.70k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 118k | for (int i = 0; i < padding_bytes; i++) { | 201 | 109k | _data.push_back(0); | 202 | 109k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.70k | _buffer.resize( | 206 | 9.70k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.70k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.70k | int64_t bytes = | 210 | 9.70k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.70k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.70k | 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.70k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.70k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.70k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.70k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.70k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.70k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.70k | return _buffer.build(); | 229 | 9.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 492k | for (int i = 0; i < padding_bytes; i++) { | 201 | 473k | _data.push_back(0); | 202 | 473k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.9k | _buffer.resize( | 206 | 18.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.9k | int64_t bytes = | 210 | 18.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.9k | 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.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.9k | return _buffer.build(); | 229 | 18.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 16.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 16.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 16.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 16.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 16.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.13M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.11M | _data.push_back(0); | 202 | 1.11M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 16.5k | _buffer.resize( | 206 | 16.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 16.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 16.5k | int64_t bytes = | 210 | 16.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 16.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 16.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 16.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 16.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 16.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 16.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 16.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 16.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 16.5k | return _buffer.build(); | 229 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.05k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.05k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.05k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.05k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.05k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 160k | for (int i = 0; i < padding_bytes; i++) { | 201 | 159k | _data.push_back(0); | 202 | 159k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.05k | _buffer.resize( | 206 | 1.05k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.05k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.05k | int64_t bytes = | 210 | 1.05k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.05k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.05k | 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.05k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.05k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.05k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.05k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.05k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.05k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.05k | return _buffer.build(); | 229 | 1.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 699 | OwnedSlice _finish(int final_size_of_type) { | 194 | 699 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 699 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 699 | int padding_elems = num_elems_after_padding - _count; | 199 | 699 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 14.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 14.0k | _data.push_back(0); | 202 | 14.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 699 | _buffer.resize( | 206 | 699 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 699 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 699 | int64_t bytes = | 210 | 699 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 699 | num_elems_after_padding, final_size_of_type, 0); | 212 | 699 | 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 | 699 | encode_fixed32_le(&_buffer[0], _count); | 222 | 699 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 699 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 699 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 699 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 699 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 699 | return _buffer.build(); | 229 | 699 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 615 | OwnedSlice _finish(int final_size_of_type) { | 194 | 615 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 615 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 615 | int padding_elems = num_elems_after_padding - _count; | 199 | 615 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 49.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.0k | _data.push_back(0); | 202 | 49.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 615 | _buffer.resize( | 206 | 615 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 615 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 615 | int64_t bytes = | 210 | 615 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 615 | num_elems_after_padding, final_size_of_type, 0); | 212 | 615 | 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 | 615 | encode_fixed32_le(&_buffer[0], _count); | 222 | 615 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 615 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 615 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 615 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 615 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 615 | return _buffer.build(); | 229 | 615 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 2.34M | int& size_of_element) { |
253 | 2.34M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 2.34M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.34M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.34M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.34M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.34M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 2.34M | switch (size_of_element) { |
271 | 193k | case 1: |
272 | 231k | case 2: |
273 | 235k | case 3: |
274 | 1.49M | case 4: |
275 | 2.24M | case 8: |
276 | 2.24M | case 12: |
277 | 2.34M | case 16: |
278 | 2.34M | case 32: |
279 | 2.34M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.34M | } |
283 | 2.34M | return Status::OK(); |
284 | 2.34M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.17M | : _data(data), |
291 | 1.17M | _options(options), |
292 | 1.17M | _parsed(false), |
293 | 1.17M | _num_elements(0), |
294 | 1.17M | _num_element_after_padding(0), |
295 | 1.17M | _size_of_element(0), |
296 | 1.17M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 536k | : _data(data), | 291 | 536k | _options(options), | 292 | 536k | _parsed(false), | 293 | 536k | _num_elements(0), | 294 | 536k | _num_element_after_padding(0), | 295 | 536k | _size_of_element(0), | 296 | 536k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 97.2k | : _data(data), | 291 | 97.2k | _options(options), | 292 | 97.2k | _parsed(false), | 293 | 97.2k | _num_elements(0), | 294 | 97.2k | _num_element_after_padding(0), | 295 | 97.2k | _size_of_element(0), | 296 | 97.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 19.0k | : _data(data), | 291 | 19.0k | _options(options), | 292 | 19.0k | _parsed(false), | 293 | 19.0k | _num_elements(0), | 294 | 19.0k | _num_element_after_padding(0), | 295 | 19.0k | _size_of_element(0), | 296 | 19.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 121k | : _data(data), | 291 | 121k | _options(options), | 292 | 121k | _parsed(false), | 293 | 121k | _num_elements(0), | 294 | 121k | _num_element_after_padding(0), | 295 | 121k | _size_of_element(0), | 296 | 121k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 99.5k | : _data(data), | 291 | 99.5k | _options(options), | 292 | 99.5k | _parsed(false), | 293 | 99.5k | _num_elements(0), | 294 | 99.5k | _num_element_after_padding(0), | 295 | 99.5k | _size_of_element(0), | 296 | 99.5k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.9k | : _data(data), | 291 | 16.9k | _options(options), | 292 | 16.9k | _parsed(false), | 293 | 16.9k | _num_elements(0), | 294 | 16.9k | _num_element_after_padding(0), | 295 | 16.9k | _size_of_element(0), | 296 | 16.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 19.8k | : _data(data), | 291 | 19.8k | _options(options), | 292 | 19.8k | _parsed(false), | 293 | 19.8k | _num_elements(0), | 294 | 19.8k | _num_element_after_padding(0), | 295 | 19.8k | _size_of_element(0), | 296 | 19.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 28.7k | : _data(data), | 291 | 28.7k | _options(options), | 292 | 28.7k | _parsed(false), | 293 | 28.7k | _num_elements(0), | 294 | 28.7k | _num_element_after_padding(0), | 295 | 28.7k | _size_of_element(0), | 296 | 28.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.79k | : _data(data), | 291 | 1.79k | _options(options), | 292 | 1.79k | _parsed(false), | 293 | 1.79k | _num_elements(0), | 294 | 1.79k | _num_element_after_padding(0), | 295 | 1.79k | _size_of_element(0), | 296 | 1.79k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 59.1k | : _data(data), | 291 | 59.1k | _options(options), | 292 | 59.1k | _parsed(false), | 293 | 59.1k | _num_elements(0), | 294 | 59.1k | _num_element_after_padding(0), | 295 | 59.1k | _size_of_element(0), | 296 | 59.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 68.7k | : _data(data), | 291 | 68.7k | _options(options), | 292 | 68.7k | _parsed(false), | 293 | 68.7k | _num_elements(0), | 294 | 68.7k | _num_element_after_padding(0), | 295 | 68.7k | _size_of_element(0), | 296 | 68.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.41k | : _data(data), | 291 | 2.41k | _options(options), | 292 | 2.41k | _parsed(false), | 293 | 2.41k | _num_elements(0), | 294 | 2.41k | _num_element_after_padding(0), | 295 | 2.41k | _size_of_element(0), | 296 | 2.41k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.6k | : _data(data), | 291 | 14.6k | _options(options), | 292 | 14.6k | _parsed(false), | 293 | 14.6k | _num_elements(0), | 294 | 14.6k | _num_element_after_padding(0), | 295 | 14.6k | _size_of_element(0), | 296 | 14.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.45k | : _data(data), | 291 | 1.45k | _options(options), | 292 | 1.45k | _parsed(false), | 293 | 1.45k | _num_elements(0), | 294 | 1.45k | _num_element_after_padding(0), | 295 | 1.45k | _size_of_element(0), | 296 | 1.45k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.1k | : _data(data), | 291 | 15.1k | _options(options), | 292 | 15.1k | _parsed(false), | 293 | 15.1k | _num_elements(0), | 294 | 15.1k | _num_element_after_padding(0), | 295 | 15.1k | _size_of_element(0), | 296 | 15.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 38.8k | : _data(data), | 291 | 38.8k | _options(options), | 292 | 38.8k | _parsed(false), | 293 | 38.8k | _num_elements(0), | 294 | 38.8k | _num_element_after_padding(0), | 295 | 38.8k | _size_of_element(0), | 296 | 38.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 29.9k | : _data(data), | 291 | 29.9k | _options(options), | 292 | 29.9k | _parsed(false), | 293 | 29.9k | _num_elements(0), | 294 | 29.9k | _num_element_after_padding(0), | 295 | 29.9k | _size_of_element(0), | 296 | 29.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.75k | : _data(data), | 291 | 1.75k | _options(options), | 292 | 1.75k | _parsed(false), | 293 | 1.75k | _num_elements(0), | 294 | 1.75k | _num_element_after_padding(0), | 295 | 1.75k | _size_of_element(0), | 296 | 1.75k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.19k | : _data(data), | 291 | 1.19k | _options(options), | 292 | 1.19k | _parsed(false), | 293 | 1.19k | _num_elements(0), | 294 | 1.19k | _num_element_after_padding(0), | 295 | 1.19k | _size_of_element(0), | 296 | 1.19k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.14k | : _data(data), | 291 | 1.14k | _options(options), | 292 | 1.14k | _parsed(false), | 293 | 1.14k | _num_elements(0), | 294 | 1.14k | _num_element_after_padding(0), | 295 | 1.14k | _size_of_element(0), | 296 | 1.14k | _cur_index(0) {} |
|
297 | | |
298 | 1.17M | Status init() override { |
299 | 1.17M | CHECK(!_parsed); |
300 | 1.17M | size_t unused; |
301 | 1.17M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.17M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.17M | if (_data.size != |
305 | 1.17M | _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.17M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.17M | _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.17M | 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.17M | _parsed = true; |
325 | 1.17M | return Status::OK(); |
326 | 1.17M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 535k | Status init() override { | 299 | 535k | CHECK(!_parsed); | 300 | 535k | size_t unused; | 301 | 535k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 535k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 535k | if (_data.size != | 305 | 535k | _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 | 535k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 535k | _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 | 535k | 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 | 535k | _parsed = true; | 325 | 535k | return Status::OK(); | 326 | 535k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 97.1k | Status init() override { | 299 | 97.1k | CHECK(!_parsed); | 300 | 97.1k | size_t unused; | 301 | 97.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 97.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 97.1k | if (_data.size != | 305 | 97.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 | 97.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 97.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 | 97.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 | 97.1k | _parsed = true; | 325 | 97.1k | return Status::OK(); | 326 | 97.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 19.0k | Status init() override { | 299 | 19.0k | CHECK(!_parsed); | 300 | 19.0k | size_t unused; | 301 | 19.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 19.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 19.0k | if (_data.size != | 305 | 19.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 | 19.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 19.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 | 19.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 | 19.0k | _parsed = true; | 325 | 19.0k | return Status::OK(); | 326 | 19.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 121k | Status init() override { | 299 | 121k | CHECK(!_parsed); | 300 | 121k | size_t unused; | 301 | 121k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 121k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 121k | if (_data.size != | 305 | 121k | _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 | 121k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 121k | _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 | 121k | 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 | 121k | _parsed = true; | 325 | 121k | return Status::OK(); | 326 | 121k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 99.3k | Status init() override { | 299 | 99.3k | CHECK(!_parsed); | 300 | 99.3k | size_t unused; | 301 | 99.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 99.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 99.3k | if (_data.size != | 305 | 99.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 | 99.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 99.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 | 99.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 | 99.3k | _parsed = true; | 325 | 99.3k | return Status::OK(); | 326 | 99.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 16.9k | Status init() override { | 299 | 16.9k | CHECK(!_parsed); | 300 | 16.9k | size_t unused; | 301 | 16.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.9k | if (_data.size != | 305 | 16.9k | _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.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.9k | _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.9k | 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.9k | _parsed = true; | 325 | 16.9k | return Status::OK(); | 326 | 16.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 19.8k | Status init() override { | 299 | 19.8k | CHECK(!_parsed); | 300 | 19.8k | size_t unused; | 301 | 19.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 19.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 19.8k | if (_data.size != | 305 | 19.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 | 19.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 19.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 | 19.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 | 19.8k | _parsed = true; | 325 | 19.8k | return Status::OK(); | 326 | 19.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 28.6k | Status init() override { | 299 | 28.6k | CHECK(!_parsed); | 300 | 28.6k | size_t unused; | 301 | 28.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 28.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 28.6k | if (_data.size != | 305 | 28.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 | 28.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 28.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 | 28.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 | 28.6k | _parsed = true; | 325 | 28.6k | return Status::OK(); | 326 | 28.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.79k | Status init() override { | 299 | 1.79k | CHECK(!_parsed); | 300 | 1.79k | size_t unused; | 301 | 1.79k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.79k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.79k | if (_data.size != | 305 | 1.79k | _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.79k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.79k | _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.79k | 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.79k | _parsed = true; | 325 | 1.79k | return Status::OK(); | 326 | 1.79k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 59.0k | Status init() override { | 299 | 59.0k | CHECK(!_parsed); | 300 | 59.0k | size_t unused; | 301 | 59.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 59.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 59.0k | if (_data.size != | 305 | 59.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 | 59.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 59.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 | 59.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 | 59.0k | _parsed = true; | 325 | 59.0k | return Status::OK(); | 326 | 59.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 68.7k | Status init() override { | 299 | 68.7k | CHECK(!_parsed); | 300 | 68.7k | size_t unused; | 301 | 68.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 68.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 68.7k | if (_data.size != | 305 | 68.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 | 68.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 68.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 | 68.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 | 68.7k | _parsed = true; | 325 | 68.7k | return Status::OK(); | 326 | 68.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.41k | Status init() override { | 299 | 2.41k | CHECK(!_parsed); | 300 | 2.41k | size_t unused; | 301 | 2.41k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.41k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.41k | if (_data.size != | 305 | 2.41k | _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.41k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.41k | _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.41k | 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.41k | _parsed = true; | 325 | 2.41k | return Status::OK(); | 326 | 2.41k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 14.6k | Status init() override { | 299 | 14.6k | CHECK(!_parsed); | 300 | 14.6k | size_t unused; | 301 | 14.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.6k | if (_data.size != | 305 | 14.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 | 14.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.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 | 14.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 | 14.6k | _parsed = true; | 325 | 14.6k | return Status::OK(); | 326 | 14.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.44k | Status init() override { | 299 | 1.44k | CHECK(!_parsed); | 300 | 1.44k | size_t unused; | 301 | 1.44k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.44k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.44k | if (_data.size != | 305 | 1.44k | _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.44k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.44k | _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.44k | 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.44k | _parsed = true; | 325 | 1.44k | return Status::OK(); | 326 | 1.44k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.1k | Status init() override { | 299 | 15.1k | CHECK(!_parsed); | 300 | 15.1k | size_t unused; | 301 | 15.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.1k | if (_data.size != | 305 | 15.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 | 15.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.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 | 15.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 | 15.1k | _parsed = true; | 325 | 15.1k | return Status::OK(); | 326 | 15.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 38.7k | Status init() override { | 299 | 38.7k | CHECK(!_parsed); | 300 | 38.7k | size_t unused; | 301 | 38.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 38.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 38.7k | if (_data.size != | 305 | 38.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 | 38.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 38.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 | 38.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 | 38.7k | _parsed = true; | 325 | 38.7k | return Status::OK(); | 326 | 38.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 29.9k | Status init() override { | 299 | 29.9k | CHECK(!_parsed); | 300 | 29.9k | size_t unused; | 301 | 29.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 29.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 29.9k | if (_data.size != | 305 | 29.9k | _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 | 29.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 29.9k | _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 | 29.9k | 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 | 29.9k | _parsed = true; | 325 | 29.9k | return Status::OK(); | 326 | 29.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.75k | Status init() override { | 299 | 1.75k | CHECK(!_parsed); | 300 | 1.75k | size_t unused; | 301 | 1.75k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.75k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.75k | if (_data.size != | 305 | 1.75k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.75k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.75k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.75k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.75k | _parsed = true; | 325 | 1.75k | return Status::OK(); | 326 | 1.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 1.18k | Status init() override { | 299 | 1.18k | CHECK(!_parsed); | 300 | 1.18k | size_t unused; | 301 | 1.18k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.18k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.18k | if (_data.size != | 305 | 1.18k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.18k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.18k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.18k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.18k | _parsed = true; | 325 | 1.18k | return Status::OK(); | 326 | 1.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 1.14k | Status init() override { | 299 | 1.14k | CHECK(!_parsed); | 300 | 1.14k | size_t unused; | 301 | 1.14k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.14k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.14k | if (_data.size != | 305 | 1.14k | _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.14k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.14k | _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.14k | 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.14k | _parsed = true; | 325 | 1.14k | return Status::OK(); | 326 | 1.14k | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 1.86M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 1.86M | if (_num_elements == 0) [[unlikely]] { |
337 | 5.21k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 5.21k | } |
342 | | |
343 | 1.86M | DCHECK_LE(pos, _num_elements); |
344 | 1.86M | _cur_index = pos; |
345 | 1.86M | return Status::OK(); |
346 | 1.86M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.07M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.07M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.82k | 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.82k | } | 342 | | | 343 | 1.07M | DCHECK_LE(pos, _num_elements); | 344 | 1.07M | _cur_index = pos; | 345 | 1.07M | return Status::OK(); | 346 | 1.07M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 77.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 77.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 443 | 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 | 443 | } | 342 | | | 343 | 77.8k | DCHECK_LE(pos, _num_elements); | 344 | 77.8k | _cur_index = pos; | 345 | 77.8k | return Status::OK(); | 346 | 77.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 20.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 20.7k | DCHECK(_parsed) << "Must call init()"; | 336 | 20.7k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.35k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1.35k | } | 342 | | | 343 | 20.7k | DCHECK_LE(pos, _num_elements); | 344 | 20.7k | _cur_index = pos; | 345 | 20.7k | return Status::OK(); | 346 | 20.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 157k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 157k | if (_num_elements == 0) [[unlikely]] { | 337 | 649 | 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 | 649 | } | 342 | | | 343 | 157k | DCHECK_LE(pos, _num_elements); | 344 | 157k | _cur_index = pos; | 345 | 157k | return Status::OK(); | 346 | 157k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 10.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 10.7k | DCHECK(_parsed) << "Must call init()"; | 336 | 10.7k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 10.7k | DCHECK_LE(pos, _num_elements); | 344 | 10.7k | _cur_index = pos; | 345 | 10.7k | return Status::OK(); | 346 | 10.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 21.9k | Status seek_to_position_in_page(size_t pos) override { | 335 | 21.9k | DCHECK(_parsed) << "Must call init()"; | 336 | 21.9k | 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 | 21.9k | DCHECK_LE(pos, _num_elements); | 344 | 21.9k | _cur_index = pos; | 345 | 21.9k | return Status::OK(); | 346 | 21.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 17.4k | DCHECK(_parsed) << "Must call init()"; | 336 | 17.4k | 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 | 17.4k | DCHECK_LE(pos, _num_elements); | 344 | 17.4k | _cur_index = pos; | 345 | 17.4k | return Status::OK(); | 346 | 17.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 11.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 11.4k | DCHECK(_parsed) << "Must call init()"; | 336 | 11.4k | 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 | 11.4k | DCHECK_LE(pos, _num_elements); | 344 | 11.4k | _cur_index = pos; | 345 | 11.4k | return Status::OK(); | 346 | 11.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 17.6k | DCHECK(_parsed) << "Must call init()"; | 336 | 17.6k | if (_num_elements == 0) [[unlikely]] { | 337 | 4 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 4 | } | 342 | | | 343 | 17.6k | DCHECK_LE(pos, _num_elements); | 344 | 17.6k | _cur_index = pos; | 345 | 17.6k | return Status::OK(); | 346 | 17.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 322k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 322k | if (_num_elements == 0) [[unlikely]] { | 337 | 486 | 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 | 486 | } | 342 | | | 343 | 322k | DCHECK_LE(pos, _num_elements); | 344 | 322k | _cur_index = pos; | 345 | 322k | return Status::OK(); | 346 | 322k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 77.9k | Status seek_to_position_in_page(size_t pos) override { | 335 | 77.9k | DCHECK(_parsed) << "Must call init()"; | 336 | 77.9k | if (_num_elements == 0) [[unlikely]] { | 337 | 17 | 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 | 17 | } | 342 | | | 343 | 77.9k | DCHECK_LE(pos, _num_elements); | 344 | 77.9k | _cur_index = pos; | 345 | 77.9k | return Status::OK(); | 346 | 77.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.47k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.47k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.47k | 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 | 6.47k | DCHECK_LE(pos, _num_elements); | 344 | 6.47k | _cur_index = pos; | 345 | 6.47k | return Status::OK(); | 346 | 6.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.60k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.60k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.60k | if (_num_elements == 0) [[unlikely]] { | 337 | 353 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 353 | } | 342 | | | 343 | 6.60k | DCHECK_LE(pos, _num_elements); | 344 | 6.60k | _cur_index = pos; | 345 | 6.60k | return Status::OK(); | 346 | 6.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 140 | Status seek_to_position_in_page(size_t pos) override { | 335 | 140 | DCHECK(_parsed) << "Must call init()"; | 336 | 140 | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 12 | } | 342 | | | 343 | 140 | DCHECK_LE(pos, _num_elements); | 344 | 140 | _cur_index = pos; | 345 | 140 | return Status::OK(); | 346 | 140 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 809 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 809 | if (_num_elements == 0) [[unlikely]] { | 337 | 31 | 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 | 31 | } | 342 | | | 343 | 809 | DCHECK_LE(pos, _num_elements); | 344 | 809 | _cur_index = pos; | 345 | 809 | return Status::OK(); | 346 | 809 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 16.6k | DCHECK(_parsed) << "Must call init()"; | 336 | 16.6k | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 12 | } | 342 | | | 343 | 16.6k | DCHECK_LE(pos, _num_elements); | 344 | 16.6k | _cur_index = pos; | 345 | 16.6k | return Status::OK(); | 346 | 16.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 23.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 23.5k | DCHECK(_parsed) << "Must call init()"; | 336 | 23.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 10 | } | 342 | | | 343 | 23.5k | DCHECK_LE(pos, _num_elements); | 344 | 23.5k | _cur_index = pos; | 345 | 23.5k | return Status::OK(); | 346 | 23.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.93k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.93k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.93k | 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.93k | DCHECK_LE(pos, _num_elements); | 344 | 1.93k | _cur_index = pos; | 345 | 1.93k | return Status::OK(); | 346 | 1.93k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 73 | Status seek_to_position_in_page(size_t pos) override { | 335 | 73 | DCHECK(_parsed) << "Must call init()"; | 336 | 73 | 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 | 73 | DCHECK_LE(pos, _num_elements); | 344 | 73 | _cur_index = pos; | 345 | 73 | return Status::OK(); | 346 | 73 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 89 | Status seek_to_position_in_page(size_t pos) override { | 335 | 89 | DCHECK(_parsed) << "Must call init()"; | 336 | 89 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 89 | DCHECK_LE(pos, _num_elements); | 344 | 89 | _cur_index = pos; | 345 | 89 | return Status::OK(); | 346 | 89 | } |
|
347 | | |
348 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | |
|
351 | 0 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 0 | size_t left = 0; |
356 | 0 | size_t right = _num_elements; |
357 | |
|
358 | 0 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 0 | while (left < right) { |
364 | 0 | size_t mid = left + (right - left) / 2; |
365 | 0 | mid_value = get_data(mid); |
366 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 0 | left = mid + 1; |
368 | 0 | } else { |
369 | 0 | right = mid; |
370 | 0 | } |
371 | 0 | } |
372 | 0 | if (left >= _num_elements) { |
373 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 0 | } |
375 | 0 | void* find_value = get_data(left); |
376 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 0 | *exact_match = true; |
378 | 0 | } else { |
379 | 0 | *exact_match = false; |
380 | 0 | } |
381 | |
|
382 | 0 | _cur_index = left; |
383 | 0 | return Status::OK(); |
384 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_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.65M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.65M | DCHECK(_parsed); |
389 | 1.65M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.65M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
395 | | |
396 | 1.65M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.65M | *n = max_fetch; |
398 | 1.65M | if constexpr (forward_index) { |
399 | 1.46M | _cur_index += max_fetch; |
400 | 1.46M | } |
401 | | |
402 | 1.65M | return Status::OK(); |
403 | 1.65M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 361k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 361k | DCHECK(_parsed); | 389 | 361k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 361k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 361k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 361k | *n = max_fetch; | 398 | 361k | if constexpr (forward_index) { | 399 | 361k | _cur_index += max_fetch; | 400 | 361k | } | 401 | | | 402 | 361k | return Status::OK(); | 403 | 361k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 170k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 170k | DCHECK(_parsed); | 389 | 170k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 170k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 170k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 170k | *n = max_fetch; | 398 | 170k | if constexpr (forward_index) { | 399 | 170k | _cur_index += max_fetch; | 400 | 170k | } | 401 | | | 402 | 170k | return Status::OK(); | 403 | 170k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.8k | DCHECK(_parsed); | 389 | 16.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 16.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.8k | *n = max_fetch; | 398 | 16.8k | if constexpr (forward_index) { | 399 | 16.8k | _cur_index += max_fetch; | 400 | 16.8k | } | 401 | | | 402 | 16.8k | return Status::OK(); | 403 | 16.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 108k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 108k | DCHECK(_parsed); | 389 | 108k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 108k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 108k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 108k | *n = max_fetch; | 398 | 108k | if constexpr (forward_index) { | 399 | 108k | _cur_index += max_fetch; | 400 | 108k | } | 401 | | | 402 | 108k | return Status::OK(); | 403 | 108k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 150k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 150k | DCHECK(_parsed); | 389 | 150k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 150k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 150k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 150k | *n = max_fetch; | 398 | 150k | if constexpr (forward_index) { | 399 | 150k | _cur_index += max_fetch; | 400 | 150k | } | 401 | | | 402 | 150k | return Status::OK(); | 403 | 150k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 185k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 185k | DCHECK(_parsed); | 389 | 185k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 185k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 185k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 185k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 185k | return Status::OK(); | 403 | 185k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 28.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 28.3k | DCHECK(_parsed); | 389 | 28.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 28.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 28.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 28.3k | *n = max_fetch; | 398 | 28.3k | if constexpr (forward_index) { | 399 | 28.3k | _cur_index += max_fetch; | 400 | 28.3k | } | 401 | | | 402 | 28.3k | return Status::OK(); | 403 | 28.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 14.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 14.5k | DCHECK(_parsed); | 389 | 14.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 14.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 14.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 14.5k | *n = max_fetch; | 398 | 14.5k | if constexpr (forward_index) { | 399 | 14.5k | _cur_index += max_fetch; | 400 | 14.5k | } | 401 | | | 402 | 14.5k | return Status::OK(); | 403 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 20.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20.7k | DCHECK(_parsed); | 389 | 20.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 20.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20.7k | *n = max_fetch; | 398 | 20.7k | if constexpr (forward_index) { | 399 | 20.7k | _cur_index += max_fetch; | 400 | 20.7k | } | 401 | | | 402 | 20.7k | return Status::OK(); | 403 | 20.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_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 | 10.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 10.9k | DCHECK(_parsed); | 389 | 10.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 10.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 10.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 10.9k | *n = max_fetch; | 398 | 10.9k | if constexpr (forward_index) { | 399 | 10.9k | _cur_index += max_fetch; | 400 | 10.9k | } | 401 | | | 402 | 10.9k | return Status::OK(); | 403 | 10.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 414k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 414k | DCHECK(_parsed); | 389 | 414k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 414k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 414k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 414k | *n = max_fetch; | 398 | 414k | if constexpr (forward_index) { | 399 | 414k | _cur_index += max_fetch; | 400 | 414k | } | 401 | | | 402 | 414k | return Status::OK(); | 403 | 414k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 81.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 81.8k | DCHECK(_parsed); | 389 | 81.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 81.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 81.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 81.8k | *n = max_fetch; | 398 | 81.8k | if constexpr (forward_index) { | 399 | 81.8k | _cur_index += max_fetch; | 400 | 81.8k | } | 401 | | | 402 | 81.8k | return Status::OK(); | 403 | 81.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.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, static_cast<size_t>(_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_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 6.91k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 6.91k | DCHECK(_parsed); | 389 | 6.91k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 6.91k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 6.91k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 6.91k | *n = max_fetch; | 398 | 6.91k | if constexpr (forward_index) { | 399 | 6.91k | _cur_index += max_fetch; | 400 | 6.91k | } | 401 | | | 402 | 6.91k | return Status::OK(); | 403 | 6.91k | } |
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.34k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.34k | DCHECK(_parsed); | 389 | 1.34k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.34k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.34k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.34k | *n = max_fetch; | 398 | 1.34k | if constexpr (forward_index) { | 399 | 1.34k | _cur_index += max_fetch; | 400 | 1.34k | } | 401 | | | 402 | 1.34k | return Status::OK(); | 403 | 1.34k | } |
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.03k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.03k | DCHECK(_parsed); | 389 | 9.03k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.03k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 9.03k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.03k | *n = max_fetch; | 398 | 9.03k | if constexpr (forward_index) { | 399 | 9.03k | _cur_index += max_fetch; | 400 | 9.03k | } | 401 | | | 402 | 9.03k | return Status::OK(); | 403 | 9.03k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 30.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 30.3k | DCHECK(_parsed); | 389 | 30.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 30.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 30.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 30.3k | *n = max_fetch; | 398 | 30.3k | if constexpr (forward_index) { | 399 | 30.3k | _cur_index += max_fetch; | 400 | 30.3k | } | 401 | | | 402 | 30.3k | return Status::OK(); | 403 | 30.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 26.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 26.2k | DCHECK(_parsed); | 389 | 26.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 26.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 26.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 26.2k | *n = max_fetch; | 398 | 26.2k | if constexpr (forward_index) { | 399 | 26.2k | _cur_index += max_fetch; | 400 | 26.2k | } | 401 | | | 402 | 26.2k | return Status::OK(); | 403 | 26.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.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, static_cast<size_t>(_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 | 3.24k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.24k | DCHECK(_parsed); | 389 | 3.24k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.24k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 3.24k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.24k | *n = max_fetch; | 398 | 3.24k | if constexpr (forward_index) { | 399 | 3.24k | _cur_index += max_fetch; | 400 | 3.24k | } | 401 | | | 402 | 3.24k | return Status::OK(); | 403 | 3.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 5.75k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 5.75k | DCHECK(_parsed); | 389 | 5.75k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 5.75k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 5.75k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 5.75k | *n = max_fetch; | 398 | 5.75k | if constexpr (forward_index) { | 399 | 5.75k | _cur_index += max_fetch; | 400 | 5.75k | } | 401 | | | 402 | 5.75k | return Status::OK(); | 403 | 5.75k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.46M | 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 | 361k | 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 | 170k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 16.8k | 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 | 108k | 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 | 150k | 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_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 28.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 14.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 20.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 10.9k | 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 | 414k | 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 | 81.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.37k | 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 | 6.91k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.35k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 9.03k | 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 | 30.3k | 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 | 26.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 3.15k | 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 | 3.24k | 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 | 5.75k | 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 | 389k | MutableColumnPtr& dst) override { |
409 | 389k | DCHECK(_parsed); |
410 | 389k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 389k | auto total = *n; |
416 | 389k | auto read_count = 0; |
417 | 389k | _buffer.resize(total); |
418 | 121M | for (size_t i = 0; i < total; ++i) { |
419 | 120M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 120M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 10.1k | break; |
422 | 10.1k | } |
423 | | |
424 | 120M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 120M | } |
426 | | |
427 | 389k | if (LIKELY(read_count > 0)) { |
428 | 389k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 389k | } |
430 | | |
431 | 389k | *n = read_count; |
432 | 389k | return Status::OK(); |
433 | 389k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 73.9k | MutableColumnPtr& dst) override { | 409 | 73.9k | DCHECK(_parsed); | 410 | 73.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 73.9k | auto total = *n; | 416 | 73.9k | auto read_count = 0; | 417 | 73.9k | _buffer.resize(total); | 418 | 33.0M | for (size_t i = 0; i < total; ++i) { | 419 | 32.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 32.9M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 97 | break; | 422 | 97 | } | 423 | | | 424 | 32.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 32.9M | } | 426 | | | 427 | 73.9k | if (LIKELY(read_count > 0)) { | 428 | 73.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 73.9k | } | 430 | | | 431 | 73.9k | *n = read_count; | 432 | 73.9k | return Status::OK(); | 433 | 73.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 33.1k | MutableColumnPtr& dst) override { | 409 | 33.1k | DCHECK(_parsed); | 410 | 33.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 33.1k | auto total = *n; | 416 | 33.1k | auto read_count = 0; | 417 | 33.1k | _buffer.resize(total); | 418 | 1.78M | for (size_t i = 0; i < total; ++i) { | 419 | 1.75M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.75M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.75M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.75M | } | 426 | | | 427 | 33.1k | if (LIKELY(read_count > 0)) { | 428 | 33.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 33.1k | } | 430 | | | 431 | 33.1k | *n = read_count; | 432 | 33.1k | return Status::OK(); | 433 | 33.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.28k | MutableColumnPtr& dst) override { | 409 | 9.28k | DCHECK(_parsed); | 410 | 9.28k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.28k | auto total = *n; | 416 | 9.28k | auto read_count = 0; | 417 | 9.28k | _buffer.resize(total); | 418 | 698k | for (size_t i = 0; i < total; ++i) { | 419 | 689k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 689k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 689k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 689k | } | 426 | | | 427 | 9.29k | if (LIKELY(read_count > 0)) { | 428 | 9.29k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.29k | } | 430 | | | 431 | 9.28k | *n = read_count; | 432 | 9.28k | return Status::OK(); | 433 | 9.28k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 71.3k | MutableColumnPtr& dst) override { | 409 | 71.3k | DCHECK(_parsed); | 410 | 71.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 71.3k | auto total = *n; | 416 | 71.3k | auto read_count = 0; | 417 | 71.3k | _buffer.resize(total); | 418 | 27.0M | for (size_t i = 0; i < total; ++i) { | 419 | 26.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 26.9M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.50k | break; | 422 | 1.50k | } | 423 | | | 424 | 26.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 26.9M | } | 426 | | | 427 | 71.3k | if (LIKELY(read_count > 0)) { | 428 | 71.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 71.3k | } | 430 | | | 431 | 71.3k | *n = read_count; | 432 | 71.3k | return Status::OK(); | 433 | 71.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 40.7k | MutableColumnPtr& dst) override { | 409 | 40.7k | DCHECK(_parsed); | 410 | 40.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 40.7k | auto total = *n; | 416 | 40.7k | auto read_count = 0; | 417 | 40.7k | _buffer.resize(total); | 418 | 4.28M | for (size_t i = 0; i < total; ++i) { | 419 | 4.24M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 4.24M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 688 | break; | 422 | 688 | } | 423 | | | 424 | 4.24M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 4.24M | } | 426 | | | 427 | 40.7k | if (LIKELY(read_count > 0)) { | 428 | 40.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 40.7k | } | 430 | | | 431 | 40.7k | *n = read_count; | 432 | 40.7k | return Status::OK(); | 433 | 40.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.95k | MutableColumnPtr& dst) override { | 409 | 7.95k | DCHECK(_parsed); | 410 | 7.95k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.95k | auto total = *n; | 416 | 7.95k | auto read_count = 0; | 417 | 7.95k | _buffer.resize(total); | 418 | 1.24M | for (size_t i = 0; i < total; ++i) { | 419 | 1.23M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.23M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 308 | break; | 422 | 308 | } | 423 | | | 424 | 1.23M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.23M | } | 426 | | | 427 | 7.95k | if (LIKELY(read_count > 0)) { | 428 | 7.95k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.95k | } | 430 | | | 431 | 7.95k | *n = read_count; | 432 | 7.95k | return Status::OK(); | 433 | 7.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.6k | MutableColumnPtr& dst) override { | 409 | 10.6k | DCHECK(_parsed); | 410 | 10.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.6k | auto total = *n; | 416 | 10.6k | auto read_count = 0; | 417 | 10.6k | _buffer.resize(total); | 418 | 1.16M | for (size_t i = 0; i < total; ++i) { | 419 | 1.15M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.15M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 31 | break; | 422 | 31 | } | 423 | | | 424 | 1.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.15M | } | 426 | | | 427 | 10.6k | if (LIKELY(read_count > 0)) { | 428 | 10.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.6k | } | 430 | | | 431 | 10.6k | *n = read_count; | 432 | 10.6k | return Status::OK(); | 433 | 10.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 14.5k | MutableColumnPtr& dst) override { | 409 | 14.5k | DCHECK(_parsed); | 410 | 14.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 14.5k | auto total = *n; | 416 | 14.5k | auto read_count = 0; | 417 | 14.5k | _buffer.resize(total); | 418 | 1.69M | for (size_t i = 0; i < total; ++i) { | 419 | 1.67M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.67M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 364 | break; | 422 | 364 | } | 423 | | | 424 | 1.67M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.67M | } | 426 | | | 427 | 14.5k | if (LIKELY(read_count > 0)) { | 428 | 14.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 14.5k | } | 430 | | | 431 | 14.5k | *n = read_count; | 432 | 14.5k | return Status::OK(); | 433 | 14.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 | 2.18k | MutableColumnPtr& dst) override { | 409 | 2.18k | DCHECK(_parsed); | 410 | 2.18k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.18k | auto total = *n; | 416 | 2.18k | auto read_count = 0; | 417 | 2.18k | _buffer.resize(total); | 418 | 547k | for (size_t i = 0; i < total; ++i) { | 419 | 544k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 544k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 12 | break; | 422 | 12 | } | 423 | | | 424 | 544k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 544k | } | 426 | | | 427 | 2.18k | if (LIKELY(read_count > 0)) { | 428 | 2.18k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.18k | } | 430 | | | 431 | 2.18k | *n = read_count; | 432 | 2.18k | return Status::OK(); | 433 | 2.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 30.5k | MutableColumnPtr& dst) override { | 409 | 30.5k | DCHECK(_parsed); | 410 | 30.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 30.5k | auto total = *n; | 416 | 30.5k | auto read_count = 0; | 417 | 30.5k | _buffer.resize(total); | 418 | 8.31M | for (size_t i = 0; i < total; ++i) { | 419 | 8.28M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.28M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 878 | break; | 422 | 878 | } | 423 | | | 424 | 8.28M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.28M | } | 426 | | | 427 | 30.5k | if (LIKELY(read_count > 0)) { | 428 | 30.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 30.5k | } | 430 | | | 431 | 30.5k | *n = read_count; | 432 | 30.5k | return Status::OK(); | 433 | 30.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 33.7k | MutableColumnPtr& dst) override { | 409 | 33.7k | DCHECK(_parsed); | 410 | 33.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 33.7k | auto total = *n; | 416 | 33.7k | auto read_count = 0; | 417 | 33.7k | _buffer.resize(total); | 418 | 9.79M | for (size_t i = 0; i < total; ++i) { | 419 | 9.76M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.76M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 228 | break; | 422 | 228 | } | 423 | | | 424 | 9.76M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.76M | } | 426 | | | 427 | 33.7k | if (LIKELY(read_count > 0)) { | 428 | 33.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 33.7k | } | 430 | | | 431 | 33.7k | *n = read_count; | 432 | 33.7k | return Status::OK(); | 433 | 33.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.35k | MutableColumnPtr& dst) override { | 409 | 2.35k | DCHECK(_parsed); | 410 | 2.35k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.35k | auto total = *n; | 416 | 2.35k | auto read_count = 0; | 417 | 2.35k | _buffer.resize(total); | 418 | 544k | for (size_t i = 0; i < total; ++i) { | 419 | 542k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 542k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 102 | break; | 422 | 102 | } | 423 | | | 424 | 542k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 542k | } | 426 | | | 427 | 2.35k | if (LIKELY(read_count > 0)) { | 428 | 2.35k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.35k | } | 430 | | | 431 | 2.35k | *n = read_count; | 432 | 2.35k | return Status::OK(); | 433 | 2.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 11.6k | MutableColumnPtr& dst) override { | 409 | 11.6k | DCHECK(_parsed); | 410 | 11.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 11.6k | auto total = *n; | 416 | 11.6k | auto read_count = 0; | 417 | 11.6k | _buffer.resize(total); | 418 | 24.7k | for (size_t i = 0; i < total; ++i) { | 419 | 13.1k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.1k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.1k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.1k | } | 426 | | | 427 | 11.6k | if (LIKELY(read_count > 0)) { | 428 | 11.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 11.6k | } | 430 | | | 431 | 11.6k | *n = read_count; | 432 | 11.6k | return Status::OK(); | 433 | 11.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 195 | MutableColumnPtr& dst) override { | 409 | 195 | DCHECK(_parsed); | 410 | 195 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 195 | auto total = *n; | 416 | 195 | auto read_count = 0; | 417 | 195 | _buffer.resize(total); | 418 | 395 | for (size_t i = 0; i < total; ++i) { | 419 | 200 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 200 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 200 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 200 | } | 426 | | | 427 | 195 | if (LIKELY(read_count > 0)) { | 428 | 195 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 195 | } | 430 | | | 431 | 195 | *n = read_count; | 432 | 195 | return Status::OK(); | 433 | 195 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.58k | MutableColumnPtr& dst) override { | 409 | 4.58k | DCHECK(_parsed); | 410 | 4.58k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.58k | auto total = *n; | 416 | 4.58k | auto read_count = 0; | 417 | 4.58k | _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.58k | if (LIKELY(read_count > 0)) { | 428 | 4.58k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.58k | } | 430 | | | 431 | 4.58k | *n = read_count; | 432 | 4.58k | return Status::OK(); | 433 | 4.58k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.6k | MutableColumnPtr& dst) override { | 409 | 26.6k | DCHECK(_parsed); | 410 | 26.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.6k | auto total = *n; | 416 | 26.6k | auto read_count = 0; | 417 | 26.6k | _buffer.resize(total); | 418 | 21.8M | for (size_t i = 0; i < total; ++i) { | 419 | 21.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 21.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.44k | break; | 422 | 5.44k | } | 423 | | | 424 | 21.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 21.8M | } | 426 | | | 427 | 26.6k | if (LIKELY(read_count > 0)) { | 428 | 26.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.6k | } | 430 | | | 431 | 26.6k | *n = read_count; | 432 | 26.6k | return Status::OK(); | 433 | 26.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 14.5k | MutableColumnPtr& dst) override { | 409 | 14.5k | DCHECK(_parsed); | 410 | 14.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 14.5k | auto total = *n; | 416 | 14.5k | auto read_count = 0; | 417 | 14.5k | _buffer.resize(total); | 418 | 8.97M | for (size_t i = 0; i < total; ++i) { | 419 | 8.95M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.95M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 441 | break; | 422 | 441 | } | 423 | | | 424 | 8.95M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.95M | } | 426 | | | 427 | 14.5k | if (LIKELY(read_count > 0)) { | 428 | 14.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 14.5k | } | 430 | | | 431 | 14.5k | *n = read_count; | 432 | 14.5k | return Status::OK(); | 433 | 14.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 961 | MutableColumnPtr& dst) override { | 409 | 961 | DCHECK(_parsed); | 410 | 961 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 961 | auto total = *n; | 416 | 961 | auto read_count = 0; | 417 | 961 | _buffer.resize(total); | 418 | 2.77k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 962 | if (LIKELY(read_count > 0)) { | 428 | 962 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 962 | } | 430 | | | 431 | 961 | *n = read_count; | 432 | 961 | return Status::OK(); | 433 | 961 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 476 | MutableColumnPtr& dst) override { | 409 | 476 | DCHECK(_parsed); | 410 | 476 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 476 | auto total = *n; | 416 | 476 | auto read_count = 0; | 417 | 476 | _buffer.resize(total); | 418 | 1.19k | for (size_t i = 0; i < total; ++i) { | 419 | 719 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 719 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 719 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 719 | } | 426 | | | 427 | 477 | if (LIKELY(read_count > 0)) { | 428 | 477 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 477 | } | 430 | | | 431 | 476 | *n = read_count; | 432 | 476 | return Status::OK(); | 433 | 476 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 411 | MutableColumnPtr& dst) override { | 409 | 411 | DCHECK(_parsed); | 410 | 411 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 411 | auto total = *n; | 416 | 411 | auto read_count = 0; | 417 | 411 | _buffer.resize(total); | 418 | 1.33k | for (size_t i = 0; i < total; ++i) { | 419 | 927 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 927 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 927 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 927 | } | 426 | | | 427 | 411 | if (LIKELY(read_count > 0)) { | 428 | 410 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 410 | } | 430 | | | 431 | 411 | *n = read_count; | 432 | 411 | return Status::OK(); | 433 | 411 | } |
|
434 | | |
435 | 185k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 185k | return next_batch<false>(n, dst); |
437 | 185k | } 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 _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 185k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 185k | return next_batch<false>(n, dst); | 437 | 185k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
438 | | |
439 | 3 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 3 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv 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 | 450k | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 157k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 16.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 15.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 110k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 16.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 15.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 9.80k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 8.32k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 21.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 50.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 4.58k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 984 | 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.49k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 705 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 18.7k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 304 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 55 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 104 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 123M | char* get_data(size_t index) const { |
444 | 123M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 123M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 34.6M | char* get_data(size_t index) const { | 444 | 34.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 34.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.92M | char* get_data(size_t index) const { | 444 | 1.92M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.92M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 706k | char* get_data(size_t index) const { | 444 | 706k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 706k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 27.1M | char* get_data(size_t index) const { | 444 | 27.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 27.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 4.58M | char* get_data(size_t index) const { | 444 | 4.58M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.58M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.26M | char* get_data(size_t index) const { | 444 | 1.26M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.26M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.17M | char* get_data(size_t index) const { | 444 | 1.17M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.17M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.69M | char* get_data(size_t index) const { | 444 | 1.69M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.69M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 555k | char* get_data(size_t index) const { | 444 | 555k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 555k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 8.69M | char* get_data(size_t index) const { | 444 | 8.69M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.69M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.84M | char* get_data(size_t index) const { | 444 | 9.84M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.84M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 543k | char* get_data(size_t index) const { | 444 | 543k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 543k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 20.0k | char* get_data(size_t index) const { | 444 | 20.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.54k | char* get_data(size_t index) const { | 444 | 1.54k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.54k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 23.4k | char* get_data(size_t index) const { | 444 | 23.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 21.8M | char* get_data(size_t index) const { | 444 | 21.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.98M | char* get_data(size_t index) const { | 444 | 8.98M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.98M | } |
_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 | 3.96k | char* get_data(size_t index) const { | 444 | 3.96k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 3.96k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 6.68k | char* get_data(size_t index) const { | 444 | 6.68k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.68k | } |
|
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 |