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 | 785k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 62.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 11.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 371k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 105k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 14.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 67.7k | 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 | 8.98k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 10.1k | 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.7k | 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 | 431 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.69k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 335 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.69k | 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 | 715 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 711 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 95 | 619 | Status init() override { return reset(); } |
|
96 | | |
97 | 153M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 71.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 13.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 152M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 155k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 13.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 68.1k | 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 | 8.31k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 11.2k | 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 | 45.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 44.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 333 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 552 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.70k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 302 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.20k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 26.5k | 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 | 671 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 694 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 97 | 26.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.26M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.26M | return add_internal<false>(vals, count); |
101 | 1.26M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 71.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 71.9k | return add_internal<false>(vals, count); | 101 | 71.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 13.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 13.2k | return add_internal<false>(vals, count); | 101 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 741k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 741k | return add_internal<false>(vals, count); | 101 | 741k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 155k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 155k | return add_internal<false>(vals, count); | 101 | 155k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 13.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 13.1k | return add_internal<false>(vals, count); | 101 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 68.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 68.1k | return add_internal<false>(vals, count); | 101 | 68.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 8.31k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.31k | return add_internal<false>(vals, count); | 101 | 8.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 11.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.2k | return add_internal<false>(vals, count); | 101 | 11.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 | 45.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.9k | return add_internal<false>(vals, count); | 101 | 45.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 44.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.5k | return add_internal<false>(vals, count); | 101 | 44.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 333 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 333 | return add_internal<false>(vals, count); | 101 | 333 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 552 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 552 | return add_internal<false>(vals, count); | 101 | 552 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.70k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.70k | return add_internal<false>(vals, count); | 101 | 7.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 303 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 303 | return add_internal<false>(vals, count); | 101 | 303 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.20k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.20k | return add_internal<false>(vals, count); | 101 | 5.20k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 26.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.5k | return add_internal<false>(vals, count); | 101 | 26.5k | } |
_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 | 671 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 671 | return add_internal<false>(vals, count); | 101 | 671 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 694 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 694 | return add_internal<false>(vals, count); | 101 | 694 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 99 | 26.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.5k | return add_internal<false>(vals, count); | 101 | 26.5k | } |
|
102 | | |
103 | 153M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 153M | return add_internal<true>(vals, count); |
105 | 153M | } |
106 | | |
107 | | template <bool single> |
108 | 150M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 150M | DCHECK(!_finished); |
110 | 150M | 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 | 150M | uint32_t to_add = cast_set<UInt32>( |
126 | 150M | 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 | 150M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 150M | 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 | 150M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 155M | _count += to_add; |
134 | 155M | _remain_element_capacity -= to_add; |
135 | 155M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 155M | *num_written = to_add; |
138 | 155M | 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 | 154M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 154M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 154M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 154M | 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 | 154M | } |
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 | 155M | return Status::OK(); |
159 | 150M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 71.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 71.9k | DCHECK(!_finished); | 110 | 71.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 | 71.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 71.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 | 71.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 71.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 | 71.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 71.9k | _count += to_add; | 134 | 71.9k | _remain_element_capacity -= to_add; | 135 | 71.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 71.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 | 71.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 71.9k | return Status::OK(); | 159 | 71.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 13.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 13.2k | DCHECK(!_finished); | 110 | 13.2k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 13.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 13.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 13.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 13.2k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 13.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 13.2k | _count += to_add; | 134 | 13.2k | _remain_element_capacity -= to_add; | 135 | 13.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 13.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 13.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 13.2k | return Status::OK(); | 159 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 741k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 741k | DCHECK(!_finished); | 110 | 741k | 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 | 741k | uint32_t to_add = cast_set<UInt32>( | 126 | 741k | 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 | 741k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 741k | 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 | 741k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 741k | _count += to_add; | 134 | 741k | _remain_element_capacity -= to_add; | 135 | 741k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 741k | *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 | 741k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 741k | return Status::OK(); | 159 | 741k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 155k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 155k | DCHECK(!_finished); | 110 | 155k | 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 | 155k | uint32_t to_add = cast_set<UInt32>( | 126 | 155k | 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 | 155k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 155k | 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 | 155k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 155k | _count += to_add; | 134 | 155k | _remain_element_capacity -= to_add; | 135 | 155k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 155k | *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 | 155k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 155k | return Status::OK(); | 159 | 155k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 13.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 13.1k | DCHECK(!_finished); | 110 | 13.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 13.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 13.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 13.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 13.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 13.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 13.1k | _count += to_add; | 134 | 13.1k | _remain_element_capacity -= to_add; | 135 | 13.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 13.1k | *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 | 13.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 13.1k | return Status::OK(); | 159 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 68.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 68.1k | DCHECK(!_finished); | 110 | 68.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 68.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 68.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 68.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 68.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 68.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 68.1k | _count += to_add; | 134 | 68.1k | _remain_element_capacity -= to_add; | 135 | 68.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 68.1k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 68.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 68.1k | return Status::OK(); | 159 | 68.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.31k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.31k | DCHECK(!_finished); | 110 | 8.31k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 8.31k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.31k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 8.31k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.31k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 8.31k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.31k | _count += to_add; | 134 | 8.31k | _remain_element_capacity -= to_add; | 135 | 8.31k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.31k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 8.31k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.31k | return Status::OK(); | 159 | 8.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.2k | DCHECK(!_finished); | 110 | 11.2k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 11.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 11.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.2k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 11.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.2k | _count += to_add; | 134 | 11.2k | _remain_element_capacity -= to_add; | 135 | 11.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 11.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.2k | return Status::OK(); | 159 | 11.2k | } |
_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 | 45.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.9k | DCHECK(!_finished); | 110 | 45.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 | 45.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.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 | 45.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.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 | 45.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.9k | _count += to_add; | 134 | 45.9k | _remain_element_capacity -= to_add; | 135 | 45.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.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 | 45.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.9k | return Status::OK(); | 159 | 45.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.5k | DCHECK(!_finished); | 110 | 44.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.5k | 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.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.5k | _count += to_add; | 134 | 44.5k | _remain_element_capacity -= to_add; | 135 | 44.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.5k | *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.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.5k | return Status::OK(); | 159 | 44.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 333 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 333 | DCHECK(!_finished); | 110 | 333 | 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 | 333 | uint32_t to_add = cast_set<UInt32>( | 126 | 333 | 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 | 333 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 333 | 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 | 333 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 333 | _count += to_add; | 134 | 333 | _remain_element_capacity -= to_add; | 135 | 333 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 333 | *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 | 333 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 333 | return Status::OK(); | 159 | 333 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 552 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 552 | DCHECK(!_finished); | 110 | 552 | 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 | 552 | uint32_t to_add = cast_set<UInt32>( | 126 | 552 | 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 | 552 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 552 | 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 | 552 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 552 | _count += to_add; | 134 | 552 | _remain_element_capacity -= to_add; | 135 | 552 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 552 | *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 | 552 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 552 | return Status::OK(); | 159 | 552 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.70k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.70k | DCHECK(!_finished); | 110 | 7.70k | 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.70k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.70k | 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.70k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.70k | 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.70k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.70k | _count += to_add; | 134 | 7.70k | _remain_element_capacity -= to_add; | 135 | 7.70k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.70k | *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.70k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.70k | return Status::OK(); | 159 | 7.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 303 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 303 | DCHECK(!_finished); | 110 | 303 | 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 | 303 | uint32_t to_add = cast_set<UInt32>( | 126 | 303 | 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 | 303 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 303 | 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 | 303 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 303 | _count += to_add; | 134 | 303 | _remain_element_capacity -= to_add; | 135 | 303 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 303 | *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 | 303 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 303 | return Status::OK(); | 159 | 303 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.20k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.20k | DCHECK(!_finished); | 110 | 5.20k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 5.20k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.20k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 5.20k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.20k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 5.20k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.20k | _count += to_add; | 134 | 5.20k | _remain_element_capacity -= to_add; | 135 | 5.20k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.20k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.20k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.20k | return Status::OK(); | 159 | 5.20k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.5k | DCHECK(!_finished); | 110 | 26.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.5k | 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.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.5k | _count += to_add; | 134 | 26.5k | _remain_element_capacity -= to_add; | 135 | 26.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.5k | *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.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.5k | return Status::OK(); | 159 | 26.5k | } |
_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 | 671 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 671 | DCHECK(!_finished); | 110 | 671 | 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 | 671 | uint32_t to_add = cast_set<UInt32>( | 126 | 671 | 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 | 671 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 671 | 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 | 671 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 671 | _count += to_add; | 134 | 671 | _remain_element_capacity -= to_add; | 135 | 671 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 671 | *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 | 671 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 671 | return Status::OK(); | 159 | 671 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 694 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 694 | DCHECK(!_finished); | 110 | 694 | 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 | 694 | uint32_t to_add = cast_set<UInt32>( | 126 | 694 | 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 | 694 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 694 | 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 | 694 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 694 | _count += to_add; | 134 | 694 | _remain_element_capacity -= to_add; | 135 | 694 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 694 | *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 | 694 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 694 | return Status::OK(); | 159 | 694 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.5k | DCHECK(!_finished); | 110 | 26.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.5k | 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.5k | 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.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 149M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 149M | DCHECK(!_finished); | 110 | 149M | 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 | 149M | uint32_t to_add = cast_set<UInt32>( | 126 | 149M | 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 | 149M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 149M | 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 | 149M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 154M | _count += to_add; | 134 | 154M | _remain_element_capacity -= to_add; | 135 | 154M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 154M | *num_written = to_add; | 138 | 154M | 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 | 154M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 154M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 154M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 154M | 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 | 154M | } | 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 | 154M | return Status::OK(); | 159 | 149M | } |
|
160 | | |
161 | 774k | Status finish(OwnedSlice* slice) override { |
162 | 774k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 774k | return Status::OK(); |
164 | 774k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 61.8k | Status finish(OwnedSlice* slice) override { | 162 | 61.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 61.8k | return Status::OK(); | 164 | 61.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.2k | Status finish(OwnedSlice* slice) override { | 162 | 10.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.2k | return Status::OK(); | 164 | 10.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 355k | Status finish(OwnedSlice* slice) override { | 162 | 355k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 355k | return Status::OK(); | 164 | 355k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 107k | Status finish(OwnedSlice* slice) override { | 162 | 107k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 107k | return Status::OK(); | 164 | 107k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 13.3k | Status finish(OwnedSlice* slice) override { | 162 | 13.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 13.3k | return Status::OK(); | 164 | 13.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 67.8k | Status finish(OwnedSlice* slice) override { | 162 | 67.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 67.8k | return Status::OK(); | 164 | 67.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.15k | Status finish(OwnedSlice* slice) override { | 162 | 8.15k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.15k | return Status::OK(); | 164 | 8.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.52k | Status finish(OwnedSlice* slice) override { | 162 | 9.52k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.52k | return Status::OK(); | 164 | 9.52k | } |
_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.3k | Status finish(OwnedSlice* slice) override { | 162 | 38.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.4k | return Status::OK(); | 164 | 38.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.7k | Status finish(OwnedSlice* slice) override { | 162 | 43.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.7k | return Status::OK(); | 164 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 275 | Status finish(OwnedSlice* slice) override { | 162 | 275 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 275 | return Status::OK(); | 164 | 275 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 590 | Status finish(OwnedSlice* slice) override { | 162 | 590 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 590 | return Status::OK(); | 164 | 590 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.75k | Status finish(OwnedSlice* slice) override { | 162 | 7.75k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.75k | return Status::OK(); | 164 | 7.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 253 | Status finish(OwnedSlice* slice) override { | 162 | 253 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 253 | return Status::OK(); | 164 | 253 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.68k | Status finish(OwnedSlice* slice) override { | 162 | 9.68k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.69k | return Status::OK(); | 164 | 9.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.4k | Status finish(OwnedSlice* slice) override { | 162 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.4k | return Status::OK(); | 164 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.1k | Status finish(OwnedSlice* slice) override { | 162 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.1k | return Status::OK(); | 164 | 17.1k | } |
_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 | 624 | Status finish(OwnedSlice* slice) override { | 162 | 624 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 625 | return Status::OK(); | 164 | 624 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 632 | Status finish(OwnedSlice* slice) override { | 162 | 632 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 632 | return Status::OK(); | 164 | 632 | } |
_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 | 124k | Status reset() override { | 167 | 124k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 124k | size_t block_size = _options.data_page_size; | 169 | 124k | _count = 0; | 170 | 124k | _raw_data_size = 0; | 171 | 124k | _data.clear(); | 172 | 124k | _data.reserve(block_size); | 173 | 124k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 124k | << "buffer must be naturally-aligned"; | 175 | 124k | _buffer.clear(); | 176 | 124k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 124k | _finished = false; | 178 | 124k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 124k | }); | 180 | 124k | return Status::OK(); | 181 | 124k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 21.2k | Status reset() override { | 167 | 21.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 21.2k | size_t block_size = _options.data_page_size; | 169 | 21.2k | _count = 0; | 170 | 21.2k | _raw_data_size = 0; | 171 | 21.2k | _data.clear(); | 172 | 21.2k | _data.reserve(block_size); | 173 | 21.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 21.2k | << "buffer must be naturally-aligned"; | 175 | 21.2k | _buffer.clear(); | 176 | 21.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 21.2k | _finished = false; | 178 | 21.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 21.2k | }); | 180 | 21.3k | return Status::OK(); | 181 | 21.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.03M | Status reset() override { | 167 | 1.03M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.03M | size_t block_size = _options.data_page_size; | 169 | 1.03M | _count = 0; | 170 | 1.03M | _raw_data_size = 0; | 171 | 1.03M | _data.clear(); | 172 | 1.03M | _data.reserve(block_size); | 173 | 1.03M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.03M | << "buffer must be naturally-aligned"; | 175 | 1.03M | _buffer.clear(); | 176 | 1.03M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.03M | _finished = false; | 178 | 1.03M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.03M | }); | 180 | 1.03M | return Status::OK(); | 181 | 1.03M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 212k | Status reset() override { | 167 | 212k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 212k | size_t block_size = _options.data_page_size; | 169 | 212k | _count = 0; | 170 | 212k | _raw_data_size = 0; | 171 | 212k | _data.clear(); | 172 | 212k | _data.reserve(block_size); | 173 | 212k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 212k | << "buffer must be naturally-aligned"; | 175 | 212k | _buffer.clear(); | 176 | 212k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 212k | _finished = false; | 178 | 212k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 212k | }); | 180 | 212k | return Status::OK(); | 181 | 212k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 27.4k | Status reset() override { | 167 | 27.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 27.4k | size_t block_size = _options.data_page_size; | 169 | 27.4k | _count = 0; | 170 | 27.4k | _raw_data_size = 0; | 171 | 27.4k | _data.clear(); | 172 | 27.4k | _data.reserve(block_size); | 173 | 27.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 27.4k | << "buffer must be naturally-aligned"; | 175 | 27.4k | _buffer.clear(); | 176 | 27.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 27.4k | _finished = false; | 178 | 27.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 27.4k | }); | 180 | 27.4k | return Status::OK(); | 181 | 27.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 135k | Status reset() override { | 167 | 135k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 135k | size_t block_size = _options.data_page_size; | 169 | 135k | _count = 0; | 170 | 135k | _raw_data_size = 0; | 171 | 135k | _data.clear(); | 172 | 135k | _data.reserve(block_size); | 173 | 135k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 135k | << "buffer must be naturally-aligned"; | 175 | 135k | _buffer.clear(); | 176 | 135k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 135k | _finished = false; | 178 | 135k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 135k | }); | 180 | 135k | return Status::OK(); | 181 | 135k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 17.1k | Status reset() override { | 167 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 17.1k | size_t block_size = _options.data_page_size; | 169 | 17.1k | _count = 0; | 170 | 17.1k | _raw_data_size = 0; | 171 | 17.1k | _data.clear(); | 172 | 17.1k | _data.reserve(block_size); | 173 | 17.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 17.1k | << "buffer must be naturally-aligned"; | 175 | 17.1k | _buffer.clear(); | 176 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 17.1k | _finished = false; | 178 | 17.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 17.1k | }); | 180 | 17.1k | return Status::OK(); | 181 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 19.6k | Status reset() override { | 167 | 19.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.6k | size_t block_size = _options.data_page_size; | 169 | 19.6k | _count = 0; | 170 | 19.6k | _raw_data_size = 0; | 171 | 19.6k | _data.clear(); | 172 | 19.6k | _data.reserve(block_size); | 173 | 19.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.6k | << "buffer must be naturally-aligned"; | 175 | 19.6k | _buffer.clear(); | 176 | 19.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.6k | _finished = false; | 178 | 19.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.6k | }); | 180 | 19.6k | return Status::OK(); | 181 | 19.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_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.4k | Status reset() override { | 167 | 88.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 88.4k | size_t block_size = _options.data_page_size; | 169 | 88.4k | _count = 0; | 170 | 88.4k | _raw_data_size = 0; | 171 | 88.4k | _data.clear(); | 172 | 88.4k | _data.reserve(block_size); | 173 | 88.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 88.4k | << "buffer must be naturally-aligned"; | 175 | 88.4k | _buffer.clear(); | 176 | 88.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 88.4k | _finished = false; | 178 | 88.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 88.4k | }); | 180 | 88.5k | return Status::OK(); | 181 | 88.4k | } |
_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 | 613 | 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.4k | Status reset() override { | 167 | 15.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.4k | size_t block_size = _options.data_page_size; | 169 | 15.4k | _count = 0; | 170 | 15.4k | _raw_data_size = 0; | 171 | 15.4k | _data.clear(); | 172 | 15.4k | _data.reserve(block_size); | 173 | 15.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.4k | << "buffer must be naturally-aligned"; | 175 | 15.4k | _buffer.clear(); | 176 | 15.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.4k | _finished = false; | 178 | 15.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.4k | }); | 180 | 15.5k | return Status::OK(); | 181 | 15.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 587 | Status reset() override { | 167 | 587 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 587 | size_t block_size = _options.data_page_size; | 169 | 587 | _count = 0; | 170 | 587 | _raw_data_size = 0; | 171 | 587 | _data.clear(); | 172 | 587 | _data.reserve(block_size); | 173 | 587 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 587 | << "buffer must be naturally-aligned"; | 175 | 587 | _buffer.clear(); | 176 | 587 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 587 | _finished = false; | 178 | 587 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 587 | }); | 180 | 587 | return Status::OK(); | 181 | 587 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.3k | Status reset() override { | 167 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.3k | size_t block_size = _options.data_page_size; | 169 | 19.3k | _count = 0; | 170 | 19.3k | _raw_data_size = 0; | 171 | 19.3k | _data.clear(); | 172 | 19.3k | _data.reserve(block_size); | 173 | 19.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.3k | << "buffer must be naturally-aligned"; | 175 | 19.3k | _buffer.clear(); | 176 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.3k | _finished = false; | 178 | 19.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.3k | }); | 180 | 19.3k | return Status::OK(); | 181 | 19.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.5k | Status reset() override { | 167 | 31.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.5k | size_t block_size = _options.data_page_size; | 169 | 31.5k | _count = 0; | 170 | 31.5k | _raw_data_size = 0; | 171 | 31.5k | _data.clear(); | 172 | 31.5k | _data.reserve(block_size); | 173 | 31.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.5k | << "buffer must be naturally-aligned"; | 175 | 31.5k | _buffer.clear(); | 176 | 31.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.5k | _finished = false; | 178 | 31.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.5k | }); | 180 | 31.6k | return Status::OK(); | 181 | 31.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 34.1k | Status reset() override { | 167 | 34.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 34.1k | size_t block_size = _options.data_page_size; | 169 | 34.1k | _count = 0; | 170 | 34.1k | _raw_data_size = 0; | 171 | 34.1k | _data.clear(); | 172 | 34.1k | _data.reserve(block_size); | 173 | 34.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 34.1k | << "buffer must be naturally-aligned"; | 175 | 34.1k | _buffer.clear(); | 176 | 34.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 34.1k | _finished = false; | 178 | 34.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 34.1k | }); | 180 | 34.1k | return Status::OK(); | 181 | 34.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.35k | Status reset() override { | 167 | 2.35k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.35k | size_t block_size = _options.data_page_size; | 169 | 2.35k | _count = 0; | 170 | 2.35k | _raw_data_size = 0; | 171 | 2.35k | _data.clear(); | 172 | 2.35k | _data.reserve(block_size); | 173 | 2.35k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.35k | << "buffer must be naturally-aligned"; | 175 | 2.35k | _buffer.clear(); | 176 | 2.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.35k | _finished = false; | 178 | 2.35k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.35k | }); | 180 | 2.36k | return Status::OK(); | 181 | 2.35k | } |
_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.34k | Status reset() override { | 167 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.34k | size_t block_size = _options.data_page_size; | 169 | 1.34k | _count = 0; | 170 | 1.34k | _raw_data_size = 0; | 171 | 1.34k | _data.clear(); | 172 | 1.34k | _data.reserve(block_size); | 173 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.34k | << "buffer must be naturally-aligned"; | 175 | 1.34k | _buffer.clear(); | 176 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.34k | _finished = false; | 178 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.34k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.34k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }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 | 36.6k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.26k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 695 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 20.4k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 2.76k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.06k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 958 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 365 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 433 | 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.67k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.28k | 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 | 240 | 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.20k | 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 | 488k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 61.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 69.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 107k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 13.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 67.8k | 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 | 8.15k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.51k | 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.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 275 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 590 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.75k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 252 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.68k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.1k | 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 | 625 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 632 | 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 | 783k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 62.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 370k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 105k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 14.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 67.5k | : _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 | 8.98k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.1k | : _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 | 336 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 431 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.63k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 335 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.68k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.21k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 715 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 711 | : _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 | 774k | OwnedSlice _finish(int final_size_of_type) { |
194 | 774k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 774k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 774k | int padding_elems = num_elems_after_padding - _count; |
199 | 774k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 22.1M | for (int i = 0; i < padding_bytes; i++) { |
201 | 21.3M | _data.push_back(0); |
202 | 21.3M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 774k | _buffer.resize( |
206 | 774k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 774k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 774k | int64_t bytes = |
210 | 774k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 774k | num_elems_after_padding, final_size_of_type, 0); |
212 | 774k | 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 | 774k | encode_fixed32_le(&_buffer[0], _count); |
222 | 774k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 774k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 774k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 774k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 774k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 774k | return _buffer.build(); |
229 | 774k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 61.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 61.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 61.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 61.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 61.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 406k | for (int i = 0; i < padding_bytes; i++) { | 201 | 344k | _data.push_back(0); | 202 | 344k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 61.8k | _buffer.resize( | 206 | 61.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 61.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 61.8k | int64_t bytes = | 210 | 61.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 61.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 61.8k | 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 | 61.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 61.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 61.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 61.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 61.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 61.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 61.8k | return _buffer.build(); | 229 | 61.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 10.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 112k | for (int i = 0; i < padding_bytes; i++) { | 201 | 102k | _data.push_back(0); | 202 | 102k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.2k | _buffer.resize( | 206 | 10.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.2k | int64_t bytes = | 210 | 10.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.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 | 10.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.2k | return _buffer.build(); | 229 | 10.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 355k | OwnedSlice _finish(int final_size_of_type) { | 194 | 355k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 355k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 355k | int padding_elems = num_elems_after_padding - _count; | 199 | 355k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.77M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.41M | _data.push_back(0); | 202 | 6.41M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 355k | _buffer.resize( | 206 | 355k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 355k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 355k | int64_t bytes = | 210 | 355k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 355k | num_elems_after_padding, final_size_of_type, 0); | 212 | 355k | 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 | 355k | encode_fixed32_le(&_buffer[0], _count); | 222 | 355k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 355k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 355k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 355k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 355k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 355k | return _buffer.build(); | 229 | 355k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 107k | OwnedSlice _finish(int final_size_of_type) { | 194 | 107k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 107k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 107k | int padding_elems = num_elems_after_padding - _count; | 199 | 107k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.75M | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.65M | _data.push_back(0); | 202 | 4.65M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 107k | _buffer.resize( | 206 | 107k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 107k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 107k | int64_t bytes = | 210 | 107k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 107k | num_elems_after_padding, final_size_of_type, 0); | 212 | 107k | 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 | 107k | encode_fixed32_le(&_buffer[0], _count); | 222 | 107k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 107k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 107k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 107k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 107k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 107k | return _buffer.build(); | 229 | 107k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 13.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 13.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 13.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 13.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 13.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.02M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.01M | _data.push_back(0); | 202 | 1.01M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 13.3k | _buffer.resize( | 206 | 13.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 13.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 13.3k | int64_t bytes = | 210 | 13.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 13.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 13.3k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 13.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 13.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 13.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 13.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 13.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 13.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 13.3k | return _buffer.build(); | 229 | 13.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 67.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 67.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 67.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 67.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 67.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.28M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.21M | _data.push_back(0); | 202 | 3.21M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 67.8k | _buffer.resize( | 206 | 67.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 67.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 67.8k | int64_t bytes = | 210 | 67.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 67.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 67.8k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 67.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 67.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 67.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 67.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 67.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 67.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 67.8k | return _buffer.build(); | 229 | 67.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 8.15k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.15k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.15k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.15k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.15k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 183k | for (int i = 0; i < padding_bytes; i++) { | 201 | 175k | _data.push_back(0); | 202 | 175k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.15k | _buffer.resize( | 206 | 8.15k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.15k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.15k | int64_t bytes = | 210 | 8.15k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.15k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.15k | 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 | 8.15k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.15k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.15k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.15k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.15k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.15k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.15k | return _buffer.build(); | 229 | 8.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 9.52k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.52k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.52k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.52k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.52k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 412k | for (int i = 0; i < padding_bytes; i++) { | 201 | 402k | _data.push_back(0); | 202 | 402k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.52k | _buffer.resize( | 206 | 9.52k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.52k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.52k | int64_t bytes = | 210 | 9.52k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.52k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.52k | 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.52k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.52k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.52k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.52k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.52k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.52k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.52k | return _buffer.build(); | 229 | 9.52k | } |
_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 | 810k | for (int i = 0; i < padding_bytes; i++) { | 201 | 771k | _data.push_back(0); | 202 | 771k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.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.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.7k | 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.7k | _buffer.resize( | 206 | 43.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.7k | int64_t bytes = | 210 | 43.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.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 | 43.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.7k | return _buffer.build(); | 229 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 275 | OwnedSlice _finish(int final_size_of_type) { | 194 | 275 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 275 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 275 | int padding_elems = num_elems_after_padding - _count; | 199 | 275 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.3k | _data.push_back(0); | 202 | 11.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 275 | _buffer.resize( | 206 | 275 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 275 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 275 | int64_t bytes = | 210 | 275 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 275 | num_elems_after_padding, final_size_of_type, 0); | 212 | 275 | 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 | 275 | encode_fixed32_le(&_buffer[0], _count); | 222 | 275 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 275 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 275 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 275 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 275 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 275 | return _buffer.build(); | 229 | 275 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 590 | OwnedSlice _finish(int final_size_of_type) { | 194 | 590 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 590 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 590 | int padding_elems = num_elems_after_padding - _count; | 199 | 590 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.6k | _data.push_back(0); | 202 | 12.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 590 | _buffer.resize( | 206 | 590 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 590 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 590 | int64_t bytes = | 210 | 590 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 590 | num_elems_after_padding, final_size_of_type, 0); | 212 | 590 | 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 | 590 | encode_fixed32_le(&_buffer[0], _count); | 222 | 590 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 590 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 590 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 590 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 590 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 590 | return _buffer.build(); | 229 | 590 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.75k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.75k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.75k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.75k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.75k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 404k | for (int i = 0; i < padding_bytes; i++) { | 201 | 396k | _data.push_back(0); | 202 | 396k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.75k | _buffer.resize( | 206 | 7.75k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.75k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.75k | int64_t bytes = | 210 | 7.75k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.75k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.75k | 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.75k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.75k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.75k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.75k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.75k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.75k | return _buffer.build(); | 229 | 7.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 253 | OwnedSlice _finish(int final_size_of_type) { | 194 | 253 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 253 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 253 | int padding_elems = num_elems_after_padding - _count; | 199 | 253 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 15.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.6k | _data.push_back(0); | 202 | 15.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 253 | _buffer.resize( | 206 | 253 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 253 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 253 | int64_t bytes = | 210 | 253 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 253 | num_elems_after_padding, final_size_of_type, 0); | 212 | 253 | 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 | 253 | encode_fixed32_le(&_buffer[0], _count); | 222 | 253 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 253 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 253 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 253 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 253 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 253 | return _buffer.build(); | 229 | 253 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.68k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.68k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.68k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.68k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.68k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 116k | for (int i = 0; i < padding_bytes; i++) { | 201 | 107k | _data.push_back(0); | 202 | 107k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.68k | _buffer.resize( | 206 | 9.68k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.68k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.68k | int64_t bytes = | 210 | 9.68k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.68k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.68k | 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.68k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.68k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.68k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.68k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.68k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.68k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.68k | return _buffer.build(); | 229 | 9.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 19.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 491k | for (int i = 0; i < padding_bytes; i++) { | 201 | 472k | _data.push_back(0); | 202 | 472k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.4k | _buffer.resize( | 206 | 19.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.4k | int64_t bytes = | 210 | 19.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.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 | 19.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.4k | return _buffer.build(); | 229 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.1k | 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.1k | _buffer.resize( | 206 | 17.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.1k | int64_t bytes = | 210 | 17.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.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 | 17.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.1k | return _buffer.build(); | 229 | 17.1k | } |
_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 | 624 | OwnedSlice _finish(int final_size_of_type) { | 194 | 624 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 624 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 624 | int padding_elems = num_elems_after_padding - _count; | 199 | 624 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.7k | 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 | 624 | _buffer.resize( | 206 | 624 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 624 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 624 | int64_t bytes = | 210 | 624 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 624 | num_elems_after_padding, final_size_of_type, 0); | 212 | 624 | 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 | 624 | encode_fixed32_le(&_buffer[0], _count); | 222 | 624 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 624 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 624 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 624 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 624 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 624 | return _buffer.build(); | 229 | 624 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 632 | OwnedSlice _finish(int final_size_of_type) { | 194 | 632 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 632 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 632 | int padding_elems = num_elems_after_padding - _count; | 199 | 632 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.5k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.9k | _data.push_back(0); | 202 | 49.9k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 632 | _buffer.resize( | 206 | 632 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 632 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 632 | int64_t bytes = | 210 | 632 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 632 | num_elems_after_padding, final_size_of_type, 0); | 212 | 632 | 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 | 632 | encode_fixed32_le(&_buffer[0], _count); | 222 | 632 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 632 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 632 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 632 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 632 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 632 | return _buffer.build(); | 229 | 632 | } |
_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.34M | int& size_of_element) { |
253 | 2.34M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 2.34M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.34M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.34M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.34M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.34M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 2.34M | switch (size_of_element) { |
271 | 207k | case 1: |
272 | 234k | case 2: |
273 | 237k | case 3: |
274 | 1.55M | case 4: |
275 | 2.23M | case 8: |
276 | 2.24M | case 12: |
277 | 2.34M | case 16: |
278 | 2.34M | case 32: |
279 | 2.34M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.34M | } |
283 | 2.34M | return Status::OK(); |
284 | 2.34M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.17M | : _data(data), |
291 | 1.17M | _options(options), |
292 | 1.17M | _parsed(false), |
293 | 1.17M | _num_elements(0), |
294 | 1.17M | _num_element_after_padding(0), |
295 | 1.17M | _size_of_element(0), |
296 | 1.17M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 103k | : _data(data), | 291 | 103k | _options(options), | 292 | 103k | _parsed(false), | 293 | 103k | _num_elements(0), | 294 | 103k | _num_element_after_padding(0), | 295 | 103k | _size_of_element(0), | 296 | 103k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.6k | : _data(data), | 291 | 13.6k | _options(options), | 292 | 13.6k | _parsed(false), | 293 | 13.6k | _num_elements(0), | 294 | 13.6k | _num_element_after_padding(0), | 295 | 13.6k | _size_of_element(0), | 296 | 13.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 569k | : _data(data), | 291 | 569k | _options(options), | 292 | 569k | _parsed(false), | 293 | 569k | _num_elements(0), | 294 | 569k | _num_element_after_padding(0), | 295 | 569k | _size_of_element(0), | 296 | 569k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 100k | : _data(data), | 291 | 100k | _options(options), | 292 | 100k | _parsed(false), | 293 | 100k | _num_elements(0), | 294 | 100k | _num_element_after_padding(0), | 295 | 100k | _size_of_element(0), | 296 | 100k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.8k | : _data(data), | 291 | 16.8k | _options(options), | 292 | 16.8k | _parsed(false), | 293 | 16.8k | _num_elements(0), | 294 | 16.8k | _num_element_after_padding(0), | 295 | 16.8k | _size_of_element(0), | 296 | 16.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 99.1k | : _data(data), | 291 | 99.1k | _options(options), | 292 | 99.1k | _parsed(false), | 293 | 99.1k | _num_elements(0), | 294 | 99.1k | _num_element_after_padding(0), | 295 | 99.1k | _size_of_element(0), | 296 | 99.1k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 11.2k | : _data(data), | 291 | 11.2k | _options(options), | 292 | 11.2k | _parsed(false), | 293 | 11.2k | _num_elements(0), | 294 | 11.2k | _num_element_after_padding(0), | 295 | 11.2k | _size_of_element(0), | 296 | 11.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.9k | : _data(data), | 291 | 13.9k | _options(options), | 292 | 13.9k | _parsed(false), | 293 | 13.9k | _num_elements(0), | 294 | 13.9k | _num_element_after_padding(0), | 295 | 13.9k | _size_of_element(0), | 296 | 13.9k | _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.56k | : _data(data), | 291 | 1.56k | _options(options), | 292 | 1.56k | _parsed(false), | 293 | 1.56k | _num_elements(0), | 294 | 1.56k | _num_element_after_padding(0), | 295 | 1.56k | _size_of_element(0), | 296 | 1.56k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 59.0k | : _data(data), | 291 | 59.0k | _options(options), | 292 | 59.0k | _parsed(false), | 293 | 59.0k | _num_elements(0), | 294 | 59.0k | _num_element_after_padding(0), | 295 | 59.0k | _size_of_element(0), | 296 | 59.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 67.1k | : _data(data), | 291 | 67.1k | _options(options), | 292 | 67.1k | _parsed(false), | 293 | 67.1k | _num_elements(0), | 294 | 67.1k | _num_element_after_padding(0), | 295 | 67.1k | _size_of_element(0), | 296 | 67.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.13k | : _data(data), | 291 | 3.13k | _options(options), | 292 | 3.13k | _parsed(false), | 293 | 3.13k | _num_elements(0), | 294 | 3.13k | _num_element_after_padding(0), | 295 | 3.13k | _size_of_element(0), | 296 | 3.13k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.19k | : _data(data), | 291 | 2.19k | _options(options), | 292 | 2.19k | _parsed(false), | 293 | 2.19k | _num_elements(0), | 294 | 2.19k | _num_element_after_padding(0), | 295 | 2.19k | _size_of_element(0), | 296 | 2.19k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_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_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 | 15.4k | : _data(data), | 291 | 15.4k | _options(options), | 292 | 15.4k | _parsed(false), | 293 | 15.4k | _num_elements(0), | 294 | 15.4k | _num_element_after_padding(0), | 295 | 15.4k | _size_of_element(0), | 296 | 15.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 40.8k | : _data(data), | 291 | 40.8k | _options(options), | 292 | 40.8k | _parsed(false), | 293 | 40.8k | _num_elements(0), | 294 | 40.8k | _num_element_after_padding(0), | 295 | 40.8k | _size_of_element(0), | 296 | 40.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 29.6k | : _data(data), | 291 | 29.6k | _options(options), | 292 | 29.6k | _parsed(false), | 293 | 29.6k | _num_elements(0), | 294 | 29.6k | _num_element_after_padding(0), | 295 | 29.6k | _size_of_element(0), | 296 | 29.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 | 931 | : _data(data), | 291 | 931 | _options(options), | 292 | 931 | _parsed(false), | 293 | 931 | _num_elements(0), | 294 | 931 | _num_element_after_padding(0), | 295 | 931 | _size_of_element(0), | 296 | 931 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 974 | : _data(data), | 291 | 974 | _options(options), | 292 | 974 | _parsed(false), | 293 | 974 | _num_elements(0), | 294 | 974 | _num_element_after_padding(0), | 295 | 974 | _size_of_element(0), | 296 | 974 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 5.07k | : _data(data), | 291 | 5.07k | _options(options), | 292 | 5.07k | _parsed(false), | 293 | 5.07k | _num_elements(0), | 294 | 5.07k | _num_element_after_padding(0), | 295 | 5.07k | _size_of_element(0), | 296 | 5.07k | _cur_index(0) {} |
|
297 | | |
298 | 1.17M | Status init() override { |
299 | 1.17M | CHECK(!_parsed); |
300 | 1.17M | size_t unused; |
301 | 1.17M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.17M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.17M | if (_data.size != |
305 | 1.17M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 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.17M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.17M | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 1.17M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 1.17M | _parsed = true; |
325 | 1.17M | return Status::OK(); |
326 | 1.17M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 103k | Status init() override { | 299 | 103k | CHECK(!_parsed); | 300 | 103k | size_t unused; | 301 | 103k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 103k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 103k | if (_data.size != | 305 | 103k | _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 | 103k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 103k | _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 | 103k | 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 | 103k | _parsed = true; | 325 | 103k | return Status::OK(); | 326 | 103k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 13.6k | Status init() override { | 299 | 13.6k | CHECK(!_parsed); | 300 | 13.6k | size_t unused; | 301 | 13.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.6k | if (_data.size != | 305 | 13.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 | 13.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.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 | 13.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 | 13.6k | _parsed = true; | 325 | 13.6k | return Status::OK(); | 326 | 13.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 569k | Status init() override { | 299 | 569k | CHECK(!_parsed); | 300 | 569k | size_t unused; | 301 | 569k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 569k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 569k | if (_data.size != | 305 | 569k | _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 | 569k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 569k | _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 | 569k | 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 | 569k | _parsed = true; | 325 | 569k | return Status::OK(); | 326 | 569k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 100k | Status init() override { | 299 | 100k | CHECK(!_parsed); | 300 | 100k | size_t unused; | 301 | 100k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 100k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 100k | if (_data.size != | 305 | 100k | _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 | 100k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 100k | _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 | 100k | 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 | 100k | _parsed = true; | 325 | 100k | return Status::OK(); | 326 | 100k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 16.7k | Status init() override { | 299 | 16.7k | CHECK(!_parsed); | 300 | 16.7k | size_t unused; | 301 | 16.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.7k | if (_data.size != | 305 | 16.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 16.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 16.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 16.7k | _parsed = true; | 325 | 16.7k | return Status::OK(); | 326 | 16.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 99.0k | Status init() override { | 299 | 99.0k | CHECK(!_parsed); | 300 | 99.0k | size_t unused; | 301 | 99.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 99.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 99.0k | if (_data.size != | 305 | 99.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 99.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 99.0k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 99.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 99.0k | _parsed = true; | 325 | 99.0k | return Status::OK(); | 326 | 99.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 11.2k | Status init() override { | 299 | 11.2k | CHECK(!_parsed); | 300 | 11.2k | size_t unused; | 301 | 11.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 11.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 11.2k | if (_data.size != | 305 | 11.2k | _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 | 11.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 11.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 | 11.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 | 11.2k | _parsed = true; | 325 | 11.2k | return Status::OK(); | 326 | 11.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 13.9k | Status init() override { | 299 | 13.9k | CHECK(!_parsed); | 300 | 13.9k | size_t unused; | 301 | 13.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.9k | if (_data.size != | 305 | 13.9k | _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.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.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 | 13.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 | 13.9k | _parsed = true; | 325 | 13.9k | return Status::OK(); | 326 | 13.9k | } |
_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.56k | Status init() override { | 299 | 1.56k | CHECK(!_parsed); | 300 | 1.56k | size_t unused; | 301 | 1.56k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.56k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.56k | if (_data.size != | 305 | 1.56k | _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.56k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.56k | _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.56k | 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.56k | _parsed = true; | 325 | 1.56k | return Status::OK(); | 326 | 1.56k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 58.9k | Status init() override { | 299 | 58.9k | CHECK(!_parsed); | 300 | 58.9k | size_t unused; | 301 | 58.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 58.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 58.9k | if (_data.size != | 305 | 58.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 | 58.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 58.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 | 58.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 | 58.9k | _parsed = true; | 325 | 58.9k | return Status::OK(); | 326 | 58.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 67.1k | Status init() override { | 299 | 67.1k | CHECK(!_parsed); | 300 | 67.1k | size_t unused; | 301 | 67.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 67.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 67.1k | if (_data.size != | 305 | 67.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 67.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 67.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 67.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 67.1k | _parsed = true; | 325 | 67.1k | return Status::OK(); | 326 | 67.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.12k | Status init() override { | 299 | 3.12k | CHECK(!_parsed); | 300 | 3.12k | size_t unused; | 301 | 3.12k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.12k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.12k | if (_data.size != | 305 | 3.12k | _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.12k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.12k | _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.12k | 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.12k | _parsed = true; | 325 | 3.12k | return Status::OK(); | 326 | 3.12k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.19k | Status init() override { | 299 | 2.19k | CHECK(!_parsed); | 300 | 2.19k | size_t unused; | 301 | 2.19k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.19k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.19k | if (_data.size != | 305 | 2.19k | _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.19k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.19k | _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.19k | 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.19k | _parsed = true; | 325 | 2.19k | return Status::OK(); | 326 | 2.19k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv 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_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.35k | Status init() override { | 299 | 1.35k | CHECK(!_parsed); | 300 | 1.35k | size_t unused; | 301 | 1.35k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.35k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.35k | if (_data.size != | 305 | 1.35k | _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.35k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.35k | _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.35k | 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.35k | _parsed = true; | 325 | 1.35k | return Status::OK(); | 326 | 1.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.4k | Status init() override { | 299 | 15.4k | CHECK(!_parsed); | 300 | 15.4k | size_t unused; | 301 | 15.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.4k | if (_data.size != | 305 | 15.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.4k | _parsed = true; | 325 | 15.4k | return Status::OK(); | 326 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 40.8k | Status init() override { | 299 | 40.8k | CHECK(!_parsed); | 300 | 40.8k | size_t unused; | 301 | 40.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 40.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 40.8k | if (_data.size != | 305 | 40.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 | 40.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 40.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 | 40.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 | 40.8k | _parsed = true; | 325 | 40.8k | return Status::OK(); | 326 | 40.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 29.6k | Status init() override { | 299 | 29.6k | CHECK(!_parsed); | 300 | 29.6k | size_t unused; | 301 | 29.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 29.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 29.6k | if (_data.size != | 305 | 29.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 | 29.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 29.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 | 29.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 | 29.6k | _parsed = true; | 325 | 29.6k | return Status::OK(); | 326 | 29.6k | } |
_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 | 928 | Status init() override { | 299 | 928 | CHECK(!_parsed); | 300 | 928 | size_t unused; | 301 | 928 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 928 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 928 | if (_data.size != | 305 | 928 | _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 | 928 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 928 | _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 | 928 | 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 | 928 | _parsed = true; | 325 | 928 | return Status::OK(); | 326 | 928 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 972 | Status init() override { | 299 | 972 | CHECK(!_parsed); | 300 | 972 | size_t unused; | 301 | 972 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 972 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 972 | if (_data.size != | 305 | 972 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 972 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 972 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 972 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 972 | _parsed = true; | 325 | 972 | return Status::OK(); | 326 | 972 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 298 | 5.07k | Status init() override { | 299 | 5.07k | CHECK(!_parsed); | 300 | 5.07k | size_t unused; | 301 | 5.07k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 5.07k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 5.07k | if (_data.size != | 305 | 5.07k | _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.07k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 5.07k | _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.07k | 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.07k | _parsed = true; | 325 | 5.07k | return Status::OK(); | 326 | 5.07k | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 3.34M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 3.34M | if (_num_elements == 0) [[unlikely]] { |
337 | 3.72k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 3.72k | } |
342 | | |
343 | 3.34M | DCHECK_LE(pos, _num_elements); |
344 | 3.34M | _cur_index = pos; |
345 | 3.34M | return Status::OK(); |
346 | 3.34M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 75.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 75.1k | if (_num_elements == 0) [[unlikely]] { | 337 | 440 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 440 | } | 342 | | | 343 | 75.1k | DCHECK_LE(pos, _num_elements); | 344 | 75.1k | _cur_index = pos; | 345 | 75.1k | return Status::OK(); | 346 | 75.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.40k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.40k | 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 | 2.40k | DCHECK_LE(pos, _num_elements); | 344 | 2.40k | _cur_index = pos; | 345 | 2.40k | return Status::OK(); | 346 | 2.40k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.04M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.04M | if (_num_elements == 0) [[unlikely]] { | 337 | 2.26k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 2.26k | } | 342 | | | 343 | 2.04M | DCHECK_LE(pos, _num_elements); | 344 | 2.04M | _cur_index = pos; | 345 | 2.04M | return Status::OK(); | 346 | 2.04M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 40.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 40.7k | if (_num_elements == 0) [[unlikely]] { | 337 | 385 | 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 | 385 | } | 342 | | | 343 | 40.7k | DCHECK_LE(pos, _num_elements); | 344 | 40.7k | _cur_index = pos; | 345 | 40.7k | return Status::OK(); | 346 | 40.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 5.74k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 5.74k | if (_num_elements == 0) [[unlikely]] { | 337 | 6 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 6 | } | 342 | | | 343 | 5.74k | DCHECK_LE(pos, _num_elements); | 344 | 5.74k | _cur_index = pos; | 345 | 5.74k | return Status::OK(); | 346 | 5.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 19.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 19.7k | DCHECK(_parsed) << "Must call init()"; | 336 | 19.7k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 19.7k | DCHECK_LE(pos, _num_elements); | 344 | 19.7k | _cur_index = pos; | 345 | 19.7k | return Status::OK(); | 346 | 19.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.03k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.03k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.03k | 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.03k | DCHECK_LE(pos, _num_elements); | 344 | 1.03k | _cur_index = pos; | 345 | 1.03k | return Status::OK(); | 346 | 1.03k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.81k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.81k | 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 | 1.81k | DCHECK_LE(pos, _num_elements); | 344 | 1.81k | _cur_index = pos; | 345 | 1.81k | return Status::OK(); | 346 | 1.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 219k | Status seek_to_position_in_page(size_t pos) override { | 335 | 219k | DCHECK(_parsed) << "Must call init()"; | 336 | 219k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 219k | DCHECK_LE(pos, _num_elements); | 344 | 219k | _cur_index = pos; | 345 | 219k | return Status::OK(); | 346 | 219k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 504k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 504k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 197 | } | 342 | | | 343 | 504k | DCHECK_LE(pos, _num_elements); | 344 | 504k | _cur_index = pos; | 345 | 504k | return Status::OK(); | 346 | 504k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 68.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 68.4k | 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 | 68.4k | DCHECK_LE(pos, _num_elements); | 344 | 68.4k | _cur_index = pos; | 345 | 68.4k | return Status::OK(); | 346 | 68.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 938 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 938 | 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 | 938 | DCHECK_LE(pos, _num_elements); | 344 | 938 | _cur_index = pos; | 345 | 938 | return Status::OK(); | 346 | 938 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 205k | Status seek_to_position_in_page(size_t pos) override { | 335 | 205k | DCHECK(_parsed) << "Must call init()"; | 336 | 205k | 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 | 205k | DCHECK_LE(pos, _num_elements); | 344 | 205k | _cur_index = pos; | 345 | 205k | return Status::OK(); | 346 | 205k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.77k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.77k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.77k | if (_num_elements == 0) [[unlikely]] { | 337 | 353 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 353 | } | 342 | | | 343 | 6.77k | DCHECK_LE(pos, _num_elements); | 344 | 6.77k | _cur_index = pos; | 345 | 6.77k | return Status::OK(); | 346 | 6.77k | } |
_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 | 848 | Status seek_to_position_in_page(size_t pos) override { | 335 | 848 | DCHECK(_parsed) << "Must call init()"; | 336 | 848 | if (_num_elements == 0) [[unlikely]] { | 337 | 25 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 25 | } | 342 | | | 343 | 848 | DCHECK_LE(pos, _num_elements); | 344 | 848 | _cur_index = pos; | 345 | 848 | return Status::OK(); | 346 | 848 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.9k | Status seek_to_position_in_page(size_t pos) override { | 335 | 16.9k | DCHECK(_parsed) << "Must call init()"; | 336 | 16.9k | if (_num_elements == 0) [[unlikely]] { | 337 | 15 | 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 | 15 | } | 342 | | | 343 | 16.9k | DCHECK_LE(pos, _num_elements); | 344 | 16.9k | _cur_index = pos; | 345 | 16.9k | return Status::OK(); | 346 | 16.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 120k | Status seek_to_position_in_page(size_t pos) override { | 335 | 120k | DCHECK(_parsed) << "Must call init()"; | 336 | 120k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 10 | } | 342 | | | 343 | 120k | DCHECK_LE(pos, _num_elements); | 344 | 120k | _cur_index = pos; | 345 | 120k | return Status::OK(); | 346 | 120k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.98k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.98k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.98k | 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.98k | DCHECK_LE(pos, _num_elements); | 344 | 1.98k | _cur_index = pos; | 345 | 1.98k | return Status::OK(); | 346 | 1.98k | } |
_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 | 9.31k | Status seek_to_position_in_page(size_t pos) override { | 335 | 9.31k | DCHECK(_parsed) << "Must call init()"; | 336 | 9.31k | 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 | 9.31k | DCHECK_LE(pos, _num_elements); | 344 | 9.31k | _cur_index = pos; | 345 | 9.31k | return Status::OK(); | 346 | 9.31k | } |
|
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 | 65 | left = mid + 1; |
368 | 82 | } else { |
369 | 82 | right = mid; |
370 | 82 | } |
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 | 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 | } |
_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 | 23 | left = mid + 1; | 368 | 26 | } else { | 369 | 26 | right = mid; | 370 | 26 | } | 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 | 20 | left = mid + 1; | 368 | 29 | } else { | 369 | 29 | right = mid; | 370 | 29 | } | 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.58M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.58M | DCHECK(_parsed); |
389 | 1.58M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.58M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.58M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.58M | *n = max_fetch; |
398 | 1.58M | if constexpr (forward_index) { |
399 | 1.52M | _cur_index += max_fetch; |
400 | 1.52M | } |
401 | | |
402 | 1.58M | return Status::OK(); |
403 | 1.58M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 137k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 137k | DCHECK(_parsed); | 389 | 137k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 137k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 137k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 137k | *n = max_fetch; | 398 | 137k | if constexpr (forward_index) { | 399 | 137k | _cur_index += max_fetch; | 400 | 137k | } | 401 | | | 402 | 137k | return Status::OK(); | 403 | 137k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 11.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.4k | DCHECK(_parsed); | 389 | 11.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.4k | *n = max_fetch; | 398 | 11.4k | if constexpr (forward_index) { | 399 | 11.4k | _cur_index += max_fetch; | 400 | 11.4k | } | 401 | | | 402 | 11.4k | return Status::OK(); | 403 | 11.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 541k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 541k | DCHECK(_parsed); | 389 | 541k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 541k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 541k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 541k | *n = max_fetch; | 398 | 541k | if constexpr (forward_index) { | 399 | 541k | _cur_index += max_fetch; | 400 | 541k | } | 401 | | | 402 | 541k | return Status::OK(); | 403 | 541k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 99.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 99.7k | DCHECK(_parsed); | 389 | 99.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 99.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 99.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 99.7k | *n = max_fetch; | 398 | 99.7k | if constexpr (forward_index) { | 399 | 99.7k | _cur_index += max_fetch; | 400 | 99.7k | } | 401 | | | 402 | 99.7k | return Status::OK(); | 403 | 99.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 14.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 14.2k | DCHECK(_parsed); | 389 | 14.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 14.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 14.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 14.2k | *n = max_fetch; | 398 | 14.2k | if constexpr (forward_index) { | 399 | 14.2k | _cur_index += max_fetch; | 400 | 14.2k | } | 401 | | | 402 | 14.2k | return Status::OK(); | 403 | 14.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 99.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 99.2k | DCHECK(_parsed); | 389 | 99.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 99.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 99.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 99.2k | *n = max_fetch; | 398 | 99.2k | if constexpr (forward_index) { | 399 | 99.2k | _cur_index += max_fetch; | 400 | 99.2k | } | 401 | | | 402 | 99.2k | return Status::OK(); | 403 | 99.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 56.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 56.8k | DCHECK(_parsed); | 389 | 56.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 56.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 56.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 56.8k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 56.8k | return Status::OK(); | 403 | 56.8k | } |
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 | 6.99k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 6.99k | DCHECK(_parsed); | 389 | 6.99k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 6.99k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 6.99k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 6.99k | *n = max_fetch; | 398 | 6.99k | if constexpr (forward_index) { | 399 | 6.99k | _cur_index += max_fetch; | 400 | 6.99k | } | 401 | | | 402 | 6.99k | return Status::OK(); | 403 | 6.99k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.20k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.20k | DCHECK(_parsed); | 389 | 9.20k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.20k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.20k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.20k | *n = max_fetch; | 398 | 9.20k | if constexpr (forward_index) { | 399 | 9.20k | _cur_index += max_fetch; | 400 | 9.20k | } | 401 | | | 402 | 9.20k | return Status::OK(); | 403 | 9.20k | } |
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.39k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.39k | DCHECK(_parsed); | 389 | 3.39k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.39k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.39k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.39k | *n = max_fetch; | 398 | 3.39k | if constexpr (forward_index) { | 399 | 3.39k | _cur_index += max_fetch; | 400 | 3.39k | } | 401 | | | 402 | 3.39k | return Status::OK(); | 403 | 3.39k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 368k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 368k | DCHECK(_parsed); | 389 | 368k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 368k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 368k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 368k | *n = max_fetch; | 398 | 368k | if constexpr (forward_index) { | 399 | 368k | _cur_index += max_fetch; | 400 | 368k | } | 401 | | | 402 | 368k | return Status::OK(); | 403 | 368k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 64.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 64.4k | DCHECK(_parsed); | 389 | 64.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 64.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 64.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 64.4k | *n = max_fetch; | 398 | 64.4k | if constexpr (forward_index) { | 399 | 64.4k | _cur_index += max_fetch; | 400 | 64.4k | } | 401 | | | 402 | 64.4k | return Status::OK(); | 403 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.12k | DCHECK(_parsed); | 389 | 2.13k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.12k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.12k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.12k | *n = max_fetch; | 398 | 2.12k | if constexpr (forward_index) { | 399 | 2.12k | _cur_index += max_fetch; | 400 | 2.12k | } | 401 | | | 402 | 2.12k | return Status::OK(); | 403 | 2.12k | } |
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.09k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.09k | DCHECK(_parsed); | 389 | 1.09k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.09k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.09k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.09k | *n = max_fetch; | 398 | 1.09k | if constexpr (forward_index) { | 399 | 1.09k | _cur_index += max_fetch; | 400 | 1.09k | } | 401 | | | 402 | 1.09k | return Status::OK(); | 403 | 1.09k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.98k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.98k | DCHECK(_parsed); | 389 | 7.98k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.98k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.98k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.98k | *n = max_fetch; | 398 | 7.98k | if constexpr (forward_index) { | 399 | 7.98k | _cur_index += max_fetch; | 400 | 7.98k | } | 401 | | | 402 | 7.98k | return Status::OK(); | 403 | 7.98k | } |
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.91k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.91k | DCHECK(_parsed); | 389 | 7.91k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.91k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.91k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.91k | *n = max_fetch; | 398 | 7.91k | if constexpr (forward_index) { | 399 | 7.91k | _cur_index += max_fetch; | 400 | 7.91k | } | 401 | | | 402 | 7.91k | return Status::OK(); | 403 | 7.91k | } |
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.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 32.1k | DCHECK(_parsed); | 389 | 32.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 32.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 32.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 32.1k | *n = max_fetch; | 398 | 32.1k | if constexpr (forward_index) { | 399 | 32.1k | _cur_index += max_fetch; | 400 | 32.1k | } | 401 | | | 402 | 32.1k | return Status::OK(); | 403 | 32.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 20.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20.3k | DCHECK(_parsed); | 389 | 20.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 20.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20.3k | *n = max_fetch; | 398 | 20.3k | if constexpr (forward_index) { | 399 | 20.3k | _cur_index += max_fetch; | 400 | 20.3k | } | 401 | | | 402 | 20.3k | return Status::OK(); | 403 | 20.3k | } |
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.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.21k | DCHECK(_parsed); | 389 | 3.21k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.21k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.21k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.21k | *n = max_fetch; | 398 | 3.21k | if constexpr (forward_index) { | 399 | 3.21k | _cur_index += max_fetch; | 400 | 3.21k | } | 401 | | | 402 | 3.21k | return Status::OK(); | 403 | 3.21k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 660 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 660 | DCHECK(_parsed); | 389 | 660 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 660 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 660 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 660 | *n = max_fetch; | 398 | 660 | if constexpr (forward_index) { | 399 | 660 | _cur_index += max_fetch; | 400 | 660 | } | 401 | | | 402 | 660 | return Status::OK(); | 403 | 660 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 685 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 685 | DCHECK(_parsed); | 389 | 685 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 685 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 685 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 685 | *n = max_fetch; | 398 | 685 | if constexpr (forward_index) { | 399 | 685 | _cur_index += max_fetch; | 400 | 685 | } | 401 | | | 402 | 685 | return Status::OK(); | 403 | 685 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 94.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 94.6k | DCHECK(_parsed); | 389 | 94.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 94.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 94.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 94.6k | *n = max_fetch; | 398 | 94.6k | if constexpr (forward_index) { | 399 | 94.6k | _cur_index += max_fetch; | 400 | 94.6k | } | 401 | | | 402 | 94.6k | return Status::OK(); | 403 | 94.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.52M | 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 | 137k | 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 | 11.4k | 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 | 538k | 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 | 99.7k | 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 | 14.1k | 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 | 99.3k | 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 | 6.99k | 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 | 9.20k | 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.38k | 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 | 367k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 64.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 2.12k | 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.09k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.98k | 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.26k | 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.91k | 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.1k | 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 | 20.3k | 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.21k | 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 | 661 | 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 | 687 | 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 | 94.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 | 413k | MutableColumnPtr& dst) override { |
409 | 413k | DCHECK(_parsed); |
410 | 413k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 413k | auto total = *n; |
416 | 413k | auto read_count = 0; |
417 | 413k | _buffer.resize(total); |
418 | 78.6M | for (size_t i = 0; i < total; ++i) { |
419 | 78.2M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 78.2M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 10.5k | break; |
422 | 10.5k | } |
423 | | |
424 | 78.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 78.2M | } |
426 | | |
427 | 414k | if (LIKELY(read_count > 0)) { |
428 | 414k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 414k | } |
430 | | |
431 | 413k | *n = read_count; |
432 | 413k | return Status::OK(); |
433 | 413k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 51.8k | MutableColumnPtr& dst) override { | 409 | 51.8k | DCHECK(_parsed); | 410 | 51.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 51.8k | auto total = *n; | 416 | 51.8k | auto read_count = 0; | 417 | 51.8k | _buffer.resize(total); | 418 | 868k | for (size_t i = 0; i < total; ++i) { | 419 | 816k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 816k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 816k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 816k | } | 426 | | | 427 | 51.8k | if (LIKELY(read_count > 0)) { | 428 | 51.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 51.8k | } | 430 | | | 431 | 51.8k | *n = read_count; | 432 | 51.8k | return Status::OK(); | 433 | 51.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.85k | MutableColumnPtr& dst) override { | 409 | 5.85k | DCHECK(_parsed); | 410 | 5.85k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.85k | auto total = *n; | 416 | 5.85k | auto read_count = 0; | 417 | 5.85k | _buffer.resize(total); | 418 | 74.4k | for (size_t i = 0; i < total; ++i) { | 419 | 68.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 68.6k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 68.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 68.6k | } | 426 | | | 427 | 5.85k | if (LIKELY(read_count > 0)) { | 428 | 5.85k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.85k | } | 430 | | | 431 | 5.85k | *n = read_count; | 432 | 5.85k | return Status::OK(); | 433 | 5.85k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 82.1k | MutableColumnPtr& dst) override { | 409 | 82.1k | DCHECK(_parsed); | 410 | 82.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 82.1k | auto total = *n; | 416 | 82.1k | auto read_count = 0; | 417 | 82.1k | _buffer.resize(total); | 418 | 14.5M | for (size_t i = 0; i < total; ++i) { | 419 | 14.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.4M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 23 | break; | 422 | 23 | } | 423 | | | 424 | 14.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.4M | } | 426 | | | 427 | 82.3k | if (LIKELY(read_count > 0)) { | 428 | 82.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 82.3k | } | 430 | | | 431 | 82.1k | *n = read_count; | 432 | 82.1k | return Status::OK(); | 433 | 82.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 54.9k | MutableColumnPtr& dst) override { | 409 | 54.9k | DCHECK(_parsed); | 410 | 54.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 54.9k | auto total = *n; | 416 | 54.9k | auto read_count = 0; | 417 | 54.9k | _buffer.resize(total); | 418 | 2.73M | for (size_t i = 0; i < total; ++i) { | 419 | 2.67M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.67M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 114 | break; | 422 | 114 | } | 423 | | | 424 | 2.67M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.67M | } | 426 | | | 427 | 55.0k | if (LIKELY(read_count > 0)) { | 428 | 55.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 55.0k | } | 430 | | | 431 | 54.9k | *n = read_count; | 432 | 54.9k | return Status::OK(); | 433 | 54.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.82k | MutableColumnPtr& dst) override { | 409 | 7.82k | DCHECK(_parsed); | 410 | 7.82k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.82k | auto total = *n; | 416 | 7.82k | auto read_count = 0; | 417 | 7.82k | _buffer.resize(total); | 418 | 17.6k | for (size_t i = 0; i < total; ++i) { | 419 | 9.82k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.82k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 9.82k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.82k | } | 426 | | | 427 | 7.82k | if (LIKELY(read_count > 0)) { | 428 | 7.82k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.82k | } | 430 | | | 431 | 7.82k | *n = read_count; | 432 | 7.82k | return Status::OK(); | 433 | 7.82k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 73.8k | MutableColumnPtr& dst) override { | 409 | 73.8k | DCHECK(_parsed); | 410 | 73.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 73.8k | auto total = *n; | 416 | 73.8k | auto read_count = 0; | 417 | 73.8k | _buffer.resize(total); | 418 | 8.23M | for (size_t i = 0; i < total; ++i) { | 419 | 8.16M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.16M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.53k | break; | 422 | 2.53k | } | 423 | | | 424 | 8.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.15M | } | 426 | | | 427 | 73.8k | if (LIKELY(read_count > 0)) { | 428 | 73.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 73.8k | } | 430 | | | 431 | 73.8k | *n = read_count; | 432 | 73.8k | return Status::OK(); | 433 | 73.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.23k | MutableColumnPtr& dst) override { | 409 | 5.23k | DCHECK(_parsed); | 410 | 5.23k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.23k | auto total = *n; | 416 | 5.23k | auto read_count = 0; | 417 | 5.23k | _buffer.resize(total); | 418 | 20.5k | for (size_t i = 0; i < total; ++i) { | 419 | 15.3k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 15.3k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 15.3k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 15.3k | } | 426 | | | 427 | 5.23k | if (LIKELY(read_count > 0)) { | 428 | 5.23k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.23k | } | 430 | | | 431 | 5.23k | *n = read_count; | 432 | 5.23k | return Status::OK(); | 433 | 5.23k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.47k | MutableColumnPtr& dst) override { | 409 | 6.47k | DCHECK(_parsed); | 410 | 6.47k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.47k | auto total = *n; | 416 | 6.47k | auto read_count = 0; | 417 | 6.47k | _buffer.resize(total); | 418 | 638k | 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 | 82 | break; | 422 | 82 | } | 423 | | | 424 | 631k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 631k | } | 426 | | | 427 | 6.47k | if (LIKELY(read_count > 0)) { | 428 | 6.47k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.47k | } | 430 | | | 431 | 6.47k | *n = read_count; | 432 | 6.47k | return Status::OK(); | 433 | 6.47k | } |
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.32k | MutableColumnPtr& dst) override { | 409 | 1.32k | DCHECK(_parsed); | 410 | 1.32k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.32k | auto total = *n; | 416 | 1.32k | auto read_count = 0; | 417 | 1.32k | _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 | 10 | break; | 422 | 10 | } | 423 | | | 424 | 501k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 501k | } | 426 | | | 427 | 1.32k | if (LIKELY(read_count > 0)) { | 428 | 1.32k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.32k | } | 430 | | | 431 | 1.32k | *n = read_count; | 432 | 1.32k | return Status::OK(); | 433 | 1.32k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.3k | MutableColumnPtr& dst) override { | 409 | 29.3k | DCHECK(_parsed); | 410 | 29.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.3k | auto total = *n; | 416 | 29.3k | auto read_count = 0; | 417 | 29.3k | _buffer.resize(total); | 418 | 6.69M | for (size_t i = 0; i < total; ++i) { | 419 | 6.66M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.66M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 837 | break; | 422 | 837 | } | 423 | | | 424 | 6.66M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.66M | } | 426 | | | 427 | 29.4k | if (LIKELY(read_count > 0)) { | 428 | 29.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.4k | } | 430 | | | 431 | 29.3k | *n = read_count; | 432 | 29.3k | return Status::OK(); | 433 | 29.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.2k | MutableColumnPtr& dst) override { | 409 | 32.2k | DCHECK(_parsed); | 410 | 32.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.2k | auto total = *n; | 416 | 32.2k | auto read_count = 0; | 417 | 32.2k | _buffer.resize(total); | 418 | 9.71M | for (size_t i = 0; i < total; ++i) { | 419 | 9.68M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.68M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 201 | break; | 422 | 201 | } | 423 | | | 424 | 9.67M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.67M | } | 426 | | | 427 | 32.2k | if (LIKELY(read_count > 0)) { | 428 | 32.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.2k | } | 430 | | | 431 | 32.2k | *n = read_count; | 432 | 32.2k | return Status::OK(); | 433 | 32.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.20k | MutableColumnPtr& dst) override { | 409 | 1.20k | DCHECK(_parsed); | 410 | 1.20k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.20k | auto total = *n; | 416 | 1.20k | auto read_count = 0; | 417 | 1.20k | _buffer.resize(total); | 418 | 4.07k | for (size_t i = 0; i < total; ++i) { | 419 | 2.86k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.86k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.86k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.86k | } | 426 | | | 427 | 1.20k | if (LIKELY(read_count > 0)) { | 428 | 1.20k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.20k | } | 430 | | | 431 | 1.20k | *n = read_count; | 432 | 1.20k | return Status::OK(); | 433 | 1.20k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.70k | MutableColumnPtr& dst) override { | 409 | 1.70k | DCHECK(_parsed); | 410 | 1.70k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.70k | auto total = *n; | 416 | 1.70k | auto read_count = 0; | 417 | 1.70k | _buffer.resize(total); | 418 | 503k | for (size_t i = 0; i < total; ++i) { | 419 | 502k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 502k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 247 | break; | 422 | 247 | } | 423 | | | 424 | 502k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 502k | } | 426 | | | 427 | 1.71k | if (LIKELY(read_count > 0)) { | 428 | 1.71k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.71k | } | 430 | | | 431 | 1.70k | *n = read_count; | 432 | 1.70k | return Status::OK(); | 433 | 1.70k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.2k | MutableColumnPtr& dst) override { | 409 | 12.2k | DCHECK(_parsed); | 410 | 12.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.2k | auto total = *n; | 416 | 12.2k | auto read_count = 0; | 417 | 12.2k | _buffer.resize(total); | 418 | 26.0k | for (size_t i = 0; i < total; ++i) { | 419 | 13.8k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.8k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.8k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.8k | } | 426 | | | 427 | 12.3k | if (LIKELY(read_count > 0)) { | 428 | 12.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.3k | } | 430 | | | 431 | 12.2k | *n = read_count; | 432 | 12.2k | return Status::OK(); | 433 | 12.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 134 | MutableColumnPtr& dst) override { | 409 | 134 | DCHECK(_parsed); | 410 | 134 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 134 | auto total = *n; | 416 | 134 | auto read_count = 0; | 417 | 134 | _buffer.resize(total); | 418 | 273 | for (size_t i = 0; i < total; ++i) { | 419 | 139 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 139 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 139 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 139 | } | 426 | | | 427 | 134 | if (LIKELY(read_count > 0)) { | 428 | 134 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 134 | } | 430 | | | 431 | 134 | *n = read_count; | 432 | 134 | return Status::OK(); | 433 | 134 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.51k | MutableColumnPtr& dst) override { | 409 | 4.51k | DCHECK(_parsed); | 410 | 4.51k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.51k | auto total = *n; | 416 | 4.51k | auto read_count = 0; | 417 | 4.51k | _buffer.resize(total); | 418 | 19.0k | for (size_t i = 0; i < total; ++i) { | 419 | 14.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.4k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.4k | } | 426 | | | 427 | 4.51k | if (LIKELY(read_count > 0)) { | 428 | 4.51k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.51k | } | 430 | | | 431 | 4.51k | *n = read_count; | 432 | 4.51k | return Status::OK(); | 433 | 4.51k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.3k | MutableColumnPtr& dst) override { | 409 | 27.3k | DCHECK(_parsed); | 410 | 27.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.3k | auto total = *n; | 416 | 27.3k | auto read_count = 0; | 417 | 27.3k | _buffer.resize(total); | 418 | 25.0M | for (size_t i = 0; i < total; ++i) { | 419 | 25.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 25.0M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.78k | break; | 422 | 5.78k | } | 423 | | | 424 | 25.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 25.0M | } | 426 | | | 427 | 27.3k | if (LIKELY(read_count > 0)) { | 428 | 27.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.3k | } | 430 | | | 431 | 27.3k | *n = read_count; | 432 | 27.3k | return Status::OK(); | 433 | 27.3k | } |
_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 | 9.00M | for (size_t i = 0; i < total; ++i) { | 419 | 8.98M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.98M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 738 | break; | 422 | 738 | } | 423 | | | 424 | 8.98M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.98M | } | 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 | 963 | MutableColumnPtr& dst) override { | 409 | 963 | DCHECK(_parsed); | 410 | 963 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 963 | auto total = *n; | 416 | 963 | auto read_count = 0; | 417 | 963 | _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 | 963 | *n = read_count; | 432 | 963 | return Status::OK(); | 433 | 963 | } |
_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 | 324 | MutableColumnPtr& dst) override { | 409 | 324 | DCHECK(_parsed); | 410 | 324 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 324 | auto total = *n; | 416 | 324 | auto read_count = 0; | 417 | 324 | _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 | 324 | *n = read_count; | 432 | 324 | return Status::OK(); | 433 | 324 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 490 | MutableColumnPtr& dst) override { | 409 | 490 | DCHECK(_parsed); | 410 | 490 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 490 | auto total = *n; | 416 | 490 | auto read_count = 0; | 417 | 490 | _buffer.resize(total); | 418 | 1.08k | for (size_t i = 0; i < total; ++i) { | 419 | 593 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 593 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 593 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 593 | } | 426 | | | 427 | 490 | if (LIKELY(read_count > 0)) { | 428 | 490 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 490 | } | 430 | | | 431 | 490 | *n = read_count; | 432 | 490 | return Status::OK(); | 433 | 490 | } |
|
434 | | |
435 | 56.8k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 56.8k | return next_batch<false>(n, dst); |
437 | 56.8k | } 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 | 56.8k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 56.8k | return next_batch<false>(n, dst); | 437 | 56.8k | } |
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 | 2.57M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 606 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 140 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.73M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 10.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 279 | 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 | 584 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 2.33k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 216k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 234k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 40.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 264 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 204k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.06k | 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.54k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 965 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 116k | 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 | 81.1M | char* get_data(size_t index) const { |
444 | 81.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 81.1M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 954k | char* get_data(size_t index) const { | 444 | 954k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 954k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 80.0k | char* get_data(size_t index) const { | 444 | 80.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 80.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 16.3M | char* get_data(size_t index) const { | 444 | 16.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 16.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 2.77M | char* get_data(size_t index) const { | 444 | 2.77M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.77M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 24.0k | char* get_data(size_t index) const { | 444 | 24.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 24.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 8.31M | char* get_data(size_t index) const { | 444 | 8.31M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.31M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 22.3k | char* get_data(size_t index) const { | 444 | 22.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 641k | char* get_data(size_t index) const { | 444 | 641k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 641k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_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 | 504k | char* get_data(size_t index) const { | 444 | 504k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 504k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 7.03M | char* get_data(size_t index) const { | 444 | 7.03M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.03M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.74M | char* get_data(size_t index) const { | 444 | 9.74M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.74M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 4.99k | char* get_data(size_t index) const { | 444 | 4.99k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.99k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 503k | char* get_data(size_t index) const { | 444 | 503k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 503k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 21.7k | char* get_data(size_t index) const { | 444 | 21.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.7k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.45k | char* get_data(size_t index) const { | 444 | 1.45k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.45k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 22.4k | char* get_data(size_t index) const { | 444 | 22.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 25.0M | char* get_data(size_t index) const { | 444 | 25.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 25.0M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 9.00M | char* get_data(size_t index) const { | 444 | 9.00M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.00M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 5.03k | char* get_data(size_t index) const { | 444 | 5.03k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.03k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.19k | char* get_data(size_t index) const { | 444 | 1.19k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.19k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.53k | char* get_data(size_t index) const { | 444 | 1.53k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.53k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 443 | 95.2k | char* get_data(size_t index) const { | 444 | 95.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 95.2k | } |
|
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 |