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 | 783k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 38.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 5.63k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 350k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 173k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 8.88k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 64.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 3.29k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 4.12k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 95 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 337 | 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.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 337 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 433 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.65k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 336 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.71k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 17.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.21k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 713 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 712 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 95 | 619 | Status init() override { return reset(); } |
|
96 | | |
97 | 148M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 40.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 5.93k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 148M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 252k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 9.48k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 64.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 | 3.51k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 14.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 97 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 427 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 46.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 44.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 338 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 554 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.67k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 306 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.24k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 26.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 18.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.47k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 675 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 698 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 97 | 26.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.51M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.51M | return add_internal<false>(vals, count); |
101 | 1.51M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 40.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 40.9k | return add_internal<false>(vals, count); | 101 | 40.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 5.93k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.93k | return add_internal<false>(vals, count); | 101 | 5.93k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 946k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 946k | return add_internal<false>(vals, count); | 101 | 946k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 252k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 252k | return add_internal<false>(vals, count); | 101 | 252k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 9.48k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 9.48k | return add_internal<false>(vals, count); | 101 | 9.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 64.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 64.4k | return add_internal<false>(vals, count); | 101 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 3.51k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 3.51k | return add_internal<false>(vals, count); | 101 | 3.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 14.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 14.2k | return add_internal<false>(vals, count); | 101 | 14.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 99 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 194 | return add_internal<false>(vals, count); | 101 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 427 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 427 | return add_internal<false>(vals, count); | 101 | 427 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 46.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 46.0k | return add_internal<false>(vals, count); | 101 | 46.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 44.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.4k | return add_internal<false>(vals, count); | 101 | 44.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 338 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 338 | return add_internal<false>(vals, count); | 101 | 338 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 554 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 554 | return add_internal<false>(vals, count); | 101 | 554 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.67k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.67k | return add_internal<false>(vals, count); | 101 | 7.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 307 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 307 | return add_internal<false>(vals, count); | 101 | 307 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.24k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.24k | return add_internal<false>(vals, count); | 101 | 5.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 26.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.7k | return add_internal<false>(vals, count); | 101 | 26.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 18.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 18.0k | return add_internal<false>(vals, count); | 101 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.47k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.47k | return add_internal<false>(vals, count); | 101 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 675 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 675 | return add_internal<false>(vals, count); | 101 | 675 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 698 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 698 | return add_internal<false>(vals, count); | 101 | 698 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 99 | 26.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.6k | return add_internal<false>(vals, count); | 101 | 26.6k | } |
|
102 | | |
103 | 148M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 148M | return add_internal<true>(vals, count); |
105 | 148M | } |
106 | | |
107 | | template <bool single> |
108 | 147M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 147M | DCHECK(!_finished); |
110 | 147M | 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 | 147M | uint32_t to_add = cast_set<UInt32>( |
126 | 147M | 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 | 147M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 147M | 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 | 147M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 150M | _count += to_add; |
134 | 150M | _remain_element_capacity -= to_add; |
135 | 150M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 150M | *num_written = to_add; |
138 | 150M | 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 | 148M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 148M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 148M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 148M | 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 | 148M | } |
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 | 150M | return Status::OK(); |
159 | 147M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 40.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 40.9k | DCHECK(!_finished); | 110 | 40.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 | 40.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 40.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 | 40.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 40.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 | 40.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 40.9k | _count += to_add; | 134 | 40.9k | _remain_element_capacity -= to_add; | 135 | 40.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 40.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 | 40.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 40.9k | return Status::OK(); | 159 | 40.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.93k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.93k | DCHECK(!_finished); | 110 | 5.93k | 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.93k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.93k | 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.93k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.93k | 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.93k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.93k | _count += to_add; | 134 | 5.93k | _remain_element_capacity -= to_add; | 135 | 5.93k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.93k | *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.93k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.93k | return Status::OK(); | 159 | 5.93k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 946k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 946k | DCHECK(!_finished); | 110 | 946k | 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 | 946k | uint32_t to_add = cast_set<UInt32>( | 126 | 946k | 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 | 946k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 946k | 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 | 946k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 946k | _count += to_add; | 134 | 946k | _remain_element_capacity -= to_add; | 135 | 946k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 946k | *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 | 946k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 946k | return Status::OK(); | 159 | 946k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 252k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 252k | DCHECK(!_finished); | 110 | 252k | 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 | 252k | uint32_t to_add = cast_set<UInt32>( | 126 | 252k | 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 | 252k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 252k | 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 | 252k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 252k | _count += to_add; | 134 | 252k | _remain_element_capacity -= to_add; | 135 | 252k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 252k | *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 | 252k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 252k | return Status::OK(); | 159 | 252k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 9.48k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 9.48k | DCHECK(!_finished); | 110 | 9.48k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 9.48k | uint32_t to_add = cast_set<UInt32>( | 126 | 9.48k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 9.48k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 9.48k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 9.48k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 9.48k | _count += to_add; | 134 | 9.48k | _remain_element_capacity -= to_add; | 135 | 9.48k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 9.48k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 9.48k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 9.48k | return Status::OK(); | 159 | 9.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 64.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 64.4k | DCHECK(!_finished); | 110 | 64.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 | 64.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 64.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 | 64.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 64.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 | 64.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 64.4k | _count += to_add; | 134 | 64.4k | _remain_element_capacity -= to_add; | 135 | 64.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 64.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 | 64.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 64.4k | return Status::OK(); | 159 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 3.51k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 3.51k | DCHECK(!_finished); | 110 | 3.51k | 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 | 3.51k | uint32_t to_add = cast_set<UInt32>( | 126 | 3.51k | 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 | 3.51k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 3.51k | 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 | 3.51k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 3.51k | _count += to_add; | 134 | 3.51k | _remain_element_capacity -= to_add; | 135 | 3.51k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 3.51k | *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 | 3.51k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 3.51k | return Status::OK(); | 159 | 3.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 14.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 14.3k | DCHECK(!_finished); | 110 | 14.3k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 14.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 14.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 14.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 14.3k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 14.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 14.4k | _count += to_add; | 134 | 14.4k | _remain_element_capacity -= to_add; | 135 | 14.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 14.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 | 14.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 14.4k | return Status::OK(); | 159 | 14.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 194 | DCHECK(!_finished); | 110 | 194 | 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 | 194 | uint32_t to_add = cast_set<UInt32>( | 126 | 194 | 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 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 194 | 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 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 194 | _count += to_add; | 134 | 194 | _remain_element_capacity -= to_add; | 135 | 194 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 194 | *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 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 194 | return Status::OK(); | 159 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 427 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 427 | DCHECK(!_finished); | 110 | 427 | 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 | 427 | uint32_t to_add = cast_set<UInt32>( | 126 | 427 | 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 | 427 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 427 | 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 | 427 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 427 | _count += to_add; | 134 | 427 | _remain_element_capacity -= to_add; | 135 | 427 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 427 | *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 | 427 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 427 | return Status::OK(); | 159 | 427 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 46.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 46.0k | DCHECK(!_finished); | 110 | 46.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 | 46.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 46.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 | 46.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 46.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 | 46.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 46.0k | _count += to_add; | 134 | 46.0k | _remain_element_capacity -= to_add; | 135 | 46.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 46.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 | 46.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 46.0k | return Status::OK(); | 159 | 46.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.4k | DCHECK(!_finished); | 110 | 44.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 | 44.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.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 | 44.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.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 | 44.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.4k | _count += to_add; | 134 | 44.4k | _remain_element_capacity -= to_add; | 135 | 44.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.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 | 44.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.4k | return Status::OK(); | 159 | 44.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 338 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 338 | DCHECK(!_finished); | 110 | 338 | 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 | 338 | uint32_t to_add = cast_set<UInt32>( | 126 | 338 | 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 | 338 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 338 | 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 | 338 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 338 | _count += to_add; | 134 | 338 | _remain_element_capacity -= to_add; | 135 | 338 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 338 | *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 | 338 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 338 | return Status::OK(); | 159 | 338 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 554 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 554 | DCHECK(!_finished); | 110 | 554 | 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 | 554 | uint32_t to_add = cast_set<UInt32>( | 126 | 554 | 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 | 554 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 554 | 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 | 554 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 554 | _count += to_add; | 134 | 554 | _remain_element_capacity -= to_add; | 135 | 554 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 554 | *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 | 554 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 554 | return Status::OK(); | 159 | 554 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.67k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.67k | DCHECK(!_finished); | 110 | 7.67k | 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.67k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.67k | 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.67k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.67k | 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.67k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.67k | _count += to_add; | 134 | 7.67k | _remain_element_capacity -= to_add; | 135 | 7.67k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.67k | *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.67k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.67k | return Status::OK(); | 159 | 7.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 307 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 307 | DCHECK(!_finished); | 110 | 307 | 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 | 307 | uint32_t to_add = cast_set<UInt32>( | 126 | 307 | 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 | 307 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 307 | 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 | 307 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 307 | _count += to_add; | 134 | 307 | _remain_element_capacity -= to_add; | 135 | 307 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 307 | *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 | 307 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 307 | return Status::OK(); | 159 | 307 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.24k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.24k | DCHECK(!_finished); | 110 | 5.24k | 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.24k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.24k | 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.24k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.24k | 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.24k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.24k | _count += to_add; | 134 | 5.24k | _remain_element_capacity -= to_add; | 135 | 5.24k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.24k | *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.24k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.24k | return Status::OK(); | 159 | 5.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.7k | DCHECK(!_finished); | 110 | 26.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 | 26.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.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 | 26.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.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 | 26.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.7k | _count += to_add; | 134 | 26.7k | _remain_element_capacity -= to_add; | 135 | 26.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.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 | 26.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.7k | return Status::OK(); | 159 | 26.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 18.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 18.0k | DCHECK(!_finished); | 110 | 18.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 | 18.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 18.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 | 18.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 18.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 | 18.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 18.0k | _count += to_add; | 134 | 18.0k | _remain_element_capacity -= to_add; | 135 | 18.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 18.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 | 18.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 18.0k | return Status::OK(); | 159 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.47k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.47k | DCHECK(!_finished); | 110 | 1.47k | 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.47k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.47k | 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.47k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.47k | 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.47k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.47k | _count += to_add; | 134 | 1.47k | _remain_element_capacity -= to_add; | 135 | 1.47k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.47k | *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.47k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.47k | return Status::OK(); | 159 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 675 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 675 | DCHECK(!_finished); | 110 | 675 | 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 | 675 | uint32_t to_add = cast_set<UInt32>( | 126 | 675 | 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 | 675 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 675 | 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 | 675 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 675 | _count += to_add; | 134 | 675 | _remain_element_capacity -= to_add; | 135 | 675 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 675 | *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 | 675 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 675 | return Status::OK(); | 159 | 675 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 698 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 698 | DCHECK(!_finished); | 110 | 698 | 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 | 698 | uint32_t to_add = cast_set<UInt32>( | 126 | 698 | 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 | 698 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 698 | 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 | 698 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 698 | _count += to_add; | 134 | 698 | _remain_element_capacity -= to_add; | 135 | 698 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 698 | *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 | 698 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 698 | return Status::OK(); | 159 | 698 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.6k | DCHECK(!_finished); | 110 | 26.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 | 26.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.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 | 26.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.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 | 26.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.6k | _count += to_add; | 134 | 26.6k | _remain_element_capacity -= to_add; | 135 | 26.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.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 | 26.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.6k | return Status::OK(); | 159 | 26.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 146M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 146M | DCHECK(!_finished); | 110 | 146M | 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 | 146M | uint32_t to_add = cast_set<UInt32>( | 126 | 146M | 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 | 146M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 146M | 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 | 146M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 148M | _count += to_add; | 134 | 148M | _remain_element_capacity -= to_add; | 135 | 148M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 148M | *num_written = to_add; | 138 | 148M | 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 | 148M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 148M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 148M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 148M | 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 | 148M | } | 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 | 148M | return Status::OK(); | 159 | 146M | } |
|
160 | | |
161 | 785k | Status finish(OwnedSlice* slice) override { |
162 | 785k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 785k | return Status::OK(); |
164 | 785k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 37.7k | Status finish(OwnedSlice* slice) override { | 162 | 37.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 37.8k | return Status::OK(); | 164 | 37.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 5.50k | Status finish(OwnedSlice* slice) override { | 162 | 5.50k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 5.50k | return Status::OK(); | 164 | 5.50k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 341k | Status finish(OwnedSlice* slice) override { | 162 | 341k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 341k | return Status::OK(); | 164 | 341k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 178k | Status finish(OwnedSlice* slice) override { | 162 | 178k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 178k | return Status::OK(); | 164 | 178k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.28k | Status finish(OwnedSlice* slice) override { | 162 | 9.28k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.29k | return Status::OK(); | 164 | 9.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 64.1k | Status finish(OwnedSlice* slice) override { | 162 | 64.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 64.1k | return Status::OK(); | 164 | 64.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 3.17k | Status finish(OwnedSlice* slice) override { | 162 | 3.17k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 3.18k | return Status::OK(); | 164 | 3.17k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 4.44k | Status finish(OwnedSlice* slice) override { | 162 | 4.44k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 4.44k | return Status::OK(); | 164 | 4.44k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6 | Status finish(OwnedSlice* slice) override { | 162 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6 | return Status::OK(); | 164 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 352 | Status finish(OwnedSlice* slice) override { | 162 | 352 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 352 | return Status::OK(); | 164 | 352 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.4k | Status finish(OwnedSlice* slice) override { | 162 | 38.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.4k | return Status::OK(); | 164 | 38.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.6k | Status finish(OwnedSlice* slice) override { | 162 | 43.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.6k | return Status::OK(); | 164 | 43.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 280 | Status finish(OwnedSlice* slice) override { | 162 | 280 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 280 | return Status::OK(); | 164 | 280 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 592 | Status finish(OwnedSlice* slice) override { | 162 | 592 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 592 | return Status::OK(); | 164 | 592 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.70k | Status finish(OwnedSlice* slice) override { | 162 | 7.70k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.71k | return Status::OK(); | 164 | 7.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 257 | Status finish(OwnedSlice* slice) override { | 162 | 257 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 257 | return Status::OK(); | 164 | 257 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.71k | Status finish(OwnedSlice* slice) override { | 162 | 9.71k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.71k | return Status::OK(); | 164 | 9.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.5k | Status finish(OwnedSlice* slice) override { | 162 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.5k | return Status::OK(); | 164 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.2k | Status finish(OwnedSlice* slice) override { | 162 | 17.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.2k | return Status::OK(); | 164 | 17.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.14k | Status finish(OwnedSlice* slice) override { | 162 | 1.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.14k | return Status::OK(); | 164 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 629 | Status finish(OwnedSlice* slice) override { | 162 | 629 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 629 | return Status::OK(); | 164 | 629 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 635 | Status finish(OwnedSlice* slice) override { | 162 | 635 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 636 | return Status::OK(); | 164 | 635 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 722 | Status finish(OwnedSlice* slice) override { | 162 | 722 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 722 | return Status::OK(); | 164 | 722 | } |
|
165 | | |
166 | 1.86M | Status reset() override { |
167 | 1.86M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.86M | size_t block_size = _options.data_page_size; |
169 | 1.86M | _count = 0; |
170 | 1.86M | _raw_data_size = 0; |
171 | 1.86M | _data.clear(); |
172 | 1.86M | _data.reserve(block_size); |
173 | 1.86M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.86M | << "buffer must be naturally-aligned"; |
175 | 1.86M | _buffer.clear(); |
176 | 1.86M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.86M | _finished = false; |
178 | 1.86M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.86M | }); |
180 | 1.86M | return Status::OK(); |
181 | 1.86M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 76.2k | Status reset() override { | 167 | 76.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 76.2k | size_t block_size = _options.data_page_size; | 169 | 76.2k | _count = 0; | 170 | 76.2k | _raw_data_size = 0; | 171 | 76.2k | _data.clear(); | 172 | 76.2k | _data.reserve(block_size); | 173 | 76.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 76.2k | << "buffer must be naturally-aligned"; | 175 | 76.2k | _buffer.clear(); | 176 | 76.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 76.2k | _finished = false; | 178 | 76.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 76.2k | }); | 180 | 76.3k | return Status::OK(); | 181 | 76.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 11.1k | Status reset() override { | 167 | 11.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 11.1k | size_t block_size = _options.data_page_size; | 169 | 11.1k | _count = 0; | 170 | 11.1k | _raw_data_size = 0; | 171 | 11.1k | _data.clear(); | 172 | 11.1k | _data.reserve(block_size); | 173 | 11.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 11.1k | << "buffer must be naturally-aligned"; | 175 | 11.1k | _buffer.clear(); | 176 | 11.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 11.1k | _finished = false; | 178 | 11.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 11.1k | }); | 180 | 11.1k | return Status::OK(); | 181 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 985k | Status reset() override { | 167 | 985k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 985k | size_t block_size = _options.data_page_size; | 169 | 985k | _count = 0; | 170 | 985k | _raw_data_size = 0; | 171 | 985k | _data.clear(); | 172 | 985k | _data.reserve(block_size); | 173 | 985k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 985k | << "buffer must be naturally-aligned"; | 175 | 985k | _buffer.clear(); | 176 | 985k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 985k | _finished = false; | 178 | 985k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 985k | }); | 180 | 988k | return Status::OK(); | 181 | 985k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 352k | Status reset() override { | 167 | 352k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 352k | size_t block_size = _options.data_page_size; | 169 | 352k | _count = 0; | 170 | 352k | _raw_data_size = 0; | 171 | 352k | _data.clear(); | 172 | 352k | _data.reserve(block_size); | 173 | 352k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 352k | << "buffer must be naturally-aligned"; | 175 | 352k | _buffer.clear(); | 176 | 352k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 352k | _finished = false; | 178 | 352k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 352k | }); | 180 | 353k | return Status::OK(); | 181 | 352k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 18.1k | Status reset() override { | 167 | 18.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 18.1k | size_t block_size = _options.data_page_size; | 169 | 18.1k | _count = 0; | 170 | 18.1k | _raw_data_size = 0; | 171 | 18.1k | _data.clear(); | 172 | 18.1k | _data.reserve(block_size); | 173 | 18.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 18.1k | << "buffer must be naturally-aligned"; | 175 | 18.1k | _buffer.clear(); | 176 | 18.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 18.1k | _finished = false; | 178 | 18.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 18.1k | }); | 180 | 18.2k | return Status::OK(); | 181 | 18.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 128k | Status reset() override { | 167 | 128k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 128k | size_t block_size = _options.data_page_size; | 169 | 128k | _count = 0; | 170 | 128k | _raw_data_size = 0; | 171 | 128k | _data.clear(); | 172 | 128k | _data.reserve(block_size); | 173 | 128k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 128k | << "buffer must be naturally-aligned"; | 175 | 128k | _buffer.clear(); | 176 | 128k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 128k | _finished = false; | 178 | 128k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 128k | }); | 180 | 128k | return Status::OK(); | 181 | 128k | } |
_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 | 6.46k | Status reset() override { | 167 | 6.46k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 6.46k | size_t block_size = _options.data_page_size; | 169 | 6.46k | _count = 0; | 170 | 6.46k | _raw_data_size = 0; | 171 | 6.46k | _data.clear(); | 172 | 6.46k | _data.reserve(block_size); | 173 | 6.46k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 6.46k | << "buffer must be naturally-aligned"; | 175 | 6.46k | _buffer.clear(); | 176 | 6.46k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 6.46k | _finished = false; | 178 | 6.46k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 6.46k | }); | 180 | 6.47k | return Status::OK(); | 181 | 6.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 8.57k | Status reset() override { | 167 | 8.57k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 8.57k | size_t block_size = _options.data_page_size; | 169 | 8.57k | _count = 0; | 170 | 8.57k | _raw_data_size = 0; | 171 | 8.57k | _data.clear(); | 172 | 8.57k | _data.reserve(block_size); | 173 | 8.57k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 8.57k | << "buffer must be naturally-aligned"; | 175 | 8.57k | _buffer.clear(); | 176 | 8.57k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 8.57k | _finished = false; | 178 | 8.57k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 8.57k | }); | 180 | 8.58k | return Status::OK(); | 181 | 8.57k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 166 | 8 | Status reset() override { | 167 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 8 | size_t block_size = _options.data_page_size; | 169 | 8 | _count = 0; | 170 | 8 | _raw_data_size = 0; | 171 | 8 | _data.clear(); | 172 | 8 | _data.reserve(block_size); | 173 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 8 | << "buffer must be naturally-aligned"; | 175 | 8 | _buffer.clear(); | 176 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 8 | _finished = false; | 178 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 8 | }); | 180 | 8 | return Status::OK(); | 181 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 689 | Status reset() override { | 167 | 689 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 689 | size_t block_size = _options.data_page_size; | 169 | 689 | _count = 0; | 170 | 689 | _raw_data_size = 0; | 171 | 689 | _data.clear(); | 172 | 689 | _data.reserve(block_size); | 173 | 689 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 689 | << "buffer must be naturally-aligned"; | 175 | 689 | _buffer.clear(); | 176 | 689 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 689 | _finished = false; | 178 | 689 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 689 | }); | 180 | 689 | return Status::OK(); | 181 | 689 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.9k | Status reset() override { | 167 | 75.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.9k | size_t block_size = _options.data_page_size; | 169 | 75.9k | _count = 0; | 170 | 75.9k | _raw_data_size = 0; | 171 | 75.9k | _data.clear(); | 172 | 75.9k | _data.reserve(block_size); | 173 | 75.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.9k | << "buffer must be naturally-aligned"; | 175 | 75.9k | _buffer.clear(); | 176 | 75.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.9k | _finished = false; | 178 | 75.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.9k | }); | 180 | 75.9k | return Status::OK(); | 181 | 75.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 88.2k | Status reset() override { | 167 | 88.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 88.2k | size_t block_size = _options.data_page_size; | 169 | 88.2k | _count = 0; | 170 | 88.2k | _raw_data_size = 0; | 171 | 88.2k | _data.clear(); | 172 | 88.2k | _data.reserve(block_size); | 173 | 88.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 88.2k | << "buffer must be naturally-aligned"; | 175 | 88.2k | _buffer.clear(); | 176 | 88.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 88.2k | _finished = false; | 178 | 88.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 88.2k | }); | 180 | 88.3k | return Status::OK(); | 181 | 88.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 613 | Status reset() override { | 167 | 613 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 613 | size_t block_size = _options.data_page_size; | 169 | 613 | _count = 0; | 170 | 613 | _raw_data_size = 0; | 171 | 613 | _data.clear(); | 172 | 613 | _data.reserve(block_size); | 173 | 613 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 613 | << "buffer must be naturally-aligned"; | 175 | 613 | _buffer.clear(); | 176 | 613 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 613 | _finished = false; | 178 | 613 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 613 | }); | 180 | 619 | return Status::OK(); | 181 | 613 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.02k | Status reset() override { | 167 | 1.02k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.02k | size_t block_size = _options.data_page_size; | 169 | 1.02k | _count = 0; | 170 | 1.02k | _raw_data_size = 0; | 171 | 1.02k | _data.clear(); | 172 | 1.02k | _data.reserve(block_size); | 173 | 1.02k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.02k | << "buffer must be naturally-aligned"; | 175 | 1.02k | _buffer.clear(); | 176 | 1.02k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.02k | _finished = false; | 178 | 1.02k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.02k | }); | 180 | 1.02k | return Status::OK(); | 181 | 1.02k | } |
_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.4k | return Status::OK(); | 181 | 15.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 592 | Status reset() override { | 167 | 592 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 592 | size_t block_size = _options.data_page_size; | 169 | 592 | _count = 0; | 170 | 592 | _raw_data_size = 0; | 171 | 592 | _data.clear(); | 172 | 592 | _data.reserve(block_size); | 173 | 592 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 592 | << "buffer must be naturally-aligned"; | 175 | 592 | _buffer.clear(); | 176 | 592 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 592 | _finished = false; | 178 | 592 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 592 | }); | 180 | 592 | return Status::OK(); | 181 | 592 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.4k | Status reset() override { | 167 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.4k | size_t block_size = _options.data_page_size; | 169 | 19.4k | _count = 0; | 170 | 19.4k | _raw_data_size = 0; | 171 | 19.4k | _data.clear(); | 172 | 19.4k | _data.reserve(block_size); | 173 | 19.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.4k | << "buffer must be naturally-aligned"; | 175 | 19.4k | _buffer.clear(); | 176 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.4k | _finished = false; | 178 | 19.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.4k | }); | 180 | 19.4k | return Status::OK(); | 181 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.7k | Status reset() override { | 167 | 31.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.7k | size_t block_size = _options.data_page_size; | 169 | 31.7k | _count = 0; | 170 | 31.7k | _raw_data_size = 0; | 171 | 31.7k | _data.clear(); | 172 | 31.7k | _data.reserve(block_size); | 173 | 31.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.7k | << "buffer must be naturally-aligned"; | 175 | 31.7k | _buffer.clear(); | 176 | 31.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.7k | _finished = false; | 178 | 31.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.7k | }); | 180 | 31.7k | return Status::OK(); | 181 | 31.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 34.2k | Status reset() override { | 167 | 34.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 34.2k | size_t block_size = _options.data_page_size; | 169 | 34.2k | _count = 0; | 170 | 34.2k | _raw_data_size = 0; | 171 | 34.2k | _data.clear(); | 172 | 34.2k | _data.reserve(block_size); | 173 | 34.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 34.2k | << "buffer must be naturally-aligned"; | 175 | 34.2k | _buffer.clear(); | 176 | 34.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 34.2k | _finished = false; | 178 | 34.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 34.2k | }); | 180 | 34.2k | return Status::OK(); | 181 | 34.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.36k | Status reset() override { | 167 | 2.36k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.36k | size_t block_size = _options.data_page_size; | 169 | 2.36k | _count = 0; | 170 | 2.36k | _raw_data_size = 0; | 171 | 2.36k | _data.clear(); | 172 | 2.36k | _data.reserve(block_size); | 173 | 2.36k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.36k | << "buffer must be naturally-aligned"; | 175 | 2.36k | _buffer.clear(); | 176 | 2.36k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.36k | _finished = false; | 178 | 2.36k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.36k | }); | 180 | 2.36k | return Status::OK(); | 181 | 2.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.34k | Status reset() override { | 167 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.34k | size_t block_size = _options.data_page_size; | 169 | 1.34k | _count = 0; | 170 | 1.34k | _raw_data_size = 0; | 171 | 1.34k | _data.clear(); | 172 | 1.34k | _data.reserve(block_size); | 173 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.34k | << "buffer must be naturally-aligned"; | 175 | 1.34k | _buffer.clear(); | 176 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.34k | _finished = false; | 178 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.34k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.34k | Status reset() override { | 167 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.34k | size_t block_size = _options.data_page_size; | 169 | 1.34k | _count = 0; | 170 | 1.34k | _raw_data_size = 0; | 171 | 1.34k | _data.clear(); | 172 | 1.34k | _data.reserve(block_size); | 173 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.34k | << "buffer must be naturally-aligned"; | 175 | 1.34k | _buffer.clear(); | 176 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.34k | _finished = false; | 178 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.34k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5resetEv Line | Count | Source | 166 | 1.33k | Status reset() override { | 167 | 1.33k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.33k | size_t block_size = _options.data_page_size; | 169 | 1.33k | _count = 0; | 170 | 1.33k | _raw_data_size = 0; | 171 | 1.33k | _data.clear(); | 172 | 1.33k | _data.reserve(block_size); | 173 | 1.33k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.33k | << "buffer must be naturally-aligned"; | 175 | 1.33k | _buffer.clear(); | 176 | 1.33k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.33k | _finished = false; | 178 | 1.33k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.33k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.33k | } |
|
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 Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5countEv |
184 | | |
185 | 38.6k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.41k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 835 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 21.6k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 3.22k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.37k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 889 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 352 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 349 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.64k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.29k | 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 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 126 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 242 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 393 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.22k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 128 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4sizeEv Line | Count | Source | 185 | 12 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 501k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 37.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 5.50k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 57.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 178k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.28k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 64.1k | 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 | 3.17k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 4.44k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 352 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 280 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 592 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.71k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 256 | 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 | 19.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 629 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 636 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv Line | Count | Source | 187 | 722 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 780k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 38.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 5.63k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 349k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 173k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.84k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 64.3k | : _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 | 3.29k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 4.13k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 337 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 334 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 433 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.59k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 336 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.71k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 17.0k | : _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 | 714 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 712 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 619 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 785k | OwnedSlice _finish(int final_size_of_type) { |
194 | 785k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 785k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 785k | int padding_elems = num_elems_after_padding - _count; |
199 | 785k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 24.7M | for (int i = 0; i < padding_bytes; i++) { |
201 | 23.9M | _data.push_back(0); |
202 | 23.9M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 785k | _buffer.resize( |
206 | 785k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 785k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 785k | int64_t bytes = |
210 | 785k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 785k | num_elems_after_padding, final_size_of_type, 0); |
212 | 785k | 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 | 785k | encode_fixed32_le(&_buffer[0], _count); |
222 | 785k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 785k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 785k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 785k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 785k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 785k | return _buffer.build(); |
229 | 785k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 37.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 37.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 37.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 37.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 37.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 231k | for (int i = 0; i < padding_bytes; i++) { | 201 | 193k | _data.push_back(0); | 202 | 193k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 37.7k | _buffer.resize( | 206 | 37.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 37.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 37.7k | int64_t bytes = | 210 | 37.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 37.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 37.7k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 37.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 37.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 37.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 37.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 37.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 37.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 37.7k | return _buffer.build(); | 229 | 37.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 5.50k | OwnedSlice _finish(int final_size_of_type) { | 194 | 5.50k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 5.50k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 5.50k | int padding_elems = num_elems_after_padding - _count; | 199 | 5.50k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 52.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 47.3k | _data.push_back(0); | 202 | 47.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 5.50k | _buffer.resize( | 206 | 5.50k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 5.50k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 5.50k | int64_t bytes = | 210 | 5.50k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 5.50k | num_elems_after_padding, final_size_of_type, 0); | 212 | 5.50k | 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.50k | encode_fixed32_le(&_buffer[0], _count); | 222 | 5.50k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 5.50k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 5.50k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 5.50k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 5.50k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 5.50k | return _buffer.build(); | 229 | 5.50k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 341k | OwnedSlice _finish(int final_size_of_type) { | 194 | 341k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 341k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 341k | int padding_elems = num_elems_after_padding - _count; | 199 | 341k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.51M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.17M | _data.push_back(0); | 202 | 6.17M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 341k | _buffer.resize( | 206 | 341k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 341k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 341k | int64_t bytes = | 210 | 341k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 341k | num_elems_after_padding, final_size_of_type, 0); | 212 | 341k | 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 | 341k | encode_fixed32_le(&_buffer[0], _count); | 222 | 341k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 341k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 341k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 341k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 341k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 341k | return _buffer.build(); | 229 | 341k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 178k | OwnedSlice _finish(int final_size_of_type) { | 194 | 178k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 178k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 178k | int padding_elems = num_elems_after_padding - _count; | 199 | 178k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 8.90M | for (int i = 0; i < padding_bytes; i++) { | 201 | 8.72M | _data.push_back(0); | 202 | 8.72M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 178k | _buffer.resize( | 206 | 178k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 178k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 178k | int64_t bytes = | 210 | 178k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 178k | num_elems_after_padding, final_size_of_type, 0); | 212 | 178k | 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 | 178k | encode_fixed32_le(&_buffer[0], _count); | 222 | 178k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 178k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 178k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 178k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 178k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 178k | return _buffer.build(); | 229 | 178k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 9.28k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.28k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.28k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.28k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.28k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 575k | for (int i = 0; i < padding_bytes; i++) { | 201 | 566k | _data.push_back(0); | 202 | 566k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.28k | _buffer.resize( | 206 | 9.28k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.28k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.28k | int64_t bytes = | 210 | 9.28k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.28k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.28k | 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.28k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.28k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.28k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.28k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.28k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.28k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.28k | return _buffer.build(); | 229 | 9.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 64.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 64.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 64.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 64.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 64.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.10M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.04M | _data.push_back(0); | 202 | 3.04M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 64.1k | _buffer.resize( | 206 | 64.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 64.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 64.1k | int64_t bytes = | 210 | 64.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 64.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 64.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 64.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 64.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 64.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 64.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 64.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 64.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 64.1k | return _buffer.build(); | 229 | 64.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 3.17k | OwnedSlice _finish(int final_size_of_type) { | 194 | 3.17k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 3.17k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 3.17k | int padding_elems = num_elems_after_padding - _count; | 199 | 3.17k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 62.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 59.0k | _data.push_back(0); | 202 | 59.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 3.17k | _buffer.resize( | 206 | 3.17k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 3.17k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 3.17k | int64_t bytes = | 210 | 3.17k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 3.17k | num_elems_after_padding, final_size_of_type, 0); | 212 | 3.17k | 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 | 3.17k | encode_fixed32_le(&_buffer[0], _count); | 222 | 3.17k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 3.17k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 3.17k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 3.17k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 3.17k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 3.17k | return _buffer.build(); | 229 | 3.17k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 4.44k | OwnedSlice _finish(int final_size_of_type) { | 194 | 4.44k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 4.44k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 4.44k | int padding_elems = num_elems_after_padding - _count; | 199 | 4.44k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 168k | for (int i = 0; i < padding_bytes; i++) { | 201 | 164k | _data.push_back(0); | 202 | 164k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 4.44k | _buffer.resize( | 206 | 4.44k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 4.44k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 4.44k | int64_t bytes = | 210 | 4.44k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 4.44k | num_elems_after_padding, final_size_of_type, 0); | 212 | 4.44k | 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.44k | encode_fixed32_le(&_buffer[0], _count); | 222 | 4.44k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 4.44k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 4.44k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 4.44k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 4.44k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 4.44k | return _buffer.build(); | 229 | 4.44k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 193 | 6 | OwnedSlice _finish(int final_size_of_type) { | 194 | 6 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6 | int padding_elems = num_elems_after_padding - _count; | 199 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 18 | for (int i = 0; i < padding_bytes; i++) { | 201 | 12 | _data.push_back(0); | 202 | 12 | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6 | _buffer.resize( | 206 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6 | int64_t bytes = | 210 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6 | num_elems_after_padding, final_size_of_type, 0); | 212 | 6 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6 | encode_fixed32_le(&_buffer[0], _count); | 222 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6 | return _buffer.build(); | 229 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 352 | OwnedSlice _finish(int final_size_of_type) { | 194 | 352 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 352 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 352 | int padding_elems = num_elems_after_padding - _count; | 199 | 352 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.30k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.95k | _data.push_back(0); | 202 | 4.95k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 352 | _buffer.resize( | 206 | 352 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 352 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 352 | int64_t bytes = | 210 | 352 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 352 | num_elems_after_padding, final_size_of_type, 0); | 212 | 352 | 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 | 352 | encode_fixed32_le(&_buffer[0], _count); | 222 | 352 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 352 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 352 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 352 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 352 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 352 | return _buffer.build(); | 229 | 352 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 811k | for (int i = 0; i < padding_bytes; i++) { | 201 | 772k | _data.push_back(0); | 202 | 772k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.4k | _buffer.resize( | 206 | 38.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.4k | int64_t bytes = | 210 | 38.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.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 | 38.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.4k | return _buffer.build(); | 229 | 38.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.84M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.80M | _data.push_back(0); | 202 | 1.80M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.6k | _buffer.resize( | 206 | 43.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.6k | int64_t bytes = | 210 | 43.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.6k | return _buffer.build(); | 229 | 43.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 280 | OwnedSlice _finish(int final_size_of_type) { | 194 | 280 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 280 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 280 | int padding_elems = num_elems_after_padding - _count; | 199 | 280 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.4k | _data.push_back(0); | 202 | 11.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 280 | _buffer.resize( | 206 | 280 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 280 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 280 | int64_t bytes = | 210 | 280 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 280 | num_elems_after_padding, final_size_of_type, 0); | 212 | 280 | 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 | 280 | encode_fixed32_le(&_buffer[0], _count); | 222 | 280 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 280 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 280 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 280 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 280 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 280 | return _buffer.build(); | 229 | 280 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 592 | OwnedSlice _finish(int final_size_of_type) { | 194 | 592 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 592 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 592 | int padding_elems = num_elems_after_padding - _count; | 199 | 592 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.7k | _data.push_back(0); | 202 | 12.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 592 | _buffer.resize( | 206 | 592 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 592 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 592 | int64_t bytes = | 210 | 592 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 592 | num_elems_after_padding, final_size_of_type, 0); | 212 | 592 | 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 | 592 | encode_fixed32_le(&_buffer[0], _count); | 222 | 592 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 592 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 592 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 592 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 592 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 592 | return _buffer.build(); | 229 | 592 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.70k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.70k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.70k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.70k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.70k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 401k | for (int i = 0; i < padding_bytes; i++) { | 201 | 394k | _data.push_back(0); | 202 | 394k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.70k | _buffer.resize( | 206 | 7.70k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.70k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.70k | int64_t bytes = | 210 | 7.70k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.70k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.70k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.70k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.70k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.70k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.70k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.70k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.70k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.70k | return _buffer.build(); | 229 | 7.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 257 | OwnedSlice _finish(int final_size_of_type) { | 194 | 257 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 257 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 257 | int padding_elems = num_elems_after_padding - _count; | 199 | 257 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 16.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.7k | _data.push_back(0); | 202 | 15.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 257 | _buffer.resize( | 206 | 257 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 257 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 257 | int64_t bytes = | 210 | 257 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 257 | num_elems_after_padding, final_size_of_type, 0); | 212 | 257 | 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 | 257 | encode_fixed32_le(&_buffer[0], _count); | 222 | 257 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 257 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 257 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 257 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 257 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 257 | return _buffer.build(); | 229 | 257 | } |
_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 | 19.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 490k | for (int i = 0; i < padding_bytes; i++) { | 201 | 471k | _data.push_back(0); | 202 | 471k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.5k | _buffer.resize( | 206 | 19.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.5k | int64_t bytes = | 210 | 19.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 19.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.5k | return _buffer.build(); | 229 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.15M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.13M | _data.push_back(0); | 202 | 1.13M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.2k | _buffer.resize( | 206 | 17.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.2k | int64_t bytes = | 210 | 17.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.2k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 17.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.2k | return _buffer.build(); | 229 | 17.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.14k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.14k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.14k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.14k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 174k | for (int i = 0; i < padding_bytes; i++) { | 201 | 173k | _data.push_back(0); | 202 | 173k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.14k | _buffer.resize( | 206 | 1.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.14k | int64_t bytes = | 210 | 1.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.14k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.14k | 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.14k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.14k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.14k | return _buffer.build(); | 229 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 629 | OwnedSlice _finish(int final_size_of_type) { | 194 | 629 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 629 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 629 | int padding_elems = num_elems_after_padding - _count; | 199 | 629 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.1k | _data.push_back(0); | 202 | 12.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 629 | _buffer.resize( | 206 | 629 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 629 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 629 | int64_t bytes = | 210 | 629 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 629 | num_elems_after_padding, final_size_of_type, 0); | 212 | 629 | 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 | 629 | encode_fixed32_le(&_buffer[0], _count); | 222 | 629 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 629 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 629 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 629 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 629 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 629 | return _buffer.build(); | 229 | 629 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 635 | OwnedSlice _finish(int final_size_of_type) { | 194 | 635 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 635 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 635 | int padding_elems = num_elems_after_padding - _count; | 199 | 635 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 50.1k | _data.push_back(0); | 202 | 50.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 635 | _buffer.resize( | 206 | 635 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 635 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 635 | int64_t bytes = | 210 | 635 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 635 | num_elems_after_padding, final_size_of_type, 0); | 212 | 635 | 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 | 635 | encode_fixed32_le(&_buffer[0], _count); | 222 | 635 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 635 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 635 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 635 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 635 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 635 | return _buffer.build(); | 229 | 635 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 193 | 722 | OwnedSlice _finish(int final_size_of_type) { | 194 | 722 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 722 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 722 | int padding_elems = num_elems_after_padding - _count; | 199 | 722 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 53.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 52.6k | _data.push_back(0); | 202 | 52.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 722 | _buffer.resize( | 206 | 722 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 722 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 722 | int64_t bytes = | 210 | 722 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 722 | num_elems_after_padding, final_size_of_type, 0); | 212 | 722 | 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 | 722 | encode_fixed32_le(&_buffer[0], _count); | 222 | 722 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 722 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 722 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 722 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 722 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 722 | return _buffer.build(); | 229 | 722 | } |
|
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 | 181k | case 1: |
272 | 201k | case 2: |
273 | 204k | case 3: |
274 | 1.44M | case 4: |
275 | 2.12M | case 8: |
276 | 2.13M | case 12: |
277 | 2.23M | case 16: |
278 | 2.24M | case 32: |
279 | 2.24M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.23M | } |
283 | 2.24M | 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 | 90.7k | : _data(data), | 291 | 90.7k | _options(options), | 292 | 90.7k | _parsed(false), | 293 | 90.7k | _num_elements(0), | 294 | 90.7k | _num_element_after_padding(0), | 295 | 90.7k | _size_of_element(0), | 296 | 90.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 9.96k | : _data(data), | 291 | 9.96k | _options(options), | 292 | 9.96k | _parsed(false), | 293 | 9.96k | _num_elements(0), | 294 | 9.96k | _num_element_after_padding(0), | 295 | 9.96k | _size_of_element(0), | 296 | 9.96k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 539k | : _data(data), | 291 | 539k | _options(options), | 292 | 539k | _parsed(false), | 293 | 539k | _num_elements(0), | 294 | 539k | _num_element_after_padding(0), | 295 | 539k | _size_of_element(0), | 296 | 539k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 105k | : _data(data), | 291 | 105k | _options(options), | 292 | 105k | _parsed(false), | 293 | 105k | _num_elements(0), | 294 | 105k | _num_element_after_padding(0), | 295 | 105k | _size_of_element(0), | 296 | 105k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.8k | : _data(data), | 291 | 15.8k | _options(options), | 292 | 15.8k | _parsed(false), | 293 | 15.8k | _num_elements(0), | 294 | 15.8k | _num_element_after_padding(0), | 295 | 15.8k | _size_of_element(0), | 296 | 15.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 89.8k | : _data(data), | 291 | 89.8k | _options(options), | 292 | 89.8k | _parsed(false), | 293 | 89.8k | _num_elements(0), | 294 | 89.8k | _num_element_after_padding(0), | 295 | 89.8k | _size_of_element(0), | 296 | 89.8k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 7.30k | : _data(data), | 291 | 7.30k | _options(options), | 292 | 7.30k | _parsed(false), | 293 | 7.30k | _num_elements(0), | 294 | 7.30k | _num_element_after_padding(0), | 295 | 7.30k | _size_of_element(0), | 296 | 7.30k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.8k | : _data(data), | 291 | 13.8k | _options(options), | 292 | 13.8k | _parsed(false), | 293 | 13.8k | _num_elements(0), | 294 | 13.8k | _num_element_after_padding(0), | 295 | 13.8k | _size_of_element(0), | 296 | 13.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3 | : _data(data), | 291 | 3 | _options(options), | 292 | 3 | _parsed(false), | 293 | 3 | _num_elements(0), | 294 | 3 | _num_element_after_padding(0), | 295 | 3 | _size_of_element(0), | 296 | 3 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.66k | : _data(data), | 291 | 1.66k | _options(options), | 292 | 1.66k | _parsed(false), | 293 | 1.66k | _num_elements(0), | 294 | 1.66k | _num_element_after_padding(0), | 295 | 1.66k | _size_of_element(0), | 296 | 1.66k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 58.2k | : _data(data), | 291 | 58.2k | _options(options), | 292 | 58.2k | _parsed(false), | 293 | 58.2k | _num_elements(0), | 294 | 58.2k | _num_element_after_padding(0), | 295 | 58.2k | _size_of_element(0), | 296 | 58.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 67.5k | : _data(data), | 291 | 67.5k | _options(options), | 292 | 67.5k | _parsed(false), | 293 | 67.5k | _num_elements(0), | 294 | 67.5k | _num_element_after_padding(0), | 295 | 67.5k | _size_of_element(0), | 296 | 67.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.15k | : _data(data), | 291 | 3.15k | _options(options), | 292 | 3.15k | _parsed(false), | 293 | 3.15k | _num_elements(0), | 294 | 3.15k | _num_element_after_padding(0), | 295 | 3.15k | _size_of_element(0), | 296 | 3.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.57k | : _data(data), | 291 | 2.57k | _options(options), | 292 | 2.57k | _parsed(false), | 293 | 2.57k | _num_elements(0), | 294 | 2.57k | _num_element_after_padding(0), | 295 | 2.57k | _size_of_element(0), | 296 | 2.57k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.9k | : _data(data), | 291 | 15.9k | _options(options), | 292 | 15.9k | _parsed(false), | 293 | 15.9k | _num_elements(0), | 294 | 15.9k | _num_element_after_padding(0), | 295 | 15.9k | _size_of_element(0), | 296 | 15.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.36k | : _data(data), | 291 | 1.36k | _options(options), | 292 | 1.36k | _parsed(false), | 293 | 1.36k | _num_elements(0), | 294 | 1.36k | _num_element_after_padding(0), | 295 | 1.36k | _size_of_element(0), | 296 | 1.36k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.9k | : _data(data), | 291 | 14.9k | _options(options), | 292 | 14.9k | _parsed(false), | 293 | 14.9k | _num_elements(0), | 294 | 14.9k | _num_element_after_padding(0), | 295 | 14.9k | _size_of_element(0), | 296 | 14.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 41.8k | : _data(data), | 291 | 41.8k | _options(options), | 292 | 41.8k | _parsed(false), | 293 | 41.8k | _num_elements(0), | 294 | 41.8k | _num_element_after_padding(0), | 295 | 41.8k | _size_of_element(0), | 296 | 41.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.6k | : _data(data), | 291 | 30.6k | _options(options), | 292 | 30.6k | _parsed(false), | 293 | 30.6k | _num_elements(0), | 294 | 30.6k | _num_element_after_padding(0), | 295 | 30.6k | _size_of_element(0), | 296 | 30.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.75k | : _data(data), | 291 | 1.75k | _options(options), | 292 | 1.75k | _parsed(false), | 293 | 1.75k | _num_elements(0), | 294 | 1.75k | _num_element_after_padding(0), | 295 | 1.75k | _size_of_element(0), | 296 | 1.75k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 934 | : _data(data), | 291 | 934 | _options(options), | 292 | 934 | _parsed(false), | 293 | 934 | _num_elements(0), | 294 | 934 | _num_element_after_padding(0), | 295 | 934 | _size_of_element(0), | 296 | 934 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 977 | : _data(data), | 291 | 977 | _options(options), | 292 | 977 | _parsed(false), | 293 | 977 | _num_elements(0), | 294 | 977 | _num_element_after_padding(0), | 295 | 977 | _size_of_element(0), | 296 | 977 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 5.15k | : _data(data), | 291 | 5.15k | _options(options), | 292 | 5.15k | _parsed(false), | 293 | 5.15k | _num_elements(0), | 294 | 5.15k | _num_element_after_padding(0), | 295 | 5.15k | _size_of_element(0), | 296 | 5.15k | _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 | 13 | std::stringstream ss; |
307 | 13 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 13 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 13 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 13 | return Status::InternalError(ss.str()); |
311 | 13 | } |
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 | 90.6k | Status init() override { | 299 | 90.6k | CHECK(!_parsed); | 300 | 90.6k | size_t unused; | 301 | 90.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 90.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 90.6k | if (_data.size != | 305 | 90.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 | 90.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 90.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 | 90.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 | 90.6k | _parsed = true; | 325 | 90.6k | return Status::OK(); | 326 | 90.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 9.95k | Status init() override { | 299 | 9.95k | CHECK(!_parsed); | 300 | 9.95k | size_t unused; | 301 | 9.95k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 9.95k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 9.95k | if (_data.size != | 305 | 9.95k | _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 | 9.95k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 9.95k | _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 | 9.95k | 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 | 9.95k | _parsed = true; | 325 | 9.95k | return Status::OK(); | 326 | 9.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 539k | Status init() override { | 299 | 539k | CHECK(!_parsed); | 300 | 539k | size_t unused; | 301 | 539k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 539k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 539k | if (_data.size != | 305 | 539k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 5 | std::stringstream ss; | 307 | 5 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 5 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 5 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 5 | return Status::InternalError(ss.str()); | 311 | 5 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 539k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 539k | _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 | 539k | 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 | 539k | _parsed = true; | 325 | 539k | return Status::OK(); | 326 | 539k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 105k | Status init() override { | 299 | 105k | CHECK(!_parsed); | 300 | 105k | size_t unused; | 301 | 105k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 105k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 105k | if (_data.size != | 305 | 105k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 1 | std::stringstream ss; | 307 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 1 | return Status::InternalError(ss.str()); | 311 | 1 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 105k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 105k | _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 | 105k | 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 | 105k | _parsed = true; | 325 | 105k | return Status::OK(); | 326 | 105k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 15.8k | Status init() override { | 299 | 15.8k | CHECK(!_parsed); | 300 | 15.8k | size_t unused; | 301 | 15.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.8k | if (_data.size != | 305 | 15.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 | 15.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.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 | 15.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 | 15.8k | _parsed = true; | 325 | 15.8k | return Status::OK(); | 326 | 15.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 89.8k | Status init() override { | 299 | 89.8k | CHECK(!_parsed); | 300 | 89.8k | size_t unused; | 301 | 89.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 89.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 89.8k | if (_data.size != | 305 | 89.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 | 89.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 89.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 | 89.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 | 89.8k | _parsed = true; | 325 | 89.8k | return Status::OK(); | 326 | 89.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 7.29k | Status init() override { | 299 | 7.29k | CHECK(!_parsed); | 300 | 7.29k | size_t unused; | 301 | 7.29k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 7.29k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 7.29k | if (_data.size != | 305 | 7.29k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 2 | std::stringstream ss; | 307 | 2 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 2 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 2 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 2 | return Status::InternalError(ss.str()); | 311 | 2 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 7.29k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 7.29k | _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 | 7.29k | 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 | 7.29k | _parsed = true; | 325 | 7.29k | return Status::OK(); | 326 | 7.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 13.8k | Status init() override { | 299 | 13.8k | CHECK(!_parsed); | 300 | 13.8k | size_t unused; | 301 | 13.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.8k | if (_data.size != | 305 | 13.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 4 | std::stringstream ss; | 307 | 4 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 4 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 4 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 4 | return Status::InternalError(ss.str()); | 311 | 4 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 13.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.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 | 13.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 | 13.8k | _parsed = true; | 325 | 13.8k | return Status::OK(); | 326 | 13.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 298 | 3 | Status init() override { | 299 | 3 | CHECK(!_parsed); | 300 | 3 | size_t unused; | 301 | 3 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3 | if (_data.size != | 305 | 3 | _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 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3 | _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 | 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 | _parsed = true; | 325 | 3 | return Status::OK(); | 326 | 3 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.65k | Status init() override { | 299 | 1.65k | CHECK(!_parsed); | 300 | 1.65k | size_t unused; | 301 | 1.65k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.65k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.65k | if (_data.size != | 305 | 1.65k | _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.65k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.65k | _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.65k | 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.65k | _parsed = true; | 325 | 1.65k | return Status::OK(); | 326 | 1.65k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 58.2k | Status init() override { | 299 | 58.2k | CHECK(!_parsed); | 300 | 58.2k | size_t unused; | 301 | 58.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 58.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 58.2k | if (_data.size != | 305 | 58.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 58.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 58.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 58.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 58.2k | _parsed = true; | 325 | 58.2k | return Status::OK(); | 326 | 58.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 67.5k | Status init() override { | 299 | 67.5k | CHECK(!_parsed); | 300 | 67.5k | size_t unused; | 301 | 67.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 67.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 67.5k | if (_data.size != | 305 | 67.5k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 67.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 67.5k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 67.5k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 67.5k | _parsed = true; | 325 | 67.5k | return Status::OK(); | 326 | 67.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.15k | Status init() override { | 299 | 3.15k | CHECK(!_parsed); | 300 | 3.15k | size_t unused; | 301 | 3.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.15k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.15k | if (_data.size != | 305 | 3.15k | _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.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.15k | _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.15k | 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.15k | _parsed = true; | 325 | 3.15k | return Status::OK(); | 326 | 3.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.57k | Status init() override { | 299 | 2.57k | CHECK(!_parsed); | 300 | 2.57k | size_t unused; | 301 | 2.57k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.57k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.57k | if (_data.size != | 305 | 2.57k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.57k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.57k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.57k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.57k | _parsed = true; | 325 | 2.57k | return Status::OK(); | 326 | 2.57k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 15.9k | Status init() override { | 299 | 15.9k | CHECK(!_parsed); | 300 | 15.9k | size_t unused; | 301 | 15.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.9k | if (_data.size != | 305 | 15.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.9k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.9k | _parsed = true; | 325 | 15.9k | return Status::OK(); | 326 | 15.9k | } |
_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 | 1 | std::stringstream ss; | 307 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 1 | return Status::InternalError(ss.str()); | 311 | 1 | } | 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 | 14.9k | Status init() override { | 299 | 14.9k | CHECK(!_parsed); | 300 | 14.9k | size_t unused; | 301 | 14.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.9k | if (_data.size != | 305 | 14.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 14.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.9k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 14.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 14.9k | _parsed = true; | 325 | 14.9k | return Status::OK(); | 326 | 14.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 41.8k | Status init() override { | 299 | 41.8k | CHECK(!_parsed); | 300 | 41.8k | size_t unused; | 301 | 41.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 41.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 41.8k | if (_data.size != | 305 | 41.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 | 41.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 41.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 | 41.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 | 41.8k | _parsed = true; | 325 | 41.8k | return Status::OK(); | 326 | 41.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.5k | Status init() override { | 299 | 30.5k | CHECK(!_parsed); | 300 | 30.5k | size_t unused; | 301 | 30.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.5k | if (_data.size != | 305 | 30.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 | 30.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.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 | 30.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 | 30.5k | _parsed = true; | 325 | 30.5k | return Status::OK(); | 326 | 30.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.75k | Status init() override { | 299 | 1.75k | CHECK(!_parsed); | 300 | 1.75k | size_t unused; | 301 | 1.75k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.75k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.75k | if (_data.size != | 305 | 1.75k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.75k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.75k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.75k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.75k | _parsed = true; | 325 | 1.75k | return Status::OK(); | 326 | 1.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 934 | Status init() override { | 299 | 934 | CHECK(!_parsed); | 300 | 934 | size_t unused; | 301 | 934 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 934 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 934 | if (_data.size != | 305 | 934 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 934 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 934 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 934 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 934 | _parsed = true; | 325 | 934 | return Status::OK(); | 326 | 934 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 977 | Status init() override { | 299 | 977 | CHECK(!_parsed); | 300 | 977 | size_t unused; | 301 | 977 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 977 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 977 | if (_data.size != | 305 | 977 | _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 | 977 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 977 | _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 | 977 | 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 | 977 | _parsed = true; | 325 | 977 | return Status::OK(); | 326 | 977 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 298 | 5.14k | Status init() override { | 299 | 5.14k | CHECK(!_parsed); | 300 | 5.14k | size_t unused; | 301 | 5.14k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 5.14k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 5.14k | if (_data.size != | 305 | 5.14k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 5.14k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 5.14k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 5.14k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 5.14k | _parsed = true; | 325 | 5.14k | return Status::OK(); | 326 | 5.14k | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 4.27M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.27M | if (_num_elements == 0) [[unlikely]] { |
337 | 8.69k | 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.69k | } |
342 | | |
343 | 4.27M | DCHECK_LE(pos, _num_elements); |
344 | 4.27M | _cur_index = pos; |
345 | 4.27M | return Status::OK(); |
346 | 4.27M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 270k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 270k | if (_num_elements == 0) [[unlikely]] { | 337 | 528 | 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 | 528 | } | 342 | | | 343 | 270k | DCHECK_LE(pos, _num_elements); | 344 | 270k | _cur_index = pos; | 345 | 270k | return Status::OK(); | 346 | 270k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 224k | Status seek_to_position_in_page(size_t pos) override { | 335 | 224k | DCHECK(_parsed) << "Must call init()"; | 336 | 224k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 224k | DCHECK_LE(pos, _num_elements); | 344 | 224k | _cur_index = pos; | 345 | 224k | return Status::OK(); | 346 | 224k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.94M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.94M | if (_num_elements == 0) [[unlikely]] { | 337 | 4.58k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 4.58k | } | 342 | | | 343 | 1.94M | DCHECK_LE(pos, _num_elements); | 344 | 1.94M | _cur_index = pos; | 345 | 1.94M | return Status::OK(); | 346 | 1.94M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 132k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 132k | if (_num_elements == 0) [[unlikely]] { | 337 | 622 | 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 | 622 | } | 342 | | | 343 | 132k | DCHECK_LE(pos, _num_elements); | 344 | 132k | _cur_index = pos; | 345 | 132k | return Status::OK(); | 346 | 132k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 116k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 116k | 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 | 116k | DCHECK_LE(pos, _num_elements); | 344 | 116k | _cur_index = pos; | 345 | 116k | return Status::OK(); | 346 | 116k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.1k | DCHECK(_parsed) << "Must call init()"; | 336 | 18.1k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 18.1k | DCHECK_LE(pos, _num_elements); | 344 | 18.1k | _cur_index = pos; | 345 | 18.1k | return Status::OK(); | 346 | 18.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 228k | Status seek_to_position_in_page(size_t pos) override { | 335 | 228k | DCHECK(_parsed) << "Must call init()"; | 336 | 228k | 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 | 228k | DCHECK_LE(pos, _num_elements); | 344 | 228k | _cur_index = pos; | 345 | 228k | return Status::OK(); | 346 | 228k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 203k | Status seek_to_position_in_page(size_t pos) override { | 335 | 203k | DCHECK(_parsed) << "Must call init()"; | 336 | 203k | 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 | 203k | DCHECK_LE(pos, _num_elements); | 344 | 203k | _cur_index = pos; | 345 | 203k | return Status::OK(); | 346 | 203k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 214k | Status seek_to_position_in_page(size_t pos) override { | 335 | 214k | DCHECK(_parsed) << "Must call init()"; | 336 | 214k | 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 | 214k | DCHECK_LE(pos, _num_elements); | 344 | 214k | _cur_index = pos; | 345 | 214k | return Status::OK(); | 346 | 214k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 496k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 496k | 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 | 496k | DCHECK_LE(pos, _num_elements); | 344 | 496k | _cur_index = pos; | 345 | 496k | return Status::OK(); | 346 | 496k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 61.3k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 61.3k | 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 | 61.3k | DCHECK_LE(pos, _num_elements); | 344 | 61.3k | _cur_index = pos; | 345 | 61.3k | return Status::OK(); | 346 | 61.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 947 | Status seek_to_position_in_page(size_t pos) override { | 335 | 947 | DCHECK(_parsed) << "Must call init()"; | 336 | 947 | 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 | 947 | DCHECK_LE(pos, _num_elements); | 344 | 947 | _cur_index = pos; | 345 | 947 | return Status::OK(); | 346 | 947 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 203k | Status seek_to_position_in_page(size_t pos) override { | 335 | 203k | DCHECK(_parsed) << "Must call init()"; | 336 | 203k | if (_num_elements == 0) [[unlikely]] { | 337 | 16 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 16 | } | 342 | | | 343 | 203k | DCHECK_LE(pos, _num_elements); | 344 | 203k | _cur_index = pos; | 345 | 203k | return Status::OK(); | 346 | 203k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.00k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 7.00k | if (_num_elements == 0) [[unlikely]] { | 337 | 355 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 355 | } | 342 | | | 343 | 7.00k | DCHECK_LE(pos, _num_elements); | 344 | 7.00k | _cur_index = pos; | 345 | 7.00k | return Status::OK(); | 346 | 7.00k | } |
_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 | 854 | Status seek_to_position_in_page(size_t pos) override { | 335 | 854 | DCHECK(_parsed) << "Must call init()"; | 336 | 854 | if (_num_elements == 0) [[unlikely]] { | 337 | 32 | 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 | 32 | } | 342 | | | 343 | 854 | DCHECK_LE(pos, _num_elements); | 344 | 854 | _cur_index = pos; | 345 | 854 | return Status::OK(); | 346 | 854 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 18.4k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.77k | 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.77k | } | 342 | | | 343 | 18.4k | DCHECK_LE(pos, _num_elements); | 344 | 18.4k | _cur_index = pos; | 345 | 18.4k | return Status::OK(); | 346 | 18.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 116k | Status seek_to_position_in_page(size_t pos) override { | 335 | 116k | DCHECK(_parsed) << "Must call init()"; | 336 | 116k | if (_num_elements == 0) [[unlikely]] { | 337 | 570 | 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 | 570 | } | 342 | | | 343 | 116k | DCHECK_LE(pos, _num_elements); | 344 | 116k | _cur_index = pos; | 345 | 116k | return Status::OK(); | 346 | 116k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.95k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.95k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.95k | if (_num_elements == 0) [[unlikely]] { | 337 | 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.95k | DCHECK_LE(pos, _num_elements); | 344 | 1.95k | _cur_index = pos; | 345 | 1.95k | return Status::OK(); | 346 | 1.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 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 | 31 | Status seek_to_position_in_page(size_t pos) override { | 335 | 31 | DCHECK(_parsed) << "Must call init()"; | 336 | 31 | 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 | 31 | DCHECK_LE(pos, _num_elements); | 344 | 31 | _cur_index = pos; | 345 | 31 | return Status::OK(); | 346 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 14.0k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 14.0k | 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 | 14.0k | DCHECK_LE(pos, _num_elements); | 344 | 14.0k | _cur_index = pos; | 345 | 14.0k | return Status::OK(); | 346 | 14.0k | } |
|
347 | | |
348 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | | |
351 | 15 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 15 | size_t left = 0; |
356 | 15 | size_t right = _num_elements; |
357 | | |
358 | 15 | 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 | 162 | while (left < right) { |
364 | 147 | size_t mid = left + (right - left) / 2; |
365 | 147 | mid_value = get_data(mid); |
366 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 68 | left = mid + 1; |
368 | 79 | } else { |
369 | 79 | right = mid; |
370 | 79 | } |
371 | 147 | } |
372 | 15 | if (left >= _num_elements) { |
373 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 3 | } |
375 | 12 | void* find_value = get_data(left); |
376 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 9 | *exact_match = true; |
378 | 9 | } else { |
379 | 3 | *exact_match = false; |
380 | 3 | } |
381 | | |
382 | 12 | _cur_index = left; |
383 | 12 | return Status::OK(); |
384 | 15 | } 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 _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | 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 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 24 | left = mid + 1; | 368 | 25 | } else { | 369 | 25 | right = mid; | 370 | 25 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | 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 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 22 | left = mid + 1; | 368 | 27 | } else { | 369 | 27 | right = mid; | 370 | 27 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
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 _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | 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 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 22 | left = mid + 1; | 368 | 27 | } else { | 369 | 27 | right = mid; | 370 | 27 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE22seek_at_or_after_valueEPKvPb |
385 | | |
386 | | template <bool forward_index = true> |
387 | 1.46M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.46M | DCHECK(_parsed); |
389 | 1.46M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.46M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.46M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.46M | *n = max_fetch; |
398 | 1.46M | if constexpr (forward_index) { |
399 | 1.41M | _cur_index += max_fetch; |
400 | 1.41M | } |
401 | | |
402 | 1.46M | return Status::OK(); |
403 | 1.46M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 121k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 121k | DCHECK(_parsed); | 389 | 121k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 121k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 121k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 121k | *n = max_fetch; | 398 | 121k | if constexpr (forward_index) { | 399 | 121k | _cur_index += max_fetch; | 400 | 121k | } | 401 | | | 402 | 121k | return Status::OK(); | 403 | 121k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 12.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 12.7k | DCHECK(_parsed); | 389 | 12.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 12.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 12.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 12.7k | *n = max_fetch; | 398 | 12.7k | if constexpr (forward_index) { | 399 | 12.7k | _cur_index += max_fetch; | 400 | 12.7k | } | 401 | | | 402 | 12.7k | return Status::OK(); | 403 | 12.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 404k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 404k | DCHECK(_parsed); | 389 | 404k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 404k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 404k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 404k | *n = max_fetch; | 398 | 404k | if constexpr (forward_index) { | 399 | 404k | _cur_index += max_fetch; | 400 | 404k | } | 401 | | | 402 | 404k | return Status::OK(); | 403 | 404k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 107k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 107k | DCHECK(_parsed); | 389 | 107k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 107k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 107k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 107k | *n = max_fetch; | 398 | 107k | if constexpr (forward_index) { | 399 | 107k | _cur_index += max_fetch; | 400 | 107k | } | 401 | | | 402 | 107k | return Status::OK(); | 403 | 107k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 15.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.4k | DCHECK(_parsed); | 389 | 15.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 15.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.4k | *n = max_fetch; | 398 | 15.4k | if constexpr (forward_index) { | 399 | 15.4k | _cur_index += max_fetch; | 400 | 15.4k | } | 401 | | | 402 | 15.4k | return Status::OK(); | 403 | 15.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 | 90.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 90.4k | DCHECK(_parsed); | 389 | 90.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 90.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 90.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 90.4k | *n = max_fetch; | 398 | 90.4k | if constexpr (forward_index) { | 399 | 90.4k | _cur_index += max_fetch; | 400 | 90.4k | } | 401 | | | 402 | 90.4k | return Status::OK(); | 403 | 90.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 53.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 53.4k | DCHECK(_parsed); | 389 | 53.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 53.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 53.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 53.4k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 53.4k | return Status::OK(); | 403 | 53.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.01k | DCHECK(_parsed); | 389 | 8.01k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.01k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.01k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.01k | *n = max_fetch; | 398 | 8.01k | if constexpr (forward_index) { | 399 | 8.01k | _cur_index += max_fetch; | 400 | 8.01k | } | 401 | | | 402 | 8.01k | return Status::OK(); | 403 | 8.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 41.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 41.1k | DCHECK(_parsed); | 389 | 41.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 41.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 41.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 41.1k | *n = max_fetch; | 398 | 41.1k | if constexpr (forward_index) { | 399 | 41.1k | _cur_index += max_fetch; | 400 | 41.1k | } | 401 | | | 402 | 41.1k | return Status::OK(); | 403 | 41.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 93 | DCHECK(_parsed); | 389 | 93 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 93 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 93 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 93 | *n = max_fetch; | 398 | 93 | if constexpr (forward_index) { | 399 | 93 | _cur_index += max_fetch; | 400 | 93 | } | 401 | | | 402 | 93 | return Status::OK(); | 403 | 93 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.68k | DCHECK(_parsed); | 389 | 3.68k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.68k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.68k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.68k | *n = max_fetch; | 398 | 3.68k | if constexpr (forward_index) { | 399 | 3.68k | _cur_index += max_fetch; | 400 | 3.68k | } | 401 | | | 402 | 3.68k | return Status::OK(); | 403 | 3.68k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 364k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 364k | DCHECK(_parsed); | 389 | 364k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 364k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 364k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 364k | *n = max_fetch; | 398 | 364k | if constexpr (forward_index) { | 399 | 364k | _cur_index += max_fetch; | 400 | 364k | } | 401 | | | 402 | 364k | return Status::OK(); | 403 | 364k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 67.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 67.7k | DCHECK(_parsed); | 389 | 67.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 67.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 67.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 67.7k | *n = max_fetch; | 398 | 67.7k | if constexpr (forward_index) { | 399 | 67.7k | _cur_index += max_fetch; | 400 | 67.7k | } | 401 | | | 402 | 67.7k | return Status::OK(); | 403 | 67.7k | } |
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.18k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.18k | DCHECK(_parsed); | 389 | 2.18k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.18k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.18k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.18k | *n = max_fetch; | 398 | 2.18k | if constexpr (forward_index) { | 399 | 2.18k | _cur_index += max_fetch; | 400 | 2.18k | } | 401 | | | 402 | 2.18k | return Status::OK(); | 403 | 2.18k | } |
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.61k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.61k | DCHECK(_parsed); | 389 | 1.61k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.61k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.61k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.61k | *n = max_fetch; | 398 | 1.61k | if constexpr (forward_index) { | 399 | 1.61k | _cur_index += max_fetch; | 400 | 1.61k | } | 401 | | | 402 | 1.61k | return Status::OK(); | 403 | 1.61k | } |
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.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.12k | DCHECK(_parsed); | 389 | 8.12k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.12k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.12k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.12k | *n = max_fetch; | 398 | 8.12k | if constexpr (forward_index) { | 399 | 8.12k | _cur_index += max_fetch; | 400 | 8.12k | } | 401 | | | 402 | 8.12k | return Status::OK(); | 403 | 8.12k | } |
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.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.26k | DCHECK(_parsed); | 389 | 1.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.26k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.26k | *n = max_fetch; | 398 | 1.26k | if constexpr (forward_index) { | 399 | 1.26k | _cur_index += max_fetch; | 400 | 1.26k | } | 401 | | | 402 | 1.26k | return Status::OK(); | 403 | 1.26k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.47k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.47k | DCHECK(_parsed); | 389 | 7.47k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.47k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.47k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.47k | *n = max_fetch; | 398 | 7.47k | if constexpr (forward_index) { | 399 | 7.47k | _cur_index += max_fetch; | 400 | 7.47k | } | 401 | | | 402 | 7.47k | return Status::OK(); | 403 | 7.47k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 32.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 32.8k | DCHECK(_parsed); | 389 | 32.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 32.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 32.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 32.8k | *n = max_fetch; | 398 | 32.8k | if constexpr (forward_index) { | 399 | 32.8k | _cur_index += max_fetch; | 400 | 32.8k | } | 401 | | | 402 | 32.8k | return Status::OK(); | 403 | 32.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 21.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 21.0k | DCHECK(_parsed); | 389 | 21.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 21.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 21.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 21.0k | *n = max_fetch; | 398 | 21.0k | if constexpr (forward_index) { | 399 | 21.0k | _cur_index += max_fetch; | 400 | 21.0k | } | 401 | | | 402 | 21.0k | return Status::OK(); | 403 | 21.0k | } |
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.18k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.18k | DCHECK(_parsed); | 389 | 3.18k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.18k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.18k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.18k | *n = max_fetch; | 398 | 3.18k | if constexpr (forward_index) { | 399 | 3.18k | _cur_index += max_fetch; | 400 | 3.18k | } | 401 | | | 402 | 3.18k | return Status::OK(); | 403 | 3.18k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 665 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 665 | DCHECK(_parsed); | 389 | 666 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 665 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 665 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 665 | *n = max_fetch; | 398 | 665 | if constexpr (forward_index) { | 399 | 665 | _cur_index += max_fetch; | 400 | 665 | } | 401 | | | 402 | 665 | return Status::OK(); | 403 | 665 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 686 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 686 | DCHECK(_parsed); | 389 | 687 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 686 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 686 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 686 | *n = max_fetch; | 398 | 686 | if constexpr (forward_index) { | 399 | 686 | _cur_index += max_fetch; | 400 | 686 | } | 401 | | | 402 | 686 | return Status::OK(); | 403 | 686 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 99.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 99.6k | DCHECK(_parsed); | 389 | 99.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 99.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 99.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 99.6k | *n = max_fetch; | 398 | 99.6k | if constexpr (forward_index) { | 399 | 99.6k | _cur_index += max_fetch; | 400 | 99.6k | } | 401 | | | 402 | 99.6k | return Status::OK(); | 403 | 99.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.41M | 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 | 121k | 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 | 12.7k | 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 | 403k | 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 | 107k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 15.5k | 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 | 90.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 8.01k | 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 | 41.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 3.67k | 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 | 363k | 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 | 67.7k | 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.18k | 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.61k | 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.12k | 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.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.47k | 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 | 32.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 21.0k | 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.18k | 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 | 665 | 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 | 686 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 99.7k | 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 | 386k | MutableColumnPtr& dst) override { |
409 | 386k | DCHECK(_parsed); |
410 | 386k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 386k | auto total = *n; |
416 | 386k | auto read_count = 0; |
417 | 386k | _buffer.resize(total); |
418 | 124M | for (size_t i = 0; i < total; ++i) { |
419 | 124M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 124M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 12.7k | break; |
422 | 12.7k | } |
423 | | |
424 | 124M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 124M | } |
426 | | |
427 | 387k | if (LIKELY(read_count > 0)) { |
428 | 387k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 387k | } |
430 | | |
431 | 386k | *n = read_count; |
432 | 386k | return Status::OK(); |
433 | 386k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 33.8k | MutableColumnPtr& dst) override { | 409 | 33.8k | DCHECK(_parsed); | 410 | 33.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 33.8k | auto total = *n; | 416 | 33.8k | auto read_count = 0; | 417 | 33.8k | _buffer.resize(total); | 418 | 1.85M | for (size_t i = 0; i < total; ++i) { | 419 | 1.81M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81M | } | 426 | | | 427 | 33.9k | if (LIKELY(read_count > 0)) { | 428 | 33.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 33.9k | } | 430 | | | 431 | 33.8k | *n = read_count; | 432 | 33.8k | return Status::OK(); | 433 | 33.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 3.81k | MutableColumnPtr& dst) override { | 409 | 3.81k | DCHECK(_parsed); | 410 | 3.81k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 3.81k | auto total = *n; | 416 | 3.81k | auto read_count = 0; | 417 | 3.81k | _buffer.resize(total); | 418 | 636k | for (size_t i = 0; i < total; ++i) { | 419 | 632k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 632k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 632k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 632k | } | 426 | | | 427 | 3.81k | if (LIKELY(read_count > 0)) { | 428 | 3.81k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 3.81k | } | 430 | | | 431 | 3.81k | *n = read_count; | 432 | 3.81k | return Status::OK(); | 433 | 3.81k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 78.5k | MutableColumnPtr& dst) override { | 409 | 78.5k | DCHECK(_parsed); | 410 | 78.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 78.5k | auto total = *n; | 416 | 78.5k | auto read_count = 0; | 417 | 78.5k | _buffer.resize(total); | 418 | 39.2M | for (size_t i = 0; i < total; ++i) { | 419 | 39.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 39.1M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 742 | break; | 422 | 742 | } | 423 | | | 424 | 39.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 39.1M | } | 426 | | | 427 | 78.6k | if (LIKELY(read_count > 0)) { | 428 | 78.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 78.6k | } | 430 | | | 431 | 78.5k | *n = read_count; | 432 | 78.5k | return Status::OK(); | 433 | 78.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 69.0k | MutableColumnPtr& dst) override { | 409 | 69.0k | DCHECK(_parsed); | 410 | 69.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 69.0k | auto total = *n; | 416 | 69.0k | auto read_count = 0; | 417 | 69.0k | _buffer.resize(total); | 418 | 26.3M | for (size_t i = 0; i < total; ++i) { | 419 | 26.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 26.3M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.17k | break; | 422 | 2.17k | } | 423 | | | 424 | 26.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 26.3M | } | 426 | | | 427 | 69.1k | if (LIKELY(read_count > 0)) { | 428 | 69.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 69.1k | } | 430 | | | 431 | 69.0k | *n = read_count; | 432 | 69.0k | return Status::OK(); | 433 | 69.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.04k | MutableColumnPtr& dst) override { | 409 | 7.04k | DCHECK(_parsed); | 410 | 7.04k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.04k | auto total = *n; | 416 | 7.04k | auto read_count = 0; | 417 | 7.04k | _buffer.resize(total); | 418 | 1.16M | for (size_t i = 0; i < total; ++i) { | 419 | 1.15M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.15M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 614 | break; | 422 | 614 | } | 423 | | | 424 | 1.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.15M | } | 426 | | | 427 | 7.04k | if (LIKELY(read_count > 0)) { | 428 | 7.04k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.04k | } | 430 | | | 431 | 7.04k | *n = read_count; | 432 | 7.04k | return Status::OK(); | 433 | 7.04k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 62.2k | MutableColumnPtr& dst) override { | 409 | 62.2k | DCHECK(_parsed); | 410 | 62.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 62.2k | auto total = *n; | 416 | 62.2k | auto read_count = 0; | 417 | 62.2k | _buffer.resize(total); | 418 | 4.58M | for (size_t i = 0; i < total; ++i) { | 419 | 4.52M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 4.52M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.49k | break; | 422 | 1.49k | } | 423 | | | 424 | 4.51M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 4.51M | } | 426 | | | 427 | 62.2k | if (LIKELY(read_count > 0)) { | 428 | 62.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 62.2k | } | 430 | | | 431 | 62.2k | *n = read_count; | 432 | 62.2k | return Status::OK(); | 433 | 62.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 | 2.87k | MutableColumnPtr& dst) override { | 409 | 2.87k | DCHECK(_parsed); | 410 | 2.87k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.87k | auto total = *n; | 416 | 2.87k | auto read_count = 0; | 417 | 2.87k | _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 | 2.87k | if (LIKELY(read_count > 0)) { | 428 | 2.87k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.87k | } | 430 | | | 431 | 2.87k | *n = read_count; | 432 | 2.87k | return Status::OK(); | 433 | 2.87k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.14k | MutableColumnPtr& dst) override { | 409 | 5.14k | DCHECK(_parsed); | 410 | 5.14k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.14k | auto total = *n; | 416 | 5.14k | auto read_count = 0; | 417 | 5.14k | _buffer.resize(total); | 418 | 1.97M | for (size_t i = 0; i < total; ++i) { | 419 | 1.97M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.97M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 444 | break; | 422 | 444 | } | 423 | | | 424 | 1.97M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.97M | } | 426 | | | 427 | 5.15k | if (LIKELY(read_count > 0)) { | 428 | 5.15k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.15k | } | 430 | | | 431 | 5.14k | *n = read_count; | 432 | 5.14k | return Status::OK(); | 433 | 5.14k | } |
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.31k | MutableColumnPtr& dst) override { | 409 | 1.31k | DCHECK(_parsed); | 410 | 1.31k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.31k | auto total = *n; | 416 | 1.31k | auto read_count = 0; | 417 | 1.31k | _buffer.resize(total); | 418 | 504k | for (size_t i = 0; i < total; ++i) { | 419 | 503k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 503k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 15 | break; | 422 | 15 | } | 423 | | | 424 | 503k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 503k | } | 426 | | | 427 | 1.31k | if (LIKELY(read_count > 0)) { | 428 | 1.31k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.31k | } | 430 | | | 431 | 1.31k | *n = read_count; | 432 | 1.31k | return Status::OK(); | 433 | 1.31k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.1k | MutableColumnPtr& dst) override { | 409 | 28.1k | DCHECK(_parsed); | 410 | 28.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.1k | auto total = *n; | 416 | 28.1k | auto read_count = 0; | 417 | 28.1k | _buffer.resize(total); | 418 | 6.22M | for (size_t i = 0; i < total; ++i) { | 419 | 6.19M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.19M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 489 | break; | 422 | 489 | } | 423 | | | 424 | 6.19M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.19M | } | 426 | | | 427 | 28.1k | if (LIKELY(read_count > 0)) { | 428 | 28.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.1k | } | 430 | | | 431 | 28.1k | *n = read_count; | 432 | 28.1k | return Status::OK(); | 433 | 28.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.6k | MutableColumnPtr& dst) override { | 409 | 32.6k | DCHECK(_parsed); | 410 | 32.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.6k | auto total = *n; | 416 | 32.6k | auto read_count = 0; | 417 | 32.6k | _buffer.resize(total); | 418 | 10.0M | for (size_t i = 0; i < total; ++i) { | 419 | 10.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 10.0M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 224 | break; | 422 | 224 | } | 423 | | | 424 | 10.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 10.0M | } | 426 | | | 427 | 32.6k | if (LIKELY(read_count > 0)) { | 428 | 32.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.6k | } | 430 | | | 431 | 32.6k | *n = read_count; | 432 | 32.6k | return Status::OK(); | 433 | 32.6k | } |
_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.74k | MutableColumnPtr& dst) override { | 409 | 1.74k | DCHECK(_parsed); | 410 | 1.74k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.74k | auto total = *n; | 416 | 1.74k | auto read_count = 0; | 417 | 1.74k | _buffer.resize(total); | 418 | 502k | 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 | 243 | break; | 422 | 243 | } | 423 | | | 424 | 501k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 501k | } | 426 | | | 427 | 1.74k | if (LIKELY(read_count > 0)) { | 428 | 1.74k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.74k | } | 430 | | | 431 | 1.74k | *n = read_count; | 432 | 1.74k | return Status::OK(); | 433 | 1.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.4k | MutableColumnPtr& dst) override { | 409 | 12.4k | DCHECK(_parsed); | 410 | 12.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.4k | auto total = *n; | 416 | 12.4k | auto read_count = 0; | 417 | 12.4k | _buffer.resize(total); | 418 | 26.4k | for (size_t i = 0; i < total; ++i) { | 419 | 13.9k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.9k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.9k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.9k | } | 426 | | | 427 | 12.4k | if (LIKELY(read_count > 0)) { | 428 | 12.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.4k | } | 430 | | | 431 | 12.4k | *n = read_count; | 432 | 12.4k | return Status::OK(); | 433 | 12.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 135 | MutableColumnPtr& dst) override { | 409 | 135 | DCHECK(_parsed); | 410 | 135 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 135 | auto total = *n; | 416 | 135 | auto read_count = 0; | 417 | 135 | _buffer.resize(total); | 418 | 275 | for (size_t i = 0; i < total; ++i) { | 419 | 140 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 140 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 140 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 140 | } | 426 | | | 427 | 135 | if (LIKELY(read_count > 0)) { | 428 | 135 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 135 | } | 430 | | | 431 | 135 | *n = read_count; | 432 | 135 | return Status::OK(); | 433 | 135 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.54k | MutableColumnPtr& dst) override { | 409 | 4.54k | DCHECK(_parsed); | 410 | 4.54k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.54k | auto total = *n; | 416 | 4.54k | auto read_count = 0; | 417 | 4.54k | _buffer.resize(total); | 418 | 19.0k | for (size_t i = 0; i < total; ++i) { | 419 | 14.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.5k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.5k | } | 426 | | | 427 | 4.54k | if (LIKELY(read_count > 0)) { | 428 | 4.54k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.54k | } | 430 | | | 431 | 4.54k | *n = read_count; | 432 | 4.54k | return Status::OK(); | 433 | 4.54k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.8k | MutableColumnPtr& dst) override { | 409 | 26.8k | DCHECK(_parsed); | 410 | 26.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.8k | auto total = *n; | 416 | 26.8k | auto read_count = 0; | 417 | 26.8k | _buffer.resize(total); | 418 | 21.1M | for (size_t i = 0; i < total; ++i) { | 419 | 21.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 21.1M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.49k | break; | 422 | 5.49k | } | 423 | | | 424 | 21.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 21.1M | } | 426 | | | 427 | 26.8k | if (LIKELY(read_count > 0)) { | 428 | 26.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.8k | } | 430 | | | 431 | 26.8k | *n = read_count; | 432 | 26.8k | return Status::OK(); | 433 | 26.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.2k | MutableColumnPtr& dst) override { | 409 | 13.2k | DCHECK(_parsed); | 410 | 13.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.2k | auto total = *n; | 416 | 13.2k | auto read_count = 0; | 417 | 13.2k | _buffer.resize(total); | 418 | 8.90M | for (size_t i = 0; i < total; ++i) { | 419 | 8.89M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.89M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 762 | break; | 422 | 762 | } | 423 | | | 424 | 8.89M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.89M | } | 426 | | | 427 | 13.2k | if (LIKELY(read_count > 0)) { | 428 | 13.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.2k | } | 430 | | | 431 | 13.2k | *n = read_count; | 432 | 13.2k | return Status::OK(); | 433 | 13.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 964 | MutableColumnPtr& dst) override { | 409 | 964 | DCHECK(_parsed); | 410 | 964 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 964 | auto total = *n; | 416 | 964 | auto read_count = 0; | 417 | 964 | _buffer.resize(total); | 418 | 2.78k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 964 | if (LIKELY(read_count > 0)) { | 428 | 964 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 964 | } | 430 | | | 431 | 964 | *n = read_count; | 432 | 964 | return Status::OK(); | 433 | 964 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 292 | MutableColumnPtr& dst) override { | 409 | 292 | DCHECK(_parsed); | 410 | 292 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 292 | auto total = *n; | 416 | 292 | auto read_count = 0; | 417 | 292 | _buffer.resize(total); | 418 | 828 | for (size_t i = 0; i < total; ++i) { | 419 | 536 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 536 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 536 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 536 | } | 426 | | | 427 | 292 | if (LIKELY(read_count > 0)) { | 428 | 292 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 292 | } | 430 | | | 431 | 292 | *n = read_count; | 432 | 292 | return Status::OK(); | 433 | 292 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 326 | MutableColumnPtr& dst) override { | 409 | 326 | DCHECK(_parsed); | 410 | 326 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 326 | auto total = *n; | 416 | 326 | auto read_count = 0; | 417 | 326 | _buffer.resize(total); | 418 | 1.18k | for (size_t i = 0; i < total; ++i) { | 419 | 857 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 857 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 857 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 857 | } | 426 | | | 427 | 326 | if (LIKELY(read_count > 0)) { | 428 | 326 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 326 | } | 430 | | | 431 | 326 | *n = read_count; | 432 | 326 | return Status::OK(); | 433 | 326 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 491 | MutableColumnPtr& dst) override { | 409 | 491 | DCHECK(_parsed); | 410 | 491 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 491 | auto total = *n; | 416 | 491 | auto read_count = 0; | 417 | 491 | _buffer.resize(total); | 418 | 1.10k | for (size_t i = 0; i < total; ++i) { | 419 | 611 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 611 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 611 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 611 | } | 426 | | | 427 | 491 | if (LIKELY(read_count > 0)) { | 428 | 491 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 491 | } | 430 | | | 431 | 491 | *n = read_count; | 432 | 491 | return Status::OK(); | 433 | 491 | } |
|
434 | | |
435 | 53.5k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 53.5k | return next_batch<false>(n, dst); |
437 | 53.5k | } 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 | 53.5k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 53.5k | return next_batch<false>(n, dst); | 437 | 53.5k | } |
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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE15peek_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 Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE5countEv |
440 | | |
441 | 3.77M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 222k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 220k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.89M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 94.1k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 110k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 227k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 200k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 211k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 229k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 29.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 270 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 201k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.10k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 11 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.39k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 2.47k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 111k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 309 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 39 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 45 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 441 | 11.5k | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 126M | char* get_data(size_t index) const { |
444 | 126M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 126M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.94M | char* get_data(size_t index) const { | 444 | 1.94M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.94M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 645k | char* get_data(size_t index) const { | 444 | 645k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 645k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 40.7M | char* get_data(size_t index) const { | 444 | 40.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 40.7M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 26.4M | char* get_data(size_t index) const { | 444 | 26.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 26.4M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.17M | char* get_data(size_t index) const { | 444 | 1.17M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.17M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 4.66M | char* get_data(size_t index) const { | 444 | 4.66M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.66M | } |
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 | 2.01M | char* get_data(size_t index) const { | 444 | 2.01M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.01M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 443 | 93 | char* get_data(size_t index) const { | 444 | 93 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 93 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 506k | char* get_data(size_t index) const { | 444 | 506k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 506k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.56M | char* get_data(size_t index) const { | 444 | 6.56M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.56M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 10.0M | char* get_data(size_t index) const { | 444 | 10.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 10.0M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 5.01k | char* get_data(size_t index) const { | 444 | 5.01k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.01k | } |
_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 | 22.1k | char* get_data(size_t index) const { | 444 | 22.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.46k | char* get_data(size_t index) const { | 444 | 1.46k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.46k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 22.0k | char* get_data(size_t index) const { | 444 | 22.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 21.1M | char* get_data(size_t index) const { | 444 | 21.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.91M | char* get_data(size_t index) const { | 444 | 8.91M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.91M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 5.00k | char* get_data(size_t index) const { | 444 | 5.00k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.00k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.20k | char* get_data(size_t index) const { | 444 | 1.20k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.20k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.54k | char* get_data(size_t index) const { | 444 | 1.54k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.54k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 443 | 100k | char* get_data(size_t index) const { | 444 | 100k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 100k | } |
|
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 |