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/storage_layout.h" |
42 | | #include "storage/types.h" |
43 | | #include "util/alignment.h" |
44 | | #include "util/coding.h" |
45 | | #include "util/faststring.h" |
46 | | #include "util/slice.h" |
47 | | |
48 | | namespace doris { |
49 | | namespace segment_v2 { |
50 | | |
51 | | static constexpr size_t BITSHUFFLE_PAGE_HEADER_SIZE = 16; |
52 | | |
53 | | void warn_with_bitshuffle_error(int64_t val); |
54 | | |
55 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
56 | | // size type blocks with lz4. |
57 | | // |
58 | | // The page format is as follows: |
59 | | // |
60 | | // 1. Header: (16 bytes total) |
61 | | // |
62 | | // <num_elements> [32-bit] |
63 | | // The number of elements encoded in the page. |
64 | | // |
65 | | // <compressed_size> [32-bit] |
66 | | // The post-compression size of the page, including this header. |
67 | | // |
68 | | // <padded_num_elements> [32-bit] |
69 | | // Padding is needed to meet the requirements of the bitshuffle |
70 | | // library such that the input/output is a multiple of 8. Some |
71 | | // ignored elements are appended to the end of the page if necessary |
72 | | // to meet this requirement. |
73 | | // |
74 | | // This header field is the post-padding element count. |
75 | | // |
76 | | // <elem_size_bytes> [32-bit] |
77 | | // The size of the elements, in bytes, as actually encoded. In the |
78 | | // case that all of the data in a page can fit into a smaller |
79 | | // integer type, then we may choose to encode that smaller type |
80 | | // to save CPU costs. |
81 | | // |
82 | | // This is currently only implemented in the UINT32 page type. |
83 | | // |
84 | | // NOTE: all on-disk ints are encoded little-endian |
85 | | // |
86 | | // 2. Element data |
87 | | // |
88 | | // The header is followed by the bitshuffle-compressed element data. |
89 | | // |
90 | | template <FieldType Type> |
91 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
92 | | public: |
93 | | using Self = BitshufflePageBuilder<Type>; |
94 | | friend class PageBuilderHelper<Self>; |
95 | | |
96 | 850k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 61.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 10.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 359k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 190k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 13.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 65.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 96 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 7.88k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 9.43k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 96 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 344 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 37.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 44.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 96 | 326 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 438 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.64k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 325 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.63k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 16.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.20k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 660 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 654 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 96 | 586 | Status init() override { return reset(); } |
|
97 | | |
98 | 148M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 69.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 10.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 147M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 291k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 13.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 65.2k | 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 | 98 | 7.76k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 21.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 98 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 98 | 450 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 45.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 43.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 98 | 327 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 568 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.67k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 306 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.16k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 28.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 17.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.46k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 622 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 646 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 98 | 26.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.40M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.40M | return add_internal<false>(vals, count); |
102 | 1.40M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 69.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 69.7k | return add_internal<false>(vals, count); | 102 | 69.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 10.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 10.6k | return add_internal<false>(vals, count); | 102 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 742k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 742k | return add_internal<false>(vals, count); | 102 | 742k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 290k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 290k | return add_internal<false>(vals, count); | 102 | 290k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 13.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 13.3k | return add_internal<false>(vals, count); | 102 | 13.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 65.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 65.2k | return add_internal<false>(vals, count); | 102 | 65.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 7.76k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.76k | return add_internal<false>(vals, count); | 102 | 7.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 21.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 21.1k | return add_internal<false>(vals, count); | 102 | 21.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 100 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 194 | return add_internal<false>(vals, count); | 102 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 452 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 452 | return add_internal<false>(vals, count); | 102 | 452 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 45.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 45.2k | return add_internal<false>(vals, count); | 102 | 45.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 43.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 43.8k | return add_internal<false>(vals, count); | 102 | 43.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 100 | 327 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 327 | return add_internal<false>(vals, count); | 102 | 327 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 568 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 568 | return add_internal<false>(vals, count); | 102 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.68k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.68k | return add_internal<false>(vals, count); | 102 | 7.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 307 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 307 | return add_internal<false>(vals, count); | 102 | 307 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.16k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.16k | return add_internal<false>(vals, count); | 102 | 5.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 28.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 28.4k | return add_internal<false>(vals, count); | 102 | 28.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 17.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 17.9k | return add_internal<false>(vals, count); | 102 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.46k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.46k | return add_internal<false>(vals, count); | 102 | 1.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 623 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 623 | return add_internal<false>(vals, count); | 102 | 623 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 646 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 646 | return add_internal<false>(vals, count); | 102 | 646 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 100 | 26.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 26.5k | return add_internal<false>(vals, count); | 102 | 26.5k | } |
|
103 | | |
104 | 149M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 149M | return add_internal<true>(vals, count); |
106 | 149M | } |
107 | | |
108 | | template <bool single> |
109 | 147M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 147M | DCHECK(!_finished); |
111 | 147M | if (_remain_element_capacity == 0) { |
112 | 0 | *num_written = 0; |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | | |
116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
117 | | // the row count of a single men tbl could be very large. |
118 | | // a real log: |
119 | | /* |
120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
121 | | */ |
122 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
124 | | // 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). |
125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
126 | 147M | uint32_t to_add = cast_set<UInt32>( |
127 | 147M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
129 | 147M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 147M | size_t orig_size = _data.size(); |
131 | | // This may need a large memory, should return error if could not allocated |
132 | | // successfully, to avoid BE OOM. |
133 | 147M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 150M | _count += to_add; |
135 | 150M | _remain_element_capacity -= to_add; |
136 | 150M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 150M | *num_written = to_add; |
139 | 150M | if constexpr (single) { |
140 | | if constexpr (SIZE_OF_TYPE == 1) { |
141 | | _data[orig_size] = *vals; |
142 | | return Status::OK(); |
143 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
145 | | *reinterpret_cast<const uint16_t*>(vals); |
146 | | return Status::OK(); |
147 | 149M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 149M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 149M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 149M | return Status::OK(); |
151 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
153 | | *reinterpret_cast<const uint64_t*>(vals); |
154 | | return Status::OK(); |
155 | | } |
156 | 149M | } |
157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
159 | 150M | return Status::OK(); |
160 | 147M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 69.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 69.7k | DCHECK(!_finished); | 111 | 69.7k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 69.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 69.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 69.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 69.7k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 69.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 69.7k | _count += to_add; | 135 | 69.7k | _remain_element_capacity -= to_add; | 136 | 69.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 69.7k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 69.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 69.7k | return Status::OK(); | 160 | 69.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 10.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 10.6k | DCHECK(!_finished); | 111 | 10.6k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 10.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 10.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 10.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 10.6k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 10.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 10.6k | _count += to_add; | 135 | 10.6k | _remain_element_capacity -= to_add; | 136 | 10.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 10.6k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 10.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 10.6k | return Status::OK(); | 160 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 742k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 742k | DCHECK(!_finished); | 111 | 742k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 742k | uint32_t to_add = cast_set<UInt32>( | 127 | 742k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 742k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 742k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 742k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 742k | _count += to_add; | 135 | 742k | _remain_element_capacity -= to_add; | 136 | 742k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 742k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 742k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 742k | return Status::OK(); | 160 | 742k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 291k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 291k | DCHECK(!_finished); | 111 | 291k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 291k | uint32_t to_add = cast_set<UInt32>( | 127 | 291k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 291k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 291k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 291k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 291k | _count += to_add; | 135 | 291k | _remain_element_capacity -= to_add; | 136 | 291k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 291k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 291k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 291k | return Status::OK(); | 160 | 291k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 13.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 13.3k | DCHECK(!_finished); | 111 | 13.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 13.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 13.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 13.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 13.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 13.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 13.3k | _count += to_add; | 135 | 13.3k | _remain_element_capacity -= to_add; | 136 | 13.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 13.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 13.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 13.3k | return Status::OK(); | 160 | 13.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 65.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 65.2k | DCHECK(!_finished); | 111 | 65.2k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 65.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 65.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 65.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 65.2k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 65.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 65.2k | _count += to_add; | 135 | 65.2k | _remain_element_capacity -= to_add; | 136 | 65.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 65.2k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 65.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 65.2k | return Status::OK(); | 160 | 65.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.76k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.76k | DCHECK(!_finished); | 111 | 7.76k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 7.76k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.76k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 7.76k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.76k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 7.76k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.76k | _count += to_add; | 135 | 7.76k | _remain_element_capacity -= to_add; | 136 | 7.76k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.76k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 7.76k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.76k | return Status::OK(); | 160 | 7.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 21.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 21.2k | DCHECK(!_finished); | 111 | 21.2k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 21.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 21.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 21.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 21.2k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 21.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 21.3k | _count += to_add; | 135 | 21.3k | _remain_element_capacity -= to_add; | 136 | 21.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 21.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 21.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 21.3k | return Status::OK(); | 160 | 21.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 194 | DCHECK(!_finished); | 111 | 194 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 194 | uint32_t to_add = cast_set<UInt32>( | 127 | 194 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 194 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 194 | _count += to_add; | 135 | 194 | _remain_element_capacity -= to_add; | 136 | 194 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 194 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 194 | return Status::OK(); | 160 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 452 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 452 | DCHECK(!_finished); | 111 | 452 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 452 | uint32_t to_add = cast_set<UInt32>( | 127 | 452 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 452 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 452 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 452 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 452 | _count += to_add; | 135 | 452 | _remain_element_capacity -= to_add; | 136 | 452 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 452 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 452 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 452 | return Status::OK(); | 160 | 452 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 45.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 45.1k | DCHECK(!_finished); | 111 | 45.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 45.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 45.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 45.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 45.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 45.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 45.1k | _count += to_add; | 135 | 45.1k | _remain_element_capacity -= to_add; | 136 | 45.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 45.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 45.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 45.1k | return Status::OK(); | 160 | 45.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 43.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 43.8k | DCHECK(!_finished); | 111 | 43.8k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 43.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 43.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 43.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 43.8k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 43.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 43.8k | _count += to_add; | 135 | 43.8k | _remain_element_capacity -= to_add; | 136 | 43.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 43.8k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 43.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 43.8k | return Status::OK(); | 160 | 43.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 327 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 327 | DCHECK(!_finished); | 111 | 327 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 327 | uint32_t to_add = cast_set<UInt32>( | 127 | 327 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 327 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 327 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 327 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 327 | _count += to_add; | 135 | 327 | _remain_element_capacity -= to_add; | 136 | 327 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 327 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 327 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 327 | return Status::OK(); | 160 | 327 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 568 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 568 | DCHECK(!_finished); | 111 | 568 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 568 | uint32_t to_add = cast_set<UInt32>( | 127 | 568 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 568 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 568 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 568 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 568 | _count += to_add; | 135 | 568 | _remain_element_capacity -= to_add; | 136 | 568 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 568 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 568 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 568 | return Status::OK(); | 160 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.67k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.67k | DCHECK(!_finished); | 111 | 7.67k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 7.67k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.67k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 7.67k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.67k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 7.67k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.68k | _count += to_add; | 135 | 7.68k | _remain_element_capacity -= to_add; | 136 | 7.68k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.68k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 7.68k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.68k | return Status::OK(); | 160 | 7.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 307 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 307 | DCHECK(!_finished); | 111 | 307 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 307 | uint32_t to_add = cast_set<UInt32>( | 127 | 307 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 307 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 307 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 307 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 307 | _count += to_add; | 135 | 307 | _remain_element_capacity -= to_add; | 136 | 307 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 307 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 307 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 307 | return Status::OK(); | 160 | 307 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.16k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.16k | DCHECK(!_finished); | 111 | 5.16k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 5.16k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.16k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 5.16k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.16k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 5.16k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.16k | _count += to_add; | 135 | 5.16k | _remain_element_capacity -= to_add; | 136 | 5.16k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.16k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 5.16k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.16k | return Status::OK(); | 160 | 5.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 28.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 28.4k | DCHECK(!_finished); | 111 | 28.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 28.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 28.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 28.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 28.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 28.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 28.4k | _count += to_add; | 135 | 28.4k | _remain_element_capacity -= to_add; | 136 | 28.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 28.4k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 28.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 28.4k | return Status::OK(); | 160 | 28.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 17.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 17.9k | DCHECK(!_finished); | 111 | 17.9k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 17.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 17.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 17.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 17.9k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 17.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 17.9k | _count += to_add; | 135 | 17.9k | _remain_element_capacity -= to_add; | 136 | 17.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 17.9k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 17.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 17.9k | return Status::OK(); | 160 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.46k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.46k | DCHECK(!_finished); | 111 | 1.46k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.46k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.46k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.46k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.46k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.46k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.46k | _count += to_add; | 135 | 1.46k | _remain_element_capacity -= to_add; | 136 | 1.46k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.46k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.46k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.46k | return Status::OK(); | 160 | 1.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 623 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 623 | DCHECK(!_finished); | 111 | 623 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 623 | uint32_t to_add = cast_set<UInt32>( | 127 | 623 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 623 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 623 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 623 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 623 | _count += to_add; | 135 | 623 | _remain_element_capacity -= to_add; | 136 | 623 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 623 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 623 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 623 | return Status::OK(); | 160 | 623 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 646 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 646 | DCHECK(!_finished); | 111 | 646 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 646 | uint32_t to_add = cast_set<UInt32>( | 127 | 646 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 646 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 646 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 646 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 646 | _count += to_add; | 135 | 646 | _remain_element_capacity -= to_add; | 136 | 646 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 646 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 646 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 646 | return Status::OK(); | 160 | 646 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 26.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 26.4k | DCHECK(!_finished); | 111 | 26.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 26.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 26.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 26.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 26.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 26.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 26.5k | _count += to_add; | 135 | 26.5k | _remain_element_capacity -= to_add; | 136 | 26.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 26.5k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 26.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 26.5k | return Status::OK(); | 160 | 26.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 146M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 146M | DCHECK(!_finished); | 111 | 146M | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // 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). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 146M | uint32_t to_add = cast_set<UInt32>( | 127 | 146M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 146M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 146M | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 146M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 149M | _count += to_add; | 135 | 149M | _remain_element_capacity -= to_add; | 136 | 149M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 149M | *num_written = to_add; | 139 | 149M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | 149M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 149M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 149M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 149M | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | 149M | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 149M | return Status::OK(); | 160 | 146M | } |
|
161 | | |
162 | 846k | Status finish(OwnedSlice* slice) override { |
163 | 846k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
164 | 846k | return Status::OK(); |
165 | 846k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 60.6k | Status finish(OwnedSlice* slice) override { | 163 | 60.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 60.6k | return Status::OK(); | 165 | 60.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.78k | Status finish(OwnedSlice* slice) override { | 163 | 9.78k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 9.78k | return Status::OK(); | 165 | 9.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 346k | Status finish(OwnedSlice* slice) override { | 163 | 346k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 346k | return Status::OK(); | 165 | 346k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 194k | Status finish(OwnedSlice* slice) override { | 163 | 194k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 194k | return Status::OK(); | 165 | 194k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 13.2k | Status finish(OwnedSlice* slice) override { | 163 | 13.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 13.2k | return Status::OK(); | 165 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 64.8k | Status finish(OwnedSlice* slice) override { | 163 | 64.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 64.8k | return Status::OK(); | 165 | 64.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.19k | Status finish(OwnedSlice* slice) override { | 163 | 7.19k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 7.19k | return Status::OK(); | 165 | 7.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 10.3k | Status finish(OwnedSlice* slice) override { | 163 | 10.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 10.3k | return Status::OK(); | 165 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6 | Status finish(OwnedSlice* slice) override { | 163 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 6 | return Status::OK(); | 165 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 375 | Status finish(OwnedSlice* slice) override { | 163 | 375 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 375 | return Status::OK(); | 165 | 375 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 38.0k | Status finish(OwnedSlice* slice) override { | 163 | 38.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 38.0k | return Status::OK(); | 165 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.0k | Status finish(OwnedSlice* slice) override { | 163 | 43.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 43.0k | return Status::OK(); | 165 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 269 | Status finish(OwnedSlice* slice) override { | 163 | 269 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 269 | return Status::OK(); | 165 | 269 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 605 | Status finish(OwnedSlice* slice) override { | 163 | 605 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 605 | return Status::OK(); | 165 | 605 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.72k | Status finish(OwnedSlice* slice) override { | 163 | 7.72k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 7.72k | return Status::OK(); | 165 | 7.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 256 | Status finish(OwnedSlice* slice) override { | 163 | 256 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 256 | return Status::OK(); | 165 | 256 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.63k | Status finish(OwnedSlice* slice) override { | 163 | 9.63k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 9.63k | return Status::OK(); | 165 | 9.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.1k | Status finish(OwnedSlice* slice) override { | 163 | 19.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 19.1k | return Status::OK(); | 165 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 17.1k | Status finish(OwnedSlice* slice) override { | 163 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 17.1k | return Status::OK(); | 165 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.14k | Status finish(OwnedSlice* slice) override { | 163 | 1.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 1.14k | return Status::OK(); | 165 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 576 | Status finish(OwnedSlice* slice) override { | 163 | 576 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 577 | return Status::OK(); | 165 | 576 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 584 | Status finish(OwnedSlice* slice) override { | 163 | 584 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 584 | return Status::OK(); | 165 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 691 | Status finish(OwnedSlice* slice) override { | 163 | 691 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 691 | return Status::OK(); | 165 | 691 | } |
|
166 | | |
167 | 1.98M | Status reset() override { |
168 | 1.98M | RETURN_IF_CATCH_EXCEPTION({ |
169 | 1.98M | size_t block_size = _options.data_page_size; |
170 | 1.98M | _count = 0; |
171 | 1.98M | _raw_data_size = 0; |
172 | 1.98M | _data.clear(); |
173 | 1.98M | _data.reserve(block_size); |
174 | 1.98M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
175 | 1.98M | << "buffer must be naturally-aligned"; |
176 | 1.98M | _buffer.clear(); |
177 | 1.98M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
178 | 1.98M | _finished = false; |
179 | 1.98M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
180 | 1.98M | }); |
181 | 1.98M | return Status::OK(); |
182 | 1.98M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 167 | 122k | Status reset() override { | 168 | 122k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 122k | size_t block_size = _options.data_page_size; | 170 | 122k | _count = 0; | 171 | 122k | _raw_data_size = 0; | 172 | 122k | _data.clear(); | 173 | 122k | _data.reserve(block_size); | 174 | 122k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 122k | << "buffer must be naturally-aligned"; | 176 | 122k | _buffer.clear(); | 177 | 122k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 122k | _finished = false; | 179 | 122k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 122k | }); | 181 | 122k | return Status::OK(); | 182 | 122k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 167 | 20.3k | Status reset() override { | 168 | 20.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 20.3k | size_t block_size = _options.data_page_size; | 170 | 20.3k | _count = 0; | 171 | 20.3k | _raw_data_size = 0; | 172 | 20.3k | _data.clear(); | 173 | 20.3k | _data.reserve(block_size); | 174 | 20.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 20.3k | << "buffer must be naturally-aligned"; | 176 | 20.3k | _buffer.clear(); | 177 | 20.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 20.3k | _finished = false; | 179 | 20.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 20.3k | }); | 181 | 20.3k | return Status::OK(); | 182 | 20.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 167 | 995k | Status reset() override { | 168 | 995k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 995k | size_t block_size = _options.data_page_size; | 170 | 995k | _count = 0; | 171 | 995k | _raw_data_size = 0; | 172 | 995k | _data.clear(); | 173 | 995k | _data.reserve(block_size); | 174 | 995k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 995k | << "buffer must be naturally-aligned"; | 176 | 995k | _buffer.clear(); | 177 | 995k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 995k | _finished = false; | 179 | 995k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 995k | }); | 181 | 997k | return Status::OK(); | 182 | 995k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 167 | 384k | Status reset() override { | 168 | 384k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 384k | size_t block_size = _options.data_page_size; | 170 | 384k | _count = 0; | 171 | 384k | _raw_data_size = 0; | 172 | 384k | _data.clear(); | 173 | 384k | _data.reserve(block_size); | 174 | 384k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 384k | << "buffer must be naturally-aligned"; | 176 | 384k | _buffer.clear(); | 177 | 384k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 384k | _finished = false; | 179 | 384k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 384k | }); | 181 | 385k | return Status::OK(); | 182 | 384k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 167 | 26.4k | Status reset() override { | 168 | 26.4k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 26.4k | size_t block_size = _options.data_page_size; | 170 | 26.4k | _count = 0; | 171 | 26.4k | _raw_data_size = 0; | 172 | 26.4k | _data.clear(); | 173 | 26.4k | _data.reserve(block_size); | 174 | 26.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 26.4k | << "buffer must be naturally-aligned"; | 176 | 26.4k | _buffer.clear(); | 177 | 26.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 26.4k | _finished = false; | 179 | 26.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 26.4k | }); | 181 | 26.4k | return Status::OK(); | 182 | 26.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 167 | 129k | Status reset() override { | 168 | 129k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 129k | size_t block_size = _options.data_page_size; | 170 | 129k | _count = 0; | 171 | 129k | _raw_data_size = 0; | 172 | 129k | _data.clear(); | 173 | 129k | _data.reserve(block_size); | 174 | 129k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 129k | << "buffer must be naturally-aligned"; | 176 | 129k | _buffer.clear(); | 177 | 129k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 129k | _finished = false; | 179 | 129k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 129k | }); | 181 | 130k | return Status::OK(); | 182 | 129k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 167 | 1 | Status reset() override { | 168 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1 | size_t block_size = _options.data_page_size; | 170 | 1 | _count = 0; | 171 | 1 | _raw_data_size = 0; | 172 | 1 | _data.clear(); | 173 | 1 | _data.reserve(block_size); | 174 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1 | << "buffer must be naturally-aligned"; | 176 | 1 | _buffer.clear(); | 177 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1 | _finished = false; | 179 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1 | }); | 181 | 1 | return Status::OK(); | 182 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 167 | 15.0k | Status reset() override { | 168 | 15.0k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 15.0k | size_t block_size = _options.data_page_size; | 170 | 15.0k | _count = 0; | 171 | 15.0k | _raw_data_size = 0; | 172 | 15.0k | _data.clear(); | 173 | 15.0k | _data.reserve(block_size); | 174 | 15.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 15.0k | << "buffer must be naturally-aligned"; | 176 | 15.0k | _buffer.clear(); | 177 | 15.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 15.0k | _finished = false; | 179 | 15.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 15.0k | }); | 181 | 15.0k | return Status::OK(); | 182 | 15.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 167 | 19.7k | Status reset() override { | 168 | 19.7k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 19.7k | size_t block_size = _options.data_page_size; | 170 | 19.7k | _count = 0; | 171 | 19.7k | _raw_data_size = 0; | 172 | 19.7k | _data.clear(); | 173 | 19.7k | _data.reserve(block_size); | 174 | 19.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 19.7k | << "buffer must be naturally-aligned"; | 176 | 19.7k | _buffer.clear(); | 177 | 19.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 19.7k | _finished = false; | 179 | 19.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 19.7k | }); | 181 | 19.7k | return Status::OK(); | 182 | 19.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 167 | 8 | Status reset() override { | 168 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 8 | size_t block_size = _options.data_page_size; | 170 | 8 | _count = 0; | 171 | 8 | _raw_data_size = 0; | 172 | 8 | _data.clear(); | 173 | 8 | _data.reserve(block_size); | 174 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 8 | << "buffer must be naturally-aligned"; | 176 | 8 | _buffer.clear(); | 177 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 8 | _finished = false; | 179 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 8 | }); | 181 | 8 | return Status::OK(); | 182 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 167 | 717 | Status reset() override { | 168 | 717 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 717 | size_t block_size = _options.data_page_size; | 170 | 717 | _count = 0; | 171 | 717 | _raw_data_size = 0; | 172 | 717 | _data.clear(); | 173 | 717 | _data.reserve(block_size); | 174 | 717 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 717 | << "buffer must be naturally-aligned"; | 176 | 717 | _buffer.clear(); | 177 | 717 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 717 | _finished = false; | 179 | 717 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 717 | }); | 181 | 717 | return Status::OK(); | 182 | 717 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 167 | 75.3k | Status reset() override { | 168 | 75.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 75.3k | size_t block_size = _options.data_page_size; | 170 | 75.3k | _count = 0; | 171 | 75.3k | _raw_data_size = 0; | 172 | 75.3k | _data.clear(); | 173 | 75.3k | _data.reserve(block_size); | 174 | 75.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 75.3k | << "buffer must be naturally-aligned"; | 176 | 75.3k | _buffer.clear(); | 177 | 75.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 75.3k | _finished = false; | 179 | 75.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 75.3k | }); | 181 | 75.4k | return Status::OK(); | 182 | 75.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 167 | 87.1k | Status reset() override { | 168 | 87.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 87.1k | size_t block_size = _options.data_page_size; | 170 | 87.1k | _count = 0; | 171 | 87.1k | _raw_data_size = 0; | 172 | 87.1k | _data.clear(); | 173 | 87.1k | _data.reserve(block_size); | 174 | 87.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 87.1k | << "buffer must be naturally-aligned"; | 176 | 87.1k | _buffer.clear(); | 177 | 87.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 87.1k | _finished = false; | 179 | 87.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 87.1k | }); | 181 | 87.1k | return Status::OK(); | 182 | 87.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 167 | 595 | Status reset() override { | 168 | 595 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 595 | size_t block_size = _options.data_page_size; | 170 | 595 | _count = 0; | 171 | 595 | _raw_data_size = 0; | 172 | 595 | _data.clear(); | 173 | 595 | _data.reserve(block_size); | 174 | 595 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 595 | << "buffer must be naturally-aligned"; | 176 | 595 | _buffer.clear(); | 177 | 595 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 595 | _finished = false; | 179 | 595 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 595 | }); | 181 | 596 | return Status::OK(); | 182 | 595 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 167 | 1.04k | Status reset() override { | 168 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.04k | size_t block_size = _options.data_page_size; | 170 | 1.04k | _count = 0; | 171 | 1.04k | _raw_data_size = 0; | 172 | 1.04k | _data.clear(); | 173 | 1.04k | _data.reserve(block_size); | 174 | 1.04k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.04k | << "buffer must be naturally-aligned"; | 176 | 1.04k | _buffer.clear(); | 177 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.04k | _finished = false; | 179 | 1.04k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.04k | }); | 181 | 1.04k | return Status::OK(); | 182 | 1.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 167 | 15.3k | Status reset() override { | 168 | 15.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 15.3k | size_t block_size = _options.data_page_size; | 170 | 15.3k | _count = 0; | 171 | 15.3k | _raw_data_size = 0; | 172 | 15.3k | _data.clear(); | 173 | 15.3k | _data.reserve(block_size); | 174 | 15.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 15.3k | << "buffer must be naturally-aligned"; | 176 | 15.3k | _buffer.clear(); | 177 | 15.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 15.3k | _finished = false; | 179 | 15.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 15.3k | }); | 181 | 15.4k | return Status::OK(); | 182 | 15.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 167 | 580 | Status reset() override { | 168 | 580 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 580 | size_t block_size = _options.data_page_size; | 170 | 580 | _count = 0; | 171 | 580 | _raw_data_size = 0; | 172 | 580 | _data.clear(); | 173 | 580 | _data.reserve(block_size); | 174 | 580 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 580 | << "buffer must be naturally-aligned"; | 176 | 580 | _buffer.clear(); | 177 | 580 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 580 | _finished = false; | 179 | 580 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 580 | }); | 181 | 580 | return Status::OK(); | 182 | 580 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 167 | 19.2k | Status reset() override { | 168 | 19.2k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 19.2k | size_t block_size = _options.data_page_size; | 170 | 19.2k | _count = 0; | 171 | 19.2k | _raw_data_size = 0; | 172 | 19.2k | _data.clear(); | 173 | 19.2k | _data.reserve(block_size); | 174 | 19.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 19.2k | << "buffer must be naturally-aligned"; | 176 | 19.2k | _buffer.clear(); | 177 | 19.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 19.2k | _finished = false; | 179 | 19.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 19.2k | }); | 181 | 19.2k | return Status::OK(); | 182 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 167 | 31.2k | Status reset() override { | 168 | 31.2k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 31.2k | size_t block_size = _options.data_page_size; | 170 | 31.2k | _count = 0; | 171 | 31.2k | _raw_data_size = 0; | 172 | 31.2k | _data.clear(); | 173 | 31.2k | _data.reserve(block_size); | 174 | 31.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 31.2k | << "buffer must be naturally-aligned"; | 176 | 31.2k | _buffer.clear(); | 177 | 31.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 31.2k | _finished = false; | 179 | 31.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 31.2k | }); | 181 | 31.2k | return Status::OK(); | 182 | 31.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 167 | 34.0k | Status reset() override { | 168 | 34.0k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 34.0k | size_t block_size = _options.data_page_size; | 170 | 34.0k | _count = 0; | 171 | 34.0k | _raw_data_size = 0; | 172 | 34.0k | _data.clear(); | 173 | 34.0k | _data.reserve(block_size); | 174 | 34.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 34.0k | << "buffer must be naturally-aligned"; | 176 | 34.0k | _buffer.clear(); | 177 | 34.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 34.0k | _finished = false; | 179 | 34.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 34.0k | }); | 181 | 34.0k | return Status::OK(); | 182 | 34.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 167 | 2.34k | Status reset() override { | 168 | 2.34k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 2.34k | size_t block_size = _options.data_page_size; | 170 | 2.34k | _count = 0; | 171 | 2.34k | _raw_data_size = 0; | 172 | 2.34k | _data.clear(); | 173 | 2.34k | _data.reserve(block_size); | 174 | 2.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 2.34k | << "buffer must be naturally-aligned"; | 176 | 2.34k | _buffer.clear(); | 177 | 2.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 2.34k | _finished = false; | 179 | 2.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 2.34k | }); | 181 | 2.34k | return Status::OK(); | 182 | 2.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 167 | 1.23k | Status reset() override { | 168 | 1.23k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.23k | size_t block_size = _options.data_page_size; | 170 | 1.23k | _count = 0; | 171 | 1.23k | _raw_data_size = 0; | 172 | 1.23k | _data.clear(); | 173 | 1.23k | _data.reserve(block_size); | 174 | 1.23k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.23k | << "buffer must be naturally-aligned"; | 176 | 1.23k | _buffer.clear(); | 177 | 1.23k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.23k | _finished = false; | 179 | 1.23k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.23k | }); | 181 | 1.23k | return Status::OK(); | 182 | 1.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 167 | 1.23k | Status reset() override { | 168 | 1.23k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.23k | size_t block_size = _options.data_page_size; | 170 | 1.23k | _count = 0; | 171 | 1.23k | _raw_data_size = 0; | 172 | 1.23k | _data.clear(); | 173 | 1.23k | _data.reserve(block_size); | 174 | 1.23k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.23k | << "buffer must be naturally-aligned"; | 176 | 1.23k | _buffer.clear(); | 177 | 1.23k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.23k | _finished = false; | 179 | 1.23k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.23k | }); | 181 | 1.24k | return Status::OK(); | 182 | 1.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5resetEv Line | Count | Source | 167 | 1.27k | Status reset() override { | 168 | 1.27k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.27k | size_t block_size = _options.data_page_size; | 170 | 1.27k | _count = 0; | 171 | 1.27k | _raw_data_size = 0; | 172 | 1.27k | _data.clear(); | 173 | 1.27k | _data.reserve(block_size); | 174 | 1.27k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.27k | << "buffer must be naturally-aligned"; | 176 | 1.27k | _buffer.clear(); | 177 | 1.27k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.27k | _finished = false; | 179 | 1.27k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.27k | }); | 181 | 1.27k | return Status::OK(); | 182 | 1.27k | } |
|
183 | | |
184 | 667 | size_t count() const override { return _count; }Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 184 | 8 | 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 _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Line | Count | Source | 184 | 10 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Line | Count | Source | 184 | 628 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Line | Count | Source | 184 | 10 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Line | Count | Source | 184 | 6 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Line | Count | Source | 184 | 5 | size_t count() const override { return _count; } |
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 |
185 | | |
186 | 37.7k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 186 | 3.35k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 186 | 928 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 186 | 20.3k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 186 | 3.18k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 186 | 1.28k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 186 | 889 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 186 | 548 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 186 | 602 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 186 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 186 | 1.63k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 186 | 2.21k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv Line | Count | Source | 186 | 10 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 186 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 186 | 146 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 186 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 186 | 245 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 186 | 393 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 186 | 1.21k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 186 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 186 | 128 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 186 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4sizeEv Line | Count | Source | 186 | 12 | uint64_t size() const override { return _buffer.size(); } |
|
187 | | |
188 | 568k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 188 | 60.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.78k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 188 | 69.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 188 | 194k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 188 | 13.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 188 | 64.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 | 188 | 7.18k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.67k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 188 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 188 | 364 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 188 | 38.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 188 | 43.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 188 | 269 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 188 | 600 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 188 | 7.72k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 188 | 251 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.63k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 188 | 19.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 188 | 17.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 188 | 1.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 188 | 576 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 188 | 584 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv Line | Count | Source | 188 | 691 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
189 | | |
190 | | private: |
191 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
192 | 847k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 61.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 10.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 357k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 190k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 13.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 65.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.88k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.43k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 344 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 37.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 44.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 326 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 438 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.61k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 325 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.62k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 12.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1.20k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 658 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 655 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 584 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
193 | | |
194 | 846k | OwnedSlice _finish(int final_size_of_type) { |
195 | 846k | _data.resize(final_size_of_type * _count); |
196 | | |
197 | | // Do padding so that the input num of element is multiple of 8. |
198 | 846k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
199 | 846k | int padding_elems = num_elems_after_padding - _count; |
200 | 846k | int padding_bytes = padding_elems * final_size_of_type; |
201 | 26.4M | for (int i = 0; i < padding_bytes; i++) { |
202 | 25.6M | _data.push_back(0); |
203 | 25.6M | } |
204 | | |
205 | | // reserve enough place for compression |
206 | 846k | _buffer.resize( |
207 | 846k | BITSHUFFLE_PAGE_HEADER_SIZE + |
208 | 846k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
209 | | |
210 | 846k | int64_t bytes = |
211 | 846k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
212 | 846k | num_elems_after_padding, final_size_of_type, 0); |
213 | 846k | if (bytes < 0) [[unlikely]] { |
214 | | // This means the bitshuffle function fails. |
215 | | // Ideally, this should not happen. |
216 | 0 | warn_with_bitshuffle_error(bytes); |
217 | | // It does not matter what will be returned here, |
218 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
219 | 0 | return OwnedSlice(); |
220 | 0 | } |
221 | | // update header |
222 | 846k | encode_fixed32_le(&_buffer[0], _count); |
223 | 846k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
224 | 846k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
225 | 846k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
226 | 846k | _finished = true; |
227 | | // before build(), update buffer length to the actual compressed size |
228 | 846k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
229 | 846k | return _buffer.build(); |
230 | 846k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 194 | 60.6k | OwnedSlice _finish(int final_size_of_type) { | 195 | 60.6k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 60.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 60.6k | int padding_elems = num_elems_after_padding - _count; | 200 | 60.6k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 400k | for (int i = 0; i < padding_bytes; i++) { | 202 | 339k | _data.push_back(0); | 203 | 339k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 60.6k | _buffer.resize( | 207 | 60.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 60.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 60.6k | int64_t bytes = | 211 | 60.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 60.6k | num_elems_after_padding, final_size_of_type, 0); | 213 | 60.6k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 60.6k | encode_fixed32_le(&_buffer[0], _count); | 223 | 60.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 60.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 60.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 60.6k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 60.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 60.6k | return _buffer.build(); | 230 | 60.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 194 | 9.78k | OwnedSlice _finish(int final_size_of_type) { | 195 | 9.78k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 9.78k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 9.78k | int padding_elems = num_elems_after_padding - _count; | 200 | 9.78k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 100k | for (int i = 0; i < padding_bytes; i++) { | 202 | 90.9k | _data.push_back(0); | 203 | 90.9k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 9.78k | _buffer.resize( | 207 | 9.78k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 9.78k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 9.78k | int64_t bytes = | 211 | 9.78k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 9.78k | num_elems_after_padding, final_size_of_type, 0); | 213 | 9.78k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 9.78k | encode_fixed32_le(&_buffer[0], _count); | 223 | 9.78k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 9.78k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 9.78k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 9.78k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 9.78k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 9.78k | return _buffer.build(); | 230 | 9.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 194 | 346k | OwnedSlice _finish(int final_size_of_type) { | 195 | 346k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 346k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 346k | int padding_elems = num_elems_after_padding - _count; | 200 | 346k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 6.76M | for (int i = 0; i < padding_bytes; i++) { | 202 | 6.42M | _data.push_back(0); | 203 | 6.42M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 346k | _buffer.resize( | 207 | 346k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 346k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 346k | int64_t bytes = | 211 | 346k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 346k | num_elems_after_padding, final_size_of_type, 0); | 213 | 346k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 346k | encode_fixed32_le(&_buffer[0], _count); | 223 | 346k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 346k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 346k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 346k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 346k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 346k | return _buffer.build(); | 230 | 346k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 194 | 194k | OwnedSlice _finish(int final_size_of_type) { | 195 | 194k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 194k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 194k | int padding_elems = num_elems_after_padding - _count; | 200 | 194k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 9.53M | for (int i = 0; i < padding_bytes; i++) { | 202 | 9.34M | _data.push_back(0); | 203 | 9.34M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 194k | _buffer.resize( | 207 | 194k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 194k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 194k | int64_t bytes = | 211 | 194k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 194k | num_elems_after_padding, final_size_of_type, 0); | 213 | 194k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 194k | encode_fixed32_le(&_buffer[0], _count); | 223 | 194k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 194k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 194k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 194k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 194k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 194k | return _buffer.build(); | 230 | 194k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 194 | 13.2k | OwnedSlice _finish(int final_size_of_type) { | 195 | 13.2k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 13.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 13.2k | int padding_elems = num_elems_after_padding - _count; | 200 | 13.2k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 879k | for (int i = 0; i < padding_bytes; i++) { | 202 | 865k | _data.push_back(0); | 203 | 865k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 13.2k | _buffer.resize( | 207 | 13.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 13.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 13.2k | int64_t bytes = | 211 | 13.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 13.2k | num_elems_after_padding, final_size_of_type, 0); | 213 | 13.2k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 13.2k | encode_fixed32_le(&_buffer[0], _count); | 223 | 13.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 13.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 13.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 13.2k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 13.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 13.2k | return _buffer.build(); | 230 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 194 | 64.8k | OwnedSlice _finish(int final_size_of_type) { | 195 | 64.8k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 64.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 64.8k | int padding_elems = num_elems_after_padding - _count; | 200 | 64.8k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 3.15M | for (int i = 0; i < padding_bytes; i++) { | 202 | 3.08M | _data.push_back(0); | 203 | 3.08M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 64.8k | _buffer.resize( | 207 | 64.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 64.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 64.8k | int64_t bytes = | 211 | 64.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 64.8k | num_elems_after_padding, final_size_of_type, 0); | 213 | 64.8k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 64.8k | encode_fixed32_le(&_buffer[0], _count); | 223 | 64.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 64.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 64.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 64.8k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 64.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 64.8k | return _buffer.build(); | 230 | 64.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 194 | 7.19k | OwnedSlice _finish(int final_size_of_type) { | 195 | 7.19k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 7.19k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 7.19k | int padding_elems = num_elems_after_padding - _count; | 200 | 7.19k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 154k | for (int i = 0; i < padding_bytes; i++) { | 202 | 146k | _data.push_back(0); | 203 | 146k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 7.19k | _buffer.resize( | 207 | 7.19k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 7.19k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 7.19k | int64_t bytes = | 211 | 7.19k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 7.19k | num_elems_after_padding, final_size_of_type, 0); | 213 | 7.19k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 7.19k | encode_fixed32_le(&_buffer[0], _count); | 223 | 7.19k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 7.19k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 7.19k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 7.19k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 7.19k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 7.19k | return _buffer.build(); | 230 | 7.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 194 | 10.3k | OwnedSlice _finish(int final_size_of_type) { | 195 | 10.3k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 10.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 10.3k | int padding_elems = num_elems_after_padding - _count; | 200 | 10.3k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 375k | for (int i = 0; i < padding_bytes; i++) { | 202 | 365k | _data.push_back(0); | 203 | 365k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 10.3k | _buffer.resize( | 207 | 10.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 10.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 10.3k | int64_t bytes = | 211 | 10.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 10.3k | num_elems_after_padding, final_size_of_type, 0); | 213 | 10.3k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 10.3k | encode_fixed32_le(&_buffer[0], _count); | 223 | 10.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 10.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 10.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 10.3k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 10.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 10.3k | return _buffer.build(); | 230 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 194 | 6 | OwnedSlice _finish(int final_size_of_type) { | 195 | 6 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 6 | int padding_elems = num_elems_after_padding - _count; | 200 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 18 | for (int i = 0; i < padding_bytes; i++) { | 202 | 12 | _data.push_back(0); | 203 | 12 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 6 | _buffer.resize( | 207 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 6 | int64_t bytes = | 211 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 6 | num_elems_after_padding, final_size_of_type, 0); | 213 | 6 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 6 | encode_fixed32_le(&_buffer[0], _count); | 223 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 6 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 6 | return _buffer.build(); | 230 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 194 | 375 | OwnedSlice _finish(int final_size_of_type) { | 195 | 375 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 375 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 375 | int padding_elems = num_elems_after_padding - _count; | 200 | 375 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 5.52k | for (int i = 0; i < padding_bytes; i++) { | 202 | 5.14k | _data.push_back(0); | 203 | 5.14k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 375 | _buffer.resize( | 207 | 375 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 375 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 375 | int64_t bytes = | 211 | 375 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 375 | num_elems_after_padding, final_size_of_type, 0); | 213 | 375 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 375 | encode_fixed32_le(&_buffer[0], _count); | 223 | 375 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 375 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 375 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 375 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 375 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 375 | return _buffer.build(); | 230 | 375 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 194 | 38.0k | OwnedSlice _finish(int final_size_of_type) { | 195 | 38.0k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 38.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 38.0k | int padding_elems = num_elems_after_padding - _count; | 200 | 38.0k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 805k | for (int i = 0; i < padding_bytes; i++) { | 202 | 767k | _data.push_back(0); | 203 | 767k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 38.0k | _buffer.resize( | 207 | 38.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 38.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 38.0k | int64_t bytes = | 211 | 38.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 38.0k | num_elems_after_padding, final_size_of_type, 0); | 213 | 38.0k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 38.0k | encode_fixed32_le(&_buffer[0], _count); | 223 | 38.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 38.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 38.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 38.0k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 38.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 38.0k | return _buffer.build(); | 230 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 194 | 43.0k | OwnedSlice _finish(int final_size_of_type) { | 195 | 43.0k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 43.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 43.0k | int padding_elems = num_elems_after_padding - _count; | 200 | 43.0k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 1.83M | for (int i = 0; i < padding_bytes; i++) { | 202 | 1.78M | _data.push_back(0); | 203 | 1.78M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 43.0k | _buffer.resize( | 207 | 43.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 43.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 43.0k | int64_t bytes = | 211 | 43.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 43.0k | num_elems_after_padding, final_size_of_type, 0); | 213 | 43.0k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 43.0k | encode_fixed32_le(&_buffer[0], _count); | 223 | 43.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 43.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 43.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 43.0k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 43.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 43.0k | return _buffer.build(); | 230 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 194 | 269 | OwnedSlice _finish(int final_size_of_type) { | 195 | 269 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 269 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 269 | int padding_elems = num_elems_after_padding - _count; | 200 | 269 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.0k | _data.push_back(0); | 203 | 11.0k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 269 | _buffer.resize( | 207 | 269 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 269 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 269 | int64_t bytes = | 211 | 269 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 269 | num_elems_after_padding, final_size_of_type, 0); | 213 | 269 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 269 | encode_fixed32_le(&_buffer[0], _count); | 223 | 269 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 269 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 269 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 269 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 269 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 269 | return _buffer.build(); | 230 | 269 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 194 | 605 | OwnedSlice _finish(int final_size_of_type) { | 195 | 605 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 605 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 605 | int padding_elems = num_elems_after_padding - _count; | 200 | 605 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 13.5k | for (int i = 0; i < padding_bytes; i++) { | 202 | 12.9k | _data.push_back(0); | 203 | 12.9k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 605 | _buffer.resize( | 207 | 605 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 605 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 605 | int64_t bytes = | 211 | 605 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 605 | num_elems_after_padding, final_size_of_type, 0); | 213 | 605 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 605 | encode_fixed32_le(&_buffer[0], _count); | 223 | 605 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 605 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 605 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 605 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 605 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 605 | return _buffer.build(); | 230 | 605 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 194 | 7.72k | OwnedSlice _finish(int final_size_of_type) { | 195 | 7.72k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 7.72k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 7.72k | int padding_elems = num_elems_after_padding - _count; | 200 | 7.72k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 402k | for (int i = 0; i < padding_bytes; i++) { | 202 | 394k | _data.push_back(0); | 203 | 394k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 7.72k | _buffer.resize( | 207 | 7.72k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 7.72k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 7.72k | int64_t bytes = | 211 | 7.72k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 7.72k | num_elems_after_padding, final_size_of_type, 0); | 213 | 7.72k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 7.72k | encode_fixed32_le(&_buffer[0], _count); | 223 | 7.72k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 7.72k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 7.72k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 7.72k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 7.72k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 7.72k | return _buffer.build(); | 230 | 7.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 194 | 256 | OwnedSlice _finish(int final_size_of_type) { | 195 | 256 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 256 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 256 | int padding_elems = num_elems_after_padding - _count; | 200 | 256 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 16.1k | for (int i = 0; i < padding_bytes; i++) { | 202 | 15.8k | _data.push_back(0); | 203 | 15.8k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 256 | _buffer.resize( | 207 | 256 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 256 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 256 | int64_t bytes = | 211 | 256 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 256 | num_elems_after_padding, final_size_of_type, 0); | 213 | 256 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 256 | encode_fixed32_le(&_buffer[0], _count); | 223 | 256 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 256 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 256 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 256 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 256 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 256 | return _buffer.build(); | 230 | 256 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 194 | 9.63k | OwnedSlice _finish(int final_size_of_type) { | 195 | 9.63k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 9.63k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 9.63k | int padding_elems = num_elems_after_padding - _count; | 200 | 9.63k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 116k | for (int i = 0; i < padding_bytes; i++) { | 202 | 106k | _data.push_back(0); | 203 | 106k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 9.63k | _buffer.resize( | 207 | 9.63k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 9.63k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 9.63k | int64_t bytes = | 211 | 9.63k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 9.63k | num_elems_after_padding, final_size_of_type, 0); | 213 | 9.63k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 9.63k | encode_fixed32_le(&_buffer[0], _count); | 223 | 9.63k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 9.63k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 9.63k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 9.63k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 9.63k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 9.63k | return _buffer.build(); | 230 | 9.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 194 | 19.1k | OwnedSlice _finish(int final_size_of_type) { | 195 | 19.1k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 19.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 19.1k | int padding_elems = num_elems_after_padding - _count; | 200 | 19.1k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 489k | for (int i = 0; i < padding_bytes; i++) { | 202 | 470k | _data.push_back(0); | 203 | 470k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 19.1k | _buffer.resize( | 207 | 19.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 19.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 19.1k | int64_t bytes = | 211 | 19.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 19.1k | num_elems_after_padding, final_size_of_type, 0); | 213 | 19.1k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 19.1k | encode_fixed32_le(&_buffer[0], _count); | 223 | 19.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 19.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 19.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 19.1k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 19.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 19.1k | return _buffer.build(); | 230 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 194 | 17.1k | OwnedSlice _finish(int final_size_of_type) { | 195 | 17.1k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 17.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 17.1k | int padding_elems = num_elems_after_padding - _count; | 200 | 17.1k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 1.14M | for (int i = 0; i < padding_bytes; i++) { | 202 | 1.12M | _data.push_back(0); | 203 | 1.12M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 17.1k | _buffer.resize( | 207 | 17.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 17.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 17.1k | int64_t bytes = | 211 | 17.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 17.1k | num_elems_after_padding, final_size_of_type, 0); | 213 | 17.1k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 17.1k | encode_fixed32_le(&_buffer[0], _count); | 223 | 17.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 17.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 17.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 17.1k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 17.1k | return _buffer.build(); | 230 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 194 | 1.14k | OwnedSlice _finish(int final_size_of_type) { | 195 | 1.14k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 1.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 1.14k | int padding_elems = num_elems_after_padding - _count; | 200 | 1.14k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 173k | for (int i = 0; i < padding_bytes; i++) { | 202 | 172k | _data.push_back(0); | 203 | 172k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 1.14k | _buffer.resize( | 207 | 1.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 1.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 1.14k | int64_t bytes = | 211 | 1.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 1.14k | num_elems_after_padding, final_size_of_type, 0); | 213 | 1.14k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 1.14k | encode_fixed32_le(&_buffer[0], _count); | 223 | 1.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 1.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 1.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 1.14k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 1.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 1.14k | return _buffer.build(); | 230 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 194 | 576 | OwnedSlice _finish(int final_size_of_type) { | 195 | 576 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 576 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 576 | int padding_elems = num_elems_after_padding - _count; | 200 | 576 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.6k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.1k | _data.push_back(0); | 203 | 11.1k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 576 | _buffer.resize( | 207 | 576 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 576 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 576 | int64_t bytes = | 211 | 576 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 576 | num_elems_after_padding, final_size_of_type, 0); | 213 | 576 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 576 | encode_fixed32_le(&_buffer[0], _count); | 223 | 576 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 576 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 576 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 576 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 576 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 576 | return _buffer.build(); | 230 | 576 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 194 | 584 | OwnedSlice _finish(int final_size_of_type) { | 195 | 584 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 584 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 584 | int padding_elems = num_elems_after_padding - _count; | 200 | 584 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 46.5k | for (int i = 0; i < padding_bytes; i++) { | 202 | 45.9k | _data.push_back(0); | 203 | 45.9k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 584 | _buffer.resize( | 207 | 584 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 584 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 584 | int64_t bytes = | 211 | 584 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 584 | num_elems_after_padding, final_size_of_type, 0); | 213 | 584 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 584 | encode_fixed32_le(&_buffer[0], _count); | 223 | 584 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 584 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 584 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 584 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 584 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 584 | return _buffer.build(); | 230 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 194 | 691 | OwnedSlice _finish(int final_size_of_type) { | 195 | 691 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 691 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 691 | int padding_elems = num_elems_after_padding - _count; | 200 | 691 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 50.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 49.6k | _data.push_back(0); | 203 | 49.6k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 691 | _buffer.resize( | 207 | 691 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 691 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 691 | int64_t bytes = | 211 | 691 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 691 | num_elems_after_padding, final_size_of_type, 0); | 213 | 691 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 691 | encode_fixed32_le(&_buffer[0], _count); | 223 | 691 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 691 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 691 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 691 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 691 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 691 | return _buffer.build(); | 230 | 691 | } |
|
231 | | |
232 | | using CppType = typename TypeTraits<Type>::CppType; |
233 | | |
234 | | CppType cell(int idx) const { |
235 | | DCHECK_GE(idx, 0); |
236 | | CppType ret; |
237 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
238 | | return ret; |
239 | | } |
240 | | |
241 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
242 | | PageBuilderOptions _options; |
243 | | uint32_t _count; |
244 | | uint32_t _remain_element_capacity; |
245 | | bool _finished; |
246 | | faststring _data; |
247 | | faststring _buffer; |
248 | | uint64_t _raw_data_size = 0; |
249 | | }; |
250 | | |
251 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
252 | | size_t& compressed_size, size_t& num_element_after_padding, |
253 | 2.34M | int& size_of_element) { |
254 | 2.34M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
255 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
256 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
257 | 0 | } |
258 | | |
259 | 2.34M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
260 | 2.34M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
261 | 2.34M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
262 | 2.34M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
263 | 2.34M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
264 | 0 | return Status::InternalError( |
265 | 0 | "num of element information corrupted," |
266 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
267 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
268 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
269 | 0 | size_of_element, data.size); |
270 | 0 | } |
271 | 2.34M | switch (size_of_element) { |
272 | 215k | case 1: |
273 | 242k | case 2: |
274 | 245k | case 3: |
275 | 1.52M | case 4: |
276 | 2.22M | case 8: |
277 | 2.23M | case 12: |
278 | 2.33M | case 16: |
279 | 2.34M | case 32: |
280 | 2.34M | break; |
281 | 0 | default: |
282 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
283 | 2.34M | } |
284 | 2.34M | return Status::OK(); |
285 | 2.34M | } |
286 | | |
287 | | template <FieldType Type> |
288 | | class BitShufflePageDecoder : public PageDecoder { |
289 | | public: |
290 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
291 | 1.17M | : _data(data), |
292 | 1.17M | _options(options), |
293 | 1.17M | _parsed(false), |
294 | 1.17M | _num_elements(0), |
295 | 1.17M | _num_element_after_padding(0), |
296 | 1.17M | _size_of_element(0), |
297 | 1.17M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 107k | : _data(data), | 292 | 107k | _options(options), | 293 | 107k | _parsed(false), | 294 | 107k | _num_elements(0), | 295 | 107k | _num_element_after_padding(0), | 296 | 107k | _size_of_element(0), | 297 | 107k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 13.4k | : _data(data), | 292 | 13.4k | _options(options), | 293 | 13.4k | _parsed(false), | 294 | 13.4k | _num_elements(0), | 295 | 13.4k | _num_element_after_padding(0), | 296 | 13.4k | _size_of_element(0), | 297 | 13.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 554k | : _data(data), | 292 | 554k | _options(options), | 293 | 554k | _parsed(false), | 294 | 554k | _num_elements(0), | 295 | 554k | _num_element_after_padding(0), | 296 | 554k | _size_of_element(0), | 297 | 554k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 113k | : _data(data), | 292 | 113k | _options(options), | 293 | 113k | _parsed(false), | 294 | 113k | _num_elements(0), | 295 | 113k | _num_element_after_padding(0), | 296 | 113k | _size_of_element(0), | 297 | 113k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 18.3k | : _data(data), | 292 | 18.3k | _options(options), | 293 | 18.3k | _parsed(false), | 294 | 18.3k | _num_elements(0), | 295 | 18.3k | _num_element_after_padding(0), | 296 | 18.3k | _size_of_element(0), | 297 | 18.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 88.0k | : _data(data), | 292 | 88.0k | _options(options), | 293 | 88.0k | _parsed(false), | 294 | 88.0k | _num_elements(0), | 295 | 88.0k | _num_element_after_padding(0), | 296 | 88.0k | _size_of_element(0), | 297 | 88.0k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 10.7k | : _data(data), | 292 | 10.7k | _options(options), | 293 | 10.7k | _parsed(false), | 294 | 10.7k | _num_elements(0), | 295 | 10.7k | _num_element_after_padding(0), | 296 | 10.7k | _size_of_element(0), | 297 | 10.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 17.1k | : _data(data), | 292 | 17.1k | _options(options), | 293 | 17.1k | _parsed(false), | 294 | 17.1k | _num_elements(0), | 295 | 17.1k | _num_element_after_padding(0), | 296 | 17.1k | _size_of_element(0), | 297 | 17.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 6 | : _data(data), | 292 | 6 | _options(options), | 293 | 6 | _parsed(false), | 294 | 6 | _num_elements(0), | 295 | 6 | _num_element_after_padding(0), | 296 | 6 | _size_of_element(0), | 297 | 6 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.70k | : _data(data), | 292 | 1.70k | _options(options), | 293 | 1.70k | _parsed(false), | 294 | 1.70k | _num_elements(0), | 295 | 1.70k | _num_element_after_padding(0), | 296 | 1.70k | _size_of_element(0), | 297 | 1.70k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 59.8k | : _data(data), | 292 | 59.8k | _options(options), | 293 | 59.8k | _parsed(false), | 294 | 59.8k | _num_elements(0), | 295 | 59.8k | _num_element_after_padding(0), | 296 | 59.8k | _size_of_element(0), | 297 | 59.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 67.7k | : _data(data), | 292 | 67.7k | _options(options), | 293 | 67.7k | _parsed(false), | 294 | 67.7k | _num_elements(0), | 295 | 67.7k | _num_element_after_padding(0), | 296 | 67.7k | _size_of_element(0), | 297 | 67.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 3.15k | : _data(data), | 292 | 3.15k | _options(options), | 293 | 3.15k | _parsed(false), | 294 | 3.15k | _num_elements(0), | 295 | 3.15k | _num_element_after_padding(0), | 296 | 3.15k | _size_of_element(0), | 297 | 3.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 2.19k | : _data(data), | 292 | 2.19k | _options(options), | 293 | 2.19k | _parsed(false), | 294 | 2.19k | _num_elements(0), | 295 | 2.19k | _num_element_after_padding(0), | 296 | 2.19k | _size_of_element(0), | 297 | 2.19k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 16.4k | : _data(data), | 292 | 16.4k | _options(options), | 293 | 16.4k | _parsed(false), | 294 | 16.4k | _num_elements(0), | 295 | 16.4k | _num_element_after_padding(0), | 296 | 16.4k | _size_of_element(0), | 297 | 16.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.36k | : _data(data), | 292 | 1.36k | _options(options), | 293 | 1.36k | _parsed(false), | 294 | 1.36k | _num_elements(0), | 295 | 1.36k | _num_element_after_padding(0), | 296 | 1.36k | _size_of_element(0), | 297 | 1.36k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 15.4k | : _data(data), | 292 | 15.4k | _options(options), | 293 | 15.4k | _parsed(false), | 294 | 15.4k | _num_elements(0), | 295 | 15.4k | _num_element_after_padding(0), | 296 | 15.4k | _size_of_element(0), | 297 | 15.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 41.3k | : _data(data), | 292 | 41.3k | _options(options), | 293 | 41.3k | _parsed(false), | 294 | 41.3k | _num_elements(0), | 295 | 41.3k | _num_element_after_padding(0), | 296 | 41.3k | _size_of_element(0), | 297 | 41.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 29.9k | : _data(data), | 292 | 29.9k | _options(options), | 293 | 29.9k | _parsed(false), | 294 | 29.9k | _num_elements(0), | 295 | 29.9k | _num_element_after_padding(0), | 296 | 29.9k | _size_of_element(0), | 297 | 29.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.76k | : _data(data), | 292 | 1.76k | _options(options), | 293 | 1.76k | _parsed(false), | 294 | 1.76k | _num_elements(0), | 295 | 1.76k | _num_element_after_padding(0), | 296 | 1.76k | _size_of_element(0), | 297 | 1.76k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 878 | : _data(data), | 292 | 878 | _options(options), | 293 | 878 | _parsed(false), | 294 | 878 | _num_elements(0), | 295 | 878 | _num_element_after_padding(0), | 296 | 878 | _size_of_element(0), | 297 | 878 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 929 | : _data(data), | 292 | 929 | _options(options), | 293 | 929 | _parsed(false), | 294 | 929 | _num_elements(0), | 295 | 929 | _num_element_after_padding(0), | 296 | 929 | _size_of_element(0), | 297 | 929 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 5.12k | : _data(data), | 292 | 5.12k | _options(options), | 293 | 5.12k | _parsed(false), | 294 | 5.12k | _num_elements(0), | 295 | 5.12k | _num_element_after_padding(0), | 296 | 5.12k | _size_of_element(0), | 297 | 5.12k | _cur_index(0) {} |
|
298 | | |
299 | 1.17M | Status init() override { |
300 | 1.17M | CHECK(!_parsed); |
301 | 1.17M | size_t unused; |
302 | 1.17M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
303 | 1.17M | _num_element_after_padding, _size_of_element)); |
304 | | |
305 | 1.17M | if (_data.size != |
306 | 1.17M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
307 | 13 | std::stringstream ss; |
308 | 13 | ss << "Size information unmatched, _data.size:" << _data.size |
309 | 13 | << ", _num_elements:" << _num_elements << ", expected size is " |
310 | 13 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
311 | 13 | return Status::InternalError(ss.str()); |
312 | 13 | } |
313 | | |
314 | | // Currently, only the UINT32 block encoder supports expanding size: |
315 | 1.17M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
316 | 1.17M | _size_of_element != SIZE_OF_TYPE)) { |
317 | 0 | return Status::InternalError( |
318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
320 | 0 | } |
321 | 1.17M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
323 | 0 | _size_of_element, SIZE_OF_TYPE); |
324 | 0 | } |
325 | 1.17M | _parsed = true; |
326 | 1.17M | return Status::OK(); |
327 | 1.17M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 299 | 107k | Status init() override { | 300 | 107k | CHECK(!_parsed); | 301 | 107k | size_t unused; | 302 | 107k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 107k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 107k | if (_data.size != | 306 | 107k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 107k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 107k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 107k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 107k | _parsed = true; | 326 | 107k | return Status::OK(); | 327 | 107k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 299 | 13.4k | Status init() override { | 300 | 13.4k | CHECK(!_parsed); | 301 | 13.4k | size_t unused; | 302 | 13.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 13.4k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 13.4k | if (_data.size != | 306 | 13.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 13.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 13.4k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 13.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 13.4k | _parsed = true; | 326 | 13.4k | return Status::OK(); | 327 | 13.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 299 | 553k | Status init() override { | 300 | 553k | CHECK(!_parsed); | 301 | 553k | size_t unused; | 302 | 553k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 553k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 553k | if (_data.size != | 306 | 553k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 5 | std::stringstream ss; | 308 | 5 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 5 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 5 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 5 | return Status::InternalError(ss.str()); | 312 | 5 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 553k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 553k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 553k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 553k | _parsed = true; | 326 | 553k | return Status::OK(); | 327 | 553k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 299 | 113k | Status init() override { | 300 | 113k | CHECK(!_parsed); | 301 | 113k | size_t unused; | 302 | 113k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 113k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 113k | if (_data.size != | 306 | 113k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 1 | std::stringstream ss; | 308 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 1 | return Status::InternalError(ss.str()); | 312 | 1 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 113k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 113k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 113k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 113k | _parsed = true; | 326 | 113k | return Status::OK(); | 327 | 113k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 299 | 18.3k | Status init() override { | 300 | 18.3k | CHECK(!_parsed); | 301 | 18.3k | size_t unused; | 302 | 18.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 18.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 18.3k | if (_data.size != | 306 | 18.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 18.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 18.3k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 18.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 18.3k | _parsed = true; | 326 | 18.3k | return Status::OK(); | 327 | 18.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 299 | 87.9k | Status init() override { | 300 | 87.9k | CHECK(!_parsed); | 301 | 87.9k | size_t unused; | 302 | 87.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 87.9k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 87.9k | if (_data.size != | 306 | 87.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 87.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 87.9k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 87.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 87.9k | _parsed = true; | 326 | 87.9k | return Status::OK(); | 327 | 87.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 299 | 10.7k | Status init() override { | 300 | 10.7k | CHECK(!_parsed); | 301 | 10.7k | size_t unused; | 302 | 10.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 10.7k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 10.7k | if (_data.size != | 306 | 10.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 2 | std::stringstream ss; | 308 | 2 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 2 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 2 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 2 | return Status::InternalError(ss.str()); | 312 | 2 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 10.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 10.7k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 10.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 10.7k | _parsed = true; | 326 | 10.7k | return Status::OK(); | 327 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 299 | 17.1k | Status init() override { | 300 | 17.1k | CHECK(!_parsed); | 301 | 17.1k | size_t unused; | 302 | 17.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 17.1k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 17.1k | if (_data.size != | 306 | 17.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 4 | std::stringstream ss; | 308 | 4 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 4 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 4 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 4 | return Status::InternalError(ss.str()); | 312 | 4 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 17.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 17.1k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 17.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 17.1k | _parsed = true; | 326 | 17.1k | return Status::OK(); | 327 | 17.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 299 | 6 | Status init() override { | 300 | 6 | CHECK(!_parsed); | 301 | 6 | size_t unused; | 302 | 6 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 6 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 6 | if (_data.size != | 306 | 6 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 6 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 6 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 6 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 6 | _parsed = true; | 326 | 6 | return Status::OK(); | 327 | 6 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 299 | 1.70k | Status init() override { | 300 | 1.70k | CHECK(!_parsed); | 301 | 1.70k | size_t unused; | 302 | 1.70k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.70k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.70k | if (_data.size != | 306 | 1.70k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.70k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.70k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.70k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.70k | _parsed = true; | 326 | 1.70k | return Status::OK(); | 327 | 1.70k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 299 | 59.8k | Status init() override { | 300 | 59.8k | CHECK(!_parsed); | 301 | 59.8k | size_t unused; | 302 | 59.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 59.8k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 59.8k | if (_data.size != | 306 | 59.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 59.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 59.8k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 59.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 59.8k | _parsed = true; | 326 | 59.8k | return Status::OK(); | 327 | 59.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 299 | 67.7k | Status init() override { | 300 | 67.7k | CHECK(!_parsed); | 301 | 67.7k | size_t unused; | 302 | 67.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 67.7k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 67.7k | if (_data.size != | 306 | 67.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 67.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 67.7k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 67.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 67.7k | _parsed = true; | 326 | 67.7k | return Status::OK(); | 327 | 67.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 299 | 3.15k | Status init() override { | 300 | 3.15k | CHECK(!_parsed); | 301 | 3.15k | size_t unused; | 302 | 3.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 3.15k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 3.15k | if (_data.size != | 306 | 3.15k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 3.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 3.15k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 3.15k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 3.15k | _parsed = true; | 326 | 3.15k | return Status::OK(); | 327 | 3.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 299 | 2.18k | Status init() override { | 300 | 2.18k | CHECK(!_parsed); | 301 | 2.18k | size_t unused; | 302 | 2.18k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 2.18k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 2.18k | if (_data.size != | 306 | 2.18k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 2.18k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 2.18k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 2.18k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 2.18k | _parsed = true; | 326 | 2.18k | return Status::OK(); | 327 | 2.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 299 | 16.4k | Status init() override { | 300 | 16.4k | CHECK(!_parsed); | 301 | 16.4k | size_t unused; | 302 | 16.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 16.4k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 16.4k | if (_data.size != | 306 | 16.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 16.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 16.4k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 16.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 16.4k | _parsed = true; | 326 | 16.4k | return Status::OK(); | 327 | 16.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 299 | 1.35k | Status init() override { | 300 | 1.35k | CHECK(!_parsed); | 301 | 1.35k | size_t unused; | 302 | 1.35k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.35k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.35k | if (_data.size != | 306 | 1.35k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 1 | std::stringstream ss; | 308 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 1 | return Status::InternalError(ss.str()); | 312 | 1 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.35k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.35k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.35k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.35k | _parsed = true; | 326 | 1.35k | return Status::OK(); | 327 | 1.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 299 | 15.4k | Status init() override { | 300 | 15.4k | CHECK(!_parsed); | 301 | 15.4k | size_t unused; | 302 | 15.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 15.4k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 15.4k | if (_data.size != | 306 | 15.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 15.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 15.4k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 15.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 15.4k | _parsed = true; | 326 | 15.4k | return Status::OK(); | 327 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 299 | 41.3k | Status init() override { | 300 | 41.3k | CHECK(!_parsed); | 301 | 41.3k | size_t unused; | 302 | 41.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 41.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 41.3k | if (_data.size != | 306 | 41.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 41.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 41.3k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 41.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 41.3k | _parsed = true; | 326 | 41.3k | return Status::OK(); | 327 | 41.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 299 | 29.9k | Status init() override { | 300 | 29.9k | CHECK(!_parsed); | 301 | 29.9k | size_t unused; | 302 | 29.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 29.9k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 29.9k | if (_data.size != | 306 | 29.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 29.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 29.9k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 29.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 29.9k | _parsed = true; | 326 | 29.9k | return Status::OK(); | 327 | 29.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 299 | 1.76k | Status init() override { | 300 | 1.76k | CHECK(!_parsed); | 301 | 1.76k | size_t unused; | 302 | 1.76k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.76k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.76k | if (_data.size != | 306 | 1.76k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.76k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.76k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.76k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.76k | _parsed = true; | 326 | 1.76k | return Status::OK(); | 327 | 1.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 299 | 877 | Status init() override { | 300 | 877 | CHECK(!_parsed); | 301 | 877 | size_t unused; | 302 | 877 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 877 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 877 | if (_data.size != | 306 | 877 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 877 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 877 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 877 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 877 | _parsed = true; | 326 | 877 | return Status::OK(); | 327 | 877 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 299 | 925 | Status init() override { | 300 | 925 | CHECK(!_parsed); | 301 | 925 | size_t unused; | 302 | 925 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 925 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 925 | if (_data.size != | 306 | 925 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 925 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 925 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 925 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 925 | _parsed = true; | 326 | 925 | return Status::OK(); | 327 | 925 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 299 | 5.12k | Status init() override { | 300 | 5.12k | CHECK(!_parsed); | 301 | 5.12k | size_t unused; | 302 | 5.12k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 5.12k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 5.12k | if (_data.size != | 306 | 5.12k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 5.12k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 5.12k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 5.12k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 5.12k | _parsed = true; | 326 | 5.12k | return Status::OK(); | 327 | 5.12k | } |
|
328 | | |
329 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
330 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
331 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
332 | | // code such as check if the count == 0, then skip seek, but there are other method such |
333 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
334 | | // == 0, because next batch will return empty in this method. |
335 | 4.23M | Status seek_to_position_in_page(size_t pos) override { |
336 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
337 | 4.23M | if (_num_elements == 0) [[unlikely]] { |
338 | 4.11k | if (pos != 0) { |
339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
341 | 0 | } |
342 | 4.11k | } |
343 | | |
344 | 4.23M | DCHECK_LE(pos, _num_elements); |
345 | 4.23M | _cur_index = pos; |
346 | 4.23M | return Status::OK(); |
347 | 4.23M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 293k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 293k | if (_num_elements == 0) [[unlikely]] { | 338 | 440 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 440 | } | 343 | | | 344 | 293k | DCHECK_LE(pos, _num_elements); | 345 | 293k | _cur_index = pos; | 346 | 293k | return Status::OK(); | 347 | 293k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 236k | Status seek_to_position_in_page(size_t pos) override { | 336 | 236k | DCHECK(_parsed) << "Must call init()"; | 337 | 236k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 236k | DCHECK_LE(pos, _num_elements); | 345 | 236k | _cur_index = pos; | 346 | 236k | return Status::OK(); | 347 | 236k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.81M | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 1.81M | if (_num_elements == 0) [[unlikely]] { | 338 | 2.53k | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 2.53k | } | 343 | | | 344 | 1.81M | DCHECK_LE(pos, _num_elements); | 345 | 1.81M | _cur_index = pos; | 346 | 1.81M | return Status::OK(); | 347 | 1.81M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 140k | Status seek_to_position_in_page(size_t pos) override { | 336 | 140k | DCHECK(_parsed) << "Must call init()"; | 337 | 140k | if (_num_elements == 0) [[unlikely]] { | 338 | 490 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 490 | } | 343 | | | 344 | 140k | DCHECK_LE(pos, _num_elements); | 345 | 140k | _cur_index = pos; | 346 | 140k | return Status::OK(); | 347 | 140k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 119k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 119k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 119k | DCHECK_LE(pos, _num_elements); | 345 | 119k | _cur_index = pos; | 346 | 119k | return Status::OK(); | 347 | 119k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 14.1k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 14.1k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 14.1k | DCHECK_LE(pos, _num_elements); | 345 | 14.1k | _cur_index = pos; | 346 | 14.1k | return Status::OK(); | 347 | 14.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 239k | Status seek_to_position_in_page(size_t pos) override { | 336 | 239k | DCHECK(_parsed) << "Must call init()"; | 337 | 239k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 239k | DCHECK_LE(pos, _num_elements); | 345 | 239k | _cur_index = pos; | 346 | 239k | return Status::OK(); | 347 | 239k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 213k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 213k | if (_num_elements == 0) [[unlikely]] { | 338 | 1 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 1 | } | 343 | | | 344 | 213k | DCHECK_LE(pos, _num_elements); | 345 | 213k | _cur_index = pos; | 346 | 213k | return Status::OK(); | 347 | 213k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 94 | Status seek_to_position_in_page(size_t pos) override { | 336 | 94 | DCHECK(_parsed) << "Must call init()"; | 337 | 94 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 94 | DCHECK_LE(pos, _num_elements); | 345 | 94 | _cur_index = pos; | 346 | 94 | return Status::OK(); | 347 | 94 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 226k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 226k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 226k | DCHECK_LE(pos, _num_elements); | 345 | 226k | _cur_index = pos; | 346 | 226k | return Status::OK(); | 347 | 226k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 513k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 513k | if (_num_elements == 0) [[unlikely]] { | 338 | 197 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 197 | } | 343 | | | 344 | 513k | DCHECK_LE(pos, _num_elements); | 345 | 513k | _cur_index = pos; | 346 | 513k | return Status::OK(); | 347 | 513k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 56.6k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 56.6k | if (_num_elements == 0) [[unlikely]] { | 338 | 14 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 14 | } | 343 | | | 344 | 56.6k | DCHECK_LE(pos, _num_elements); | 345 | 56.6k | _cur_index = pos; | 346 | 56.6k | return Status::OK(); | 347 | 56.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.09k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 1.09k | if (_num_elements == 0) [[unlikely]] { | 338 | 8 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 8 | } | 343 | | | 344 | 1.09k | DCHECK_LE(pos, _num_elements); | 345 | 1.09k | _cur_index = pos; | 346 | 1.09k | return Status::OK(); | 347 | 1.09k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 211k | Status seek_to_position_in_page(size_t pos) override { | 336 | 211k | DCHECK(_parsed) << "Must call init()"; | 337 | 211k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 211k | DCHECK_LE(pos, _num_elements); | 345 | 211k | _cur_index = pos; | 346 | 211k | return Status::OK(); | 347 | 211k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 7.27k | Status seek_to_position_in_page(size_t pos) override { | 336 | 7.27k | DCHECK(_parsed) << "Must call init()"; | 337 | 7.27k | if (_num_elements == 0) [[unlikely]] { | 338 | 357 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 357 | } | 343 | | | 344 | 7.27k | DCHECK_LE(pos, _num_elements); | 345 | 7.27k | _cur_index = pos; | 346 | 7.27k | return Status::OK(); | 347 | 7.27k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 55 | Status seek_to_position_in_page(size_t pos) override { | 336 | 55 | DCHECK(_parsed) << "Must call init()"; | 337 | 55 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 55 | DCHECK_LE(pos, _num_elements); | 345 | 55 | _cur_index = pos; | 346 | 55 | return Status::OK(); | 347 | 55 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 915 | Status seek_to_position_in_page(size_t pos) override { | 336 | 915 | DCHECK(_parsed) << "Must call init()"; | 337 | 915 | if (_num_elements == 0) [[unlikely]] { | 338 | 51 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 51 | } | 343 | | | 344 | 915 | DCHECK_LE(pos, _num_elements); | 345 | 915 | _cur_index = pos; | 346 | 915 | return Status::OK(); | 347 | 915 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 17.2k | Status seek_to_position_in_page(size_t pos) override { | 336 | 17.2k | DCHECK(_parsed) << "Must call init()"; | 337 | 17.2k | if (_num_elements == 0) [[unlikely]] { | 338 | 15 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 15 | } | 343 | | | 344 | 17.2k | DCHECK_LE(pos, _num_elements); | 345 | 17.2k | _cur_index = pos; | 346 | 17.2k | return Status::OK(); | 347 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 122k | Status seek_to_position_in_page(size_t pos) override { | 336 | 122k | DCHECK(_parsed) << "Must call init()"; | 337 | 122k | if (_num_elements == 0) [[unlikely]] { | 338 | 10 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 10 | } | 343 | | | 344 | 122k | DCHECK_LE(pos, _num_elements); | 345 | 122k | _cur_index = pos; | 346 | 122k | return Status::OK(); | 347 | 122k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.99k | Status seek_to_position_in_page(size_t pos) override { | 336 | 1.99k | DCHECK(_parsed) << "Must call init()"; | 337 | 1.99k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 1.99k | DCHECK_LE(pos, _num_elements); | 345 | 1.99k | _cur_index = pos; | 346 | 1.99k | return Status::OK(); | 347 | 1.99k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 53 | Status seek_to_position_in_page(size_t pos) override { | 336 | 53 | DCHECK(_parsed) << "Must call init()"; | 337 | 53 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 53 | DCHECK_LE(pos, _num_elements); | 345 | 53 | _cur_index = pos; | 346 | 53 | return Status::OK(); | 347 | 53 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 62 | Status seek_to_position_in_page(size_t pos) override { | 336 | 62 | DCHECK(_parsed) << "Must call init()"; | 337 | 62 | if (_num_elements == 0) [[unlikely]] { | 338 | 1 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 1 | } | 343 | | | 344 | 62 | DCHECK_LE(pos, _num_elements); | 345 | 62 | _cur_index = pos; | 346 | 62 | return Status::OK(); | 347 | 62 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 9.43k | Status seek_to_position_in_page(size_t pos) override { | 336 | 9.43k | DCHECK(_parsed) << "Must call init()"; | 337 | 9.43k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 9.43k | DCHECK_LE(pos, _num_elements); | 345 | 9.43k | _cur_index = pos; | 346 | 9.43k | return Status::OK(); | 347 | 9.43k | } |
|
348 | | |
349 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
350 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
351 | | |
352 | 15 | if (_num_elements == 0) { |
353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
354 | 0 | } |
355 | | |
356 | 15 | size_t left = 0; |
357 | 15 | size_t right = _num_elements; |
358 | | |
359 | 15 | void* mid_value = nullptr; |
360 | | |
361 | | // find the first value >= target. after loop, |
362 | | // - left == index of first value >= target when found |
363 | | // - left == _num_elements when not found (all values < target) |
364 | 162 | while (left < right) { |
365 | 147 | size_t mid = left + (right - left) / 2; |
366 | 147 | mid_value = get_data(mid); |
367 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
368 | 68 | left = mid + 1; |
369 | 79 | } else { |
370 | 79 | right = mid; |
371 | 79 | } |
372 | 147 | } |
373 | 15 | if (left >= _num_elements) { |
374 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
375 | 3 | } |
376 | 12 | void* find_value = get_data(left); |
377 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
378 | 9 | *exact_match = true; |
379 | 9 | } else { |
380 | 3 | *exact_match = false; |
381 | 3 | } |
382 | | |
383 | 12 | _cur_index = left; |
384 | 12 | return Status::OK(); |
385 | 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 | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 21 | left = mid + 1; | 369 | 28 | } else { | 370 | 28 | right = mid; | 371 | 28 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 22 | left = mid + 1; | 369 | 27 | } else { | 370 | 27 | right = mid; | 371 | 27 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 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 | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 25 | left = mid + 1; | 369 | 25 | } else { | 370 | 24 | right = mid; | 371 | 24 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 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 |
386 | | |
387 | | template <bool forward_index = true> |
388 | 2.29M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
389 | 2.29M | DCHECK(_parsed); |
390 | 2.29M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
391 | 0 | *n = 0; |
392 | 0 | return Status::OK(); |
393 | 0 | } |
394 | | |
395 | 2.29M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
396 | | |
397 | 2.29M | StorageLayout<Type>::storage_to_column( |
398 | 2.29M | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); |
399 | 2.29M | *n = max_fetch; |
400 | 2.29M | if constexpr (forward_index) { |
401 | 2.24M | _cur_index += max_fetch; |
402 | 2.24M | } |
403 | | |
404 | 2.29M | return Status::OK(); |
405 | 2.29M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 146k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 146k | DCHECK(_parsed); | 390 | 146k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 146k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 146k | StorageLayout<Type>::storage_to_column( | 398 | 146k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 146k | *n = max_fetch; | 400 | 146k | if constexpr (forward_index) { | 401 | 146k | _cur_index += max_fetch; | 402 | 146k | } | 403 | | | 404 | 146k | return Status::OK(); | 405 | 146k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 14.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 14.5k | DCHECK(_parsed); | 390 | 14.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 14.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 14.5k | StorageLayout<Type>::storage_to_column( | 398 | 14.5k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 14.5k | *n = max_fetch; | 400 | 14.5k | if constexpr (forward_index) { | 401 | 14.5k | _cur_index += max_fetch; | 402 | 14.5k | } | 403 | | | 404 | 14.5k | return Status::OK(); | 405 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 521k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 521k | DCHECK(_parsed); | 390 | 522k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 521k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 521k | StorageLayout<Type>::storage_to_column( | 398 | 521k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 521k | *n = max_fetch; | 400 | 521k | if constexpr (forward_index) { | 401 | 521k | _cur_index += max_fetch; | 402 | 521k | } | 403 | | | 404 | 521k | return Status::OK(); | 405 | 521k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 777k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 777k | DCHECK(_parsed); | 390 | 778k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 777k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 777k | StorageLayout<Type>::storage_to_column( | 398 | 777k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 777k | *n = max_fetch; | 400 | 777k | if constexpr (forward_index) { | 401 | 777k | _cur_index += max_fetch; | 402 | 777k | } | 403 | | | 404 | 777k | return Status::OK(); | 405 | 777k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 15.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 15.5k | DCHECK(_parsed); | 390 | 15.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 15.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 15.5k | StorageLayout<Type>::storage_to_column( | 398 | 15.5k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 15.5k | *n = max_fetch; | 400 | 15.5k | if constexpr (forward_index) { | 401 | 15.5k | _cur_index += max_fetch; | 402 | 15.5k | } | 403 | | | 404 | 15.5k | return Status::OK(); | 405 | 15.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 90.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 90.3k | DCHECK(_parsed); | 390 | 90.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 90.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 90.3k | StorageLayout<Type>::storage_to_column( | 398 | 90.3k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 90.3k | *n = max_fetch; | 400 | 90.3k | if constexpr (forward_index) { | 401 | 90.3k | _cur_index += max_fetch; | 402 | 90.3k | } | 403 | | | 404 | 90.3k | return Status::OK(); | 405 | 90.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 51.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 51.9k | DCHECK(_parsed); | 390 | 51.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 51.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 51.9k | StorageLayout<Type>::storage_to_column( | 398 | 51.9k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 51.9k | *n = max_fetch; | 400 | | if constexpr (forward_index) { | 401 | | _cur_index += max_fetch; | 402 | | } | 403 | | | 404 | 51.9k | return Status::OK(); | 405 | 51.9k | } |
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 | 388 | 9.71k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 9.71k | DCHECK(_parsed); | 390 | 9.71k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 9.71k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 9.71k | StorageLayout<Type>::storage_to_column( | 398 | 9.71k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 9.71k | *n = max_fetch; | 400 | 9.71k | if constexpr (forward_index) { | 401 | 9.71k | _cur_index += max_fetch; | 402 | 9.71k | } | 403 | | | 404 | 9.71k | return Status::OK(); | 405 | 9.71k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 44.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 44.5k | DCHECK(_parsed); | 390 | 44.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 44.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 44.5k | StorageLayout<Type>::storage_to_column( | 398 | 44.5k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 44.5k | *n = max_fetch; | 400 | 44.5k | if constexpr (forward_index) { | 401 | 44.5k | _cur_index += max_fetch; | 402 | 44.5k | } | 403 | | | 404 | 44.5k | return Status::OK(); | 405 | 44.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 93 | DCHECK(_parsed); | 390 | 93 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 93 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 93 | StorageLayout<Type>::storage_to_column( | 398 | 93 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 93 | *n = max_fetch; | 400 | 93 | if constexpr (forward_index) { | 401 | 93 | _cur_index += max_fetch; | 402 | 93 | } | 403 | | | 404 | 93 | return Status::OK(); | 405 | 93 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 3.63k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 3.63k | DCHECK(_parsed); | 390 | 3.63k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 3.63k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 3.63k | StorageLayout<Type>::storage_to_column( | 398 | 3.63k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 3.63k | *n = max_fetch; | 400 | 3.63k | if constexpr (forward_index) { | 401 | 3.63k | _cur_index += max_fetch; | 402 | 3.63k | } | 403 | | | 404 | 3.63k | return Status::OK(); | 405 | 3.63k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 362k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 362k | DCHECK(_parsed); | 390 | 362k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 362k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 362k | StorageLayout<Type>::storage_to_column( | 398 | 362k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 362k | *n = max_fetch; | 400 | 362k | if constexpr (forward_index) { | 401 | 362k | _cur_index += max_fetch; | 402 | 362k | } | 403 | | | 404 | 362k | return Status::OK(); | 405 | 362k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 68.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 68.8k | DCHECK(_parsed); | 390 | 68.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 68.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 68.8k | StorageLayout<Type>::storage_to_column( | 398 | 68.8k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 68.8k | *n = max_fetch; | 400 | 68.8k | if constexpr (forward_index) { | 401 | 68.8k | _cur_index += max_fetch; | 402 | 68.8k | } | 403 | | | 404 | 68.8k | return Status::OK(); | 405 | 68.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 2.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 2.26k | DCHECK(_parsed); | 390 | 2.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 2.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 2.26k | StorageLayout<Type>::storage_to_column( | 398 | 2.26k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 2.26k | *n = max_fetch; | 400 | 2.26k | if constexpr (forward_index) { | 401 | 2.26k | _cur_index += max_fetch; | 402 | 2.26k | } | 403 | | | 404 | 2.26k | return Status::OK(); | 405 | 2.26k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 1.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.01k | DCHECK(_parsed); | 390 | 1.01k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.01k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.01k | StorageLayout<Type>::storage_to_column( | 398 | 1.01k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.01k | *n = max_fetch; | 400 | 1.01k | if constexpr (forward_index) { | 401 | 1.01k | _cur_index += max_fetch; | 402 | 1.01k | } | 403 | | | 404 | 1.01k | return Status::OK(); | 405 | 1.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 8.38k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 8.38k | DCHECK(_parsed); | 390 | 8.38k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 8.38k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 8.38k | StorageLayout<Type>::storage_to_column( | 398 | 8.38k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 8.38k | *n = max_fetch; | 400 | 8.38k | if constexpr (forward_index) { | 401 | 8.38k | _cur_index += max_fetch; | 402 | 8.38k | } | 403 | | | 404 | 8.38k | return Status::OK(); | 405 | 8.38k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 1.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.25k | DCHECK(_parsed); | 390 | 1.25k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.25k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.25k | StorageLayout<Type>::storage_to_column( | 398 | 1.25k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.25k | *n = max_fetch; | 400 | 1.25k | if constexpr (forward_index) { | 401 | 1.25k | _cur_index += max_fetch; | 402 | 1.25k | } | 403 | | | 404 | 1.25k | return Status::OK(); | 405 | 1.25k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 7.86k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 7.86k | DCHECK(_parsed); | 390 | 7.86k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 7.86k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 7.86k | StorageLayout<Type>::storage_to_column( | 398 | 7.86k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 7.86k | *n = max_fetch; | 400 | 7.86k | if constexpr (forward_index) { | 401 | 7.86k | _cur_index += max_fetch; | 402 | 7.86k | } | 403 | | | 404 | 7.86k | return Status::OK(); | 405 | 7.86k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 49.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 49.2k | DCHECK(_parsed); | 390 | 49.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 49.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 49.2k | StorageLayout<Type>::storage_to_column( | 398 | 49.2k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 49.2k | *n = max_fetch; | 400 | 49.2k | if constexpr (forward_index) { | 401 | 49.2k | _cur_index += max_fetch; | 402 | 49.2k | } | 403 | | | 404 | 49.2k | return Status::OK(); | 405 | 49.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 20.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 20.2k | DCHECK(_parsed); | 390 | 20.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 20.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 20.2k | StorageLayout<Type>::storage_to_column( | 398 | 20.2k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 20.2k | *n = max_fetch; | 400 | 20.2k | if constexpr (forward_index) { | 401 | 20.2k | _cur_index += max_fetch; | 402 | 20.2k | } | 403 | | | 404 | 20.2k | return Status::OK(); | 405 | 20.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 3.17k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 3.17k | DCHECK(_parsed); | 390 | 3.17k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 3.17k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 3.17k | StorageLayout<Type>::storage_to_column( | 398 | 3.17k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 3.17k | *n = max_fetch; | 400 | 3.17k | if constexpr (forward_index) { | 401 | 3.17k | _cur_index += max_fetch; | 402 | 3.17k | } | 403 | | | 404 | 3.17k | return Status::OK(); | 405 | 3.17k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 616 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 616 | DCHECK(_parsed); | 390 | 618 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 616 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 616 | StorageLayout<Type>::storage_to_column( | 398 | 616 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 616 | *n = max_fetch; | 400 | 616 | if constexpr (forward_index) { | 401 | 616 | _cur_index += max_fetch; | 402 | 616 | } | 403 | | | 404 | 616 | return Status::OK(); | 405 | 616 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 643 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 643 | DCHECK(_parsed); | 390 | 644 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 643 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 643 | StorageLayout<Type>::storage_to_column( | 398 | 643 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 643 | *n = max_fetch; | 400 | 643 | if constexpr (forward_index) { | 401 | 643 | _cur_index += max_fetch; | 402 | 643 | } | 403 | | | 404 | 643 | return Status::OK(); | 405 | 643 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 94.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 94.1k | DCHECK(_parsed); | 390 | 94.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 94.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 94.1k | StorageLayout<Type>::storage_to_column( | 398 | 94.1k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 94.1k | *n = max_fetch; | 400 | 94.1k | if constexpr (forward_index) { | 401 | 94.1k | _cur_index += max_fetch; | 402 | 94.1k | } | 403 | | | 404 | 94.1k | return Status::OK(); | 405 | 94.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
406 | | |
407 | 2.24M | 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 | 407 | 146k | 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 | 407 | 14.6k | 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 | 407 | 522k | 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 | 407 | 779k | 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 | 407 | 15.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 90.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 | 407 | 9.71k | 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 | 407 | 44.5k | 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 | 407 | 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 | 407 | 3.64k | 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 | 407 | 362k | 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 | 407 | 68.8k | 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 | 407 | 2.26k | 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 | 407 | 1.01k | 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 | 407 | 8.38k | 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 | 407 | 1.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 7.87k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 49.2k | 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 | 407 | 20.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 3.17k | 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 | 407 | 617 | 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 | 407 | 644 | 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 | 407 | 94.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
408 | | |
409 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
410 | 431k | MutableColumnPtr& dst) override { |
411 | 431k | DCHECK(_parsed); |
412 | 431k | if (*n == 0) [[unlikely]] { |
413 | 0 | *n = 0; |
414 | 0 | return Status::OK(); |
415 | 0 | } |
416 | | |
417 | 431k | auto total = *n; |
418 | 431k | auto read_count = 0; |
419 | 431k | _buffer.resize(total); |
420 | 117M | for (size_t i = 0; i < total; ++i) { |
421 | 117M | ordinal_t ord = rowids[i] - page_first_ordinal; |
422 | 117M | if (UNLIKELY(ord >= _num_elements)) { |
423 | 16.3k | break; |
424 | 16.3k | } |
425 | | |
426 | 117M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
427 | 117M | } |
428 | | |
429 | 431k | if (LIKELY(read_count > 0)) { |
430 | 431k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), |
431 | 431k | read_count, *dst); |
432 | 431k | } |
433 | | |
434 | 431k | *n = read_count; |
435 | 431k | return Status::OK(); |
436 | 431k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 51.2k | MutableColumnPtr& dst) override { | 411 | 51.2k | DCHECK(_parsed); | 412 | 51.2k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 51.2k | auto total = *n; | 418 | 51.2k | auto read_count = 0; | 419 | 51.2k | _buffer.resize(total); | 420 | 2.12M | for (size_t i = 0; i < total; ++i) { | 421 | 2.07M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 2.07M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 174 | break; | 424 | 174 | } | 425 | | | 426 | 2.07M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 2.07M | } | 428 | | | 429 | 51.2k | if (LIKELY(read_count > 0)) { | 430 | 51.2k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 51.2k | read_count, *dst); | 432 | 51.2k | } | 433 | | | 434 | 51.2k | *n = read_count; | 435 | 51.2k | return Status::OK(); | 436 | 51.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 5.81k | MutableColumnPtr& dst) override { | 411 | 5.81k | DCHECK(_parsed); | 412 | 5.81k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 5.81k | auto total = *n; | 418 | 5.81k | auto read_count = 0; | 419 | 5.81k | _buffer.resize(total); | 420 | 645k | for (size_t i = 0; i < total; ++i) { | 421 | 639k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 639k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 14 | break; | 424 | 14 | } | 425 | | | 426 | 639k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 639k | } | 428 | | | 429 | 5.81k | if (LIKELY(read_count > 0)) { | 430 | 5.81k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 5.81k | read_count, *dst); | 432 | 5.81k | } | 433 | | | 434 | 5.81k | *n = read_count; | 435 | 5.81k | return Status::OK(); | 436 | 5.81k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 87.9k | MutableColumnPtr& dst) override { | 411 | 87.9k | DCHECK(_parsed); | 412 | 87.9k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 87.9k | auto total = *n; | 418 | 87.9k | auto read_count = 0; | 419 | 87.9k | _buffer.resize(total); | 420 | 38.7M | for (size_t i = 0; i < total; ++i) { | 421 | 38.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 38.6M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3.35k | break; | 424 | 3.35k | } | 425 | | | 426 | 38.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 38.6M | } | 428 | | | 429 | 88.0k | if (LIKELY(read_count > 0)) { | 430 | 88.0k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 88.0k | read_count, *dst); | 432 | 88.0k | } | 433 | | | 434 | 87.9k | *n = read_count; | 435 | 87.9k | return Status::OK(); | 436 | 87.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 74.4k | MutableColumnPtr& dst) override { | 411 | 74.4k | DCHECK(_parsed); | 412 | 74.4k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 74.4k | auto total = *n; | 418 | 74.4k | auto read_count = 0; | 419 | 74.4k | _buffer.resize(total); | 420 | 26.6M | for (size_t i = 0; i < total; ++i) { | 421 | 26.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 26.6M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3.64k | break; | 424 | 3.64k | } | 425 | | | 426 | 26.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 26.6M | } | 428 | | | 429 | 74.4k | if (LIKELY(read_count > 0)) { | 430 | 74.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 74.4k | read_count, *dst); | 432 | 74.4k | } | 433 | | | 434 | 74.4k | *n = read_count; | 435 | 74.4k | return Status::OK(); | 436 | 74.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 8.68k | MutableColumnPtr& dst) override { | 411 | 8.68k | DCHECK(_parsed); | 412 | 8.68k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 8.68k | auto total = *n; | 418 | 8.68k | auto read_count = 0; | 419 | 8.68k | _buffer.resize(total); | 420 | 1.17M | for (size_t i = 0; i < total; ++i) { | 421 | 1.17M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.17M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 578 | break; | 424 | 578 | } | 425 | | | 426 | 1.17M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.17M | } | 428 | | | 429 | 8.68k | if (LIKELY(read_count > 0)) { | 430 | 8.68k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 8.68k | read_count, *dst); | 432 | 8.68k | } | 433 | | | 434 | 8.68k | *n = read_count; | 435 | 8.68k | return Status::OK(); | 436 | 8.68k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 62.7k | MutableColumnPtr& dst) override { | 411 | 62.7k | DCHECK(_parsed); | 412 | 62.7k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 62.7k | auto total = *n; | 418 | 62.7k | auto read_count = 0; | 419 | 62.7k | _buffer.resize(total); | 420 | 689k | for (size_t i = 0; i < total; ++i) { | 421 | 627k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 627k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 12 | break; | 424 | 12 | } | 425 | | | 426 | 627k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 627k | } | 428 | | | 429 | 62.7k | if (LIKELY(read_count > 0)) { | 430 | 62.7k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 62.7k | read_count, *dst); | 432 | 62.7k | } | 433 | | | 434 | 62.7k | *n = read_count; | 435 | 62.7k | return Status::OK(); | 436 | 62.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 5.07k | MutableColumnPtr& dst) override { | 411 | 5.07k | DCHECK(_parsed); | 412 | 5.07k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 5.07k | auto total = *n; | 418 | 5.07k | auto read_count = 0; | 419 | 5.07k | _buffer.resize(total); | 420 | 1.21M | for (size_t i = 0; i < total; ++i) { | 421 | 1.20M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.20M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 30 | break; | 424 | 30 | } | 425 | | | 426 | 1.20M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.20M | } | 428 | | | 429 | 5.07k | if (LIKELY(read_count > 0)) { | 430 | 5.07k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 5.07k | read_count, *dst); | 432 | 5.07k | } | 433 | | | 434 | 5.07k | *n = read_count; | 435 | 5.07k | return Status::OK(); | 436 | 5.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 7.37k | MutableColumnPtr& dst) override { | 411 | 7.37k | DCHECK(_parsed); | 412 | 7.37k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 7.37k | auto total = *n; | 418 | 7.37k | auto read_count = 0; | 419 | 7.37k | _buffer.resize(total); | 420 | 1.38M | for (size_t i = 0; i < total; ++i) { | 421 | 1.37M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.37M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 261 | break; | 424 | 261 | } | 425 | | | 426 | 1.37M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.37M | } | 428 | | | 429 | 7.37k | if (LIKELY(read_count > 0)) { | 430 | 7.37k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 7.37k | read_count, *dst); | 432 | 7.37k | } | 433 | | | 434 | 7.37k | *n = read_count; | 435 | 7.37k | return Status::OK(); | 436 | 7.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 93 | MutableColumnPtr& dst) override { | 411 | 93 | DCHECK(_parsed); | 412 | 93 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 93 | auto total = *n; | 418 | 93 | auto read_count = 0; | 419 | 93 | _buffer.resize(total); | 420 | 803 | for (size_t i = 0; i < total; ++i) { | 421 | 710 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 710 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 710 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 710 | } | 428 | | | 429 | 93 | if (LIKELY(read_count > 0)) { | 430 | 93 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 93 | read_count, *dst); | 432 | 93 | } | 433 | | | 434 | 93 | *n = read_count; | 435 | 93 | return Status::OK(); | 436 | 93 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.48k | MutableColumnPtr& dst) override { | 411 | 1.48k | DCHECK(_parsed); | 412 | 1.48k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.48k | auto total = *n; | 418 | 1.48k | auto read_count = 0; | 419 | 1.48k | _buffer.resize(total); | 420 | 503k | for (size_t i = 0; i < total; ++i) { | 421 | 501k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 501k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 10 | break; | 424 | 10 | } | 425 | | | 426 | 501k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 501k | } | 428 | | | 429 | 1.48k | if (LIKELY(read_count > 0)) { | 430 | 1.47k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.47k | read_count, *dst); | 432 | 1.47k | } | 433 | | | 434 | 1.48k | *n = read_count; | 435 | 1.48k | return Status::OK(); | 436 | 1.48k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 30.1k | MutableColumnPtr& dst) override { | 411 | 30.1k | DCHECK(_parsed); | 412 | 30.1k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 30.1k | auto total = *n; | 418 | 30.1k | auto read_count = 0; | 419 | 30.1k | _buffer.resize(total); | 420 | 6.66M | for (size_t i = 0; i < total; ++i) { | 421 | 6.64M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 6.64M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 950 | break; | 424 | 950 | } | 425 | | | 426 | 6.63M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 6.63M | } | 428 | | | 429 | 30.1k | if (LIKELY(read_count > 0)) { | 430 | 30.1k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 30.1k | read_count, *dst); | 432 | 30.1k | } | 433 | | | 434 | 30.1k | *n = read_count; | 435 | 30.1k | return Status::OK(); | 436 | 30.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 32.6k | MutableColumnPtr& dst) override { | 411 | 32.6k | DCHECK(_parsed); | 412 | 32.6k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 32.6k | auto total = *n; | 418 | 32.6k | auto read_count = 0; | 419 | 32.6k | _buffer.resize(total); | 420 | 9.92M | for (size_t i = 0; i < total; ++i) { | 421 | 9.89M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 9.89M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 219 | break; | 424 | 219 | } | 425 | | | 426 | 9.89M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 9.89M | } | 428 | | | 429 | 32.7k | if (LIKELY(read_count > 0)) { | 430 | 32.7k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 32.7k | read_count, *dst); | 432 | 32.7k | } | 433 | | | 434 | 32.6k | *n = read_count; | 435 | 32.6k | return Status::OK(); | 436 | 32.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.22k | MutableColumnPtr& dst) override { | 411 | 1.22k | DCHECK(_parsed); | 412 | 1.22k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.22k | auto total = *n; | 418 | 1.22k | auto read_count = 0; | 419 | 1.22k | _buffer.resize(total); | 420 | 4.26k | for (size_t i = 0; i < total; ++i) { | 421 | 3.03k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 3.03k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 3.03k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 3.03k | } | 428 | | | 429 | 1.23k | if (LIKELY(read_count > 0)) { | 430 | 1.23k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.23k | read_count, *dst); | 432 | 1.23k | } | 433 | | | 434 | 1.22k | *n = read_count; | 435 | 1.22k | return Status::OK(); | 436 | 1.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.79k | MutableColumnPtr& dst) override { | 411 | 1.79k | DCHECK(_parsed); | 412 | 1.79k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.79k | auto total = *n; | 418 | 1.79k | auto read_count = 0; | 419 | 1.79k | _buffer.resize(total); | 420 | 503k | for (size_t i = 0; i < total; ++i) { | 421 | 501k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 501k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 243 | break; | 424 | 243 | } | 425 | | | 426 | 501k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 501k | } | 428 | | | 429 | 1.79k | if (LIKELY(read_count > 0)) { | 430 | 1.79k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.79k | read_count, *dst); | 432 | 1.79k | } | 433 | | | 434 | 1.79k | *n = read_count; | 435 | 1.79k | return Status::OK(); | 436 | 1.79k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 12.8k | MutableColumnPtr& dst) override { | 411 | 12.8k | DCHECK(_parsed); | 412 | 12.8k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 12.8k | auto total = *n; | 418 | 12.8k | auto read_count = 0; | 419 | 12.8k | _buffer.resize(total); | 420 | 27.3k | for (size_t i = 0; i < total; ++i) { | 421 | 14.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.5k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.5k | } | 428 | | | 429 | 12.8k | if (LIKELY(read_count > 0)) { | 430 | 12.8k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 12.8k | read_count, *dst); | 432 | 12.8k | } | 433 | | | 434 | 12.8k | *n = read_count; | 435 | 12.8k | return Status::OK(); | 436 | 12.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 160 | MutableColumnPtr& dst) override { | 411 | 160 | DCHECK(_parsed); | 412 | 160 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 160 | auto total = *n; | 418 | 160 | auto read_count = 0; | 419 | 160 | _buffer.resize(total); | 420 | 465 | for (size_t i = 0; i < total; ++i) { | 421 | 307 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 307 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 2 | break; | 424 | 2 | } | 425 | | | 426 | 305 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 305 | } | 428 | | | 429 | 161 | if (LIKELY(read_count > 0)) { | 430 | 161 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 161 | read_count, *dst); | 432 | 161 | } | 433 | | | 434 | 160 | *n = read_count; | 435 | 160 | return Status::OK(); | 436 | 160 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 4.53k | MutableColumnPtr& dst) override { | 411 | 4.53k | DCHECK(_parsed); | 412 | 4.53k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 4.53k | auto total = *n; | 418 | 4.53k | auto read_count = 0; | 419 | 4.53k | _buffer.resize(total); | 420 | 19.0k | for (size_t i = 0; i < total; ++i) { | 421 | 14.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.4k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.4k | } | 428 | | | 429 | 4.53k | if (LIKELY(read_count > 0)) { | 430 | 4.53k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 4.53k | read_count, *dst); | 432 | 4.53k | } | 433 | | | 434 | 4.53k | *n = read_count; | 435 | 4.53k | return Status::OK(); | 436 | 4.53k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27.4k | MutableColumnPtr& dst) override { | 411 | 27.4k | DCHECK(_parsed); | 412 | 27.4k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27.4k | auto total = *n; | 418 | 27.4k | auto read_count = 0; | 419 | 27.4k | _buffer.resize(total); | 420 | 18.6M | for (size_t i = 0; i < total; ++i) { | 421 | 18.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 18.5M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 6.05k | break; | 424 | 6.05k | } | 425 | | | 426 | 18.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 18.5M | } | 428 | | | 429 | 27.4k | if (LIKELY(read_count > 0)) { | 430 | 27.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27.4k | read_count, *dst); | 432 | 27.4k | } | 433 | | | 434 | 27.4k | *n = read_count; | 435 | 27.4k | return Status::OK(); | 436 | 27.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 13.5k | MutableColumnPtr& dst) override { | 411 | 13.5k | DCHECK(_parsed); | 412 | 13.5k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 13.5k | auto total = *n; | 418 | 13.5k | auto read_count = 0; | 419 | 13.5k | _buffer.resize(total); | 420 | 8.90M | for (size_t i = 0; i < total; ++i) { | 421 | 8.89M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 8.89M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 746 | break; | 424 | 746 | } | 425 | | | 426 | 8.89M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 8.89M | } | 428 | | | 429 | 13.5k | if (LIKELY(read_count > 0)) { | 430 | 13.5k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 13.5k | read_count, *dst); | 432 | 13.5k | } | 433 | | | 434 | 13.5k | *n = read_count; | 435 | 13.5k | return Status::OK(); | 436 | 13.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.00k | MutableColumnPtr& dst) override { | 411 | 1.00k | DCHECK(_parsed); | 412 | 1.00k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.00k | auto total = *n; | 418 | 1.00k | auto read_count = 0; | 419 | 1.00k | _buffer.resize(total); | 420 | 2.98k | for (size_t i = 0; i < total; ++i) { | 421 | 1.99k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.99k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 6 | break; | 424 | 6 | } | 425 | | | 426 | 1.98k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.98k | } | 428 | | | 429 | 1.00k | if (LIKELY(read_count > 0)) { | 430 | 1.00k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.00k | read_count, *dst); | 432 | 1.00k | } | 433 | | | 434 | 1.00k | *n = read_count; | 435 | 1.00k | return Status::OK(); | 436 | 1.00k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 302 | MutableColumnPtr& dst) override { | 411 | 302 | DCHECK(_parsed); | 412 | 302 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 302 | auto total = *n; | 418 | 302 | auto read_count = 0; | 419 | 302 | _buffer.resize(total); | 420 | 1.00k | for (size_t i = 0; i < total; ++i) { | 421 | 698 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 698 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 698 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 698 | } | 428 | | | 429 | 302 | if (LIKELY(read_count > 0)) { | 430 | 302 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 302 | read_count, *dst); | 432 | 302 | } | 433 | | | 434 | 302 | *n = read_count; | 435 | 302 | return Status::OK(); | 436 | 302 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 341 | MutableColumnPtr& dst) override { | 411 | 341 | DCHECK(_parsed); | 412 | 341 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 341 | auto total = *n; | 418 | 341 | auto read_count = 0; | 419 | 341 | _buffer.resize(total); | 420 | 1.34k | for (size_t i = 0; i < total; ++i) { | 421 | 1.01k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.01k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 1.00k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.00k | } | 428 | | | 429 | 341 | if (LIKELY(read_count > 0)) { | 430 | 341 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 341 | read_count, *dst); | 432 | 341 | } | 433 | | | 434 | 341 | *n = read_count; | 435 | 341 | return Status::OK(); | 436 | 341 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 541 | MutableColumnPtr& dst) override { | 411 | 541 | DCHECK(_parsed); | 412 | 541 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 541 | auto total = *n; | 418 | 541 | auto read_count = 0; | 419 | 541 | _buffer.resize(total); | 420 | 1.32k | for (size_t i = 0; i < total; ++i) { | 421 | 783 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 783 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 780 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 780 | } | 428 | | | 429 | 541 | if (LIKELY(read_count > 0)) { | 430 | 541 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 541 | read_count, *dst); | 432 | 541 | } | 433 | | | 434 | 541 | *n = read_count; | 435 | 541 | return Status::OK(); | 436 | 541 | } |
|
437 | | |
438 | 51.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
439 | 51.9k | return next_batch<false>(n, dst); |
440 | 51.9k | } 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 | 438 | 51.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 439 | 51.9k | return next_batch<false>(n, dst); | 440 | 51.9k | } |
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 |
441 | | |
442 | 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 | 442 | 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 |
443 | | |
444 | 3.94M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 444 | 233k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 444 | 232k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 444 | 1.98M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 444 | 101k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 444 | 114k | 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 | 444 | 238k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 444 | 210k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv Line | Count | Source | 444 | 184 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 444 | 223k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 444 | 240k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 444 | 23.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 444 | 321 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 444 | 210k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 444 | 1.21k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 444 | 61 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 444 | 3.57k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 444 | 1.10k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 444 | 117k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 444 | 367 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 444 | 90 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 444 | 98 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 444 | 11.6k | size_t current_index() const override { return _cur_index; } |
|
445 | | |
446 | 121M | char* get_data(size_t index) const { |
447 | 121M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
448 | 121M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 446 | 2.22M | char* get_data(size_t index) const { | 447 | 2.22M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 2.22M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 446 | 653k | char* get_data(size_t index) const { | 447 | 653k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 653k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 446 | 40.6M | char* get_data(size_t index) const { | 447 | 40.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 40.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 446 | 27.4M | char* get_data(size_t index) const { | 447 | 27.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 27.4M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 446 | 1.18M | char* get_data(size_t index) const { | 447 | 1.18M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.18M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 446 | 770k | char* get_data(size_t index) const { | 447 | 770k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 770k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 446 | 1.21M | char* get_data(size_t index) const { | 447 | 1.21M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.21M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 446 | 1.41M | char* get_data(size_t index) const { | 447 | 1.41M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.41M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 446 | 803 | char* get_data(size_t index) const { | 447 | 803 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 803 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 446 | 505k | char* get_data(size_t index) const { | 447 | 505k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 505k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 446 | 7.00M | char* get_data(size_t index) const { | 447 | 7.00M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 7.00M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 446 | 9.95M | char* get_data(size_t index) const { | 447 | 9.95M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 9.95M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 446 | 5.30k | char* get_data(size_t index) const { | 447 | 5.30k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 5.30k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 446 | 502k | char* get_data(size_t index) const { | 447 | 502k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 502k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 446 | 22.8k | char* get_data(size_t index) const { | 447 | 22.8k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 22.8k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 446 | 1.61k | char* get_data(size_t index) const { | 447 | 1.61k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.61k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 446 | 22.3k | char* get_data(size_t index) const { | 447 | 22.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 22.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 446 | 18.6M | char* get_data(size_t index) const { | 447 | 18.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 18.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 446 | 8.91M | char* get_data(size_t index) const { | 447 | 8.91M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 8.91M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 446 | 5.16k | char* get_data(size_t index) const { | 447 | 5.16k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 5.16k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 446 | 1.31k | char* get_data(size_t index) const { | 447 | 1.31k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.31k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 446 | 1.65k | char* get_data(size_t index) const { | 447 | 1.65k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.65k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 446 | 94.9k | char* get_data(size_t index) const { | 447 | 94.9k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 94.9k | } |
|
449 | | |
450 | | private: |
451 | | void _copy_next_values(size_t n, void* data) { |
452 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
453 | | } |
454 | | |
455 | | using CppType = typename TypeTraits<Type>::CppType; |
456 | | |
457 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
458 | | |
459 | | Slice _data; |
460 | | PageDecoderOptions _options; |
461 | | bool _parsed; |
462 | | size_t _num_elements; |
463 | | size_t _num_element_after_padding; |
464 | | |
465 | | int _size_of_element; |
466 | | size_t _cur_index; |
467 | | |
468 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
469 | | |
470 | | friend class BinaryDictPageDecoder; |
471 | | }; |
472 | | |
473 | | } // namespace segment_v2 |
474 | | } // namespace doris |