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 | 741k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 388k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 48.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 10.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 56.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 69.3k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 11.7k | 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.5k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 185 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 287 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.03k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 190 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.68k | 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.2k | 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 | 159M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 157M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 55.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 12.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 541k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 70.1k | 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 | 24.1k | 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.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 101k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 84.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 341 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.00k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 97 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.19k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 23.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 24.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 28.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 5.63k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.77M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.77M | return add_internal<false>(vals, count); |
101 | 1.77M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 756k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 756k | return add_internal<false>(vals, count); | 101 | 756k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 55.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 55.0k | return add_internal<false>(vals, count); | 101 | 55.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 12.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.8k | return add_internal<false>(vals, count); | 101 | 12.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 541k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 541k | return add_internal<false>(vals, count); | 101 | 541k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 70.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 70.1k | return add_internal<false>(vals, count); | 101 | 70.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 24.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 24.1k | return add_internal<false>(vals, count); | 101 | 24.1k | } |
_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.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 16.3k | return add_internal<false>(vals, count); | 101 | 16.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 192 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 192 | return add_internal<false>(vals, count); | 101 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 101k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 101k | return add_internal<false>(vals, count); | 101 | 101k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 84.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 84.1k | return add_internal<false>(vals, count); | 101 | 84.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 341 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 341 | return add_internal<false>(vals, count); | 101 | 341 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.00k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.00k | return add_internal<false>(vals, count); | 101 | 7.00k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 97 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 97 | return add_internal<false>(vals, count); | 101 | 97 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.19k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.19k | return add_internal<false>(vals, count); | 101 | 5.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 23.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 23.9k | return add_internal<false>(vals, count); | 101 | 23.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 24.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 24.8k | return add_internal<false>(vals, count); | 101 | 24.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.37k | return add_internal<false>(vals, count); | 101 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 28.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 28.2k | return add_internal<false>(vals, count); | 101 | 28.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 5.63k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.63k | return add_internal<false>(vals, count); | 101 | 5.63k | } |
|
102 | | |
103 | 157M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 157M | return add_internal<true>(vals, count); |
105 | 157M | } |
106 | | |
107 | | template <bool single> |
108 | 158M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 158M | DCHECK(!_finished); |
110 | 158M | 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 | 158M | uint32_t to_add = cast_set<UInt32>( |
126 | 158M | 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 | 158M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 158M | 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 | 158M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 159M | _count += to_add; |
134 | 159M | _remain_element_capacity -= to_add; |
135 | 159M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 159M | *num_written = to_add; |
138 | 159M | 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 | 158M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 158M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 158M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 158M | 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 | 158M | } |
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 | 159M | return Status::OK(); |
159 | 158M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 756k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 756k | DCHECK(!_finished); | 110 | 756k | 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 | 756k | uint32_t to_add = cast_set<UInt32>( | 126 | 756k | 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 | 756k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 756k | 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 | 756k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 756k | _count += to_add; | 134 | 756k | _remain_element_capacity -= to_add; | 135 | 756k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 756k | *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 | 756k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 756k | return Status::OK(); | 159 | 756k | } |
_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 | 158M | _count += to_add; | 134 | 158M | _remain_element_capacity -= to_add; | 135 | 158M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 158M | *num_written = to_add; | 138 | 158M | 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 | 158M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 158M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 158M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 158M | 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 | 158M | } | 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 | 158M | return Status::OK(); | 159 | 156M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 55.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 55.0k | DCHECK(!_finished); | 110 | 55.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 | 55.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 55.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 | 55.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 55.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 | 55.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 55.0k | _count += to_add; | 134 | 55.0k | _remain_element_capacity -= to_add; | 135 | 55.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 55.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 | 55.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 55.0k | return Status::OK(); | 159 | 55.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.8k | DCHECK(!_finished); | 110 | 12.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 | 12.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.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 | 12.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.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 | 12.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.8k | _count += to_add; | 134 | 12.8k | _remain_element_capacity -= to_add; | 135 | 12.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.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 | 12.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.8k | return Status::OK(); | 159 | 12.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 541k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 541k | DCHECK(!_finished); | 110 | 541k | 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 | 541k | uint32_t to_add = cast_set<UInt32>( | 126 | 541k | 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 | 541k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 541k | 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 | 541k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 541k | _count += to_add; | 134 | 541k | _remain_element_capacity -= to_add; | 135 | 541k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 541k | *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 | 541k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 541k | return Status::OK(); | 159 | 541k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 70.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 70.1k | DCHECK(!_finished); | 110 | 70.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 70.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 70.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 70.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 70.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 70.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 70.1k | _count += to_add; | 134 | 70.1k | _remain_element_capacity -= to_add; | 135 | 70.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 70.1k | *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 | 70.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 70.1k | return Status::OK(); | 159 | 70.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 24.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 24.1k | DCHECK(!_finished); | 110 | 24.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 24.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 24.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 24.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 24.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 24.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 24.1k | _count += to_add; | 134 | 24.1k | _remain_element_capacity -= to_add; | 135 | 24.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 24.1k | *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.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 24.1k | return Status::OK(); | 159 | 24.1k | } |
_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.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 16.3k | DCHECK(!_finished); | 110 | 16.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 | 16.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 16.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 | 16.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 16.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 | 16.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 16.3k | _count += to_add; | 134 | 16.3k | _remain_element_capacity -= to_add; | 135 | 16.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 16.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 | 16.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 16.3k | return Status::OK(); | 159 | 16.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 192 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 192 | DCHECK(!_finished); | 110 | 192 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 192 | uint32_t to_add = cast_set<UInt32>( | 126 | 192 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 192 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 192 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 192 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 192 | _count += to_add; | 134 | 192 | _remain_element_capacity -= to_add; | 135 | 192 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 192 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *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 | 192 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 192 | return Status::OK(); | 159 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 101k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 101k | DCHECK(!_finished); | 110 | 101k | 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 | 101k | uint32_t to_add = cast_set<UInt32>( | 126 | 101k | 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 | 101k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 101k | 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 | 101k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 101k | _count += to_add; | 134 | 101k | _remain_element_capacity -= to_add; | 135 | 101k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 101k | *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 | 101k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 101k | return Status::OK(); | 159 | 101k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 84.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 84.1k | DCHECK(!_finished); | 110 | 84.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 84.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 84.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 84.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 84.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 84.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 84.1k | _count += to_add; | 134 | 84.1k | _remain_element_capacity -= to_add; | 135 | 84.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 84.1k | *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 | 84.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 84.1k | return Status::OK(); | 159 | 84.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 341 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 341 | DCHECK(!_finished); | 110 | 341 | 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 | 341 | uint32_t to_add = cast_set<UInt32>( | 126 | 341 | 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 | 341 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 341 | 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 | 341 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 341 | _count += to_add; | 134 | 341 | _remain_element_capacity -= to_add; | 135 | 341 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 341 | *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 | 341 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 341 | return Status::OK(); | 159 | 341 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.00k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.00k | DCHECK(!_finished); | 110 | 7.00k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 7.00k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.00k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 7.00k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.00k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 7.00k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.00k | _count += to_add; | 134 | 7.00k | _remain_element_capacity -= to_add; | 135 | 7.00k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.00k | *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 | 7.00k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.00k | return Status::OK(); | 159 | 7.00k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 97 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 97 | DCHECK(!_finished); | 110 | 97 | 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 | 97 | uint32_t to_add = cast_set<UInt32>( | 126 | 97 | 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 | 97 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 97 | 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 | 97 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 97 | _count += to_add; | 134 | 97 | _remain_element_capacity -= to_add; | 135 | 97 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 97 | *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 | 97 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 97 | return Status::OK(); | 159 | 97 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.19k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.19k | DCHECK(!_finished); | 110 | 5.19k | 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.19k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.19k | 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.19k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.19k | 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.19k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.19k | _count += to_add; | 134 | 5.19k | _remain_element_capacity -= to_add; | 135 | 5.19k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.19k | *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.19k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.19k | return Status::OK(); | 159 | 5.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 23.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 23.9k | DCHECK(!_finished); | 110 | 23.9k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 23.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 23.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 23.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 23.9k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 23.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 23.9k | _count += to_add; | 134 | 23.9k | _remain_element_capacity -= to_add; | 135 | 23.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 23.9k | *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 | 23.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 23.9k | return Status::OK(); | 159 | 23.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 24.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 24.8k | DCHECK(!_finished); | 110 | 24.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 | 24.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 24.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 | 24.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 24.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 | 24.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 24.8k | _count += to_add; | 134 | 24.8k | _remain_element_capacity -= to_add; | 135 | 24.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 24.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 | 24.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 24.8k | return Status::OK(); | 159 | 24.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.37k | DCHECK(!_finished); | 110 | 1.37k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.37k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.37k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.37k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.37k | _count += to_add; | 134 | 1.37k | _remain_element_capacity -= to_add; | 135 | 1.37k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.37k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *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.37k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.37k | return Status::OK(); | 159 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 28.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 28.2k | DCHECK(!_finished); | 110 | 28.2k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 28.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 28.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 28.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 28.2k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 28.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 28.2k | _count += to_add; | 134 | 28.2k | _remain_element_capacity -= to_add; | 135 | 28.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 28.2k | *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 | 28.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 28.2k | return Status::OK(); | 159 | 28.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.63k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.63k | DCHECK(!_finished); | 110 | 5.63k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 5.63k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.63k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 5.63k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.63k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 5.63k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.63k | _count += to_add; | 134 | 5.63k | _remain_element_capacity -= to_add; | 135 | 5.63k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.63k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.63k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.63k | return Status::OK(); | 159 | 5.63k | } |
|
160 | | |
161 | 734k | Status finish(OwnedSlice* slice) override { |
162 | 734k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 734k | return Status::OK(); |
164 | 734k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 376k | Status finish(OwnedSlice* slice) override { | 162 | 376k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 376k | return Status::OK(); | 164 | 376k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 46.9k | Status finish(OwnedSlice* slice) override { | 162 | 46.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 46.9k | return Status::OK(); | 164 | 46.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.64k | Status finish(OwnedSlice* slice) override { | 162 | 9.64k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.64k | return Status::OK(); | 164 | 9.64k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 58.7k | Status finish(OwnedSlice* slice) override { | 162 | 58.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 58.7k | return Status::OK(); | 164 | 58.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 69.4k | Status finish(OwnedSlice* slice) override { | 162 | 69.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 69.5k | return Status::OK(); | 164 | 69.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.5k | Status finish(OwnedSlice* slice) override { | 162 | 11.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.5k | return Status::OK(); | 164 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.5k | Status finish(OwnedSlice* slice) override { | 162 | 11.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.5k | return Status::OK(); | 164 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 14.3k | Status finish(OwnedSlice* slice) override { | 162 | 14.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 14.3k | return Status::OK(); | 164 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 197 | Status finish(OwnedSlice* slice) override { | 162 | 197 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 197 | return Status::OK(); | 164 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 37.6k | Status finish(OwnedSlice* slice) override { | 162 | 37.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 37.6k | return Status::OK(); | 164 | 37.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.5k | Status finish(OwnedSlice* slice) override { | 162 | 43.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.5k | return Status::OK(); | 164 | 43.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 441 | Status finish(OwnedSlice* slice) override { | 162 | 441 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 441 | return Status::OK(); | 164 | 441 | } |
_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.09k | return Status::OK(); | 164 | 7.09k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 105 | Status finish(OwnedSlice* slice) override { | 162 | 105 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 105 | return Status::OK(); | 164 | 105 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.67k | Status finish(OwnedSlice* slice) override { | 162 | 9.67k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.68k | return Status::OK(); | 164 | 9.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.7k | Status finish(OwnedSlice* slice) override { | 162 | 18.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.7k | return Status::OK(); | 164 | 18.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 16.3k | Status finish(OwnedSlice* slice) override { | 162 | 16.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 16.3k | return Status::OK(); | 164 | 16.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.06k | Status finish(OwnedSlice* slice) override { | 162 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.06k | return Status::OK(); | 164 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 701 | Status finish(OwnedSlice* slice) override { | 162 | 701 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 701 | return Status::OK(); | 164 | 701 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 619 | Status finish(OwnedSlice* slice) override { | 162 | 619 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 619 | return Status::OK(); | 164 | 619 | } |
|
165 | | |
166 | 1.79M | Status reset() override { |
167 | 1.79M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.79M | size_t block_size = _options.data_page_size; |
169 | 1.79M | _count = 0; |
170 | 1.79M | _raw_data_size = 0; |
171 | 1.79M | _data.clear(); |
172 | 1.79M | _data.reserve(block_size); |
173 | 1.79M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.79M | << "buffer must be naturally-aligned"; |
175 | 1.79M | _buffer.clear(); |
176 | 1.79M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.79M | _finished = false; |
178 | 1.79M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.79M | }); |
180 | 1.79M | return Status::OK(); |
181 | 1.79M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.08M | Status reset() override { | 167 | 1.08M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.08M | size_t block_size = _options.data_page_size; | 169 | 1.08M | _count = 0; | 170 | 1.08M | _raw_data_size = 0; | 171 | 1.08M | _data.clear(); | 172 | 1.08M | _data.reserve(block_size); | 173 | 1.08M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.08M | << "buffer must be naturally-aligned"; | 175 | 1.08M | _buffer.clear(); | 176 | 1.08M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.08M | _finished = false; | 178 | 1.08M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.08M | }); | 180 | 1.08M | return Status::OK(); | 181 | 1.08M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 95.1k | Status reset() override { | 167 | 95.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 95.1k | size_t block_size = _options.data_page_size; | 169 | 95.1k | _count = 0; | 170 | 95.1k | _raw_data_size = 0; | 171 | 95.1k | _data.clear(); | 172 | 95.1k | _data.reserve(block_size); | 173 | 95.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 95.1k | << "buffer must be naturally-aligned"; | 175 | 95.1k | _buffer.clear(); | 176 | 95.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 95.1k | _finished = false; | 178 | 95.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 95.1k | }); | 180 | 95.1k | return Status::OK(); | 181 | 95.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 19.7k | Status reset() override { | 167 | 19.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.7k | size_t block_size = _options.data_page_size; | 169 | 19.7k | _count = 0; | 170 | 19.7k | _raw_data_size = 0; | 171 | 19.7k | _data.clear(); | 172 | 19.7k | _data.reserve(block_size); | 173 | 19.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.7k | << "buffer must be naturally-aligned"; | 175 | 19.7k | _buffer.clear(); | 176 | 19.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.7k | _finished = false; | 178 | 19.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.7k | }); | 180 | 19.8k | return Status::OK(); | 181 | 19.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 115k | Status reset() override { | 167 | 115k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 115k | size_t block_size = _options.data_page_size; | 169 | 115k | _count = 0; | 170 | 115k | _raw_data_size = 0; | 171 | 115k | _data.clear(); | 172 | 115k | _data.reserve(block_size); | 173 | 115k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 115k | << "buffer must be naturally-aligned"; | 175 | 115k | _buffer.clear(); | 176 | 115k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 115k | _finished = false; | 178 | 115k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 115k | }); | 180 | 115k | return Status::OK(); | 181 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 138k | Status reset() override { | 167 | 138k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 138k | size_t block_size = _options.data_page_size; | 169 | 138k | _count = 0; | 170 | 138k | _raw_data_size = 0; | 171 | 138k | _data.clear(); | 172 | 138k | _data.reserve(block_size); | 173 | 138k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 138k | << "buffer must be naturally-aligned"; | 175 | 138k | _buffer.clear(); | 176 | 138k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 138k | _finished = false; | 178 | 138k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 138k | }); | 180 | 139k | return Status::OK(); | 181 | 138k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 23.2k | Status reset() override { | 167 | 23.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 23.2k | size_t block_size = _options.data_page_size; | 169 | 23.2k | _count = 0; | 170 | 23.2k | _raw_data_size = 0; | 171 | 23.2k | _data.clear(); | 172 | 23.2k | _data.reserve(block_size); | 173 | 23.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 23.2k | << "buffer must be naturally-aligned"; | 175 | 23.2k | _buffer.clear(); | 176 | 23.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 23.2k | _finished = false; | 178 | 23.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 23.2k | }); | 180 | 23.2k | return Status::OK(); | 181 | 23.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 23.8k | Status reset() override { | 167 | 23.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 23.8k | size_t block_size = _options.data_page_size; | 169 | 23.8k | _count = 0; | 170 | 23.8k | _raw_data_size = 0; | 171 | 23.8k | _data.clear(); | 172 | 23.8k | _data.reserve(block_size); | 173 | 23.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 23.8k | << "buffer must be naturally-aligned"; | 175 | 23.8k | _buffer.clear(); | 176 | 23.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 23.8k | _finished = false; | 178 | 23.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 23.8k | }); | 180 | 23.8k | return Status::OK(); | 181 | 23.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 28.9k | Status reset() override { | 167 | 28.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 28.9k | size_t block_size = _options.data_page_size; | 169 | 28.9k | _count = 0; | 170 | 28.9k | _raw_data_size = 0; | 171 | 28.9k | _data.clear(); | 172 | 28.9k | _data.reserve(block_size); | 173 | 28.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 28.9k | << "buffer must be naturally-aligned"; | 175 | 28.9k | _buffer.clear(); | 176 | 28.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 28.9k | _finished = false; | 178 | 28.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 28.9k | }); | 180 | 28.9k | return Status::OK(); | 181 | 28.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 382 | Status reset() override { | 167 | 382 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 382 | size_t block_size = _options.data_page_size; | 169 | 382 | _count = 0; | 170 | 382 | _raw_data_size = 0; | 171 | 382 | _data.clear(); | 172 | 382 | _data.reserve(block_size); | 173 | 382 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 382 | << "buffer must be naturally-aligned"; | 175 | 382 | _buffer.clear(); | 176 | 382 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 382 | _finished = false; | 178 | 382 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 382 | }); | 180 | 382 | return Status::OK(); | 181 | 382 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 74.6k | Status reset() override { | 167 | 74.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 74.6k | size_t block_size = _options.data_page_size; | 169 | 74.6k | _count = 0; | 170 | 74.6k | _raw_data_size = 0; | 171 | 74.6k | _data.clear(); | 172 | 74.6k | _data.reserve(block_size); | 173 | 74.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 74.6k | << "buffer must be naturally-aligned"; | 175 | 74.6k | _buffer.clear(); | 176 | 74.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 74.6k | _finished = false; | 178 | 74.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 74.6k | }); | 180 | 74.7k | return Status::OK(); | 181 | 74.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 88.0k | Status reset() override { | 167 | 88.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 88.0k | size_t block_size = _options.data_page_size; | 169 | 88.0k | _count = 0; | 170 | 88.0k | _raw_data_size = 0; | 171 | 88.0k | _data.clear(); | 172 | 88.0k | _data.reserve(block_size); | 173 | 88.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 88.0k | << "buffer must be naturally-aligned"; | 175 | 88.0k | _buffer.clear(); | 176 | 88.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 88.0k | _finished = false; | 178 | 88.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 88.0k | }); | 180 | 88.1k | return Status::OK(); | 181 | 88.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 728 | Status reset() override { | 167 | 728 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 728 | size_t block_size = _options.data_page_size; | 169 | 728 | _count = 0; | 170 | 728 | _raw_data_size = 0; | 171 | 728 | _data.clear(); | 172 | 728 | _data.reserve(block_size); | 173 | 728 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 728 | << "buffer must be naturally-aligned"; | 175 | 728 | _buffer.clear(); | 176 | 728 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 728 | _finished = false; | 178 | 728 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 728 | }); | 180 | 728 | return Status::OK(); | 181 | 728 | } |
_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.1k | return Status::OK(); | 181 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 295 | Status reset() override { | 167 | 295 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 295 | size_t block_size = _options.data_page_size; | 169 | 295 | _count = 0; | 170 | 295 | _raw_data_size = 0; | 171 | 295 | _data.clear(); | 172 | 295 | _data.reserve(block_size); | 173 | 295 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 295 | << "buffer must be naturally-aligned"; | 175 | 295 | _buffer.clear(); | 176 | 295 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 295 | _finished = false; | 178 | 295 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 295 | }); | 180 | 295 | return Status::OK(); | 181 | 295 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.3k | Status reset() override { | 167 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.3k | size_t block_size = _options.data_page_size; | 169 | 19.3k | _count = 0; | 170 | 19.3k | _raw_data_size = 0; | 171 | 19.3k | _data.clear(); | 172 | 19.3k | _data.reserve(block_size); | 173 | 19.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.3k | << "buffer must be naturally-aligned"; | 175 | 19.3k | _buffer.clear(); | 176 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.3k | _finished = false; | 178 | 19.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.3k | }); | 180 | 19.3k | return Status::OK(); | 181 | 19.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.0k | Status reset() override { | 167 | 31.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.0k | size_t block_size = _options.data_page_size; | 169 | 31.0k | _count = 0; | 170 | 31.0k | _raw_data_size = 0; | 171 | 31.0k | _data.clear(); | 172 | 31.0k | _data.reserve(block_size); | 173 | 31.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.0k | << "buffer must be naturally-aligned"; | 175 | 31.0k | _buffer.clear(); | 176 | 31.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.0k | _finished = false; | 178 | 31.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.0k | }); | 180 | 31.0k | return Status::OK(); | 181 | 31.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 32.6k | Status reset() override { | 167 | 32.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 32.6k | size_t block_size = _options.data_page_size; | 169 | 32.6k | _count = 0; | 170 | 32.6k | _raw_data_size = 0; | 171 | 32.6k | _data.clear(); | 172 | 32.6k | _data.reserve(block_size); | 173 | 32.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 32.6k | << "buffer must be naturally-aligned"; | 175 | 32.6k | _buffer.clear(); | 176 | 32.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 32.6k | _finished = false; | 178 | 32.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 32.6k | }); | 180 | 32.6k | return Status::OK(); | 181 | 32.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.21k | Status reset() override { | 167 | 2.21k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.21k | size_t block_size = _options.data_page_size; | 169 | 2.21k | _count = 0; | 170 | 2.21k | _raw_data_size = 0; | 171 | 2.21k | _data.clear(); | 172 | 2.21k | _data.reserve(block_size); | 173 | 2.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.21k | << "buffer must be naturally-aligned"; | 175 | 2.21k | _buffer.clear(); | 176 | 2.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.21k | _finished = false; | 178 | 2.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.21k | }); | 180 | 2.22k | return Status::OK(); | 181 | 2.21k | } |
_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.5k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 22.3k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 4.20k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 651 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 5.04k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 2.06k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 813 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 779 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 786 | 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.75k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.41k | 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 | 155 | 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.14k | 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 | 426k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 68.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 46.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.64k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 58.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 69.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 | 11.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 11.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 14.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 197 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 37.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 441 | 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 | 105 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.67k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 16.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 701 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 619 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 741k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 388k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 48.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 56.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 69.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.7k | : _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.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 185 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 287 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.04k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 190 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.68k | : _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.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.15k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 786 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 696 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 734k | OwnedSlice _finish(int final_size_of_type) { |
194 | 734k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 734k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 734k | int padding_elems = num_elems_after_padding - _count; |
199 | 734k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 19.9M | for (int i = 0; i < padding_bytes; i++) { |
201 | 19.2M | _data.push_back(0); |
202 | 19.2M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 734k | _buffer.resize( |
206 | 734k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 734k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 734k | int64_t bytes = |
210 | 734k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 734k | num_elems_after_padding, final_size_of_type, 0); |
212 | 734k | 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 | 734k | encode_fixed32_le(&_buffer[0], _count); |
222 | 734k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 734k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 734k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 734k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 734k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 734k | return _buffer.build(); |
229 | 734k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 376k | OwnedSlice _finish(int final_size_of_type) { | 194 | 376k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 376k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 376k | int padding_elems = num_elems_after_padding - _count; | 199 | 376k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 7.25M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.87M | _data.push_back(0); | 202 | 6.87M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 376k | _buffer.resize( | 206 | 376k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 376k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 376k | int64_t bytes = | 210 | 376k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 376k | num_elems_after_padding, final_size_of_type, 0); | 212 | 376k | 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 | 376k | encode_fixed32_le(&_buffer[0], _count); | 222 | 376k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 376k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 376k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 376k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 376k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 376k | return _buffer.build(); | 229 | 376k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 46.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 46.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 46.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 46.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 46.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 293k | for (int i = 0; i < padding_bytes; i++) { | 201 | 246k | _data.push_back(0); | 202 | 246k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 46.9k | _buffer.resize( | 206 | 46.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 46.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 46.9k | int64_t bytes = | 210 | 46.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 46.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 46.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 | 46.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 46.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 46.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 46.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 46.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 46.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 46.9k | return _buffer.build(); | 229 | 46.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 9.64k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.64k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.64k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.64k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.64k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 102k | for (int i = 0; i < padding_bytes; i++) { | 201 | 93.3k | _data.push_back(0); | 202 | 93.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.64k | _buffer.resize( | 206 | 9.64k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.64k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.64k | int64_t bytes = | 210 | 9.64k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.64k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.64k | 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.64k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.64k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.64k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.64k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.64k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.64k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.64k | return _buffer.build(); | 229 | 9.64k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 58.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 58.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 58.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 58.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 58.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.29M | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.23M | _data.push_back(0); | 202 | 2.23M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 58.7k | _buffer.resize( | 206 | 58.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 58.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 58.7k | int64_t bytes = | 210 | 58.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 58.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 58.7k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 58.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 58.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 58.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 58.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 58.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 58.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 58.7k | return _buffer.build(); | 229 | 58.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 69.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 69.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 69.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 69.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 69.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.32M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.25M | _data.push_back(0); | 202 | 3.25M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 69.5k | _buffer.resize( | 206 | 69.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 69.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 69.5k | int64_t bytes = | 210 | 69.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 69.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 69.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 | 69.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 69.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 69.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 69.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 69.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 69.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 69.5k | return _buffer.build(); | 229 | 69.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 11.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 821k | for (int i = 0; i < padding_bytes; i++) { | 201 | 809k | _data.push_back(0); | 202 | 809k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.5k | _buffer.resize( | 206 | 11.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.5k | int64_t bytes = | 210 | 11.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 11.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.5k | return _buffer.build(); | 229 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 11.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 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.5k | _buffer.resize( | 206 | 11.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.5k | int64_t bytes = | 210 | 11.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 11.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.5k | return _buffer.build(); | 229 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 14.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 14.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 14.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 14.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 14.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 602k | for (int i = 0; i < padding_bytes; i++) { | 201 | 588k | _data.push_back(0); | 202 | 588k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 14.3k | _buffer.resize( | 206 | 14.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 14.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 14.3k | int64_t bytes = | 210 | 14.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 14.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 14.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 | 14.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 14.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 14.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 14.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 14.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 14.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 14.3k | return _buffer.build(); | 229 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 197 | OwnedSlice _finish(int final_size_of_type) { | 194 | 197 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 197 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 197 | int padding_elems = num_elems_after_padding - _count; | 199 | 197 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.69k | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.49k | _data.push_back(0); | 202 | 2.49k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 197 | _buffer.resize( | 206 | 197 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 197 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 197 | int64_t bytes = | 210 | 197 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 197 | num_elems_after_padding, final_size_of_type, 0); | 212 | 197 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 197 | encode_fixed32_le(&_buffer[0], _count); | 222 | 197 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 197 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 197 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 197 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 197 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 197 | return _buffer.build(); | 229 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 37.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 37.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 37.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 37.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 37.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 807k | for (int i = 0; i < padding_bytes; i++) { | 201 | 770k | _data.push_back(0); | 202 | 770k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 37.6k | _buffer.resize( | 206 | 37.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 37.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 37.6k | int64_t bytes = | 210 | 37.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 37.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 37.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 | 37.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 37.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 37.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 37.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 37.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 37.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 37.6k | return _buffer.build(); | 229 | 37.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.5k | 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.5k | _buffer.resize( | 206 | 43.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.5k | int64_t bytes = | 210 | 43.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.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 | 43.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.5k | return _buffer.build(); | 229 | 43.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 441 | OwnedSlice _finish(int final_size_of_type) { | 194 | 441 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 441 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 441 | int padding_elems = num_elems_after_padding - _count; | 199 | 441 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 7.04k | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.60k | _data.push_back(0); | 202 | 6.60k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 441 | _buffer.resize( | 206 | 441 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 441 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 441 | int64_t bytes = | 210 | 441 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 441 | num_elems_after_padding, final_size_of_type, 0); | 212 | 441 | 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 | 441 | encode_fixed32_le(&_buffer[0], _count); | 222 | 441 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 441 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 441 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 441 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 441 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 441 | return _buffer.build(); | 229 | 441 | } |
_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 | 371k | 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 | 105 | OwnedSlice _finish(int final_size_of_type) { | 194 | 105 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 105 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 105 | int padding_elems = num_elems_after_padding - _count; | 199 | 105 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.51k | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.40k | _data.push_back(0); | 202 | 6.40k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 105 | _buffer.resize( | 206 | 105 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 105 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 105 | int64_t bytes = | 210 | 105 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 105 | num_elems_after_padding, final_size_of_type, 0); | 212 | 105 | 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 | 105 | encode_fixed32_le(&_buffer[0], _count); | 222 | 105 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 105 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 105 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 105 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 105 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 105 | return _buffer.build(); | 229 | 105 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.67k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.67k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.67k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.67k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.67k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 119k | for (int i = 0; i < padding_bytes; i++) { | 201 | 109k | _data.push_back(0); | 202 | 109k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.67k | _buffer.resize( | 206 | 9.67k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.67k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.67k | int64_t bytes = | 210 | 9.67k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.67k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.67k | 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.67k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.67k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.67k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.67k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.67k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.67k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.67k | return _buffer.build(); | 229 | 9.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 495k | for (int i = 0; i < padding_bytes; i++) { | 201 | 476k | _data.push_back(0); | 202 | 476k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.7k | _buffer.resize( | 206 | 18.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.7k | int64_t bytes = | 210 | 18.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.7k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 18.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.7k | return _buffer.build(); | 229 | 18.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 16.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 16.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 16.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 16.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 16.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.12M | 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.3k | _buffer.resize( | 206 | 16.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 16.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 16.3k | int64_t bytes = | 210 | 16.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 16.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 16.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 | 16.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 16.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 16.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 16.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 16.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 16.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 16.3k | return _buffer.build(); | 229 | 16.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.06k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 162k | for (int i = 0; i < padding_bytes; i++) { | 201 | 160k | _data.push_back(0); | 202 | 160k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.06k | _buffer.resize( | 206 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.06k | int64_t bytes = | 210 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.06k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.06k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.06k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.06k | return _buffer.build(); | 229 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 701 | OwnedSlice _finish(int final_size_of_type) { | 194 | 701 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 701 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 701 | int padding_elems = num_elems_after_padding - _count; | 199 | 701 | 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 | 701 | _buffer.resize( | 206 | 701 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 701 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 701 | int64_t bytes = | 210 | 701 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 701 | num_elems_after_padding, final_size_of_type, 0); | 212 | 701 | 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 | 701 | encode_fixed32_le(&_buffer[0], _count); | 222 | 701 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 701 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 701 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 701 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 701 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 701 | return _buffer.build(); | 229 | 701 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 619 | OwnedSlice _finish(int final_size_of_type) { | 194 | 619 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 619 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 619 | int padding_elems = num_elems_after_padding - _count; | 199 | 619 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 49.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.2k | _data.push_back(0); | 202 | 49.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 619 | _buffer.resize( | 206 | 619 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 619 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 619 | int64_t bytes = | 210 | 619 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 619 | num_elems_after_padding, final_size_of_type, 0); | 212 | 619 | 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 | 619 | encode_fixed32_le(&_buffer[0], _count); | 222 | 619 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 619 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 619 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 619 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 619 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 619 | return _buffer.build(); | 229 | 619 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 1.88M | int& size_of_element) { |
253 | 1.88M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 1.88M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 1.88M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 1.88M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 1.88M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 1.88M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 1.88M | switch (size_of_element) { |
271 | 167k | case 1: |
272 | 198k | case 2: |
273 | 200k | case 3: |
274 | 1.27M | case 4: |
275 | 1.79M | case 8: |
276 | 1.80M | case 12: |
277 | 1.87M | case 16: |
278 | 1.88M | case 32: |
279 | 1.88M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 1.88M | } |
283 | 1.88M | return Status::OK(); |
284 | 1.88M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.15M | : _data(data), |
291 | 1.15M | _options(options), |
292 | 1.15M | _parsed(false), |
293 | 1.15M | _num_elements(0), |
294 | 1.15M | _num_element_after_padding(0), |
295 | 1.15M | _size_of_element(0), |
296 | 1.15M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 552k | : _data(data), | 291 | 552k | _options(options), | 292 | 552k | _parsed(false), | 293 | 552k | _num_elements(0), | 294 | 552k | _num_element_after_padding(0), | 295 | 552k | _size_of_element(0), | 296 | 552k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 106k | : _data(data), | 291 | 106k | _options(options), | 292 | 106k | _parsed(false), | 293 | 106k | _num_elements(0), | 294 | 106k | _num_element_after_padding(0), | 295 | 106k | _size_of_element(0), | 296 | 106k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 20.9k | : _data(data), | 291 | 20.9k | _options(options), | 292 | 20.9k | _parsed(false), | 293 | 20.9k | _num_elements(0), | 294 | 20.9k | _num_element_after_padding(0), | 295 | 20.9k | _size_of_element(0), | 296 | 20.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 77.2k | : _data(data), | 291 | 77.2k | _options(options), | 292 | 77.2k | _parsed(false), | 293 | 77.2k | _num_elements(0), | 294 | 77.2k | _num_element_after_padding(0), | 295 | 77.2k | _size_of_element(0), | 296 | 77.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 94.7k | : _data(data), | 291 | 94.7k | _options(options), | 292 | 94.7k | _parsed(false), | 293 | 94.7k | _num_elements(0), | 294 | 94.7k | _num_element_after_padding(0), | 295 | 94.7k | _size_of_element(0), | 296 | 94.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 19.9k | : _data(data), | 291 | 19.9k | _options(options), | 292 | 19.9k | _parsed(false), | 293 | 19.9k | _num_elements(0), | 294 | 19.9k | _num_element_after_padding(0), | 295 | 19.9k | _size_of_element(0), | 296 | 19.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 19.9k | : _data(data), | 291 | 19.9k | _options(options), | 292 | 19.9k | _parsed(false), | 293 | 19.9k | _num_elements(0), | 294 | 19.9k | _num_element_after_padding(0), | 295 | 19.9k | _size_of_element(0), | 296 | 19.9k | _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.84k | : _data(data), | 291 | 1.84k | _options(options), | 292 | 1.84k | _parsed(false), | 293 | 1.84k | _num_elements(0), | 294 | 1.84k | _num_element_after_padding(0), | 295 | 1.84k | _size_of_element(0), | 296 | 1.84k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 58.7k | : _data(data), | 291 | 58.7k | _options(options), | 292 | 58.7k | _parsed(false), | 293 | 58.7k | _num_elements(0), | 294 | 58.7k | _num_element_after_padding(0), | 295 | 58.7k | _size_of_element(0), | 296 | 58.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 67.6k | : _data(data), | 291 | 67.6k | _options(options), | 292 | 67.6k | _parsed(false), | 293 | 67.6k | _num_elements(0), | 294 | 67.6k | _num_element_after_padding(0), | 295 | 67.6k | _size_of_element(0), | 296 | 67.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.49k | : _data(data), | 291 | 2.49k | _options(options), | 292 | 2.49k | _parsed(false), | 293 | 2.49k | _num_elements(0), | 294 | 2.49k | _num_element_after_padding(0), | 295 | 2.49k | _size_of_element(0), | 296 | 2.49k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.2k | : _data(data), | 291 | 15.2k | _options(options), | 292 | 15.2k | _parsed(false), | 293 | 15.2k | _num_elements(0), | 294 | 15.2k | _num_element_after_padding(0), | 295 | 15.2k | _size_of_element(0), | 296 | 15.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_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 | 14.9k | : _data(data), | 291 | 14.9k | _options(options), | 292 | 14.9k | _parsed(false), | 293 | 14.9k | _num_elements(0), | 294 | 14.9k | _num_element_after_padding(0), | 295 | 14.9k | _size_of_element(0), | 296 | 14.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 38.0k | : _data(data), | 291 | 38.0k | _options(options), | 292 | 38.0k | _parsed(false), | 293 | 38.0k | _num_elements(0), | 294 | 38.0k | _num_element_after_padding(0), | 295 | 38.0k | _size_of_element(0), | 296 | 38.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 29.5k | : _data(data), | 291 | 29.5k | _options(options), | 292 | 29.5k | _parsed(false), | 293 | 29.5k | _num_elements(0), | 294 | 29.5k | _num_element_after_padding(0), | 295 | 29.5k | _size_of_element(0), | 296 | 29.5k | _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.18k | : _data(data), | 291 | 1.18k | _options(options), | 292 | 1.18k | _parsed(false), | 293 | 1.18k | _num_elements(0), | 294 | 1.18k | _num_element_after_padding(0), | 295 | 1.18k | _size_of_element(0), | 296 | 1.18k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_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.15M | Status init() override { |
299 | 1.15M | CHECK(!_parsed); |
300 | 1.15M | size_t unused; |
301 | 1.15M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.15M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.15M | if (_data.size != |
305 | 1.15M | _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.15M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.15M | _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.15M | 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.15M | _parsed = true; |
325 | 1.15M | return Status::OK(); |
326 | 1.15M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 551k | Status init() override { | 299 | 551k | CHECK(!_parsed); | 300 | 551k | size_t unused; | 301 | 551k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 551k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 551k | if (_data.size != | 305 | 551k | _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 | 551k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 551k | _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 | 551k | 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 | 551k | _parsed = true; | 325 | 551k | return Status::OK(); | 326 | 551k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 106k | Status init() override { | 299 | 106k | CHECK(!_parsed); | 300 | 106k | size_t unused; | 301 | 106k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 106k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 106k | if (_data.size != | 305 | 106k | _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 | 106k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 106k | _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 | 106k | 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 | 106k | _parsed = true; | 325 | 106k | return Status::OK(); | 326 | 106k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 20.9k | Status init() override { | 299 | 20.9k | CHECK(!_parsed); | 300 | 20.9k | size_t unused; | 301 | 20.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 20.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 20.9k | if (_data.size != | 305 | 20.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 | 20.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 20.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 | 20.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 | 20.9k | _parsed = true; | 325 | 20.9k | return Status::OK(); | 326 | 20.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 77.1k | Status init() override { | 299 | 77.1k | CHECK(!_parsed); | 300 | 77.1k | size_t unused; | 301 | 77.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 77.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 77.1k | if (_data.size != | 305 | 77.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 | 77.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 77.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 | 77.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 | 77.1k | _parsed = true; | 325 | 77.1k | return Status::OK(); | 326 | 77.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 94.7k | Status init() override { | 299 | 94.7k | CHECK(!_parsed); | 300 | 94.7k | size_t unused; | 301 | 94.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 94.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 94.7k | if (_data.size != | 305 | 94.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 | 94.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 94.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 | 94.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 | 94.7k | _parsed = true; | 325 | 94.7k | return Status::OK(); | 326 | 94.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv 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_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 19.9k | Status init() override { | 299 | 19.9k | CHECK(!_parsed); | 300 | 19.9k | size_t unused; | 301 | 19.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 19.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 19.9k | if (_data.size != | 305 | 19.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 | 19.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 19.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 | 19.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 | 19.9k | _parsed = true; | 325 | 19.9k | return Status::OK(); | 326 | 19.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 28.7k | Status init() override { | 299 | 28.7k | CHECK(!_parsed); | 300 | 28.7k | size_t unused; | 301 | 28.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 28.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 28.7k | if (_data.size != | 305 | 28.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 | 28.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 28.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 | 28.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 | 28.7k | _parsed = true; | 325 | 28.7k | return Status::OK(); | 326 | 28.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.84k | Status init() override { | 299 | 1.84k | CHECK(!_parsed); | 300 | 1.84k | size_t unused; | 301 | 1.84k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.84k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.84k | if (_data.size != | 305 | 1.84k | _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.84k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.84k | _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.84k | 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.84k | _parsed = true; | 325 | 1.84k | return Status::OK(); | 326 | 1.84k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 58.7k | Status init() override { | 299 | 58.7k | CHECK(!_parsed); | 300 | 58.7k | size_t unused; | 301 | 58.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 58.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 58.7k | if (_data.size != | 305 | 58.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 | 58.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 58.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 | 58.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 | 58.7k | _parsed = true; | 325 | 58.7k | return Status::OK(); | 326 | 58.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 67.5k | Status init() override { | 299 | 67.5k | CHECK(!_parsed); | 300 | 67.5k | size_t unused; | 301 | 67.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 67.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 67.5k | if (_data.size != | 305 | 67.5k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 67.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 67.5k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 67.5k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 67.5k | _parsed = true; | 325 | 67.5k | return Status::OK(); | 326 | 67.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.49k | Status init() override { | 299 | 2.49k | CHECK(!_parsed); | 300 | 2.49k | size_t unused; | 301 | 2.49k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.49k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.49k | if (_data.size != | 305 | 2.49k | _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.49k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.49k | _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.49k | 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.49k | _parsed = true; | 325 | 2.49k | return Status::OK(); | 326 | 2.49k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 15.2k | Status init() override { | 299 | 15.2k | CHECK(!_parsed); | 300 | 15.2k | size_t unused; | 301 | 15.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.2k | if (_data.size != | 305 | 15.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.2k | _parsed = true; | 325 | 15.2k | return Status::OK(); | 326 | 15.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.45k | Status init() override { | 299 | 1.45k | CHECK(!_parsed); | 300 | 1.45k | size_t unused; | 301 | 1.45k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.45k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.45k | if (_data.size != | 305 | 1.45k | _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.45k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.45k | _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.45k | 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.45k | _parsed = true; | 325 | 1.45k | return Status::OK(); | 326 | 1.45k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 14.9k | Status init() override { | 299 | 14.9k | CHECK(!_parsed); | 300 | 14.9k | size_t unused; | 301 | 14.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.9k | if (_data.size != | 305 | 14.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 | 14.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.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 | 14.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 | 14.9k | _parsed = true; | 325 | 14.9k | return Status::OK(); | 326 | 14.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 38.0k | Status init() override { | 299 | 38.0k | CHECK(!_parsed); | 300 | 38.0k | size_t unused; | 301 | 38.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 38.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 38.0k | if (_data.size != | 305 | 38.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 | 38.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 38.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 | 38.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 | 38.0k | _parsed = true; | 325 | 38.0k | return Status::OK(); | 326 | 38.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 29.5k | Status init() override { | 299 | 29.5k | CHECK(!_parsed); | 300 | 29.5k | size_t unused; | 301 | 29.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 29.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 29.5k | if (_data.size != | 305 | 29.5k | _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.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 29.5k | _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.5k | 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.5k | _parsed = true; | 325 | 29.5k | return Status::OK(); | 326 | 29.5k | } |
_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 | 2.70M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 2.70M | if (_num_elements == 0) [[unlikely]] { |
337 | 6.42k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 6.42k | } |
342 | | |
343 | 2.70M | DCHECK_LE(pos, _num_elements); |
344 | 2.70M | _cur_index = pos; |
345 | 2.70M | return Status::OK(); |
346 | 2.70M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.81M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.81M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.94k | 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.94k | } | 342 | | | 343 | 1.81M | DCHECK_LE(pos, _num_elements); | 344 | 1.81M | _cur_index = pos; | 345 | 1.81M | return Status::OK(); | 346 | 1.81M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 106k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 106k | 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 | 106k | DCHECK_LE(pos, _num_elements); | 344 | 106k | _cur_index = pos; | 345 | 106k | return Status::OK(); | 346 | 106k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 21.3k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 21.3k | 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 | 21.3k | DCHECK_LE(pos, _num_elements); | 344 | 21.3k | _cur_index = pos; | 345 | 21.3k | return Status::OK(); | 346 | 21.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 242k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 242k | if (_num_elements == 0) [[unlikely]] { | 337 | 756 | 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 | 756 | } | 342 | | | 343 | 242k | DCHECK_LE(pos, _num_elements); | 344 | 242k | _cur_index = pos; | 345 | 242k | return Status::OK(); | 346 | 242k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 13.5k | DCHECK(_parsed) << "Must call init()"; | 336 | 13.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 13.5k | DCHECK_LE(pos, _num_elements); | 344 | 13.5k | _cur_index = pos; | 345 | 13.5k | return Status::OK(); | 346 | 13.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.2k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 17.2k | if (_num_elements == 0) [[unlikely]] { | 337 | 6 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 6 | } | 342 | | | 343 | 17.2k | DCHECK_LE(pos, _num_elements); | 344 | 17.2k | _cur_index = pos; | 345 | 17.2k | return Status::OK(); | 346 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.7k | DCHECK(_parsed) << "Must call init()"; | 336 | 18.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 | 18.7k | DCHECK_LE(pos, _num_elements); | 344 | 18.7k | _cur_index = pos; | 345 | 18.7k | return Status::OK(); | 346 | 18.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 13.1k | DCHECK(_parsed) << "Must call init()"; | 336 | 13.1k | 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 | 13.1k | DCHECK_LE(pos, _num_elements); | 344 | 13.1k | _cur_index = pos; | 345 | 13.1k | return Status::OK(); | 346 | 13.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 22.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 22.6k | DCHECK(_parsed) << "Must call init()"; | 336 | 22.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 | 22.6k | DCHECK_LE(pos, _num_elements); | 344 | 22.6k | _cur_index = pos; | 345 | 22.6k | return Status::OK(); | 346 | 22.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 312k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 312k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.46k | 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.46k | } | 342 | | | 343 | 312k | DCHECK_LE(pos, _num_elements); | 344 | 312k | _cur_index = pos; | 345 | 312k | return Status::OK(); | 346 | 312k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 64.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 64.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 18 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 18 | } | 342 | | | 343 | 64.5k | DCHECK_LE(pos, _num_elements); | 344 | 64.5k | _cur_index = pos; | 345 | 64.5k | return Status::OK(); | 346 | 64.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.60k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 7.60k | 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 | 7.60k | DCHECK_LE(pos, _num_elements); | 344 | 7.60k | _cur_index = pos; | 345 | 7.60k | return Status::OK(); | 346 | 7.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.04k | Status seek_to_position_in_page(size_t pos) override { | 335 | 7.04k | DCHECK(_parsed) << "Must call init()"; | 336 | 7.04k | if (_num_elements == 0) [[unlikely]] { | 337 | 353 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 353 | } | 342 | | | 343 | 7.04k | DCHECK_LE(pos, _num_elements); | 344 | 7.04k | _cur_index = pos; | 345 | 7.04k | return Status::OK(); | 346 | 7.04k | } |
_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 | 858 | Status seek_to_position_in_page(size_t pos) override { | 335 | 858 | DCHECK(_parsed) << "Must call init()"; | 336 | 858 | if (_num_elements == 0) [[unlikely]] { | 337 | 27 | 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 | 27 | } | 342 | | | 343 | 858 | DCHECK_LE(pos, _num_elements); | 344 | 858 | _cur_index = pos; | 345 | 858 | return Status::OK(); | 346 | 858 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.2k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 16.2k | 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.2k | DCHECK_LE(pos, _num_elements); | 344 | 16.2k | _cur_index = pos; | 345 | 16.2k | return Status::OK(); | 346 | 16.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4k | DCHECK(_parsed) << "Must call init()"; | 336 | 18.4k | 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 | 18.4k | DCHECK_LE(pos, _num_elements); | 344 | 18.4k | _cur_index = pos; | 345 | 18.4k | return Status::OK(); | 346 | 18.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.94k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.94k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.94k | if (_num_elements == 0) [[unlikely]] { | 337 | 2 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 2 | } | 342 | | | 343 | 1.94k | DCHECK_LE(pos, _num_elements); | 344 | 1.94k | _cur_index = pos; | 345 | 1.94k | return Status::OK(); | 346 | 1.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 74 | Status seek_to_position_in_page(size_t pos) override { | 335 | 74 | DCHECK(_parsed) << "Must call init()"; | 336 | 74 | 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 | 74 | DCHECK_LE(pos, _num_elements); | 344 | 74 | _cur_index = pos; | 345 | 74 | return Status::OK(); | 346 | 74 | } |
_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.56M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.56M | DCHECK(_parsed); |
389 | 1.56M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.56M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
395 | | |
396 | 1.56M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.56M | *n = max_fetch; |
398 | 1.56M | if constexpr (forward_index) { |
399 | 1.38M | _cur_index += max_fetch; |
400 | 1.38M | } |
401 | | |
402 | 1.56M | return Status::OK(); |
403 | 1.56M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 254k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 254k | DCHECK(_parsed); | 389 | 254k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 254k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 254k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 254k | *n = max_fetch; | 398 | 254k | if constexpr (forward_index) { | 399 | 254k | _cur_index += max_fetch; | 400 | 254k | } | 401 | | | 402 | 254k | return Status::OK(); | 403 | 254k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 236k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 236k | DCHECK(_parsed); | 389 | 236k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 236k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 236k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 236k | *n = max_fetch; | 398 | 236k | if constexpr (forward_index) { | 399 | 236k | _cur_index += max_fetch; | 400 | 236k | } | 401 | | | 402 | 236k | return Status::OK(); | 403 | 236k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 19.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 19.3k | DCHECK(_parsed); | 389 | 19.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 19.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 19.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 19.3k | *n = max_fetch; | 398 | 19.3k | if constexpr (forward_index) { | 399 | 19.3k | _cur_index += max_fetch; | 400 | 19.3k | } | 401 | | | 402 | 19.3k | return Status::OK(); | 403 | 19.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 86.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 86.3k | DCHECK(_parsed); | 389 | 86.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 86.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 86.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 86.3k | *n = max_fetch; | 398 | 86.3k | if constexpr (forward_index) { | 399 | 86.3k | _cur_index += max_fetch; | 400 | 86.3k | } | 401 | | | 402 | 86.3k | return Status::OK(); | 403 | 86.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 138k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 138k | DCHECK(_parsed); | 389 | 138k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 138k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 138k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 138k | *n = max_fetch; | 398 | 138k | if constexpr (forward_index) { | 399 | 138k | _cur_index += max_fetch; | 400 | 138k | } | 401 | | | 402 | 138k | return Status::OK(); | 403 | 138k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 173k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 173k | DCHECK(_parsed); | 389 | 173k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 173k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 173k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 173k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 173k | return Status::OK(); | 403 | 173k | } |
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 | 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_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 14.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 14.3k | DCHECK(_parsed); | 389 | 14.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 14.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 14.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 14.3k | *n = max_fetch; | 398 | 14.3k | if constexpr (forward_index) { | 399 | 14.3k | _cur_index += max_fetch; | 400 | 14.3k | } | 401 | | | 402 | 14.3k | return Status::OK(); | 403 | 14.3k | } |
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 | 15.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.2k | DCHECK(_parsed); | 389 | 15.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 15.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.2k | *n = max_fetch; | 398 | 15.2k | if constexpr (forward_index) { | 399 | 15.2k | _cur_index += max_fetch; | 400 | 15.2k | } | 401 | | | 402 | 15.2k | return Status::OK(); | 403 | 15.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 401k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 401k | DCHECK(_parsed); | 389 | 401k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 401k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 401k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 401k | *n = max_fetch; | 398 | 401k | if constexpr (forward_index) { | 399 | 401k | _cur_index += max_fetch; | 400 | 401k | } | 401 | | | 402 | 401k | return Status::OK(); | 403 | 401k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 82.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 82.4k | DCHECK(_parsed); | 389 | 82.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 82.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 82.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 82.4k | *n = max_fetch; | 398 | 82.4k | if constexpr (forward_index) { | 399 | 82.4k | _cur_index += max_fetch; | 400 | 82.4k | } | 401 | | | 402 | 82.4k | return Status::OK(); | 403 | 82.4k | } |
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.45k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.45k | DCHECK(_parsed); | 389 | 1.46k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.45k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.45k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.45k | *n = max_fetch; | 398 | 1.45k | if constexpr (forward_index) { | 399 | 1.45k | _cur_index += max_fetch; | 400 | 1.45k | } | 401 | | | 402 | 1.45k | return Status::OK(); | 403 | 1.45k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.87k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.87k | DCHECK(_parsed); | 389 | 7.87k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.87k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 7.87k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.87k | *n = max_fetch; | 398 | 7.87k | if constexpr (forward_index) { | 399 | 7.87k | _cur_index += max_fetch; | 400 | 7.87k | } | 401 | | | 402 | 7.87k | return Status::OK(); | 403 | 7.87k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.35k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.35k | DCHECK(_parsed); | 389 | 1.35k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.35k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 1.35k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.35k | *n = max_fetch; | 398 | 1.35k | if constexpr (forward_index) { | 399 | 1.35k | _cur_index += max_fetch; | 400 | 1.35k | } | 401 | | | 402 | 1.35k | return Status::OK(); | 403 | 1.35k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.87k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.87k | DCHECK(_parsed); | 389 | 7.87k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.87k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 7.87k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.87k | *n = max_fetch; | 398 | 7.87k | if constexpr (forward_index) { | 399 | 7.87k | _cur_index += max_fetch; | 400 | 7.87k | } | 401 | | | 402 | 7.87k | return Status::OK(); | 403 | 7.87k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 28.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 28.8k | DCHECK(_parsed); | 389 | 28.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 28.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 28.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 28.8k | *n = max_fetch; | 398 | 28.8k | if constexpr (forward_index) { | 399 | 28.8k | _cur_index += max_fetch; | 400 | 28.8k | } | 401 | | | 402 | 28.8k | return Status::OK(); | 403 | 28.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 27.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 27.9k | DCHECK(_parsed); | 389 | 27.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 27.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 27.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 27.9k | *n = max_fetch; | 398 | 27.9k | if constexpr (forward_index) { | 399 | 27.9k | _cur_index += max_fetch; | 400 | 27.9k | } | 401 | | | 402 | 27.9k | return Status::OK(); | 403 | 27.9k | } |
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.15k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.15k | DCHECK(_parsed); | 389 | 3.15k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.15k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 3.15k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.15k | *n = max_fetch; | 398 | 3.15k | if constexpr (forward_index) { | 399 | 3.15k | _cur_index += max_fetch; | 400 | 3.15k | } | 401 | | | 402 | 3.15k | return Status::OK(); | 403 | 3.15k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 5.76k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 5.76k | DCHECK(_parsed); | 389 | 5.76k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 5.76k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 5.76k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 5.76k | *n = max_fetch; | 398 | 5.76k | if constexpr (forward_index) { | 399 | 5.76k | _cur_index += max_fetch; | 400 | 5.76k | } | 401 | | | 402 | 5.76k | return Status::OK(); | 403 | 5.76k | } |
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.76k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 5.76k | DCHECK(_parsed); | 389 | 5.76k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 5.76k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 395 | | | 396 | 5.76k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 5.76k | *n = max_fetch; | 398 | 5.76k | if constexpr (forward_index) { | 399 | 5.76k | _cur_index += max_fetch; | 400 | 5.76k | } | 401 | | | 402 | 5.76k | return Status::OK(); | 403 | 5.76k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.38M | 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 | 254k | 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 | 236k | 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 | 19.3k | 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 | 86.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 138k | 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 | 30.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.3k | 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 | 15.2k | 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 | 401k | 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 | 82.4k | 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.45k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.87k | 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 | 7.87k | 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 | 28.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 27.9k | 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 | 5.76k | 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.76k | 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 | 443k | MutableColumnPtr& dst) override { |
409 | 443k | DCHECK(_parsed); |
410 | 443k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 443k | auto total = *n; |
416 | 443k | auto read_count = 0; |
417 | 443k | _buffer.resize(total); |
418 | 123M | for (size_t i = 0; i < total; ++i) { |
419 | 123M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 123M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 13.2k | break; |
422 | 13.2k | } |
423 | | |
424 | 123M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 123M | } |
426 | | |
427 | 443k | if (LIKELY(read_count > 0)) { |
428 | 443k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 443k | } |
430 | | |
431 | 443k | *n = read_count; |
432 | 443k | return Status::OK(); |
433 | 443k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 77.4k | MutableColumnPtr& dst) override { | 409 | 77.4k | DCHECK(_parsed); | 410 | 77.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 77.4k | auto total = *n; | 416 | 77.4k | auto read_count = 0; | 417 | 77.4k | _buffer.resize(total); | 418 | 35.6M | for (size_t i = 0; i < total; ++i) { | 419 | 35.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 35.5M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.66k | break; | 422 | 1.66k | } | 423 | | | 424 | 35.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 35.5M | } | 426 | | | 427 | 77.4k | if (LIKELY(read_count > 0)) { | 428 | 77.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 77.4k | } | 430 | | | 431 | 77.4k | *n = read_count; | 432 | 77.4k | return Status::OK(); | 433 | 77.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.6k | MutableColumnPtr& dst) override { | 409 | 29.6k | DCHECK(_parsed); | 410 | 29.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.6k | auto total = *n; | 416 | 29.6k | auto read_count = 0; | 417 | 29.6k | _buffer.resize(total); | 418 | 1.68M | for (size_t i = 0; i < total; ++i) { | 419 | 1.65M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.65M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.65M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.65M | } | 426 | | | 427 | 29.6k | if (LIKELY(read_count > 0)) { | 428 | 29.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.6k | } | 430 | | | 431 | 29.6k | *n = read_count; | 432 | 29.6k | return Status::OK(); | 433 | 29.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.94k | MutableColumnPtr& dst) override { | 409 | 9.94k | DCHECK(_parsed); | 410 | 9.94k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.94k | auto total = *n; | 416 | 9.94k | auto read_count = 0; | 417 | 9.94k | _buffer.resize(total); | 418 | 562k | for (size_t i = 0; i < total; ++i) { | 419 | 552k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 552k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 13 | break; | 422 | 13 | } | 423 | | | 424 | 552k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 552k | } | 426 | | | 427 | 9.95k | if (LIKELY(read_count > 0)) { | 428 | 9.95k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.95k | } | 430 | | | 431 | 9.94k | *n = read_count; | 432 | 9.94k | return Status::OK(); | 433 | 9.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 126k | MutableColumnPtr& dst) override { | 409 | 126k | DCHECK(_parsed); | 410 | 126k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 126k | auto total = *n; | 416 | 126k | auto read_count = 0; | 417 | 126k | _buffer.resize(total); | 418 | 25.8M | for (size_t i = 0; i < total; ++i) { | 419 | 25.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 25.6M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.01k | break; | 422 | 2.01k | } | 423 | | | 424 | 25.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 25.6M | } | 426 | | | 427 | 126k | if (LIKELY(read_count > 0)) { | 428 | 126k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 126k | } | 430 | | | 431 | 126k | *n = read_count; | 432 | 126k | return Status::OK(); | 433 | 126k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 36.5k | MutableColumnPtr& dst) override { | 409 | 36.5k | DCHECK(_parsed); | 410 | 36.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 36.5k | auto total = *n; | 416 | 36.5k | auto read_count = 0; | 417 | 36.5k | _buffer.resize(total); | 418 | 8.45M | for (size_t i = 0; i < total; ++i) { | 419 | 8.41M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.41M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.15k | break; | 422 | 2.15k | } | 423 | | | 424 | 8.41M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.41M | } | 426 | | | 427 | 36.5k | if (LIKELY(read_count > 0)) { | 428 | 36.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 36.5k | } | 430 | | | 431 | 36.5k | *n = read_count; | 432 | 36.5k | return Status::OK(); | 433 | 36.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.0k | MutableColumnPtr& dst) override { | 409 | 10.0k | DCHECK(_parsed); | 410 | 10.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.0k | auto total = *n; | 416 | 10.0k | auto read_count = 0; | 417 | 10.0k | _buffer.resize(total); | 418 | 1.22M | for (size_t i = 0; i < total; ++i) { | 419 | 1.21M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.21M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 291 | break; | 422 | 291 | } | 423 | | | 424 | 1.21M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.21M | } | 426 | | | 427 | 10.0k | if (LIKELY(read_count > 0)) { | 428 | 10.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.0k | } | 430 | | | 431 | 10.0k | *n = read_count; | 432 | 10.0k | return Status::OK(); | 433 | 10.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.9k | MutableColumnPtr& dst) override { | 409 | 10.9k | DCHECK(_parsed); | 410 | 10.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.9k | auto total = *n; | 416 | 10.9k | auto read_count = 0; | 417 | 10.9k | _buffer.resize(total); | 418 | 1.16M | for (size_t i = 0; i < total; ++i) { | 419 | 1.14M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.14M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 31 | break; | 422 | 31 | } | 423 | | | 424 | 1.14M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.14M | } | 426 | | | 427 | 10.9k | if (LIKELY(read_count > 0)) { | 428 | 10.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.9k | } | 430 | | | 431 | 10.9k | *n = read_count; | 432 | 10.9k | return Status::OK(); | 433 | 10.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 15.0k | MutableColumnPtr& dst) override { | 409 | 15.0k | DCHECK(_parsed); | 410 | 15.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 15.0k | auto total = *n; | 416 | 15.0k | auto read_count = 0; | 417 | 15.0k | _buffer.resize(total); | 418 | 2.24M | for (size_t i = 0; i < total; ++i) { | 419 | 2.22M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.22M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 628 | break; | 422 | 628 | } | 423 | | | 424 | 2.22M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.22M | } | 426 | | | 427 | 15.0k | if (LIKELY(read_count > 0)) { | 428 | 15.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 15.0k | } | 430 | | | 431 | 15.0k | *n = read_count; | 432 | 15.0k | return Status::OK(); | 433 | 15.0k | } |
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.23k | MutableColumnPtr& dst) override { | 409 | 2.23k | DCHECK(_parsed); | 410 | 2.23k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.23k | auto total = *n; | 416 | 2.23k | auto read_count = 0; | 417 | 2.23k | _buffer.resize(total); | 418 | 434k | for (size_t i = 0; i < total; ++i) { | 419 | 432k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 432k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 432k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 432k | } | 426 | | | 427 | 2.23k | if (LIKELY(read_count > 0)) { | 428 | 2.23k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.23k | } | 430 | | | 431 | 2.23k | *n = read_count; | 432 | 2.23k | return Status::OK(); | 433 | 2.23k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 30.1k | MutableColumnPtr& dst) override { | 409 | 30.1k | DCHECK(_parsed); | 410 | 30.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 30.1k | auto total = *n; | 416 | 30.1k | auto read_count = 0; | 417 | 30.1k | _buffer.resize(total); | 418 | 6.52M | for (size_t i = 0; i < total; ++i) { | 419 | 6.49M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.49M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 678 | break; | 422 | 678 | } | 423 | | | 424 | 6.49M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.49M | } | 426 | | | 427 | 30.1k | if (LIKELY(read_count > 0)) { | 428 | 30.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 30.1k | } | 430 | | | 431 | 30.1k | *n = read_count; | 432 | 30.1k | return Status::OK(); | 433 | 30.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 33.3k | MutableColumnPtr& dst) override { | 409 | 33.3k | DCHECK(_parsed); | 410 | 33.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 33.3k | auto total = *n; | 416 | 33.3k | auto read_count = 0; | 417 | 33.3k | _buffer.resize(total); | 418 | 9.38M | for (size_t i = 0; i < total; ++i) { | 419 | 9.35M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.35M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 208 | break; | 422 | 208 | } | 423 | | | 424 | 9.35M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.35M | } | 426 | | | 427 | 33.3k | if (LIKELY(read_count > 0)) { | 428 | 33.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 33.3k | } | 430 | | | 431 | 33.3k | *n = read_count; | 432 | 33.3k | return Status::OK(); | 433 | 33.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.30k | MutableColumnPtr& dst) override { | 409 | 2.30k | DCHECK(_parsed); | 410 | 2.30k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.30k | auto total = *n; | 416 | 2.30k | auto read_count = 0; | 417 | 2.30k | _buffer.resize(total); | 418 | 437k | for (size_t i = 0; i < total; ++i) { | 419 | 435k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 435k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 99 | break; | 422 | 99 | } | 423 | | | 424 | 435k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 435k | } | 426 | | | 427 | 2.30k | if (LIKELY(read_count > 0)) { | 428 | 2.30k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.30k | } | 430 | | | 431 | 2.30k | *n = read_count; | 432 | 2.30k | return Status::OK(); | 433 | 2.30k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.0k | MutableColumnPtr& dst) override { | 409 | 12.0k | DCHECK(_parsed); | 410 | 12.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.0k | auto total = *n; | 416 | 12.0k | auto read_count = 0; | 417 | 12.0k | _buffer.resize(total); | 418 | 25.7k | for (size_t i = 0; i < total; ++i) { | 419 | 13.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.6k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.6k | } | 426 | | | 427 | 12.0k | if (LIKELY(read_count > 0)) { | 428 | 12.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.0k | } | 430 | | | 431 | 12.0k | *n = read_count; | 432 | 12.0k | return Status::OK(); | 433 | 12.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 194 | MutableColumnPtr& dst) override { | 409 | 194 | DCHECK(_parsed); | 410 | 194 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 194 | auto total = *n; | 416 | 194 | auto read_count = 0; | 417 | 194 | _buffer.resize(total); | 418 | 393 | for (size_t i = 0; i < total; ++i) { | 419 | 199 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 199 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 199 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 199 | } | 426 | | | 427 | 194 | if (LIKELY(read_count > 0)) { | 428 | 194 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 194 | } | 430 | | | 431 | 194 | *n = read_count; | 432 | 194 | return Status::OK(); | 433 | 194 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.73k | MutableColumnPtr& dst) override { | 409 | 4.73k | DCHECK(_parsed); | 410 | 4.73k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.73k | auto total = *n; | 416 | 4.73k | auto read_count = 0; | 417 | 4.73k | _buffer.resize(total); | 418 | 19.3k | for (size_t i = 0; i < total; ++i) { | 419 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.6k | } | 426 | | | 427 | 4.73k | if (LIKELY(read_count > 0)) { | 428 | 4.73k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.73k | } | 430 | | | 431 | 4.73k | *n = read_count; | 432 | 4.73k | return Status::OK(); | 433 | 4.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.4k | MutableColumnPtr& dst) override { | 409 | 26.4k | DCHECK(_parsed); | 410 | 26.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.4k | auto total = *n; | 416 | 26.4k | auto read_count = 0; | 417 | 26.4k | _buffer.resize(total); | 418 | 21.3M | for (size_t i = 0; i < total; ++i) { | 419 | 21.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 21.3M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.08k | break; | 422 | 5.08k | } | 423 | | | 424 | 21.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 21.3M | } | 426 | | | 427 | 26.4k | if (LIKELY(read_count > 0)) { | 428 | 26.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.4k | } | 430 | | | 431 | 26.4k | *n = read_count; | 432 | 26.4k | return Status::OK(); | 433 | 26.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 14.4k | MutableColumnPtr& dst) override { | 409 | 14.4k | DCHECK(_parsed); | 410 | 14.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 14.4k | auto total = *n; | 416 | 14.4k | auto read_count = 0; | 417 | 14.4k | _buffer.resize(total); | 418 | 8.77M | for (size_t i = 0; i < total; ++i) { | 419 | 8.76M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.76M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 416 | break; | 422 | 416 | } | 423 | | | 424 | 8.76M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.76M | } | 426 | | | 427 | 14.4k | if (LIKELY(read_count > 0)) { | 428 | 14.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 14.4k | } | 430 | | | 431 | 14.4k | *n = read_count; | 432 | 14.4k | return Status::OK(); | 433 | 14.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 967 | MutableColumnPtr& dst) override { | 409 | 967 | DCHECK(_parsed); | 410 | 967 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 967 | auto total = *n; | 416 | 967 | auto read_count = 0; | 417 | 967 | _buffer.resize(total); | 418 | 2.78k | for (size_t i = 0; i < total; ++i) { | 419 | 1.82k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.82k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.82k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.82k | } | 426 | | | 427 | 967 | if (LIKELY(read_count > 0)) { | 428 | 967 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 967 | } | 430 | | | 431 | 967 | *n = read_count; | 432 | 967 | return Status::OK(); | 433 | 967 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 480 | MutableColumnPtr& dst) override { | 409 | 480 | DCHECK(_parsed); | 410 | 480 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 480 | auto total = *n; | 416 | 480 | auto read_count = 0; | 417 | 480 | _buffer.resize(total); | 418 | 1.20k | for (size_t i = 0; i < total; ++i) { | 419 | 723 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 723 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 723 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 723 | } | 426 | | | 427 | 480 | if (LIKELY(read_count > 0)) { | 428 | 480 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 480 | } | 430 | | | 431 | 480 | *n = read_count; | 432 | 480 | return Status::OK(); | 433 | 480 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 408 | MutableColumnPtr& dst) override { | 409 | 408 | DCHECK(_parsed); | 410 | 408 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 408 | auto total = *n; | 416 | 408 | auto read_count = 0; | 417 | 408 | _buffer.resize(total); | 418 | 1.33k | for (size_t i = 0; i < total; ++i) { | 419 | 923 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 923 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 923 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 923 | } | 426 | | | 427 | 408 | if (LIKELY(read_count > 0)) { | 428 | 408 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 408 | } | 430 | | | 431 | 408 | *n = read_count; | 432 | 408 | return Status::OK(); | 433 | 408 | } |
|
434 | | |
435 | 173k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 173k | return next_batch<false>(n, dst); |
437 | 173k | } 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 | 173k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 173k | return next_batch<false>(n, dst); | 437 | 173k | } |
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 | 2.29M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.76M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 17.0k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 16.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 358k | 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 | 10.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 16.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 10.6k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 10.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 22.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 37.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 5.65k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.09k | 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.48k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 703 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 13.7k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 308 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 57 | 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 | 126M | char* get_data(size_t index) const { |
444 | 126M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 126M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 37.7M | char* get_data(size_t index) const { | 444 | 37.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 37.7M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.88M | char* get_data(size_t index) const { | 444 | 1.88M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.88M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 571k | char* get_data(size_t index) const { | 444 | 571k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 571k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 25.7M | char* get_data(size_t index) const { | 444 | 25.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 25.7M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 8.72M | char* get_data(size_t index) const { | 444 | 8.72M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.72M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.24M | char* get_data(size_t index) const { | 444 | 1.24M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.24M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.16M | char* get_data(size_t index) const { | 444 | 1.16M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.16M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 2.24M | char* get_data(size_t index) const { | 444 | 2.24M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.24M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 447k | char* get_data(size_t index) const { | 444 | 447k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 447k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.89M | char* get_data(size_t index) const { | 444 | 6.89M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.89M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.43M | char* get_data(size_t index) const { | 444 | 9.43M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.43M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 436k | char* get_data(size_t index) const { | 444 | 436k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 436k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 21.5k | char* get_data(size_t index) const { | 444 | 21.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.55k | char* get_data(size_t index) const { | 444 | 1.55k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.55k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 22.5k | char* get_data(size_t index) const { | 444 | 22.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 21.3M | char* get_data(size_t index) const { | 444 | 21.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.78M | char* get_data(size_t index) const { | 444 | 8.78M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.78M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.97k | char* get_data(size_t index) const { | 444 | 4.97k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.97k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 6.48k | char* get_data(size_t index) const { | 444 | 6.48k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.48k | } |
_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 |