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 | 678k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 32.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 7.55k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 356k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 60.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 10.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 68.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 4.55k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 5.48k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 353 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 327 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 448 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.62k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 343 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.72k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 11.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.22k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 723 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 720 | Status init() override { return reset(); } |
|
96 | | |
97 | 135M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 35.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 8.19k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 134M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 115k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 11.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 68.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 4.95k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 7.01k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 369 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 44.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 43.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 266 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 511 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.65k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 253 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.18k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 23.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 17.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.39k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 627 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 640 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.06M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.06M | return add_internal<false>(vals, count); |
101 | 1.06M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 35.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 35.6k | return add_internal<false>(vals, count); | 101 | 35.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 8.19k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.19k | return add_internal<false>(vals, count); | 101 | 8.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 669k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 669k | return add_internal<false>(vals, count); | 101 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 115k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 115k | return add_internal<false>(vals, count); | 101 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 11.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.4k | return add_internal<false>(vals, count); | 101 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 68.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 68.4k | return add_internal<false>(vals, count); | 101 | 68.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 4.95k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 4.95k | return add_internal<false>(vals, count); | 101 | 4.95k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 7.01k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.01k | return add_internal<false>(vals, count); | 101 | 7.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 369 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 369 | return add_internal<false>(vals, count); | 101 | 369 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 44.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.0k | return add_internal<false>(vals, count); | 101 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 43.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 43.7k | return add_internal<false>(vals, count); | 101 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 266 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 266 | return add_internal<false>(vals, count); | 101 | 266 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 511 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 511 | return add_internal<false>(vals, count); | 101 | 511 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.65k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.65k | return add_internal<false>(vals, count); | 101 | 7.65k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 253 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 253 | return add_internal<false>(vals, count); | 101 | 253 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.18k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.18k | return add_internal<false>(vals, count); | 101 | 5.18k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 23.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 23.4k | return add_internal<false>(vals, count); | 101 | 23.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 17.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 17.9k | return add_internal<false>(vals, count); | 101 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.39k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.39k | return add_internal<false>(vals, count); | 101 | 1.39k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 627 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 627 | return add_internal<false>(vals, count); | 101 | 627 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 640 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 640 | return add_internal<false>(vals, count); | 101 | 640 | } |
|
102 | | |
103 | 134M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 134M | return add_internal<true>(vals, count); |
105 | 134M | } |
106 | | |
107 | | template <bool single> |
108 | 131M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 131M | DCHECK(!_finished); |
110 | 131M | 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 | 131M | uint32_t to_add = cast_set<UInt32>( |
126 | 131M | 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 | 131M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 131M | 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 | 131M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 136M | _count += to_add; |
134 | 136M | _remain_element_capacity -= to_add; |
135 | 136M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 136M | *num_written = to_add; |
138 | 136M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | _data[orig_size] = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 135M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 135M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 135M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 135M | 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 | 135M | } |
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 | 136M | return Status::OK(); |
159 | 131M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 35.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 35.6k | DCHECK(!_finished); | 110 | 35.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 35.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 35.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 35.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 35.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 35.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 35.6k | _count += to_add; | 134 | 35.6k | _remain_element_capacity -= to_add; | 135 | 35.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 35.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 35.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 35.6k | return Status::OK(); | 159 | 35.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.19k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.19k | DCHECK(!_finished); | 110 | 8.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 | 8.19k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.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 | 8.19k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.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 | 8.19k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.19k | _count += to_add; | 134 | 8.19k | _remain_element_capacity -= to_add; | 135 | 8.19k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.19k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 8.19k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.19k | return Status::OK(); | 159 | 8.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 669k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 669k | DCHECK(!_finished); | 110 | 669k | 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 | 669k | uint32_t to_add = cast_set<UInt32>( | 126 | 669k | 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 | 669k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 669k | 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 | 669k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 669k | _count += to_add; | 134 | 669k | _remain_element_capacity -= to_add; | 135 | 669k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 669k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 669k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 669k | return Status::OK(); | 159 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 115k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 115k | DCHECK(!_finished); | 110 | 115k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 115k | uint32_t to_add = cast_set<UInt32>( | 126 | 115k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 115k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 115k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 115k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 115k | _count += to_add; | 134 | 115k | _remain_element_capacity -= to_add; | 135 | 115k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 115k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 115k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 115k | return Status::OK(); | 159 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.4k | DCHECK(!_finished); | 110 | 11.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 11.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 11.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 11.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.4k | _count += to_add; | 134 | 11.4k | _remain_element_capacity -= to_add; | 135 | 11.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 11.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.4k | return Status::OK(); | 159 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 68.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 68.4k | DCHECK(!_finished); | 110 | 68.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 68.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 68.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 68.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 68.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 68.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 68.4k | _count += to_add; | 134 | 68.4k | _remain_element_capacity -= to_add; | 135 | 68.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 68.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 68.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 68.4k | return Status::OK(); | 159 | 68.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 4.95k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 4.95k | DCHECK(!_finished); | 110 | 4.95k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 4.95k | uint32_t to_add = cast_set<UInt32>( | 126 | 4.95k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 4.95k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 4.95k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 4.95k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 4.95k | _count += to_add; | 134 | 4.95k | _remain_element_capacity -= to_add; | 135 | 4.95k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 4.95k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 4.95k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 4.95k | return Status::OK(); | 159 | 4.95k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.01k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.01k | DCHECK(!_finished); | 110 | 7.01k | 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.01k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.01k | 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.01k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.01k | 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.01k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.01k | _count += to_add; | 134 | 7.01k | _remain_element_capacity -= to_add; | 135 | 7.01k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.01k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 7.01k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.01k | return Status::OK(); | 159 | 7.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 368 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 368 | DCHECK(!_finished); | 110 | 368 | 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 | 368 | uint32_t to_add = cast_set<UInt32>( | 126 | 368 | 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 | 368 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 368 | 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 | 368 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 369 | _count += to_add; | 134 | 369 | _remain_element_capacity -= to_add; | 135 | 369 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 369 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 369 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 369 | return Status::OK(); | 159 | 368 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.0k | DCHECK(!_finished); | 110 | 44.0k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.0k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.0k | _count += to_add; | 134 | 44.0k | _remain_element_capacity -= to_add; | 135 | 44.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 44.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.0k | return Status::OK(); | 159 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 43.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 43.7k | DCHECK(!_finished); | 110 | 43.7k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 43.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 43.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 43.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 43.7k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 43.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 43.7k | _count += to_add; | 134 | 43.7k | _remain_element_capacity -= to_add; | 135 | 43.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 43.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 43.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 43.7k | return Status::OK(); | 159 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 266 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 266 | DCHECK(!_finished); | 110 | 266 | 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 | 266 | uint32_t to_add = cast_set<UInt32>( | 126 | 266 | 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 | 266 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 266 | 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 | 266 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 266 | _count += to_add; | 134 | 266 | _remain_element_capacity -= to_add; | 135 | 266 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 266 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 266 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 266 | return Status::OK(); | 159 | 266 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 511 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 511 | DCHECK(!_finished); | 110 | 511 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 511 | uint32_t to_add = cast_set<UInt32>( | 126 | 511 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 511 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 511 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 511 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 511 | _count += to_add; | 134 | 511 | _remain_element_capacity -= to_add; | 135 | 511 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 511 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 511 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 511 | return Status::OK(); | 159 | 511 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.64k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.64k | DCHECK(!_finished); | 110 | 7.64k | 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.64k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.64k | 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.64k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.64k | 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.64k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.64k | _count += to_add; | 134 | 7.64k | _remain_element_capacity -= to_add; | 135 | 7.64k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.64k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 7.64k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.64k | return Status::OK(); | 159 | 7.64k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 253 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 253 | DCHECK(!_finished); | 110 | 253 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 253 | uint32_t to_add = cast_set<UInt32>( | 126 | 253 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 253 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 253 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 253 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 253 | _count += to_add; | 134 | 253 | _remain_element_capacity -= to_add; | 135 | 253 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 253 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 253 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 253 | return Status::OK(); | 159 | 253 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.18k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.18k | DCHECK(!_finished); | 110 | 5.18k | 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.18k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.18k | 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.18k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.18k | 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.18k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.18k | _count += to_add; | 134 | 5.18k | _remain_element_capacity -= to_add; | 135 | 5.18k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.18k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.18k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.18k | return Status::OK(); | 159 | 5.18k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 23.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 23.4k | DCHECK(!_finished); | 110 | 23.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 23.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 23.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 23.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 23.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 23.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 23.4k | _count += to_add; | 134 | 23.4k | _remain_element_capacity -= to_add; | 135 | 23.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 23.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 23.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 23.4k | return Status::OK(); | 159 | 23.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 17.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 17.9k | DCHECK(!_finished); | 110 | 17.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 | 17.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 17.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 | 17.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 17.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 | 17.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 17.9k | _count += to_add; | 134 | 17.9k | _remain_element_capacity -= to_add; | 135 | 17.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 17.9k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 17.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 17.9k | return Status::OK(); | 159 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.39k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.39k | DCHECK(!_finished); | 110 | 1.39k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.39k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.39k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.39k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.39k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.39k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.39k | _count += to_add; | 134 | 1.39k | _remain_element_capacity -= to_add; | 135 | 1.39k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.39k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.39k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.39k | return Status::OK(); | 159 | 1.39k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 627 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 627 | DCHECK(!_finished); | 110 | 627 | 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 | 627 | uint32_t to_add = cast_set<UInt32>( | 126 | 627 | 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 | 627 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 627 | 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 | 627 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 627 | _count += to_add; | 134 | 627 | _remain_element_capacity -= to_add; | 135 | 627 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 627 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 627 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 627 | return Status::OK(); | 159 | 627 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 640 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 640 | DCHECK(!_finished); | 110 | 640 | 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 | 640 | uint32_t to_add = cast_set<UInt32>( | 126 | 640 | 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 | 640 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 640 | 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 | 640 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 640 | _count += to_add; | 134 | 640 | _remain_element_capacity -= to_add; | 135 | 640 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 640 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 640 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 640 | return Status::OK(); | 159 | 640 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 130M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 130M | DCHECK(!_finished); | 110 | 130M | 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 | 130M | uint32_t to_add = cast_set<UInt32>( | 126 | 130M | 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 | 130M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 130M | 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 | 130M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 135M | _count += to_add; | 134 | 135M | _remain_element_capacity -= to_add; | 135 | 135M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 135M | *num_written = to_add; | 138 | 135M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 135M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 135M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 135M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 135M | 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 | 135M | } | 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 | 135M | return Status::OK(); | 159 | 130M | } |
|
160 | | |
161 | 670k | Status finish(OwnedSlice* slice) override { |
162 | 670k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 670k | return Status::OK(); |
164 | 670k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 32.7k | Status finish(OwnedSlice* slice) override { | 162 | 32.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 32.7k | return Status::OK(); | 164 | 32.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.51k | Status finish(OwnedSlice* slice) override { | 162 | 7.51k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.51k | return Status::OK(); | 164 | 7.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 337k | Status finish(OwnedSlice* slice) override { | 162 | 337k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 337k | return Status::OK(); | 164 | 337k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 65.3k | Status finish(OwnedSlice* slice) override { | 162 | 65.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 65.4k | return Status::OK(); | 164 | 65.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.4k | Status finish(OwnedSlice* slice) override { | 162 | 11.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.4k | return Status::OK(); | 164 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 67.9k | Status finish(OwnedSlice* slice) override { | 162 | 67.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 67.9k | return Status::OK(); | 164 | 67.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 4.53k | Status finish(OwnedSlice* slice) override { | 162 | 4.53k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 4.53k | return Status::OK(); | 164 | 4.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 5.81k | Status finish(OwnedSlice* slice) override { | 162 | 5.81k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 5.82k | return Status::OK(); | 164 | 5.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 364 | Status finish(OwnedSlice* slice) override { | 162 | 364 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 364 | return Status::OK(); | 164 | 364 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.0k | Status finish(OwnedSlice* slice) override { | 162 | 38.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.0k | return Status::OK(); | 164 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.0k | Status finish(OwnedSlice* slice) override { | 162 | 43.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.0k | return Status::OK(); | 164 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 260 | Status finish(OwnedSlice* slice) override { | 162 | 260 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 260 | return Status::OK(); | 164 | 260 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 601 | Status finish(OwnedSlice* slice) override { | 162 | 601 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 601 | return Status::OK(); | 164 | 601 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.74k | Status finish(OwnedSlice* slice) override { | 162 | 7.74k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.74k | return Status::OK(); | 164 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 255 | Status finish(OwnedSlice* slice) override { | 162 | 255 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 255 | return Status::OK(); | 164 | 255 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.72k | Status finish(OwnedSlice* slice) override { | 162 | 9.72k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.72k | return Status::OK(); | 164 | 9.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.3k | Status finish(OwnedSlice* slice) override { | 162 | 18.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.3k | return Status::OK(); | 164 | 18.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.0k | Status finish(OwnedSlice* slice) override { | 162 | 17.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.0k | return Status::OK(); | 164 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.12k | Status finish(OwnedSlice* slice) override { | 162 | 1.12k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.12k | return Status::OK(); | 164 | 1.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 633 | Status finish(OwnedSlice* slice) override { | 162 | 633 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 633 | return Status::OK(); | 164 | 633 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 630 | Status finish(OwnedSlice* slice) override { | 162 | 630 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 630 | return Status::OK(); | 164 | 630 | } |
|
165 | | |
166 | 1.63M | Status reset() override { |
167 | 1.63M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.63M | size_t block_size = _options.data_page_size; |
169 | 1.63M | _count = 0; |
170 | 1.63M | _raw_data_size = 0; |
171 | 1.63M | _data.clear(); |
172 | 1.63M | _data.reserve(block_size); |
173 | 1.63M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.63M | << "buffer must be naturally-aligned"; |
175 | 1.63M | _buffer.clear(); |
176 | 1.63M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.63M | _finished = false; |
178 | 1.63M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.63M | }); |
180 | 1.64M | return Status::OK(); |
181 | 1.63M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 65.5k | Status reset() override { | 167 | 65.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 65.5k | size_t block_size = _options.data_page_size; | 169 | 65.5k | _count = 0; | 170 | 65.5k | _raw_data_size = 0; | 171 | 65.5k | _data.clear(); | 172 | 65.5k | _data.reserve(block_size); | 173 | 65.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 65.5k | << "buffer must be naturally-aligned"; | 175 | 65.5k | _buffer.clear(); | 176 | 65.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 65.5k | _finished = false; | 178 | 65.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 65.5k | }); | 180 | 65.5k | return Status::OK(); | 181 | 65.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 15.0k | Status reset() override { | 167 | 15.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.0k | size_t block_size = _options.data_page_size; | 169 | 15.0k | _count = 0; | 170 | 15.0k | _raw_data_size = 0; | 171 | 15.0k | _data.clear(); | 172 | 15.0k | _data.reserve(block_size); | 173 | 15.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.0k | << "buffer must be naturally-aligned"; | 175 | 15.0k | _buffer.clear(); | 176 | 15.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.0k | _finished = false; | 178 | 15.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.0k | }); | 180 | 15.0k | return Status::OK(); | 181 | 15.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 984k | Status reset() override { | 167 | 984k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 984k | size_t block_size = _options.data_page_size; | 169 | 984k | _count = 0; | 170 | 984k | _raw_data_size = 0; | 171 | 984k | _data.clear(); | 172 | 984k | _data.reserve(block_size); | 173 | 984k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 984k | << "buffer must be naturally-aligned"; | 175 | 984k | _buffer.clear(); | 176 | 984k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 984k | _finished = false; | 178 | 984k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 984k | }); | 180 | 986k | return Status::OK(); | 181 | 984k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 125k | Status reset() override { | 167 | 125k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 125k | size_t block_size = _options.data_page_size; | 169 | 125k | _count = 0; | 170 | 125k | _raw_data_size = 0; | 171 | 125k | _data.clear(); | 172 | 125k | _data.reserve(block_size); | 173 | 125k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 125k | << "buffer must be naturally-aligned"; | 175 | 125k | _buffer.clear(); | 176 | 125k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 125k | _finished = false; | 178 | 125k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 125k | }); | 180 | 126k | return Status::OK(); | 181 | 125k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 22.3k | Status reset() override { | 167 | 22.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 22.3k | size_t block_size = _options.data_page_size; | 169 | 22.3k | _count = 0; | 170 | 22.3k | _raw_data_size = 0; | 171 | 22.3k | _data.clear(); | 172 | 22.3k | _data.reserve(block_size); | 173 | 22.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 22.3k | << "buffer must be naturally-aligned"; | 175 | 22.3k | _buffer.clear(); | 176 | 22.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 22.3k | _finished = false; | 178 | 22.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 22.3k | }); | 180 | 22.4k | return Status::OK(); | 181 | 22.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 135k | Status reset() override { | 167 | 135k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 135k | size_t block_size = _options.data_page_size; | 169 | 135k | _count = 0; | 170 | 135k | _raw_data_size = 0; | 171 | 135k | _data.clear(); | 172 | 135k | _data.reserve(block_size); | 173 | 135k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 135k | << "buffer must be naturally-aligned"; | 175 | 135k | _buffer.clear(); | 176 | 135k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 135k | _finished = false; | 178 | 135k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 135k | }); | 180 | 136k | return Status::OK(); | 181 | 135k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 9.09k | Status reset() override { | 167 | 9.09k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 9.09k | size_t block_size = _options.data_page_size; | 169 | 9.09k | _count = 0; | 170 | 9.09k | _raw_data_size = 0; | 171 | 9.09k | _data.clear(); | 172 | 9.09k | _data.reserve(block_size); | 173 | 9.09k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 9.09k | << "buffer must be naturally-aligned"; | 175 | 9.09k | _buffer.clear(); | 176 | 9.09k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 9.09k | _finished = false; | 178 | 9.09k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 9.09k | }); | 180 | 9.09k | return Status::OK(); | 181 | 9.09k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 11.3k | Status reset() override { | 167 | 11.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 11.3k | size_t block_size = _options.data_page_size; | 169 | 11.3k | _count = 0; | 170 | 11.3k | _raw_data_size = 0; | 171 | 11.3k | _data.clear(); | 172 | 11.3k | _data.reserve(block_size); | 173 | 11.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 11.3k | << "buffer must be naturally-aligned"; | 175 | 11.3k | _buffer.clear(); | 176 | 11.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 11.3k | _finished = false; | 178 | 11.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 11.3k | }); | 180 | 11.3k | return Status::OK(); | 181 | 11.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 717 | Status reset() override { | 167 | 717 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 717 | size_t block_size = _options.data_page_size; | 169 | 717 | _count = 0; | 170 | 717 | _raw_data_size = 0; | 171 | 717 | _data.clear(); | 172 | 717 | _data.reserve(block_size); | 173 | 717 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 717 | << "buffer must be naturally-aligned"; | 175 | 717 | _buffer.clear(); | 176 | 717 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 717 | _finished = false; | 178 | 717 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 717 | }); | 180 | 717 | return Status::OK(); | 181 | 717 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.5k | Status reset() override { | 167 | 75.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.5k | size_t block_size = _options.data_page_size; | 169 | 75.5k | _count = 0; | 170 | 75.5k | _raw_data_size = 0; | 171 | 75.5k | _data.clear(); | 172 | 75.5k | _data.reserve(block_size); | 173 | 75.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.5k | << "buffer must be naturally-aligned"; | 175 | 75.5k | _buffer.clear(); | 176 | 75.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.5k | _finished = false; | 178 | 75.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.5k | }); | 180 | 75.6k | return Status::OK(); | 181 | 75.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.0k | Status reset() override { | 167 | 87.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.0k | size_t block_size = _options.data_page_size; | 169 | 87.0k | _count = 0; | 170 | 87.0k | _raw_data_size = 0; | 171 | 87.0k | _data.clear(); | 172 | 87.0k | _data.reserve(block_size); | 173 | 87.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.0k | << "buffer must be naturally-aligned"; | 175 | 87.0k | _buffer.clear(); | 176 | 87.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.0k | _finished = false; | 178 | 87.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.0k | }); | 180 | 87.1k | return Status::OK(); | 181 | 87.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 585 | Status reset() override { | 167 | 585 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 585 | size_t block_size = _options.data_page_size; | 169 | 585 | _count = 0; | 170 | 585 | _raw_data_size = 0; | 171 | 585 | _data.clear(); | 172 | 585 | _data.reserve(block_size); | 173 | 585 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 585 | << "buffer must be naturally-aligned"; | 175 | 585 | _buffer.clear(); | 176 | 585 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 585 | _finished = false; | 178 | 585 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 585 | }); | 180 | 587 | return Status::OK(); | 181 | 585 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.04k | Status reset() override { | 167 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.04k | size_t block_size = _options.data_page_size; | 169 | 1.04k | _count = 0; | 170 | 1.04k | _raw_data_size = 0; | 171 | 1.04k | _data.clear(); | 172 | 1.04k | _data.reserve(block_size); | 173 | 1.04k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.04k | << "buffer must be naturally-aligned"; | 175 | 1.04k | _buffer.clear(); | 176 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.04k | _finished = false; | 178 | 1.04k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.04k | }); | 180 | 1.04k | return Status::OK(); | 181 | 1.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 15.3k | Status reset() override { | 167 | 15.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.3k | size_t block_size = _options.data_page_size; | 169 | 15.3k | _count = 0; | 170 | 15.3k | _raw_data_size = 0; | 171 | 15.3k | _data.clear(); | 172 | 15.3k | _data.reserve(block_size); | 173 | 15.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.3k | << "buffer must be naturally-aligned"; | 175 | 15.3k | _buffer.clear(); | 176 | 15.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.3k | _finished = false; | 178 | 15.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.3k | }); | 180 | 15.5k | return Status::OK(); | 181 | 15.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 597 | Status reset() override { | 167 | 597 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 597 | size_t block_size = _options.data_page_size; | 169 | 597 | _count = 0; | 170 | 597 | _raw_data_size = 0; | 171 | 597 | _data.clear(); | 172 | 597 | _data.reserve(block_size); | 173 | 597 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 597 | << "buffer must be naturally-aligned"; | 175 | 597 | _buffer.clear(); | 176 | 597 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 597 | _finished = false; | 178 | 597 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 597 | }); | 180 | 598 | return Status::OK(); | 181 | 597 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.4k | Status reset() override { | 167 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.4k | size_t block_size = _options.data_page_size; | 169 | 19.4k | _count = 0; | 170 | 19.4k | _raw_data_size = 0; | 171 | 19.4k | _data.clear(); | 172 | 19.4k | _data.reserve(block_size); | 173 | 19.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.4k | << "buffer must be naturally-aligned"; | 175 | 19.4k | _buffer.clear(); | 176 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.4k | _finished = false; | 178 | 19.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.4k | }); | 180 | 19.4k | return Status::OK(); | 181 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 30.3k | Status reset() override { | 167 | 30.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 30.3k | size_t block_size = _options.data_page_size; | 169 | 30.3k | _count = 0; | 170 | 30.3k | _raw_data_size = 0; | 171 | 30.3k | _data.clear(); | 172 | 30.3k | _data.reserve(block_size); | 173 | 30.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 30.3k | << "buffer must be naturally-aligned"; | 175 | 30.3k | _buffer.clear(); | 176 | 30.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 30.3k | _finished = false; | 178 | 30.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 30.3k | }); | 180 | 30.3k | return Status::OK(); | 181 | 30.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 34.0k | Status reset() override { | 167 | 34.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 34.0k | size_t block_size = _options.data_page_size; | 169 | 34.0k | _count = 0; | 170 | 34.0k | _raw_data_size = 0; | 171 | 34.0k | _data.clear(); | 172 | 34.0k | _data.reserve(block_size); | 173 | 34.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 34.0k | << "buffer must be naturally-aligned"; | 175 | 34.0k | _buffer.clear(); | 176 | 34.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 34.0k | _finished = false; | 178 | 34.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 34.0k | }); | 180 | 34.0k | return Status::OK(); | 181 | 34.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.34k | Status reset() override { | 167 | 2.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.34k | size_t block_size = _options.data_page_size; | 169 | 2.34k | _count = 0; | 170 | 2.34k | _raw_data_size = 0; | 171 | 2.34k | _data.clear(); | 172 | 2.34k | _data.reserve(block_size); | 173 | 2.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.34k | << "buffer must be naturally-aligned"; | 175 | 2.34k | _buffer.clear(); | 176 | 2.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.34k | _finished = false; | 178 | 2.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.34k | }); | 180 | 2.34k | return Status::OK(); | 181 | 2.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.35k | Status reset() override { | 167 | 1.35k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.35k | size_t block_size = _options.data_page_size; | 169 | 1.35k | _count = 0; | 170 | 1.35k | _raw_data_size = 0; | 171 | 1.35k | _data.clear(); | 172 | 1.35k | _data.reserve(block_size); | 173 | 1.35k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.35k | << "buffer must be naturally-aligned"; | 175 | 1.35k | _buffer.clear(); | 176 | 1.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.35k | _finished = false; | 178 | 1.35k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.35k | }); | 180 | 1.35k | return Status::OK(); | 181 | 1.35k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.35k | Status reset() override { | 167 | 1.35k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.35k | size_t block_size = _options.data_page_size; | 169 | 1.35k | _count = 0; | 170 | 1.35k | _raw_data_size = 0; | 171 | 1.35k | _data.clear(); | 172 | 1.35k | _data.reserve(block_size); | 173 | 1.35k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.35k | << "buffer must be naturally-aligned"; | 175 | 1.35k | _buffer.clear(); | 176 | 1.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.35k | _finished = false; | 178 | 1.35k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.35k | }); | 180 | 1.35k | return Status::OK(); | 181 | 1.35k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv 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 | 34.8k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.67k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 933 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 18.5k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 2.57k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.43k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 758 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 463 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 475 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 56 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.61k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.19k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 63 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 56 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 52 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 214 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 341 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.15k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 54 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 76 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 60 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 398k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 32.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.51k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 65.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 65.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 11.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 67.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 4.53k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 5.81k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 364 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 260 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 601 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.74k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 255 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.71k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.12k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 633 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 630 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 677k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 32.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.55k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 355k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 60.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 68.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 4.55k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 5.48k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 353 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 43.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 327 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 448 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.60k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 342 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.72k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.21k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 722 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 720 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 670k | OwnedSlice _finish(int final_size_of_type) { |
194 | 670k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 670k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 670k | int padding_elems = num_elems_after_padding - _count; |
199 | 670k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 18.9M | for (int i = 0; i < padding_bytes; i++) { |
201 | 18.2M | _data.push_back(0); |
202 | 18.2M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 670k | _buffer.resize( |
206 | 670k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 670k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 670k | int64_t bytes = |
210 | 670k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 670k | num_elems_after_padding, final_size_of_type, 0); |
212 | 670k | 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 | 670k | encode_fixed32_le(&_buffer[0], _count); |
222 | 670k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 670k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 670k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 670k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 670k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 670k | return _buffer.build(); |
229 | 670k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 32.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 32.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 32.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 32.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 32.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 190k | for (int i = 0; i < padding_bytes; i++) { | 201 | 158k | _data.push_back(0); | 202 | 158k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 32.7k | _buffer.resize( | 206 | 32.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 32.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 32.7k | int64_t bytes = | 210 | 32.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 32.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 32.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 | 32.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 32.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 32.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 32.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 32.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 32.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 32.7k | return _buffer.build(); | 229 | 32.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 7.51k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.51k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.51k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.51k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.51k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 71.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 63.6k | _data.push_back(0); | 202 | 63.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.51k | _buffer.resize( | 206 | 7.51k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.51k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.51k | int64_t bytes = | 210 | 7.51k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.51k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.51k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.51k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.51k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.51k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.51k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.51k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.51k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.51k | return _buffer.build(); | 229 | 7.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 337k | OwnedSlice _finish(int final_size_of_type) { | 194 | 337k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 337k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 337k | int padding_elems = num_elems_after_padding - _count; | 199 | 337k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.54M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.20M | _data.push_back(0); | 202 | 6.20M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 337k | _buffer.resize( | 206 | 337k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 337k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 337k | int64_t bytes = | 210 | 337k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 337k | num_elems_after_padding, final_size_of_type, 0); | 212 | 337k | 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 | 337k | encode_fixed32_le(&_buffer[0], _count); | 222 | 337k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 337k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 337k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 337k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 337k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 337k | return _buffer.build(); | 229 | 337k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 65.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 65.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 65.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 65.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 65.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.74M | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.67M | _data.push_back(0); | 202 | 2.67M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 65.3k | _buffer.resize( | 206 | 65.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 65.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 65.3k | int64_t bytes = | 210 | 65.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 65.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 65.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 | 65.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 65.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 65.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 65.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 65.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 65.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 65.3k | return _buffer.build(); | 229 | 65.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 11.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 697k | for (int i = 0; i < padding_bytes; i++) { | 201 | 686k | _data.push_back(0); | 202 | 686k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.4k | _buffer.resize( | 206 | 11.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.4k | int64_t bytes = | 210 | 11.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 11.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.4k | return _buffer.build(); | 229 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 67.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 67.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 67.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 67.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 67.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.31M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.24M | _data.push_back(0); | 202 | 3.24M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 67.9k | _buffer.resize( | 206 | 67.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 67.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 67.9k | int64_t bytes = | 210 | 67.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 67.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 67.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 | 67.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 67.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 67.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 67.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 67.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 67.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 67.9k | return _buffer.build(); | 229 | 67.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 4.53k | OwnedSlice _finish(int final_size_of_type) { | 194 | 4.53k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 4.53k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 4.53k | int padding_elems = num_elems_after_padding - _count; | 199 | 4.53k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 90.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 86.1k | _data.push_back(0); | 202 | 86.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 4.53k | _buffer.resize( | 206 | 4.53k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 4.53k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 4.53k | int64_t bytes = | 210 | 4.53k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 4.53k | num_elems_after_padding, final_size_of_type, 0); | 212 | 4.53k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 4.53k | encode_fixed32_le(&_buffer[0], _count); | 222 | 4.53k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 4.53k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 4.53k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 4.53k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 4.53k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 4.53k | return _buffer.build(); | 229 | 4.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 5.82k | OwnedSlice _finish(int final_size_of_type) { | 194 | 5.82k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 5.82k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 5.82k | int padding_elems = num_elems_after_padding - _count; | 199 | 5.82k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 237k | for (int i = 0; i < padding_bytes; i++) { | 201 | 231k | _data.push_back(0); | 202 | 231k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 5.82k | _buffer.resize( | 206 | 5.82k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 5.82k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 5.82k | int64_t bytes = | 210 | 5.82k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 5.82k | num_elems_after_padding, final_size_of_type, 0); | 212 | 5.82k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 5.82k | encode_fixed32_le(&_buffer[0], _count); | 222 | 5.82k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 5.82k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 5.82k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 5.82k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 5.82k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 5.82k | return _buffer.build(); | 229 | 5.82k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 364 | OwnedSlice _finish(int final_size_of_type) { | 194 | 364 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 364 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 364 | int padding_elems = num_elems_after_padding - _count; | 199 | 364 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.45k | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.08k | _data.push_back(0); | 202 | 5.08k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 364 | _buffer.resize( | 206 | 364 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 364 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 364 | int64_t bytes = | 210 | 364 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 364 | num_elems_after_padding, final_size_of_type, 0); | 212 | 364 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 364 | encode_fixed32_le(&_buffer[0], _count); | 222 | 364 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 364 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 364 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 364 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 364 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 364 | return _buffer.build(); | 229 | 364 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 808k | for (int i = 0; i < padding_bytes; i++) { | 201 | 770k | _data.push_back(0); | 202 | 770k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.0k | _buffer.resize( | 206 | 38.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.0k | int64_t bytes = | 210 | 38.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.0k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 38.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.0k | return _buffer.build(); | 229 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.81M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.76M | _data.push_back(0); | 202 | 1.76M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.0k | _buffer.resize( | 206 | 43.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.0k | int64_t bytes = | 210 | 43.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.0k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.0k | return _buffer.build(); | 229 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 260 | OwnedSlice _finish(int final_size_of_type) { | 194 | 260 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 260 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 260 | int padding_elems = num_elems_after_padding - _count; | 199 | 260 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 10.8k | _data.push_back(0); | 202 | 10.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 260 | _buffer.resize( | 206 | 260 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 260 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 260 | int64_t bytes = | 210 | 260 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 260 | num_elems_after_padding, final_size_of_type, 0); | 212 | 260 | 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 | 260 | encode_fixed32_le(&_buffer[0], _count); | 222 | 260 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 260 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 260 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 260 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 260 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 260 | return _buffer.build(); | 229 | 260 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 601 | OwnedSlice _finish(int final_size_of_type) { | 194 | 601 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 601 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 601 | int padding_elems = num_elems_after_padding - _count; | 199 | 601 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 13.2k | _data.push_back(0); | 202 | 13.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 601 | _buffer.resize( | 206 | 601 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 601 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 601 | int64_t bytes = | 210 | 601 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 601 | num_elems_after_padding, final_size_of_type, 0); | 212 | 601 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 601 | encode_fixed32_le(&_buffer[0], _count); | 222 | 601 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 601 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 601 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 601 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 601 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 601 | return _buffer.build(); | 229 | 601 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.74k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.74k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.74k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.74k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.74k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 403k | for (int i = 0; i < padding_bytes; i++) { | 201 | 395k | _data.push_back(0); | 202 | 395k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.74k | _buffer.resize( | 206 | 7.74k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.74k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.74k | int64_t bytes = | 210 | 7.74k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.74k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.74k | 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.74k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.74k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.74k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.74k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.74k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.74k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.74k | return _buffer.build(); | 229 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 255 | OwnedSlice _finish(int final_size_of_type) { | 194 | 255 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 255 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 255 | int padding_elems = num_elems_after_padding - _count; | 199 | 255 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 15.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.4k | _data.push_back(0); | 202 | 15.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 255 | _buffer.resize( | 206 | 255 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 255 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 255 | int64_t bytes = | 210 | 255 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 255 | num_elems_after_padding, final_size_of_type, 0); | 212 | 255 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 255 | encode_fixed32_le(&_buffer[0], _count); | 222 | 255 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 255 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 255 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 255 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 255 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 255 | return _buffer.build(); | 229 | 255 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.71k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.71k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.71k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.71k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.71k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 117k | for (int i = 0; i < padding_bytes; i++) { | 201 | 108k | _data.push_back(0); | 202 | 108k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.71k | _buffer.resize( | 206 | 9.71k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.71k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.71k | int64_t bytes = | 210 | 9.71k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.71k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.71k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 9.71k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.71k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.71k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.71k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.71k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.71k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.71k | return _buffer.build(); | 229 | 9.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 484k | for (int i = 0; i < padding_bytes; i++) { | 201 | 466k | _data.push_back(0); | 202 | 466k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.3k | _buffer.resize( | 206 | 18.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.3k | int64_t bytes = | 210 | 18.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.3k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 18.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.3k | return _buffer.build(); | 229 | 18.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.14M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.12M | _data.push_back(0); | 202 | 1.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.0k | _buffer.resize( | 206 | 17.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.0k | int64_t bytes = | 210 | 17.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.0k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 17.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.0k | return _buffer.build(); | 229 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.12k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.12k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.12k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.12k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.12k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 175k | for (int i = 0; i < padding_bytes; i++) { | 201 | 174k | _data.push_back(0); | 202 | 174k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.12k | _buffer.resize( | 206 | 1.12k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.12k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.12k | int64_t bytes = | 210 | 1.12k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.12k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.12k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.12k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.12k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.12k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.12k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.12k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.12k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.12k | return _buffer.build(); | 229 | 1.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 633 | OwnedSlice _finish(int final_size_of_type) { | 194 | 633 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 633 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 633 | int padding_elems = num_elems_after_padding - _count; | 199 | 633 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.3k | _data.push_back(0); | 202 | 12.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 633 | _buffer.resize( | 206 | 633 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 633 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 633 | int64_t bytes = | 210 | 633 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 633 | num_elems_after_padding, final_size_of_type, 0); | 212 | 633 | 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 | 633 | encode_fixed32_le(&_buffer[0], _count); | 222 | 633 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 633 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 633 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 633 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 633 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 633 | return _buffer.build(); | 229 | 633 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 630 | OwnedSlice _finish(int final_size_of_type) { | 194 | 630 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 630 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 630 | int padding_elems = num_elems_after_padding - _count; | 199 | 630 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 51.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 50.7k | _data.push_back(0); | 202 | 50.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 630 | _buffer.resize( | 206 | 630 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 630 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 630 | int64_t bytes = | 210 | 630 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 630 | num_elems_after_padding, final_size_of_type, 0); | 212 | 630 | 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 | 630 | encode_fixed32_le(&_buffer[0], _count); | 222 | 630 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 630 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 630 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 630 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 630 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 630 | return _buffer.build(); | 229 | 630 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 2.23M | int& size_of_element) { |
253 | 2.23M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 2.23M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.23M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.23M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.23M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.23M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 2.23M | switch (size_of_element) { |
271 | 161k | case 1: |
272 | 188k | case 2: |
273 | 192k | case 3: |
274 | 1.49M | case 4: |
275 | 2.12M | case 8: |
276 | 2.13M | case 12: |
277 | 2.23M | case 16: |
278 | 2.23M | case 32: |
279 | 2.23M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.23M | } |
283 | 2.23M | return Status::OK(); |
284 | 2.23M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.11M | : _data(data), |
291 | 1.11M | _options(options), |
292 | 1.11M | _parsed(false), |
293 | 1.11M | _num_elements(0), |
294 | 1.11M | _num_element_after_padding(0), |
295 | 1.11M | _size_of_element(0), |
296 | 1.11M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 80.8k | : _data(data), | 291 | 80.8k | _options(options), | 292 | 80.8k | _parsed(false), | 293 | 80.8k | _num_elements(0), | 294 | 80.8k | _num_element_after_padding(0), | 295 | 80.8k | _size_of_element(0), | 296 | 80.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.3k | : _data(data), | 291 | 13.3k | _options(options), | 292 | 13.3k | _parsed(false), | 293 | 13.3k | _num_elements(0), | 294 | 13.3k | _num_element_after_padding(0), | 295 | 13.3k | _size_of_element(0), | 296 | 13.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 562k | : _data(data), | 291 | 562k | _options(options), | 292 | 562k | _parsed(false), | 293 | 562k | _num_elements(0), | 294 | 562k | _num_element_after_padding(0), | 295 | 562k | _size_of_element(0), | 296 | 562k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 79.9k | : _data(data), | 291 | 79.9k | _options(options), | 292 | 79.9k | _parsed(false), | 293 | 79.9k | _num_elements(0), | 294 | 79.9k | _num_element_after_padding(0), | 295 | 79.9k | _size_of_element(0), | 296 | 79.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 18.3k | : _data(data), | 291 | 18.3k | _options(options), | 292 | 18.3k | _parsed(false), | 293 | 18.3k | _num_elements(0), | 294 | 18.3k | _num_element_after_padding(0), | 295 | 18.3k | _size_of_element(0), | 296 | 18.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_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_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 10.6k | : _data(data), | 291 | 10.6k | _options(options), | 292 | 10.6k | _parsed(false), | 293 | 10.6k | _num_elements(0), | 294 | 10.6k | _num_element_after_padding(0), | 295 | 10.6k | _size_of_element(0), | 296 | 10.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.4k | : _data(data), | 291 | 14.4k | _options(options), | 292 | 14.4k | _parsed(false), | 293 | 14.4k | _num_elements(0), | 294 | 14.4k | _num_element_after_padding(0), | 295 | 14.4k | _size_of_element(0), | 296 | 14.4k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.88k | : _data(data), | 291 | 1.88k | _options(options), | 292 | 1.88k | _parsed(false), | 293 | 1.88k | _num_elements(0), | 294 | 1.88k | _num_element_after_padding(0), | 295 | 1.88k | _size_of_element(0), | 296 | 1.88k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 58.6k | : _data(data), | 291 | 58.6k | _options(options), | 292 | 58.6k | _parsed(false), | 293 | 58.6k | _num_elements(0), | 294 | 58.6k | _num_element_after_padding(0), | 295 | 58.6k | _size_of_element(0), | 296 | 58.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 66.7k | : _data(data), | 291 | 66.7k | _options(options), | 292 | 66.7k | _parsed(false), | 293 | 66.7k | _num_elements(0), | 294 | 66.7k | _num_element_after_padding(0), | 295 | 66.7k | _size_of_element(0), | 296 | 66.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.13k | : _data(data), | 291 | 3.13k | _options(options), | 292 | 3.13k | _parsed(false), | 293 | 3.13k | _num_elements(0), | 294 | 3.13k | _num_element_after_padding(0), | 295 | 3.13k | _size_of_element(0), | 296 | 3.13k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.34k | : _data(data), | 291 | 2.34k | _options(options), | 292 | 2.34k | _parsed(false), | 293 | 2.34k | _num_elements(0), | 294 | 2.34k | _num_element_after_padding(0), | 295 | 2.34k | _size_of_element(0), | 296 | 2.34k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.8k | : _data(data), | 291 | 16.8k | _options(options), | 292 | 16.8k | _parsed(false), | 293 | 16.8k | _num_elements(0), | 294 | 16.8k | _num_element_after_padding(0), | 295 | 16.8k | _size_of_element(0), | 296 | 16.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.37k | : _data(data), | 291 | 1.37k | _options(options), | 292 | 1.37k | _parsed(false), | 293 | 1.37k | _num_elements(0), | 294 | 1.37k | _num_element_after_padding(0), | 295 | 1.37k | _size_of_element(0), | 296 | 1.37k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.3k | : _data(data), | 291 | 15.3k | _options(options), | 292 | 15.3k | _parsed(false), | 293 | 15.3k | _num_elements(0), | 294 | 15.3k | _num_element_after_padding(0), | 295 | 15.3k | _size_of_element(0), | 296 | 15.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 40.5k | : _data(data), | 291 | 40.5k | _options(options), | 292 | 40.5k | _parsed(false), | 293 | 40.5k | _num_elements(0), | 294 | 40.5k | _num_element_after_padding(0), | 295 | 40.5k | _size_of_element(0), | 296 | 40.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.4k | : _data(data), | 291 | 30.4k | _options(options), | 292 | 30.4k | _parsed(false), | 293 | 30.4k | _num_elements(0), | 294 | 30.4k | _num_element_after_padding(0), | 295 | 30.4k | _size_of_element(0), | 296 | 30.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.73k | : _data(data), | 291 | 1.73k | _options(options), | 292 | 1.73k | _parsed(false), | 293 | 1.73k | _num_elements(0), | 294 | 1.73k | _num_element_after_padding(0), | 295 | 1.73k | _size_of_element(0), | 296 | 1.73k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 935 | : _data(data), | 291 | 935 | _options(options), | 292 | 935 | _parsed(false), | 293 | 935 | _num_elements(0), | 294 | 935 | _num_element_after_padding(0), | 295 | 935 | _size_of_element(0), | 296 | 935 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 970 | : _data(data), | 291 | 970 | _options(options), | 292 | 970 | _parsed(false), | 293 | 970 | _num_elements(0), | 294 | 970 | _num_element_after_padding(0), | 295 | 970 | _size_of_element(0), | 296 | 970 | _cur_index(0) {} |
|
297 | | |
298 | 1.11M | Status init() override { |
299 | 1.11M | CHECK(!_parsed); |
300 | 1.11M | size_t unused; |
301 | 1.11M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.11M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.11M | if (_data.size != |
305 | 1.11M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 0 | std::stringstream ss; |
307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 0 | return Status::InternalError(ss.str()); |
311 | 0 | } |
312 | | |
313 | | // Currently, only the UINT32 block encoder supports expanding size: |
314 | 1.11M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.11M | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 1.11M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 1.11M | _parsed = true; |
325 | 1.11M | return Status::OK(); |
326 | 1.11M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 80.7k | Status init() override { | 299 | 80.7k | CHECK(!_parsed); | 300 | 80.7k | size_t unused; | 301 | 80.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 80.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 80.7k | if (_data.size != | 305 | 80.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 | 80.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 80.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 | 80.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 | 80.7k | _parsed = true; | 325 | 80.7k | return Status::OK(); | 326 | 80.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 13.3k | Status init() override { | 299 | 13.3k | CHECK(!_parsed); | 300 | 13.3k | size_t unused; | 301 | 13.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.3k | if (_data.size != | 305 | 13.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 13.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 13.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 13.3k | _parsed = true; | 325 | 13.3k | return Status::OK(); | 326 | 13.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 562k | Status init() override { | 299 | 562k | CHECK(!_parsed); | 300 | 562k | size_t unused; | 301 | 562k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 562k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 562k | if (_data.size != | 305 | 562k | _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 | 562k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 562k | _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 | 562k | 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 | 562k | _parsed = true; | 325 | 562k | return Status::OK(); | 326 | 562k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 79.8k | Status init() override { | 299 | 79.8k | CHECK(!_parsed); | 300 | 79.8k | size_t unused; | 301 | 79.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 79.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 79.8k | if (_data.size != | 305 | 79.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 | 79.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 79.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 | 79.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 | 79.8k | _parsed = true; | 325 | 79.8k | return Status::OK(); | 326 | 79.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 18.3k | Status init() override { | 299 | 18.3k | CHECK(!_parsed); | 300 | 18.3k | size_t unused; | 301 | 18.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 18.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 18.3k | if (_data.size != | 305 | 18.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 18.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 18.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 18.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 18.3k | _parsed = true; | 325 | 18.3k | return Status::OK(); | 326 | 18.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 94.6k | Status init() override { | 299 | 94.6k | CHECK(!_parsed); | 300 | 94.6k | size_t unused; | 301 | 94.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 94.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 94.6k | if (_data.size != | 305 | 94.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 94.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 94.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 94.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 94.6k | _parsed = true; | 325 | 94.6k | return Status::OK(); | 326 | 94.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 10.6k | Status init() override { | 299 | 10.6k | CHECK(!_parsed); | 300 | 10.6k | size_t unused; | 301 | 10.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 10.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 10.6k | if (_data.size != | 305 | 10.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 10.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 10.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 10.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 10.6k | _parsed = true; | 325 | 10.6k | return Status::OK(); | 326 | 10.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 14.3k | Status init() override { | 299 | 14.3k | CHECK(!_parsed); | 300 | 14.3k | size_t unused; | 301 | 14.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.3k | if (_data.size != | 305 | 14.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 14.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 14.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 14.3k | _parsed = true; | 325 | 14.3k | return Status::OK(); | 326 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.88k | Status init() override { | 299 | 1.88k | CHECK(!_parsed); | 300 | 1.88k | size_t unused; | 301 | 1.88k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.88k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.88k | if (_data.size != | 305 | 1.88k | _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.88k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.88k | _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.88k | 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.88k | _parsed = true; | 325 | 1.88k | return Status::OK(); | 326 | 1.88k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 58.6k | Status init() override { | 299 | 58.6k | CHECK(!_parsed); | 300 | 58.6k | size_t unused; | 301 | 58.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 58.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 58.6k | if (_data.size != | 305 | 58.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 58.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 58.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 58.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 58.6k | _parsed = true; | 325 | 58.6k | return Status::OK(); | 326 | 58.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 66.7k | Status init() override { | 299 | 66.7k | CHECK(!_parsed); | 300 | 66.7k | size_t unused; | 301 | 66.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 66.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 66.7k | if (_data.size != | 305 | 66.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 | 66.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 66.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 | 66.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 | 66.7k | _parsed = true; | 325 | 66.7k | return Status::OK(); | 326 | 66.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.13k | Status init() override { | 299 | 3.13k | CHECK(!_parsed); | 300 | 3.13k | size_t unused; | 301 | 3.13k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.13k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.13k | if (_data.size != | 305 | 3.13k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.13k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.13k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.13k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.13k | _parsed = true; | 325 | 3.13k | return Status::OK(); | 326 | 3.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.34k | Status init() override { | 299 | 2.34k | CHECK(!_parsed); | 300 | 2.34k | size_t unused; | 301 | 2.34k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.34k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.34k | if (_data.size != | 305 | 2.34k | _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.34k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.34k | _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.34k | 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.34k | _parsed = true; | 325 | 2.34k | return Status::OK(); | 326 | 2.34k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 16.8k | Status init() override { | 299 | 16.8k | CHECK(!_parsed); | 300 | 16.8k | size_t unused; | 301 | 16.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.8k | if (_data.size != | 305 | 16.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 | 16.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.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 | 16.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 | 16.8k | _parsed = true; | 325 | 16.8k | return Status::OK(); | 326 | 16.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.36k | Status init() override { | 299 | 1.36k | CHECK(!_parsed); | 300 | 1.36k | size_t unused; | 301 | 1.36k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.36k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.36k | if (_data.size != | 305 | 1.36k | _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.36k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.36k | _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.36k | 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.36k | _parsed = true; | 325 | 1.36k | return Status::OK(); | 326 | 1.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.3k | Status init() override { | 299 | 15.3k | CHECK(!_parsed); | 300 | 15.3k | size_t unused; | 301 | 15.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.3k | if (_data.size != | 305 | 15.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.3k | _parsed = true; | 325 | 15.3k | return Status::OK(); | 326 | 15.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 40.5k | Status init() override { | 299 | 40.5k | CHECK(!_parsed); | 300 | 40.5k | size_t unused; | 301 | 40.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 40.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 40.5k | if (_data.size != | 305 | 40.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 | 40.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 40.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 | 40.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 | 40.5k | _parsed = true; | 325 | 40.5k | return Status::OK(); | 326 | 40.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.4k | Status init() override { | 299 | 30.4k | CHECK(!_parsed); | 300 | 30.4k | size_t unused; | 301 | 30.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.4k | if (_data.size != | 305 | 30.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 30.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 30.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 30.4k | _parsed = true; | 325 | 30.4k | return Status::OK(); | 326 | 30.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.73k | Status init() override { | 299 | 1.73k | CHECK(!_parsed); | 300 | 1.73k | size_t unused; | 301 | 1.73k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.73k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.73k | if (_data.size != | 305 | 1.73k | _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.73k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.73k | _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.73k | 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.73k | _parsed = true; | 325 | 1.73k | return Status::OK(); | 326 | 1.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 935 | Status init() override { | 299 | 935 | CHECK(!_parsed); | 300 | 935 | size_t unused; | 301 | 935 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 935 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 935 | if (_data.size != | 305 | 935 | _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 | 935 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 935 | _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 | 935 | 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 | 935 | _parsed = true; | 325 | 935 | return Status::OK(); | 326 | 935 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 972 | Status init() override { | 299 | 972 | CHECK(!_parsed); | 300 | 972 | size_t unused; | 301 | 972 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 972 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 972 | if (_data.size != | 305 | 972 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 972 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 972 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 972 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 972 | _parsed = true; | 325 | 972 | return Status::OK(); | 326 | 972 | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 4.46M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.46M | if (_num_elements == 0) [[unlikely]] { |
337 | 5.85k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 5.85k | } |
342 | | |
343 | 4.46M | DCHECK_LE(pos, _num_elements); |
344 | 4.46M | _cur_index = pos; |
345 | 4.46M | return Status::OK(); |
346 | 4.46M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 291k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 291k | if (_num_elements == 0) [[unlikely]] { | 337 | 440 | 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 | 440 | } | 342 | | | 343 | 291k | DCHECK_LE(pos, _num_elements); | 344 | 291k | _cur_index = pos; | 345 | 291k | return Status::OK(); | 346 | 291k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 215k | Status seek_to_position_in_page(size_t pos) override { | 335 | 215k | DCHECK(_parsed) << "Must call init()"; | 336 | 215k | 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 | 215k | DCHECK_LE(pos, _num_elements); | 344 | 215k | _cur_index = pos; | 345 | 215k | return Status::OK(); | 346 | 215k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.14M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.14M | if (_num_elements == 0) [[unlikely]] { | 337 | 3.26k | 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 | 3.26k | } | 342 | | | 343 | 2.14M | DCHECK_LE(pos, _num_elements); | 344 | 2.14M | _cur_index = pos; | 345 | 2.14M | return Status::OK(); | 346 | 2.14M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 162k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 162k | if (_num_elements == 0) [[unlikely]] { | 337 | 561 | 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 | 561 | } | 342 | | | 343 | 162k | DCHECK_LE(pos, _num_elements); | 344 | 162k | _cur_index = pos; | 345 | 162k | return Status::OK(); | 346 | 162k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 120k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 120k | 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 | 120k | DCHECK_LE(pos, _num_elements); | 344 | 120k | _cur_index = pos; | 345 | 120k | return Status::OK(); | 346 | 120k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 17.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 17.8k | DCHECK_LE(pos, _num_elements); | 344 | 17.8k | _cur_index = pos; | 345 | 17.8k | return Status::OK(); | 346 | 17.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 219k | Status seek_to_position_in_page(size_t pos) override { | 335 | 219k | DCHECK(_parsed) << "Must call init()"; | 336 | 219k | 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 | 219k | DCHECK_LE(pos, _num_elements); | 344 | 219k | _cur_index = pos; | 345 | 219k | return Status::OK(); | 346 | 219k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 195k | Status seek_to_position_in_page(size_t pos) override { | 335 | 195k | DCHECK(_parsed) << "Must call init()"; | 336 | 195k | 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 | 195k | DCHECK_LE(pos, _num_elements); | 344 | 195k | _cur_index = pos; | 345 | 195k | return Status::OK(); | 346 | 195k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 204k | Status seek_to_position_in_page(size_t pos) override { | 335 | 204k | DCHECK(_parsed) << "Must call init()"; | 336 | 204k | 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 | 204k | DCHECK_LE(pos, _num_elements); | 344 | 204k | _cur_index = pos; | 345 | 204k | return Status::OK(); | 346 | 204k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 481k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 481k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 197 | } | 342 | | | 343 | 481k | DCHECK_LE(pos, _num_elements); | 344 | 481k | _cur_index = pos; | 345 | 481k | return Status::OK(); | 346 | 481k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 71.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 71.1k | DCHECK(_parsed) << "Must call init()"; | 336 | 71.1k | if (_num_elements == 0) [[unlikely]] { | 337 | 14 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 14 | } | 342 | | | 343 | 71.1k | DCHECK_LE(pos, _num_elements); | 344 | 71.1k | _cur_index = pos; | 345 | 71.1k | return Status::OK(); | 346 | 71.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 946 | Status seek_to_position_in_page(size_t pos) override { | 335 | 946 | DCHECK(_parsed) << "Must call init()"; | 336 | 946 | if (_num_elements == 0) [[unlikely]] { | 337 | 8 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 8 | } | 342 | | | 343 | 946 | DCHECK_LE(pos, _num_elements); | 344 | 946 | _cur_index = pos; | 345 | 946 | return Status::OK(); | 346 | 946 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 193k | Status seek_to_position_in_page(size_t pos) override { | 335 | 193k | DCHECK(_parsed) << "Must call init()"; | 336 | 193k | 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 | 193k | DCHECK_LE(pos, _num_elements); | 344 | 193k | _cur_index = pos; | 345 | 193k | return Status::OK(); | 346 | 193k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.57k | Status seek_to_position_in_page(size_t pos) override { | 335 | 7.57k | DCHECK(_parsed) << "Must call init()"; | 336 | 7.57k | if (_num_elements == 0) [[unlikely]] { | 337 | 354 | 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 | 354 | } | 342 | | | 343 | 7.57k | DCHECK_LE(pos, _num_elements); | 344 | 7.57k | _cur_index = pos; | 345 | 7.57k | return Status::OK(); | 346 | 7.57k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 28 | Status seek_to_position_in_page(size_t pos) override { | 335 | 28 | DCHECK(_parsed) << "Must call init()"; | 336 | 28 | 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 | 28 | DCHECK_LE(pos, _num_elements); | 344 | 28 | _cur_index = pos; | 345 | 28 | return Status::OK(); | 346 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 868 | Status seek_to_position_in_page(size_t pos) override { | 335 | 868 | DCHECK(_parsed) << "Must call init()"; | 336 | 868 | 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 | 868 | DCHECK_LE(pos, _num_elements); | 344 | 868 | _cur_index = pos; | 345 | 868 | return Status::OK(); | 346 | 868 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.2k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.2k | DCHECK(_parsed) << "Must call init()"; | 336 | 18.2k | if (_num_elements == 0) [[unlikely]] { | 337 | 738 | 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 | 738 | } | 342 | | | 343 | 18.2k | DCHECK_LE(pos, _num_elements); | 344 | 18.2k | _cur_index = pos; | 345 | 18.2k | return Status::OK(); | 346 | 18.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 118k | Status seek_to_position_in_page(size_t pos) override { | 335 | 118k | DCHECK(_parsed) << "Must call init()"; | 336 | 118k | if (_num_elements == 0) [[unlikely]] { | 337 | 241 | 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 | 241 | } | 342 | | | 343 | 118k | DCHECK_LE(pos, _num_elements); | 344 | 118k | _cur_index = pos; | 345 | 118k | return Status::OK(); | 346 | 118k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.93k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.93k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.93k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.93k | DCHECK_LE(pos, _num_elements); | 344 | 1.93k | _cur_index = pos; | 345 | 1.93k | return Status::OK(); | 346 | 1.93k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 25 | Status seek_to_position_in_page(size_t pos) override { | 335 | 25 | DCHECK(_parsed) << "Must call init()"; | 336 | 25 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 25 | DCHECK_LE(pos, _num_elements); | 344 | 25 | _cur_index = pos; | 345 | 25 | return Status::OK(); | 346 | 25 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 30 | Status seek_to_position_in_page(size_t pos) override { | 335 | 30 | DCHECK(_parsed) << "Must call init()"; | 336 | 30 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 30 | DCHECK_LE(pos, _num_elements); | 344 | 30 | _cur_index = pos; | 345 | 30 | return Status::OK(); | 346 | 30 | } |
|
347 | | |
348 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | |
|
351 | 0 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 0 | size_t left = 0; |
356 | 0 | size_t right = _num_elements; |
357 | |
|
358 | 0 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 0 | while (left < right) { |
364 | 0 | size_t mid = left + (right - left) / 2; |
365 | 0 | mid_value = get_data(mid); |
366 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 0 | left = mid + 1; |
368 | 0 | } else { |
369 | 0 | right = mid; |
370 | 0 | } |
371 | 0 | } |
372 | 0 | if (left >= _num_elements) { |
373 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 0 | } |
375 | 0 | void* find_value = get_data(left); |
376 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 0 | *exact_match = true; |
378 | 0 | } else { |
379 | 0 | *exact_match = false; |
380 | 0 | } |
381 | |
|
382 | 0 | _cur_index = left; |
383 | 0 | return Status::OK(); |
384 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE22seek_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 | 2.00M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 2.00M | DCHECK(_parsed); |
389 | 2.01M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 2.00M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 2.00M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 2.00M | *n = max_fetch; |
398 | 2.00M | if constexpr (forward_index) { |
399 | 1.77M | _cur_index += max_fetch; |
400 | 1.77M | } |
401 | | |
402 | 2.00M | return Status::OK(); |
403 | 2.00M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 192k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 192k | DCHECK(_parsed); | 389 | 192k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 192k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 192k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 192k | *n = max_fetch; | 398 | 192k | if constexpr (forward_index) { | 399 | 192k | _cur_index += max_fetch; | 400 | 192k | } | 401 | | | 402 | 192k | return Status::OK(); | 403 | 192k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 15.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.1k | DCHECK(_parsed); | 389 | 15.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 15.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.1k | *n = max_fetch; | 398 | 15.1k | if constexpr (forward_index) { | 399 | 15.1k | _cur_index += max_fetch; | 400 | 15.1k | } | 401 | | | 402 | 15.1k | return Status::OK(); | 403 | 15.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 768k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 768k | DCHECK(_parsed); | 389 | 768k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 768k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 768k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 768k | *n = max_fetch; | 398 | 768k | if constexpr (forward_index) { | 399 | 768k | _cur_index += max_fetch; | 400 | 768k | } | 401 | | | 402 | 768k | return Status::OK(); | 403 | 768k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 92.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 92.2k | DCHECK(_parsed); | 389 | 92.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 92.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 92.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 92.2k | *n = max_fetch; | 398 | 92.2k | if constexpr (forward_index) { | 399 | 92.2k | _cur_index += max_fetch; | 400 | 92.2k | } | 401 | | | 402 | 92.2k | return Status::OK(); | 403 | 92.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.4k | DCHECK(_parsed); | 389 | 16.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.4k | *n = max_fetch; | 398 | 16.4k | if constexpr (forward_index) { | 399 | 16.4k | _cur_index += max_fetch; | 400 | 16.4k | } | 401 | | | 402 | 16.4k | return Status::OK(); | 403 | 16.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 169k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 169k | DCHECK(_parsed); | 389 | 169k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 169k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 169k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 169k | *n = max_fetch; | 398 | 169k | if constexpr (forward_index) { | 399 | 169k | _cur_index += max_fetch; | 400 | 169k | } | 401 | | | 402 | 169k | return Status::OK(); | 403 | 169k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 234k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 234k | DCHECK(_parsed); | 389 | 234k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 234k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 234k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 234k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 234k | return Status::OK(); | 403 | 234k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.64k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.64k | DCHECK(_parsed); | 389 | 7.65k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.64k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.64k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.64k | *n = max_fetch; | 398 | 7.64k | if constexpr (forward_index) { | 399 | 7.64k | _cur_index += max_fetch; | 400 | 7.64k | } | 401 | | | 402 | 7.64k | return Status::OK(); | 403 | 7.64k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 11.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.5k | DCHECK(_parsed); | 389 | 11.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.5k | *n = max_fetch; | 398 | 11.5k | if constexpr (forward_index) { | 399 | 11.5k | _cur_index += max_fetch; | 400 | 11.5k | } | 401 | | | 402 | 11.5k | return Status::OK(); | 403 | 11.5k | } |
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 | 4.11k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 4.11k | DCHECK(_parsed); | 389 | 4.11k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 4.11k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 4.11k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 4.11k | *n = max_fetch; | 398 | 4.11k | if constexpr (forward_index) { | 399 | 4.11k | _cur_index += max_fetch; | 400 | 4.11k | } | 401 | | | 402 | 4.11k | return Status::OK(); | 403 | 4.11k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 354k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 354k | DCHECK(_parsed); | 389 | 354k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 354k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 354k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 354k | *n = max_fetch; | 398 | 354k | if constexpr (forward_index) { | 399 | 354k | _cur_index += max_fetch; | 400 | 354k | } | 401 | | | 402 | 354k | return Status::OK(); | 403 | 354k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 66.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 66.4k | DCHECK(_parsed); | 389 | 66.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 66.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 66.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 66.4k | *n = max_fetch; | 398 | 66.4k | if constexpr (forward_index) { | 399 | 66.4k | _cur_index += max_fetch; | 400 | 66.4k | } | 401 | | | 402 | 66.4k | return Status::OK(); | 403 | 66.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.14k | DCHECK(_parsed); | 389 | 2.14k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.14k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.14k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.14k | *n = max_fetch; | 398 | 2.14k | if constexpr (forward_index) { | 399 | 2.14k | _cur_index += max_fetch; | 400 | 2.14k | } | 401 | | | 402 | 2.14k | return Status::OK(); | 403 | 2.14k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.22k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.22k | DCHECK(_parsed); | 389 | 1.22k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.22k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.22k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.22k | *n = max_fetch; | 398 | 1.22k | if constexpr (forward_index) { | 399 | 1.22k | _cur_index += max_fetch; | 400 | 1.22k | } | 401 | | | 402 | 1.22k | return Status::OK(); | 403 | 1.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.69k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.69k | DCHECK(_parsed); | 389 | 8.69k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.69k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.69k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.69k | *n = max_fetch; | 398 | 8.69k | if constexpr (forward_index) { | 399 | 8.69k | _cur_index += max_fetch; | 400 | 8.69k | } | 401 | | | 402 | 8.69k | return Status::OK(); | 403 | 8.69k | } |
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.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.25k | DCHECK(_parsed); | 389 | 1.25k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.25k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.25k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.25k | *n = max_fetch; | 398 | 1.25k | if constexpr (forward_index) { | 399 | 1.25k | _cur_index += max_fetch; | 400 | 1.25k | } | 401 | | | 402 | 1.25k | return Status::OK(); | 403 | 1.25k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.17k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.17k | DCHECK(_parsed); | 389 | 9.17k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.17k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.17k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.17k | *n = max_fetch; | 398 | 9.17k | if constexpr (forward_index) { | 399 | 9.17k | _cur_index += max_fetch; | 400 | 9.17k | } | 401 | | | 402 | 9.17k | return Status::OK(); | 403 | 9.17k | } |
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.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 28.9k | DCHECK(_parsed); | 389 | 28.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 28.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 28.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 28.9k | *n = max_fetch; | 398 | 28.9k | if constexpr (forward_index) { | 399 | 28.9k | _cur_index += max_fetch; | 400 | 28.9k | } | 401 | | | 402 | 28.9k | return Status::OK(); | 403 | 28.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 21.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 21.7k | DCHECK(_parsed); | 389 | 21.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 21.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 21.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 21.7k | *n = max_fetch; | 398 | 21.7k | if constexpr (forward_index) { | 399 | 21.7k | _cur_index += max_fetch; | 400 | 21.7k | } | 401 | | | 402 | 21.7k | return Status::OK(); | 403 | 21.7k | } |
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.13k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.13k | DCHECK(_parsed); | 389 | 3.13k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.13k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.13k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.13k | *n = max_fetch; | 398 | 3.13k | if constexpr (forward_index) { | 399 | 3.13k | _cur_index += max_fetch; | 400 | 3.13k | } | 401 | | | 402 | 3.13k | return Status::OK(); | 403 | 3.13k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 644 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 644 | DCHECK(_parsed); | 389 | 644 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 644 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 644 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 644 | *n = max_fetch; | 398 | 644 | if constexpr (forward_index) { | 399 | 644 | _cur_index += max_fetch; | 400 | 644 | } | 401 | | | 402 | 644 | return Status::OK(); | 403 | 644 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 664 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 664 | DCHECK(_parsed); | 389 | 665 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 664 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 664 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 664 | *n = max_fetch; | 398 | 664 | if constexpr (forward_index) { | 399 | 664 | _cur_index += max_fetch; | 400 | 664 | } | 401 | | | 402 | 664 | return Status::OK(); | 403 | 664 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.77M | 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 | 192k | 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 | 15.1k | 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 | 766k | 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 | 92.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 16.4k | 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 | 169k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.65k | 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 | 11.5k | 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 | 4.11k | 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 | 354k | 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 | 66.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 2.14k | 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.22k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 8.69k | 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.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 9.17k | 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.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 21.7k | 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.13k | 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 | 644 | 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 | 666 | 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 | 354k | MutableColumnPtr& dst) override { |
409 | 354k | DCHECK(_parsed); |
410 | 354k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 354k | auto total = *n; |
416 | 354k | auto read_count = 0; |
417 | 354k | _buffer.resize(total); |
418 | 128M | for (size_t i = 0; i < total; ++i) { |
419 | 128M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 128M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 15.7k | break; |
422 | 15.7k | } |
423 | | |
424 | 128M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 128M | } |
426 | | |
427 | 354k | if (LIKELY(read_count > 0)) { |
428 | 354k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 354k | } |
430 | | |
431 | 354k | *n = read_count; |
432 | 354k | return Status::OK(); |
433 | 354k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 23.7k | MutableColumnPtr& dst) override { | 409 | 23.7k | DCHECK(_parsed); | 410 | 23.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 23.7k | auto total = *n; | 416 | 23.7k | auto read_count = 0; | 417 | 23.7k | _buffer.resize(total); | 418 | 1.62M | for (size_t i = 0; i < total; ++i) { | 419 | 1.60M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.60M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.60M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.60M | } | 426 | | | 427 | 23.7k | if (LIKELY(read_count > 0)) { | 428 | 23.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 23.7k | } | 430 | | | 431 | 23.7k | *n = read_count; | 432 | 23.7k | return Status::OK(); | 433 | 23.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.73k | MutableColumnPtr& dst) override { | 409 | 5.73k | DCHECK(_parsed); | 410 | 5.73k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.73k | auto total = *n; | 416 | 5.73k | auto read_count = 0; | 417 | 5.73k | _buffer.resize(total); | 418 | 668k | for (size_t i = 0; i < total; ++i) { | 419 | 662k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 662k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 13 | break; | 422 | 13 | } | 423 | | | 424 | 662k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 662k | } | 426 | | | 427 | 5.73k | if (LIKELY(read_count > 0)) { | 428 | 5.73k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.73k | } | 430 | | | 431 | 5.73k | *n = read_count; | 432 | 5.73k | return Status::OK(); | 433 | 5.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 94.6k | MutableColumnPtr& dst) override { | 409 | 94.6k | DCHECK(_parsed); | 410 | 94.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 94.6k | auto total = *n; | 416 | 94.6k | auto read_count = 0; | 417 | 94.6k | _buffer.resize(total); | 418 | 41.6M | for (size_t i = 0; i < total; ++i) { | 419 | 41.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 41.5M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.11k | break; | 422 | 2.11k | } | 423 | | | 424 | 41.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 41.5M | } | 426 | | | 427 | 94.7k | if (LIKELY(read_count > 0)) { | 428 | 94.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 94.7k | } | 430 | | | 431 | 94.6k | *n = read_count; | 432 | 94.6k | return Status::OK(); | 433 | 94.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 42.3k | MutableColumnPtr& dst) override { | 409 | 42.3k | DCHECK(_parsed); | 410 | 42.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 42.3k | auto total = *n; | 416 | 42.3k | auto read_count = 0; | 417 | 42.3k | _buffer.resize(total); | 418 | 25.1M | for (size_t i = 0; i < total; ++i) { | 419 | 25.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 25.1M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.99k | break; | 422 | 1.99k | } | 423 | | | 424 | 25.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 25.1M | } | 426 | | | 427 | 42.3k | if (LIKELY(read_count > 0)) { | 428 | 42.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 42.3k | } | 430 | | | 431 | 42.3k | *n = read_count; | 432 | 42.3k | return Status::OK(); | 433 | 42.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.34k | MutableColumnPtr& dst) override { | 409 | 8.34k | DCHECK(_parsed); | 410 | 8.34k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.34k | auto total = *n; | 416 | 8.34k | auto read_count = 0; | 417 | 8.34k | _buffer.resize(total); | 418 | 1.02M | for (size_t i = 0; i < total; ++i) { | 419 | 1.02M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.02M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 602 | break; | 422 | 602 | } | 423 | | | 424 | 1.01M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.01M | } | 426 | | | 427 | 8.34k | if (LIKELY(read_count > 0)) { | 428 | 8.34k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.34k | } | 430 | | | 431 | 8.34k | *n = read_count; | 432 | 8.34k | return Status::OK(); | 433 | 8.34k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 40.2k | MutableColumnPtr& dst) override { | 409 | 40.2k | DCHECK(_parsed); | 410 | 40.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 40.2k | auto total = *n; | 416 | 40.2k | auto read_count = 0; | 417 | 40.2k | _buffer.resize(total); | 418 | 6.79M | for (size_t i = 0; i < total; ++i) { | 419 | 6.75M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.75M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.61k | break; | 422 | 2.61k | } | 423 | | | 424 | 6.75M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.75M | } | 426 | | | 427 | 40.2k | if (LIKELY(read_count > 0)) { | 428 | 40.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 40.2k | } | 430 | | | 431 | 40.2k | *n = read_count; | 432 | 40.2k | return Status::OK(); | 433 | 40.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.51k | MutableColumnPtr& dst) override { | 409 | 5.51k | DCHECK(_parsed); | 410 | 5.51k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.51k | auto total = *n; | 416 | 5.51k | auto read_count = 0; | 417 | 5.51k | _buffer.resize(total); | 418 | 1.21M | for (size_t i = 0; i < total; ++i) { | 419 | 1.20M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.20M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 30 | break; | 422 | 30 | } | 423 | | | 424 | 1.20M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.20M | } | 426 | | | 427 | 5.51k | if (LIKELY(read_count > 0)) { | 428 | 5.51k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.51k | } | 430 | | | 431 | 5.51k | *n = read_count; | 432 | 5.51k | return Status::OK(); | 433 | 5.51k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.46k | MutableColumnPtr& dst) override { | 409 | 7.46k | DCHECK(_parsed); | 410 | 7.46k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.46k | auto total = *n; | 416 | 7.46k | auto read_count = 0; | 417 | 7.46k | _buffer.resize(total); | 418 | 1.63M | for (size_t i = 0; i < total; ++i) { | 419 | 1.62M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.62M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 417 | break; | 422 | 417 | } | 423 | | | 424 | 1.62M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.62M | } | 426 | | | 427 | 7.46k | if (LIKELY(read_count > 0)) { | 428 | 7.45k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.45k | } | 430 | | | 431 | 7.46k | *n = read_count; | 432 | 7.46k | return Status::OK(); | 433 | 7.46k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.39k | MutableColumnPtr& dst) override { | 409 | 1.39k | DCHECK(_parsed); | 410 | 1.39k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.39k | auto total = *n; | 416 | 1.39k | auto read_count = 0; | 417 | 1.39k | _buffer.resize(total); | 418 | 498k | for (size_t i = 0; i < total; ++i) { | 419 | 497k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 497k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 15 | break; | 422 | 15 | } | 423 | | | 424 | 497k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 497k | } | 426 | | | 427 | 1.39k | if (LIKELY(read_count > 0)) { | 428 | 1.39k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.39k | } | 430 | | | 431 | 1.39k | *n = read_count; | 432 | 1.39k | return Status::OK(); | 433 | 1.39k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.0k | MutableColumnPtr& dst) override { | 409 | 29.0k | DCHECK(_parsed); | 410 | 29.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.0k | auto total = *n; | 416 | 29.0k | auto read_count = 0; | 417 | 29.0k | _buffer.resize(total); | 418 | 7.67M | for (size_t i = 0; i < total; ++i) { | 419 | 7.64M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 7.64M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 787 | break; | 422 | 787 | } | 423 | | | 424 | 7.64M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 7.64M | } | 426 | | | 427 | 29.0k | if (LIKELY(read_count > 0)) { | 428 | 29.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.0k | } | 430 | | | 431 | 29.0k | *n = read_count; | 432 | 29.0k | return Status::OK(); | 433 | 29.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.0k | MutableColumnPtr& dst) override { | 409 | 32.0k | DCHECK(_parsed); | 410 | 32.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.0k | auto total = *n; | 416 | 32.0k | auto read_count = 0; | 417 | 32.0k | _buffer.resize(total); | 418 | 9.74M | for (size_t i = 0; i < total; ++i) { | 419 | 9.71M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.71M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 216 | break; | 422 | 216 | } | 423 | | | 424 | 9.71M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.71M | } | 426 | | | 427 | 32.1k | if (LIKELY(read_count > 0)) { | 428 | 32.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.1k | } | 430 | | | 431 | 32.0k | *n = read_count; | 432 | 32.0k | return Status::OK(); | 433 | 32.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.17k | MutableColumnPtr& dst) override { | 409 | 1.17k | DCHECK(_parsed); | 410 | 1.17k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.17k | auto total = *n; | 416 | 1.17k | auto read_count = 0; | 417 | 1.17k | _buffer.resize(total); | 418 | 4.00k | for (size_t i = 0; i < total; ++i) { | 419 | 2.83k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.83k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.83k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.83k | } | 426 | | | 427 | 1.17k | if (LIKELY(read_count > 0)) { | 428 | 1.17k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.17k | } | 430 | | | 431 | 1.17k | *n = read_count; | 432 | 1.17k | return Status::OK(); | 433 | 1.17k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.77k | MutableColumnPtr& dst) override { | 409 | 1.77k | DCHECK(_parsed); | 410 | 1.77k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.77k | auto total = *n; | 416 | 1.77k | auto read_count = 0; | 417 | 1.77k | _buffer.resize(total); | 418 | 503k | for (size_t i = 0; i < total; ++i) { | 419 | 501k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 501k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 244 | break; | 422 | 244 | } | 423 | | | 424 | 501k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 501k | } | 426 | | | 427 | 1.77k | if (LIKELY(read_count > 0)) { | 428 | 1.77k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.77k | } | 430 | | | 431 | 1.77k | *n = read_count; | 432 | 1.77k | return Status::OK(); | 433 | 1.77k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.1k | MutableColumnPtr& dst) override { | 409 | 13.1k | DCHECK(_parsed); | 410 | 13.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.1k | auto total = *n; | 416 | 13.1k | auto read_count = 0; | 417 | 13.1k | _buffer.resize(total); | 418 | 27.8k | 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 | 13.1k | if (LIKELY(read_count > 0)) { | 428 | 13.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.1k | } | 430 | | | 431 | 13.1k | *n = read_count; | 432 | 13.1k | return Status::OK(); | 433 | 13.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 134 | MutableColumnPtr& dst) override { | 409 | 134 | DCHECK(_parsed); | 410 | 134 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 134 | auto total = *n; | 416 | 134 | auto read_count = 0; | 417 | 134 | _buffer.resize(total); | 418 | 273 | for (size_t i = 0; i < total; ++i) { | 419 | 139 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 139 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 139 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 139 | } | 426 | | | 427 | 134 | if (LIKELY(read_count > 0)) { | 428 | 134 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 134 | } | 430 | | | 431 | 134 | *n = read_count; | 432 | 134 | return Status::OK(); | 433 | 134 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.52k | MutableColumnPtr& dst) override { | 409 | 4.52k | DCHECK(_parsed); | 410 | 4.52k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.52k | auto total = *n; | 416 | 4.52k | auto read_count = 0; | 417 | 4.52k | _buffer.resize(total); | 418 | 18.8k | for (size_t i = 0; i < total; ++i) { | 419 | 14.2k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.2k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.2k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.2k | } | 426 | | | 427 | 4.52k | if (LIKELY(read_count > 0)) { | 428 | 4.52k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.52k | } | 430 | | | 431 | 4.52k | *n = read_count; | 432 | 4.52k | return Status::OK(); | 433 | 4.52k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.7k | MutableColumnPtr& dst) override { | 409 | 27.7k | DCHECK(_parsed); | 410 | 27.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.7k | auto total = *n; | 416 | 27.7k | auto read_count = 0; | 417 | 27.7k | _buffer.resize(total); | 418 | 21.6M | for (size_t i = 0; i < total; ++i) { | 419 | 21.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 21.6M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.91k | break; | 422 | 5.91k | } | 423 | | | 424 | 21.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 21.6M | } | 426 | | | 427 | 27.7k | if (LIKELY(read_count > 0)) { | 428 | 27.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.7k | } | 430 | | | 431 | 27.7k | *n = read_count; | 432 | 27.7k | return Status::OK(); | 433 | 27.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.5k | MutableColumnPtr& dst) override { | 409 | 13.5k | DCHECK(_parsed); | 410 | 13.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.5k | auto total = *n; | 416 | 13.5k | auto read_count = 0; | 417 | 13.5k | _buffer.resize(total); | 418 | 8.90M | for (size_t i = 0; i < total; ++i) { | 419 | 8.88M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.88M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 770 | break; | 422 | 770 | } | 423 | | | 424 | 8.88M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.88M | } | 426 | | | 427 | 13.5k | if (LIKELY(read_count > 0)) { | 428 | 13.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.5k | } | 430 | | | 431 | 13.5k | *n = read_count; | 432 | 13.5k | return Status::OK(); | 433 | 13.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 962 | MutableColumnPtr& dst) override { | 409 | 962 | DCHECK(_parsed); | 410 | 962 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 962 | auto total = *n; | 416 | 962 | auto read_count = 0; | 417 | 962 | _buffer.resize(total); | 418 | 2.77k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 962 | if (LIKELY(read_count > 0)) { | 428 | 962 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 962 | } | 430 | | | 431 | 962 | *n = read_count; | 432 | 962 | return Status::OK(); | 433 | 962 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 286 | MutableColumnPtr& dst) override { | 409 | 286 | DCHECK(_parsed); | 410 | 286 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 286 | auto total = *n; | 416 | 286 | auto read_count = 0; | 417 | 286 | _buffer.resize(total); | 418 | 816 | for (size_t i = 0; i < total; ++i) { | 419 | 530 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 530 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 530 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 530 | } | 426 | | | 427 | 286 | if (LIKELY(read_count > 0)) { | 428 | 286 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 286 | } | 430 | | | 431 | 286 | *n = read_count; | 432 | 286 | return Status::OK(); | 433 | 286 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 319 | MutableColumnPtr& dst) override { | 409 | 319 | DCHECK(_parsed); | 410 | 319 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 319 | auto total = *n; | 416 | 319 | auto read_count = 0; | 417 | 319 | _buffer.resize(total); | 418 | 1.15k | for (size_t i = 0; i < total; ++i) { | 419 | 834 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 834 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 834 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 834 | } | 426 | | | 427 | 319 | if (LIKELY(read_count > 0)) { | 428 | 319 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 319 | } | 430 | | | 431 | 319 | *n = read_count; | 432 | 319 | return Status::OK(); | 433 | 319 | } |
|
434 | | |
435 | 234k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 234k | return next_batch<false>(n, dst); |
437 | 234k | } 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_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 234k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 234k | return next_batch<false>(n, dst); | 437 | 234k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
438 | | |
439 | 4 | size_t count() const override { return _num_elements; }Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv 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.80M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 212k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 210k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 959k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 121k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 113k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 217k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 193k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 200k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 219k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 43.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 271 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 192k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.14k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 6 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.52k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 1.71k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 113k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 40 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 46 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 131M | char* get_data(size_t index) const { |
444 | 131M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 131M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.79M | char* get_data(size_t index) const { | 444 | 1.79M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.79M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 677k | char* get_data(size_t index) const { | 444 | 677k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 677k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 43.3M | char* get_data(size_t index) const { | 444 | 43.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 43.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 25.2M | char* get_data(size_t index) const { | 444 | 25.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 25.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.03M | char* get_data(size_t index) const { | 444 | 1.03M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.03M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 7.15M | char* get_data(size_t index) const { | 444 | 7.15M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.15M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.21M | char* get_data(size_t index) const { | 444 | 1.21M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.21M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.64M | char* get_data(size_t index) const { | 444 | 1.64M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.64M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 501k | char* get_data(size_t index) const { | 444 | 501k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 501k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 7.99M | char* get_data(size_t index) const { | 444 | 7.99M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.99M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.78M | char* get_data(size_t index) const { | 444 | 9.78M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.78M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_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_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 502k | char* get_data(size_t index) const { | 444 | 502k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 502k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 23.3k | char* get_data(size_t index) const { | 444 | 23.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.39k | char* get_data(size_t index) const { | 444 | 1.39k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.39k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 23.4k | char* get_data(size_t index) const { | 444 | 23.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 21.6M | char* get_data(size_t index) const { | 444 | 21.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.90M | char* get_data(size_t index) const { | 444 | 8.90M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.90M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.95k | char* get_data(size_t index) const { | 444 | 4.95k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.95k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.17k | char* get_data(size_t index) const { | 444 | 1.17k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.17k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.50k | char* get_data(size_t index) const { | 444 | 1.50k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.50k | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |