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 | 749k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 49.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 7.75k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 362k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 108k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 9.94k | 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 | 5.70k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 7.76k | 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 | 343 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 37.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 44.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 96 | 332 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 435 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.71k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 329 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.72k | 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.21k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 662 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 659 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 96 | 585 | Status init() override { return reset(); } |
|
97 | | |
98 | 142M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 52.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 10.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 142M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 310k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 9.95k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 65.8k | 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 | 5.82k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 22.4k | 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 | 449 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 43.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 44.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 98 | 332 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 565 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.70k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 309 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.23k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 25.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 18.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.47k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 625 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 648 | 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.38M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.38M | return add_internal<false>(vals, count); |
102 | 1.38M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 52.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 52.3k | return add_internal<false>(vals, count); | 102 | 52.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 10.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 10.5k | return add_internal<false>(vals, count); | 102 | 10.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 736k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 736k | return add_internal<false>(vals, count); | 102 | 736k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 310k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 310k | return add_internal<false>(vals, count); | 102 | 310k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 9.95k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 9.95k | return add_internal<false>(vals, count); | 102 | 9.95k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 65.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 65.8k | return add_internal<false>(vals, count); | 102 | 65.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 5.82k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.82k | return add_internal<false>(vals, count); | 102 | 5.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 22.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 22.3k | return add_internal<false>(vals, count); | 102 | 22.3k | } |
_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 | 451 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 451 | return add_internal<false>(vals, count); | 102 | 451 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 43.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 43.7k | return add_internal<false>(vals, count); | 102 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 44.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 44.1k | return add_internal<false>(vals, count); | 102 | 44.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 100 | 332 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 332 | return add_internal<false>(vals, count); | 102 | 332 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 565 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 565 | return add_internal<false>(vals, count); | 102 | 565 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.71k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.71k | return add_internal<false>(vals, count); | 102 | 7.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 310 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 310 | return add_internal<false>(vals, count); | 102 | 310 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.23k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.23k | return add_internal<false>(vals, count); | 102 | 5.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 25.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 25.9k | return add_internal<false>(vals, count); | 102 | 25.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 18.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 18.0k | return add_internal<false>(vals, count); | 102 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.47k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.47k | return add_internal<false>(vals, count); | 102 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 625 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 625 | return add_internal<false>(vals, count); | 102 | 625 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 648 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 648 | return add_internal<false>(vals, count); | 102 | 648 | } |
_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 | 143M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 143M | return add_internal<true>(vals, count); |
106 | 143M | } |
107 | | |
108 | | template <bool single> |
109 | 141M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 141M | DCHECK(!_finished); |
111 | 141M | 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 | 141M | uint32_t to_add = cast_set<UInt32>( |
127 | 141M | 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 | 141M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 141M | 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 | 141M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 145M | _count += to_add; |
135 | 145M | _remain_element_capacity -= to_add; |
136 | 145M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 145M | *num_written = to_add; |
139 | 145M | 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 | 143M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 143M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 143M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 143M | 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 | 143M | } |
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 | 145M | return Status::OK(); |
160 | 141M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 52.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 52.3k | DCHECK(!_finished); | 111 | 52.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 | 52.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 52.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 | 52.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 52.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 | 52.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 52.3k | _count += to_add; | 135 | 52.3k | _remain_element_capacity -= to_add; | 136 | 52.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 52.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 | 52.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 52.3k | return Status::OK(); | 160 | 52.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 10.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 10.5k | DCHECK(!_finished); | 111 | 10.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 10.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 10.5k | 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.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 10.5k | _count += to_add; | 135 | 10.5k | _remain_element_capacity -= to_add; | 136 | 10.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 10.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 | 10.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 10.5k | return Status::OK(); | 160 | 10.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 736k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 736k | DCHECK(!_finished); | 111 | 736k | 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 | 736k | uint32_t to_add = cast_set<UInt32>( | 127 | 736k | 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 | 736k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 736k | 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 | 736k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 736k | _count += to_add; | 135 | 736k | _remain_element_capacity -= to_add; | 136 | 736k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 736k | *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 | 736k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 736k | return Status::OK(); | 160 | 736k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 310k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 310k | DCHECK(!_finished); | 111 | 310k | 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 | 310k | uint32_t to_add = cast_set<UInt32>( | 127 | 310k | 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 | 310k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 310k | 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 | 310k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 310k | _count += to_add; | 135 | 310k | _remain_element_capacity -= to_add; | 136 | 310k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 310k | *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 | 310k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 310k | return Status::OK(); | 160 | 310k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 9.95k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 9.95k | DCHECK(!_finished); | 111 | 9.95k | 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 | 9.95k | uint32_t to_add = cast_set<UInt32>( | 127 | 9.95k | 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 | 9.95k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 9.95k | 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 | 9.95k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 9.95k | _count += to_add; | 135 | 9.95k | _remain_element_capacity -= to_add; | 136 | 9.95k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 9.95k | *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 | 9.95k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 9.95k | return Status::OK(); | 160 | 9.95k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 65.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 65.8k | DCHECK(!_finished); | 111 | 65.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 | 65.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 65.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 | 65.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 65.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 | 65.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 65.8k | _count += to_add; | 135 | 65.8k | _remain_element_capacity -= to_add; | 136 | 65.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 65.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 | 65.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 65.8k | return Status::OK(); | 160 | 65.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.82k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.82k | DCHECK(!_finished); | 111 | 5.82k | 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.82k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.82k | 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.82k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.82k | 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.82k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.82k | _count += to_add; | 135 | 5.82k | _remain_element_capacity -= to_add; | 136 | 5.82k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.82k | *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.82k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.82k | return Status::OK(); | 160 | 5.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 22.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 22.3k | DCHECK(!_finished); | 111 | 22.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 | 22.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 22.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 | 22.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 22.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 | 22.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 22.4k | _count += to_add; | 135 | 22.4k | _remain_element_capacity -= to_add; | 136 | 22.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 22.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 | 22.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 22.4k | return Status::OK(); | 160 | 22.3k | } |
_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 | 451 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 451 | DCHECK(!_finished); | 111 | 451 | 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 | 451 | uint32_t to_add = cast_set<UInt32>( | 127 | 451 | 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 | 451 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 451 | 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 | 451 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 451 | _count += to_add; | 135 | 451 | _remain_element_capacity -= to_add; | 136 | 451 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 451 | *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 | 451 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 451 | return Status::OK(); | 160 | 451 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 43.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 43.7k | DCHECK(!_finished); | 111 | 43.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 | 43.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 43.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 | 43.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 43.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 | 43.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 43.7k | _count += to_add; | 135 | 43.7k | _remain_element_capacity -= to_add; | 136 | 43.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 43.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 | 43.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 43.7k | return Status::OK(); | 160 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 44.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 44.1k | DCHECK(!_finished); | 111 | 44.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 | 44.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 44.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 | 44.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 44.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 | 44.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 44.1k | _count += to_add; | 135 | 44.1k | _remain_element_capacity -= to_add; | 136 | 44.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 44.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 | 44.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 44.1k | return Status::OK(); | 160 | 44.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 332 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 332 | DCHECK(!_finished); | 111 | 332 | 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 | 332 | uint32_t to_add = cast_set<UInt32>( | 127 | 332 | 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 | 332 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 332 | 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 | 332 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 332 | _count += to_add; | 135 | 332 | _remain_element_capacity -= to_add; | 136 | 332 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 332 | *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 | 332 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 332 | return Status::OK(); | 160 | 332 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 565 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 565 | DCHECK(!_finished); | 111 | 565 | 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 | 565 | uint32_t to_add = cast_set<UInt32>( | 127 | 565 | 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 | 565 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 565 | 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 | 565 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 565 | _count += to_add; | 135 | 565 | _remain_element_capacity -= to_add; | 136 | 565 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 565 | *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 | 565 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 565 | return Status::OK(); | 160 | 565 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.71k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.71k | DCHECK(!_finished); | 111 | 7.71k | 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.71k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.71k | 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.71k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.71k | 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.71k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.71k | _count += to_add; | 135 | 7.71k | _remain_element_capacity -= to_add; | 136 | 7.71k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.71k | *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.71k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.71k | return Status::OK(); | 160 | 7.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 310 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 310 | DCHECK(!_finished); | 111 | 310 | 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 | 310 | uint32_t to_add = cast_set<UInt32>( | 127 | 310 | 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 | 310 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 310 | 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 | 310 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 310 | _count += to_add; | 135 | 310 | _remain_element_capacity -= to_add; | 136 | 310 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 310 | *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 | 310 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 310 | return Status::OK(); | 160 | 310 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.23k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.23k | DCHECK(!_finished); | 111 | 5.23k | 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.23k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.23k | 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.23k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.23k | 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.23k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.23k | _count += to_add; | 135 | 5.23k | _remain_element_capacity -= to_add; | 136 | 5.23k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.23k | *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.23k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.23k | return Status::OK(); | 160 | 5.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 25.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 25.9k | DCHECK(!_finished); | 111 | 25.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 | 25.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 25.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 | 25.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 25.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 | 25.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 25.9k | _count += to_add; | 135 | 25.9k | _remain_element_capacity -= to_add; | 136 | 25.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 25.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 | 25.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 25.9k | return Status::OK(); | 160 | 25.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 18.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 18.0k | DCHECK(!_finished); | 111 | 18.0k | 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 | 18.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 18.0k | 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 | 18.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 18.0k | 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 | 18.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 18.0k | _count += to_add; | 135 | 18.0k | _remain_element_capacity -= to_add; | 136 | 18.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 18.0k | *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 | 18.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 18.0k | return Status::OK(); | 160 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.47k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.47k | DCHECK(!_finished); | 111 | 1.47k | 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.47k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.47k | 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.47k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.47k | 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.47k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.47k | _count += to_add; | 135 | 1.47k | _remain_element_capacity -= to_add; | 136 | 1.47k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.47k | *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.47k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.47k | return Status::OK(); | 160 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 625 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 625 | DCHECK(!_finished); | 111 | 625 | 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 | 625 | uint32_t to_add = cast_set<UInt32>( | 127 | 625 | 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 | 625 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 625 | 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 | 625 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 625 | _count += to_add; | 135 | 625 | _remain_element_capacity -= to_add; | 136 | 625 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 625 | *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 | 625 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 625 | return Status::OK(); | 160 | 625 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 648 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 648 | DCHECK(!_finished); | 111 | 648 | 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 | 648 | uint32_t to_add = cast_set<UInt32>( | 127 | 648 | 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 | 648 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 648 | 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 | 648 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 648 | _count += to_add; | 135 | 648 | _remain_element_capacity -= to_add; | 136 | 648 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 648 | *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 | 648 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 648 | return Status::OK(); | 160 | 648 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 26.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 26.5k | DCHECK(!_finished); | 111 | 26.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 26.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 26.5k | 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.5k | 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.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 140M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 140M | DCHECK(!_finished); | 111 | 140M | 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 | 140M | uint32_t to_add = cast_set<UInt32>( | 127 | 140M | 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 | 140M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 140M | 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 | 140M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 143M | _count += to_add; | 135 | 143M | _remain_element_capacity -= to_add; | 136 | 143M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 143M | *num_written = to_add; | 139 | 143M | 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 | 143M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 143M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 143M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 143M | 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 | 143M | } | 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 | 143M | return Status::OK(); | 160 | 140M | } |
|
161 | | |
162 | 743k | Status finish(OwnedSlice* slice) override { |
163 | 743k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
164 | 744k | return Status::OK(); |
165 | 743k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 49.1k | Status finish(OwnedSlice* slice) override { | 163 | 49.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 49.1k | return Status::OK(); | 165 | 49.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.40k | Status finish(OwnedSlice* slice) override { | 163 | 7.40k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 7.40k | return Status::OK(); | 165 | 7.40k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 348k | Status finish(OwnedSlice* slice) override { | 163 | 348k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 348k | return Status::OK(); | 165 | 348k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 111k | Status finish(OwnedSlice* slice) override { | 163 | 111k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 111k | return Status::OK(); | 165 | 111k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.79k | Status finish(OwnedSlice* slice) override { | 163 | 9.79k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 9.79k | return Status::OK(); | 165 | 9.79k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 64.9k | Status finish(OwnedSlice* slice) override { | 163 | 64.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 64.9k | return Status::OK(); | 165 | 64.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 5.38k | Status finish(OwnedSlice* slice) override { | 163 | 5.38k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 5.38k | return Status::OK(); | 165 | 5.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.83k | Status finish(OwnedSlice* slice) override { | 163 | 8.83k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 8.83k | return Status::OK(); | 165 | 8.83k | } |
_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 | 374 | Status finish(OwnedSlice* slice) override { | 163 | 374 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 374 | return Status::OK(); | 165 | 374 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.9k | Status finish(OwnedSlice* slice) override { | 163 | 37.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 37.9k | return Status::OK(); | 165 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.3k | Status finish(OwnedSlice* slice) override { | 163 | 43.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 43.3k | return Status::OK(); | 165 | 43.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 274 | Status finish(OwnedSlice* slice) override { | 163 | 274 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 274 | return Status::OK(); | 165 | 274 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 602 | Status finish(OwnedSlice* slice) override { | 163 | 602 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 602 | return Status::OK(); | 165 | 602 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.75k | Status finish(OwnedSlice* slice) override { | 163 | 7.75k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 7.76k | return Status::OK(); | 165 | 7.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 259 | Status finish(OwnedSlice* slice) override { | 163 | 259 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 259 | return Status::OK(); | 165 | 259 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.72k | Status finish(OwnedSlice* slice) override { | 163 | 9.72k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 9.72k | return Status::OK(); | 165 | 9.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 18.3k | Status finish(OwnedSlice* slice) override { | 163 | 18.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 18.3k | return Status::OK(); | 165 | 18.3k | } |
_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.15k | Status finish(OwnedSlice* slice) override { | 163 | 1.15k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 1.15k | return Status::OK(); | 165 | 1.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 579 | Status finish(OwnedSlice* slice) override { | 163 | 579 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 579 | return Status::OK(); | 165 | 579 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 586 | Status finish(OwnedSlice* slice) override { | 163 | 586 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 586 | return Status::OK(); | 165 | 586 | } |
_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.78M | Status reset() override { |
168 | 1.78M | RETURN_IF_CATCH_EXCEPTION({ |
169 | 1.78M | size_t block_size = _options.data_page_size; |
170 | 1.78M | _count = 0; |
171 | 1.78M | _raw_data_size = 0; |
172 | 1.78M | _data.clear(); |
173 | 1.78M | _data.reserve(block_size); |
174 | 1.78M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
175 | 1.78M | << "buffer must be naturally-aligned"; |
176 | 1.78M | _buffer.clear(); |
177 | 1.78M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
178 | 1.78M | _finished = false; |
179 | 1.78M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
180 | 1.78M | }); |
181 | 1.78M | return Status::OK(); |
182 | 1.78M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 167 | 98.6k | Status reset() override { | 168 | 98.6k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 98.6k | size_t block_size = _options.data_page_size; | 170 | 98.6k | _count = 0; | 171 | 98.6k | _raw_data_size = 0; | 172 | 98.6k | _data.clear(); | 173 | 98.6k | _data.reserve(block_size); | 174 | 98.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 98.6k | << "buffer must be naturally-aligned"; | 176 | 98.6k | _buffer.clear(); | 177 | 98.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 98.6k | _finished = false; | 179 | 98.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 98.6k | }); | 181 | 98.7k | return Status::OK(); | 182 | 98.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 167 | 15.1k | Status reset() override { | 168 | 15.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 15.1k | size_t block_size = _options.data_page_size; | 170 | 15.1k | _count = 0; | 171 | 15.1k | _raw_data_size = 0; | 172 | 15.1k | _data.clear(); | 173 | 15.1k | _data.reserve(block_size); | 174 | 15.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 15.1k | << "buffer must be naturally-aligned"; | 176 | 15.1k | _buffer.clear(); | 177 | 15.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 15.1k | _finished = false; | 179 | 15.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 15.1k | }); | 181 | 15.1k | return Status::OK(); | 182 | 15.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 167 | 1.00M | Status reset() override { | 168 | 1.00M | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.00M | size_t block_size = _options.data_page_size; | 170 | 1.00M | _count = 0; | 171 | 1.00M | _raw_data_size = 0; | 172 | 1.00M | _data.clear(); | 173 | 1.00M | _data.reserve(block_size); | 174 | 1.00M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.00M | << "buffer must be naturally-aligned"; | 176 | 1.00M | _buffer.clear(); | 177 | 1.00M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.00M | _finished = false; | 179 | 1.00M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.00M | }); | 181 | 1.00M | return Status::OK(); | 182 | 1.00M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 167 | 219k | Status reset() override { | 168 | 219k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 219k | size_t block_size = _options.data_page_size; | 170 | 219k | _count = 0; | 171 | 219k | _raw_data_size = 0; | 172 | 219k | _data.clear(); | 173 | 219k | _data.reserve(block_size); | 174 | 219k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 219k | << "buffer must be naturally-aligned"; | 176 | 219k | _buffer.clear(); | 177 | 219k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 219k | _finished = false; | 179 | 219k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 219k | }); | 181 | 219k | return Status::OK(); | 182 | 219k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv 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_9FieldTypeE8EE5resetEv Line | Count | Source | 167 | 130k | Status reset() override { | 168 | 130k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 130k | size_t block_size = _options.data_page_size; | 170 | 130k | _count = 0; | 171 | 130k | _raw_data_size = 0; | 172 | 130k | _data.clear(); | 173 | 130k | _data.reserve(block_size); | 174 | 130k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 130k | << "buffer must be naturally-aligned"; | 176 | 130k | _buffer.clear(); | 177 | 130k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 130k | _finished = false; | 179 | 130k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 130k | }); | 181 | 130k | return Status::OK(); | 182 | 130k | } |
_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 | 11.0k | Status reset() override { | 168 | 11.0k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 11.0k | size_t block_size = _options.data_page_size; | 170 | 11.0k | _count = 0; | 171 | 11.0k | _raw_data_size = 0; | 172 | 11.0k | _data.clear(); | 173 | 11.0k | _data.reserve(block_size); | 174 | 11.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 11.0k | << "buffer must be naturally-aligned"; | 176 | 11.0k | _buffer.clear(); | 177 | 11.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 11.0k | _finished = false; | 179 | 11.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 11.0k | }); | 181 | 11.0k | return Status::OK(); | 182 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 167 | 16.6k | Status reset() override { | 168 | 16.6k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 16.6k | size_t block_size = _options.data_page_size; | 170 | 16.6k | _count = 0; | 171 | 16.6k | _raw_data_size = 0; | 172 | 16.6k | _data.clear(); | 173 | 16.6k | _data.reserve(block_size); | 174 | 16.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 16.6k | << "buffer must be naturally-aligned"; | 176 | 16.6k | _buffer.clear(); | 177 | 16.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 16.6k | _finished = false; | 179 | 16.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 16.6k | }); | 181 | 16.6k | return Status::OK(); | 182 | 16.6k | } |
_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 | 715 | Status reset() override { | 168 | 715 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 715 | size_t block_size = _options.data_page_size; | 170 | 715 | _count = 0; | 171 | 715 | _raw_data_size = 0; | 172 | 715 | _data.clear(); | 173 | 715 | _data.reserve(block_size); | 174 | 715 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 715 | << "buffer must be naturally-aligned"; | 176 | 715 | _buffer.clear(); | 177 | 715 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 715 | _finished = false; | 179 | 715 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 715 | }); | 181 | 715 | return Status::OK(); | 182 | 715 | } |
_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.3k | return Status::OK(); | 182 | 75.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 167 | 87.6k | Status reset() override { | 168 | 87.6k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 87.6k | size_t block_size = _options.data_page_size; | 170 | 87.6k | _count = 0; | 171 | 87.6k | _raw_data_size = 0; | 172 | 87.6k | _data.clear(); | 173 | 87.6k | _data.reserve(block_size); | 174 | 87.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 87.6k | << "buffer must be naturally-aligned"; | 176 | 87.6k | _buffer.clear(); | 177 | 87.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 87.6k | _finished = false; | 179 | 87.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 87.6k | }); | 181 | 87.6k | return Status::OK(); | 182 | 87.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 167 | 606 | Status reset() override { | 168 | 606 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 606 | size_t block_size = _options.data_page_size; | 170 | 606 | _count = 0; | 171 | 606 | _raw_data_size = 0; | 172 | 606 | _data.clear(); | 173 | 606 | _data.reserve(block_size); | 174 | 606 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 606 | << "buffer must be naturally-aligned"; | 176 | 606 | _buffer.clear(); | 177 | 606 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 606 | _finished = false; | 179 | 606 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 606 | }); | 181 | 606 | return Status::OK(); | 182 | 606 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 167 | 1.03k | Status reset() override { | 168 | 1.03k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.03k | size_t block_size = _options.data_page_size; | 170 | 1.03k | _count = 0; | 171 | 1.03k | _raw_data_size = 0; | 172 | 1.03k | _data.clear(); | 173 | 1.03k | _data.reserve(block_size); | 174 | 1.03k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.03k | << "buffer must be naturally-aligned"; | 176 | 1.03k | _buffer.clear(); | 177 | 1.03k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.03k | _finished = false; | 179 | 1.03k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.03k | }); | 181 | 1.03k | return Status::OK(); | 182 | 1.03k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 167 | 15.4k | Status reset() override { | 168 | 15.4k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 15.4k | size_t block_size = _options.data_page_size; | 170 | 15.4k | _count = 0; | 171 | 15.4k | _raw_data_size = 0; | 172 | 15.4k | _data.clear(); | 173 | 15.4k | _data.reserve(block_size); | 174 | 15.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 15.4k | << "buffer must be naturally-aligned"; | 176 | 15.4k | _buffer.clear(); | 177 | 15.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 15.4k | _finished = false; | 179 | 15.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 15.4k | }); | 181 | 15.5k | return Status::OK(); | 182 | 15.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 167 | 587 | Status reset() override { | 168 | 587 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 587 | size_t block_size = _options.data_page_size; | 170 | 587 | _count = 0; | 171 | 587 | _raw_data_size = 0; | 172 | 587 | _data.clear(); | 173 | 587 | _data.reserve(block_size); | 174 | 587 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 587 | << "buffer must be naturally-aligned"; | 176 | 587 | _buffer.clear(); | 177 | 587 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 587 | _finished = false; | 179 | 587 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 587 | }); | 181 | 587 | return Status::OK(); | 182 | 587 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 167 | 19.4k | Status reset() override { | 168 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 19.4k | size_t block_size = _options.data_page_size; | 170 | 19.4k | _count = 0; | 171 | 19.4k | _raw_data_size = 0; | 172 | 19.4k | _data.clear(); | 173 | 19.4k | _data.reserve(block_size); | 174 | 19.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 19.4k | << "buffer must be naturally-aligned"; | 176 | 19.4k | _buffer.clear(); | 177 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 19.4k | _finished = false; | 179 | 19.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 19.4k | }); | 181 | 19.4k | return Status::OK(); | 182 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 167 | 30.3k | Status reset() override { | 168 | 30.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 30.3k | size_t block_size = _options.data_page_size; | 170 | 30.3k | _count = 0; | 171 | 30.3k | _raw_data_size = 0; | 172 | 30.3k | _data.clear(); | 173 | 30.3k | _data.reserve(block_size); | 174 | 30.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 30.3k | << "buffer must be naturally-aligned"; | 176 | 30.3k | _buffer.clear(); | 177 | 30.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 30.3k | _finished = false; | 179 | 30.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 30.3k | }); | 181 | 30.3k | return Status::OK(); | 182 | 30.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 167 | 34.1k | Status reset() override { | 168 | 34.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 34.1k | size_t block_size = _options.data_page_size; | 170 | 34.1k | _count = 0; | 171 | 34.1k | _raw_data_size = 0; | 172 | 34.1k | _data.clear(); | 173 | 34.1k | _data.reserve(block_size); | 174 | 34.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 34.1k | << "buffer must be naturally-aligned"; | 176 | 34.1k | _buffer.clear(); | 177 | 34.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 34.1k | _finished = false; | 179 | 34.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 34.1k | }); | 181 | 34.1k | return Status::OK(); | 182 | 34.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 167 | 2.36k | Status reset() override { | 168 | 2.36k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 2.36k | size_t block_size = _options.data_page_size; | 170 | 2.36k | _count = 0; | 171 | 2.36k | _raw_data_size = 0; | 172 | 2.36k | _data.clear(); | 173 | 2.36k | _data.reserve(block_size); | 174 | 2.36k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 2.36k | << "buffer must be naturally-aligned"; | 176 | 2.36k | _buffer.clear(); | 177 | 2.36k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 2.36k | _finished = false; | 179 | 2.36k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 2.36k | }); | 181 | 2.36k | return Status::OK(); | 182 | 2.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 167 | 1.24k | Status reset() override { | 168 | 1.24k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.24k | size_t block_size = _options.data_page_size; | 170 | 1.24k | _count = 0; | 171 | 1.24k | _raw_data_size = 0; | 172 | 1.24k | _data.clear(); | 173 | 1.24k | _data.reserve(block_size); | 174 | 1.24k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.24k | << "buffer must be naturally-aligned"; | 176 | 1.24k | _buffer.clear(); | 177 | 1.24k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.24k | _finished = false; | 179 | 1.24k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.24k | }); | 181 | 1.24k | return Status::OK(); | 182 | 1.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 167 | 1.24k | Status reset() override { | 168 | 1.24k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.24k | size_t block_size = _options.data_page_size; | 170 | 1.24k | _count = 0; | 171 | 1.24k | _raw_data_size = 0; | 172 | 1.24k | _data.clear(); | 173 | 1.24k | _data.reserve(block_size); | 174 | 1.24k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.24k | << "buffer must be naturally-aligned"; | 176 | 1.24k | _buffer.clear(); | 177 | 1.24k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.24k | _finished = false; | 179 | 1.24k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.24k | }); | 181 | 1.24k | return Status::OK(); | 182 | 1.24k | } |
_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 | 38.1k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 186 | 3.13k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 186 | 636 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 186 | 21.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 186 | 2.82k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 186 | 922 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 186 | 974 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 186 | 360 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 186 | 468 | 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.68k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 186 | 2.43k | 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 | 126 | 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 | 278 | 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.24k | 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 | 463k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 188 | 49.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 188 | 7.40k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 188 | 68.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 188 | 111k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.79k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 188 | 64.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 188 | 5.37k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 188 | 8.20k | 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 | 363 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 188 | 37.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 188 | 43.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 188 | 274 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 188 | 597 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 188 | 7.75k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 188 | 254 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.72k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 188 | 18.3k | 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.15k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 188 | 579 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 188 | 586 | 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 | 747k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 49.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.75k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 360k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 107k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.90k | : _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 | 5.70k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.76k | : _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 | 343 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 37.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 44.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 332 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 435 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.69k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 329 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.72k | : _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.21k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 663 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 659 | : _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 | 743k | OwnedSlice _finish(int final_size_of_type) { |
195 | 743k | _data.resize(final_size_of_type * _count); |
196 | | |
197 | | // Do padding so that the input num of element is multiple of 8. |
198 | 743k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
199 | 743k | int padding_elems = num_elems_after_padding - _count; |
200 | 743k | int padding_bytes = padding_elems * final_size_of_type; |
201 | 21.5M | for (int i = 0; i < padding_bytes; i++) { |
202 | 20.8M | _data.push_back(0); |
203 | 20.8M | } |
204 | | |
205 | | // reserve enough place for compression |
206 | 743k | _buffer.resize( |
207 | 743k | BITSHUFFLE_PAGE_HEADER_SIZE + |
208 | 743k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
209 | | |
210 | 743k | int64_t bytes = |
211 | 743k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
212 | 743k | num_elems_after_padding, final_size_of_type, 0); |
213 | 743k | 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 | 743k | encode_fixed32_le(&_buffer[0], _count); |
223 | 743k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
224 | 743k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
225 | 743k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
226 | 743k | _finished = true; |
227 | | // before build(), update buffer length to the actual compressed size |
228 | 743k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
229 | 743k | return _buffer.build(); |
230 | 743k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 194 | 49.1k | OwnedSlice _finish(int final_size_of_type) { | 195 | 49.1k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 49.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 49.1k | int padding_elems = num_elems_after_padding - _count; | 200 | 49.1k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 324k | for (int i = 0; i < padding_bytes; i++) { | 202 | 275k | _data.push_back(0); | 203 | 275k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 49.1k | _buffer.resize( | 207 | 49.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 49.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 49.1k | int64_t bytes = | 211 | 49.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 49.1k | num_elems_after_padding, final_size_of_type, 0); | 213 | 49.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 | 49.1k | encode_fixed32_le(&_buffer[0], _count); | 223 | 49.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 49.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 49.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 49.1k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 49.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 49.1k | return _buffer.build(); | 230 | 49.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 194 | 7.40k | OwnedSlice _finish(int final_size_of_type) { | 195 | 7.40k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 7.40k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 7.40k | int padding_elems = num_elems_after_padding - _count; | 200 | 7.40k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 79.6k | for (int i = 0; i < padding_bytes; i++) { | 202 | 72.2k | _data.push_back(0); | 203 | 72.2k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 7.40k | _buffer.resize( | 207 | 7.40k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 7.40k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 7.40k | int64_t bytes = | 211 | 7.40k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 7.40k | num_elems_after_padding, final_size_of_type, 0); | 213 | 7.40k | 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.40k | encode_fixed32_le(&_buffer[0], _count); | 223 | 7.40k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 7.40k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 7.40k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 7.40k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 7.40k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 7.40k | return _buffer.build(); | 230 | 7.40k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 194 | 348k | OwnedSlice _finish(int final_size_of_type) { | 195 | 348k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 348k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 348k | int padding_elems = num_elems_after_padding - _count; | 200 | 348k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 6.74M | for (int i = 0; i < padding_bytes; i++) { | 202 | 6.39M | _data.push_back(0); | 203 | 6.39M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 348k | _buffer.resize( | 207 | 348k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 348k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 348k | int64_t bytes = | 211 | 348k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 348k | num_elems_after_padding, final_size_of_type, 0); | 213 | 348k | 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 | 348k | encode_fixed32_le(&_buffer[0], _count); | 223 | 348k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 348k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 348k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 348k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 348k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 348k | return _buffer.build(); | 230 | 348k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 194 | 111k | OwnedSlice _finish(int final_size_of_type) { | 195 | 111k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 111k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 111k | int padding_elems = num_elems_after_padding - _count; | 200 | 111k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 4.95M | for (int i = 0; i < padding_bytes; i++) { | 202 | 4.84M | _data.push_back(0); | 203 | 4.84M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 111k | _buffer.resize( | 207 | 111k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 111k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 111k | int64_t bytes = | 211 | 111k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 111k | num_elems_after_padding, final_size_of_type, 0); | 213 | 111k | 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 | 111k | encode_fixed32_le(&_buffer[0], _count); | 223 | 111k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 111k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 111k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 111k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 111k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 111k | return _buffer.build(); | 230 | 111k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 194 | 9.79k | OwnedSlice _finish(int final_size_of_type) { | 195 | 9.79k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 9.79k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 9.79k | int padding_elems = num_elems_after_padding - _count; | 200 | 9.79k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 759k | for (int i = 0; i < padding_bytes; i++) { | 202 | 749k | _data.push_back(0); | 203 | 749k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 9.79k | _buffer.resize( | 207 | 9.79k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 9.79k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 9.79k | int64_t bytes = | 211 | 9.79k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 9.79k | num_elems_after_padding, final_size_of_type, 0); | 213 | 9.79k | 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.79k | encode_fixed32_le(&_buffer[0], _count); | 223 | 9.79k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 9.79k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 9.79k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 9.79k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 9.79k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 9.79k | return _buffer.build(); | 230 | 9.79k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 194 | 64.9k | OwnedSlice _finish(int final_size_of_type) { | 195 | 64.9k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 64.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 64.9k | int padding_elems = num_elems_after_padding - _count; | 200 | 64.9k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 3.14M | 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.9k | _buffer.resize( | 207 | 64.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 64.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 64.9k | int64_t bytes = | 211 | 64.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 64.9k | num_elems_after_padding, final_size_of_type, 0); | 213 | 64.9k | 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.9k | encode_fixed32_le(&_buffer[0], _count); | 223 | 64.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 64.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 64.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 64.9k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 64.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 64.9k | return _buffer.build(); | 230 | 64.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 194 | 5.38k | OwnedSlice _finish(int final_size_of_type) { | 195 | 5.38k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 5.38k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 5.38k | int padding_elems = num_elems_after_padding - _count; | 200 | 5.38k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 114k | for (int i = 0; i < padding_bytes; i++) { | 202 | 109k | _data.push_back(0); | 203 | 109k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 5.38k | _buffer.resize( | 207 | 5.38k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 5.38k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 5.38k | int64_t bytes = | 211 | 5.38k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 5.38k | num_elems_after_padding, final_size_of_type, 0); | 213 | 5.38k | 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 | 5.38k | encode_fixed32_le(&_buffer[0], _count); | 223 | 5.38k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 5.38k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 5.38k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 5.38k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 5.38k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 5.38k | return _buffer.build(); | 230 | 5.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 194 | 8.83k | OwnedSlice _finish(int final_size_of_type) { | 195 | 8.83k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 8.83k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 8.83k | int padding_elems = num_elems_after_padding - _count; | 200 | 8.83k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 310k | for (int i = 0; i < padding_bytes; i++) { | 202 | 301k | _data.push_back(0); | 203 | 301k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 8.83k | _buffer.resize( | 207 | 8.83k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 8.83k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 8.83k | int64_t bytes = | 211 | 8.83k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 8.83k | num_elems_after_padding, final_size_of_type, 0); | 213 | 8.83k | 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 | 8.83k | encode_fixed32_le(&_buffer[0], _count); | 223 | 8.83k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 8.83k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 8.83k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 8.83k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 8.83k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 8.83k | return _buffer.build(); | 230 | 8.83k | } |
_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 | 374 | OwnedSlice _finish(int final_size_of_type) { | 195 | 374 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 374 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 374 | int padding_elems = num_elems_after_padding - _count; | 200 | 374 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 5.51k | for (int i = 0; i < padding_bytes; i++) { | 202 | 5.13k | _data.push_back(0); | 203 | 5.13k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 374 | _buffer.resize( | 207 | 374 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 374 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 374 | int64_t bytes = | 211 | 374 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 374 | num_elems_after_padding, final_size_of_type, 0); | 213 | 374 | 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 | 374 | encode_fixed32_le(&_buffer[0], _count); | 223 | 374 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 374 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 374 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 374 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 374 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 374 | return _buffer.build(); | 230 | 374 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 194 | 37.9k | OwnedSlice _finish(int final_size_of_type) { | 195 | 37.9k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 37.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 37.9k | int padding_elems = num_elems_after_padding - _count; | 200 | 37.9k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 810k | for (int i = 0; i < padding_bytes; i++) { | 202 | 772k | _data.push_back(0); | 203 | 772k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 37.9k | _buffer.resize( | 207 | 37.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 37.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 37.9k | int64_t bytes = | 211 | 37.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 37.9k | num_elems_after_padding, final_size_of_type, 0); | 213 | 37.9k | 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 | 37.9k | encode_fixed32_le(&_buffer[0], _count); | 223 | 37.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 37.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 37.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 37.9k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 37.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 37.9k | return _buffer.build(); | 230 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 194 | 43.3k | OwnedSlice _finish(int final_size_of_type) { | 195 | 43.3k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 43.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 43.3k | int padding_elems = num_elems_after_padding - _count; | 200 | 43.3k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 1.83M | for (int i = 0; i < padding_bytes; i++) { | 202 | 1.79M | _data.push_back(0); | 203 | 1.79M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 43.3k | _buffer.resize( | 207 | 43.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 43.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 43.3k | int64_t bytes = | 211 | 43.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 43.3k | num_elems_after_padding, final_size_of_type, 0); | 213 | 43.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 | 43.3k | encode_fixed32_le(&_buffer[0], _count); | 223 | 43.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 43.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 43.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 43.3k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 43.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 43.3k | return _buffer.build(); | 230 | 43.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 194 | 274 | OwnedSlice _finish(int final_size_of_type) { | 195 | 274 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 274 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 274 | int padding_elems = num_elems_after_padding - _count; | 200 | 274 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.5k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.2k | _data.push_back(0); | 203 | 11.2k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 274 | _buffer.resize( | 207 | 274 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 274 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 274 | int64_t bytes = | 211 | 274 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 274 | num_elems_after_padding, final_size_of_type, 0); | 213 | 274 | 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 | 274 | encode_fixed32_le(&_buffer[0], _count); | 223 | 274 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 274 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 274 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 274 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 274 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 274 | return _buffer.build(); | 230 | 274 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 194 | 602 | OwnedSlice _finish(int final_size_of_type) { | 195 | 602 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 602 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 602 | int padding_elems = num_elems_after_padding - _count; | 200 | 602 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 13.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 12.7k | _data.push_back(0); | 203 | 12.7k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 602 | _buffer.resize( | 207 | 602 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 602 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 602 | int64_t bytes = | 211 | 602 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 602 | num_elems_after_padding, final_size_of_type, 0); | 213 | 602 | 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 | 602 | encode_fixed32_le(&_buffer[0], _count); | 223 | 602 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 602 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 602 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 602 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 602 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 602 | return _buffer.build(); | 230 | 602 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 194 | 7.75k | OwnedSlice _finish(int final_size_of_type) { | 195 | 7.75k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 7.75k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 7.75k | int padding_elems = num_elems_after_padding - _count; | 200 | 7.75k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 404k | for (int i = 0; i < padding_bytes; i++) { | 202 | 396k | _data.push_back(0); | 203 | 396k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 7.75k | _buffer.resize( | 207 | 7.75k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 7.75k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 7.75k | int64_t bytes = | 211 | 7.75k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 7.75k | num_elems_after_padding, final_size_of_type, 0); | 213 | 7.75k | 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.75k | encode_fixed32_le(&_buffer[0], _count); | 223 | 7.75k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 7.75k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 7.75k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 7.75k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 7.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 7.75k | return _buffer.build(); | 230 | 7.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 194 | 259 | OwnedSlice _finish(int final_size_of_type) { | 195 | 259 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 259 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 259 | int padding_elems = num_elems_after_padding - _count; | 200 | 259 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 16.2k | for (int i = 0; i < padding_bytes; i++) { | 202 | 16.0k | _data.push_back(0); | 203 | 16.0k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 259 | _buffer.resize( | 207 | 259 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 259 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 259 | int64_t bytes = | 211 | 259 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 259 | num_elems_after_padding, final_size_of_type, 0); | 213 | 259 | 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 | 259 | encode_fixed32_le(&_buffer[0], _count); | 223 | 259 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 259 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 259 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 259 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 259 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 259 | return _buffer.build(); | 230 | 259 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 194 | 9.72k | OwnedSlice _finish(int final_size_of_type) { | 195 | 9.72k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 9.72k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 9.72k | int padding_elems = num_elems_after_padding - _count; | 200 | 9.72k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 118k | for (int i = 0; i < padding_bytes; i++) { | 202 | 108k | _data.push_back(0); | 203 | 108k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 9.72k | _buffer.resize( | 207 | 9.72k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 9.72k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 9.72k | int64_t bytes = | 211 | 9.72k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 9.72k | num_elems_after_padding, final_size_of_type, 0); | 213 | 9.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 | 9.72k | encode_fixed32_le(&_buffer[0], _count); | 223 | 9.72k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 9.72k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 9.72k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 9.72k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 9.72k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 9.72k | return _buffer.build(); | 230 | 9.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 194 | 18.3k | OwnedSlice _finish(int final_size_of_type) { | 195 | 18.3k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 18.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 18.3k | int padding_elems = num_elems_after_padding - _count; | 200 | 18.3k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 489k | for (int i = 0; i < padding_bytes; i++) { | 202 | 471k | _data.push_back(0); | 203 | 471k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 18.3k | _buffer.resize( | 207 | 18.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 18.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 18.3k | int64_t bytes = | 211 | 18.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 18.3k | num_elems_after_padding, final_size_of_type, 0); | 213 | 18.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 | 18.3k | encode_fixed32_le(&_buffer[0], _count); | 223 | 18.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 18.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 18.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 18.3k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 18.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 18.3k | return _buffer.build(); | 230 | 18.3k | } |
_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.13M | _data.push_back(0); | 203 | 1.13M | } | 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.15k | OwnedSlice _finish(int final_size_of_type) { | 195 | 1.15k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 1.15k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 1.15k | int padding_elems = num_elems_after_padding - _count; | 200 | 1.15k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 175k | for (int i = 0; i < padding_bytes; i++) { | 202 | 174k | _data.push_back(0); | 203 | 174k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 1.15k | _buffer.resize( | 207 | 1.15k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 1.15k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 1.15k | int64_t bytes = | 211 | 1.15k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 1.15k | num_elems_after_padding, final_size_of_type, 0); | 213 | 1.15k | 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.15k | encode_fixed32_le(&_buffer[0], _count); | 223 | 1.15k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 1.15k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 1.15k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 1.15k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 1.15k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 1.15k | return _buffer.build(); | 230 | 1.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 194 | 579 | OwnedSlice _finish(int final_size_of_type) { | 195 | 579 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 579 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 579 | int padding_elems = num_elems_after_padding - _count; | 200 | 579 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.7k | 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 | 579 | _buffer.resize( | 207 | 579 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 579 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 579 | int64_t bytes = | 211 | 579 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 579 | num_elems_after_padding, final_size_of_type, 0); | 213 | 579 | 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 | 579 | encode_fixed32_le(&_buffer[0], _count); | 223 | 579 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 579 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 579 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 579 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 579 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 579 | return _buffer.build(); | 230 | 579 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 194 | 586 | OwnedSlice _finish(int final_size_of_type) { | 195 | 586 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 586 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 586 | int padding_elems = num_elems_after_padding - _count; | 200 | 586 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 46.7k | for (int i = 0; i < padding_bytes; i++) { | 202 | 46.1k | _data.push_back(0); | 203 | 46.1k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 586 | _buffer.resize( | 207 | 586 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 586 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 586 | int64_t bytes = | 211 | 586 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 586 | num_elems_after_padding, final_size_of_type, 0); | 213 | 586 | 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 | 586 | encode_fixed32_le(&_buffer[0], _count); | 223 | 586 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 586 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 586 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 586 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 586 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 586 | return _buffer.build(); | 230 | 586 | } |
_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 | 1.89M | int& size_of_element) { |
254 | 1.89M | 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 | 1.89M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
260 | 1.89M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
261 | 1.89M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
262 | 1.89M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
263 | 1.89M | 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 | 1.89M | switch (size_of_element) { |
272 | 178k | case 1: |
273 | 205k | case 2: |
274 | 209k | case 3: |
275 | 1.23M | case 4: |
276 | 1.80M | case 8: |
277 | 1.80M | case 12: |
278 | 1.89M | case 16: |
279 | 1.89M | case 32: |
280 | 1.89M | break; |
281 | 0 | default: |
282 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
283 | 1.89M | } |
284 | 1.89M | return Status::OK(); |
285 | 1.89M | } |
286 | | |
287 | | template <FieldType Type> |
288 | | class BitShufflePageDecoder : public PageDecoder { |
289 | | public: |
290 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
291 | 1.15M | : _data(data), |
292 | 1.15M | _options(options), |
293 | 1.15M | _parsed(false), |
294 | 1.15M | _num_elements(0), |
295 | 1.15M | _num_element_after_padding(0), |
296 | 1.15M | _size_of_element(0), |
297 | 1.15M | _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 | 18.6k | : _data(data), | 292 | 18.6k | _options(options), | 293 | 18.6k | _parsed(false), | 294 | 18.6k | _num_elements(0), | 295 | 18.6k | _num_element_after_padding(0), | 296 | 18.6k | _size_of_element(0), | 297 | 18.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 536k | : _data(data), | 292 | 536k | _options(options), | 293 | 536k | _parsed(false), | 294 | 536k | _num_elements(0), | 295 | 536k | _num_element_after_padding(0), | 296 | 536k | _size_of_element(0), | 297 | 536k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 106k | : _data(data), | 292 | 106k | _options(options), | 293 | 106k | _parsed(false), | 294 | 106k | _num_elements(0), | 295 | 106k | _num_element_after_padding(0), | 296 | 106k | _size_of_element(0), | 297 | 106k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_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_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 91.3k | : _data(data), | 292 | 91.3k | _options(options), | 293 | 91.3k | _parsed(false), | 294 | 91.3k | _num_elements(0), | 295 | 91.3k | _num_element_after_padding(0), | 296 | 91.3k | _size_of_element(0), | 297 | 91.3k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 11.3k | : _data(data), | 292 | 11.3k | _options(options), | 293 | 11.3k | _parsed(false), | 294 | 11.3k | _num_elements(0), | 295 | 11.3k | _num_element_after_padding(0), | 296 | 11.3k | _size_of_element(0), | 297 | 11.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 16.7k | : _data(data), | 292 | 16.7k | _options(options), | 293 | 16.7k | _parsed(false), | 294 | 16.7k | _num_elements(0), | 295 | 16.7k | _num_element_after_padding(0), | 296 | 16.7k | _size_of_element(0), | 297 | 16.7k | _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 | 2.63k | : _data(data), | 292 | 2.63k | _options(options), | 293 | 2.63k | _parsed(false), | 294 | 2.63k | _num_elements(0), | 295 | 2.63k | _num_element_after_padding(0), | 296 | 2.63k | _size_of_element(0), | 297 | 2.63k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 60.0k | : _data(data), | 292 | 60.0k | _options(options), | 293 | 60.0k | _parsed(false), | 294 | 60.0k | _num_elements(0), | 295 | 60.0k | _num_element_after_padding(0), | 296 | 60.0k | _size_of_element(0), | 297 | 60.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 68.3k | : _data(data), | 292 | 68.3k | _options(options), | 293 | 68.3k | _parsed(false), | 294 | 68.3k | _num_elements(0), | 295 | 68.3k | _num_element_after_padding(0), | 296 | 68.3k | _size_of_element(0), | 297 | 68.3k | _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 | 3.17k | : _data(data), | 292 | 3.17k | _options(options), | 293 | 3.17k | _parsed(false), | 294 | 3.17k | _num_elements(0), | 295 | 3.17k | _num_element_after_padding(0), | 296 | 3.17k | _size_of_element(0), | 297 | 3.17k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 16.3k | : _data(data), | 292 | 16.3k | _options(options), | 293 | 16.3k | _parsed(false), | 294 | 16.3k | _num_elements(0), | 295 | 16.3k | _num_element_after_padding(0), | 296 | 16.3k | _size_of_element(0), | 297 | 16.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.37k | : _data(data), | 292 | 1.37k | _options(options), | 293 | 1.37k | _parsed(false), | 294 | 1.37k | _num_elements(0), | 295 | 1.37k | _num_element_after_padding(0), | 296 | 1.37k | _size_of_element(0), | 297 | 1.37k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 15.5k | : _data(data), | 292 | 15.5k | _options(options), | 293 | 15.5k | _parsed(false), | 294 | 15.5k | _num_elements(0), | 295 | 15.5k | _num_element_after_padding(0), | 296 | 15.5k | _size_of_element(0), | 297 | 15.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 41.6k | : _data(data), | 292 | 41.6k | _options(options), | 293 | 41.6k | _parsed(false), | 294 | 41.6k | _num_elements(0), | 295 | 41.6k | _num_element_after_padding(0), | 296 | 41.6k | _size_of_element(0), | 297 | 41.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 32.3k | : _data(data), | 292 | 32.3k | _options(options), | 293 | 32.3k | _parsed(false), | 294 | 32.3k | _num_elements(0), | 295 | 32.3k | _num_element_after_padding(0), | 296 | 32.3k | _size_of_element(0), | 297 | 32.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.77k | : _data(data), | 292 | 1.77k | _options(options), | 293 | 1.77k | _parsed(false), | 294 | 1.77k | _num_elements(0), | 295 | 1.77k | _num_element_after_padding(0), | 296 | 1.77k | _size_of_element(0), | 297 | 1.77k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 887 | : _data(data), | 292 | 887 | _options(options), | 293 | 887 | _parsed(false), | 294 | 887 | _num_elements(0), | 295 | 887 | _num_element_after_padding(0), | 296 | 887 | _size_of_element(0), | 297 | 887 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 934 | : _data(data), | 292 | 934 | _options(options), | 293 | 934 | _parsed(false), | 294 | 934 | _num_elements(0), | 295 | 934 | _num_element_after_padding(0), | 296 | 934 | _size_of_element(0), | 297 | 934 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 5.31k | : _data(data), | 292 | 5.31k | _options(options), | 293 | 5.31k | _parsed(false), | 294 | 5.31k | _num_elements(0), | 295 | 5.31k | _num_element_after_padding(0), | 296 | 5.31k | _size_of_element(0), | 297 | 5.31k | _cur_index(0) {} |
|
298 | | |
299 | 1.15M | Status init() override { |
300 | 1.15M | CHECK(!_parsed); |
301 | 1.15M | size_t unused; |
302 | 1.15M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
303 | 1.15M | _num_element_after_padding, _size_of_element)); |
304 | | |
305 | 1.15M | if (_data.size != |
306 | 1.15M | _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.15M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
316 | 1.15M | _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.15M | 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.15M | _parsed = true; |
326 | 1.15M | return Status::OK(); |
327 | 1.15M | } _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 | 18.6k | Status init() override { | 300 | 18.6k | CHECK(!_parsed); | 301 | 18.6k | size_t unused; | 302 | 18.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 18.6k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 18.6k | if (_data.size != | 306 | 18.6k | _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.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 18.6k | _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.6k | 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.6k | _parsed = true; | 326 | 18.6k | return Status::OK(); | 327 | 18.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 299 | 536k | Status init() override { | 300 | 536k | CHECK(!_parsed); | 301 | 536k | size_t unused; | 302 | 536k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 536k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 536k | if (_data.size != | 306 | 536k | _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 | 536k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 536k | _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 | 536k | 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 | 536k | _parsed = true; | 326 | 536k | return Status::OK(); | 327 | 536k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 299 | 106k | Status init() override { | 300 | 106k | CHECK(!_parsed); | 301 | 106k | size_t unused; | 302 | 106k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 106k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 106k | if (_data.size != | 306 | 106k | _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 | 106k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 106k | _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 | 106k | 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 | 106k | _parsed = true; | 326 | 106k | return Status::OK(); | 327 | 106k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv 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_9FieldTypeE8EE4initEv Line | Count | Source | 299 | 91.3k | Status init() override { | 300 | 91.3k | CHECK(!_parsed); | 301 | 91.3k | size_t unused; | 302 | 91.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 91.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 91.3k | if (_data.size != | 306 | 91.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 | 91.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 91.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 | 91.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 | 91.3k | _parsed = true; | 326 | 91.3k | return Status::OK(); | 327 | 91.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 299 | 11.3k | Status init() override { | 300 | 11.3k | CHECK(!_parsed); | 301 | 11.3k | size_t unused; | 302 | 11.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 11.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 11.3k | if (_data.size != | 306 | 11.3k | _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 | 11.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 11.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 | 11.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 | 11.3k | _parsed = true; | 326 | 11.3k | return Status::OK(); | 327 | 11.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 299 | 16.7k | Status init() override { | 300 | 16.7k | CHECK(!_parsed); | 301 | 16.7k | size_t unused; | 302 | 16.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 16.7k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 16.7k | if (_data.size != | 306 | 16.7k | _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 | 16.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 16.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 | 16.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 | 16.7k | _parsed = true; | 326 | 16.7k | return Status::OK(); | 327 | 16.7k | } |
_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 | 2.63k | Status init() override { | 300 | 2.63k | CHECK(!_parsed); | 301 | 2.63k | size_t unused; | 302 | 2.63k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 2.63k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 2.63k | if (_data.size != | 306 | 2.63k | _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.63k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 2.63k | _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.63k | 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.63k | _parsed = true; | 326 | 2.63k | return Status::OK(); | 327 | 2.63k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 299 | 59.9k | Status init() override { | 300 | 59.9k | CHECK(!_parsed); | 301 | 59.9k | size_t unused; | 302 | 59.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 59.9k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 59.9k | if (_data.size != | 306 | 59.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 | 59.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 59.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 | 59.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 | 59.9k | _parsed = true; | 326 | 59.9k | return Status::OK(); | 327 | 59.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 299 | 68.2k | Status init() override { | 300 | 68.2k | CHECK(!_parsed); | 301 | 68.2k | size_t unused; | 302 | 68.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 68.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 68.2k | if (_data.size != | 306 | 68.2k | _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 | 68.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 68.2k | _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 | 68.2k | 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 | 68.2k | _parsed = true; | 326 | 68.2k | return Status::OK(); | 327 | 68.2k | } |
_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 | 3.16k | Status init() override { | 300 | 3.16k | CHECK(!_parsed); | 301 | 3.16k | size_t unused; | 302 | 3.16k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 3.16k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 3.16k | if (_data.size != | 306 | 3.16k | _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.16k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 3.16k | _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.16k | 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.16k | _parsed = true; | 326 | 3.16k | return Status::OK(); | 327 | 3.16k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 299 | 16.3k | Status init() override { | 300 | 16.3k | CHECK(!_parsed); | 301 | 16.3k | size_t unused; | 302 | 16.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 16.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 16.3k | if (_data.size != | 306 | 16.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 | 16.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 16.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 | 16.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 | 16.3k | _parsed = true; | 326 | 16.3k | return Status::OK(); | 327 | 16.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 299 | 1.37k | Status init() override { | 300 | 1.37k | CHECK(!_parsed); | 301 | 1.37k | size_t unused; | 302 | 1.37k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.37k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.37k | if (_data.size != | 306 | 1.37k | _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.37k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.37k | _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.37k | 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.37k | _parsed = true; | 326 | 1.37k | return Status::OK(); | 327 | 1.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 299 | 15.5k | Status init() override { | 300 | 15.5k | CHECK(!_parsed); | 301 | 15.5k | size_t unused; | 302 | 15.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 15.5k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 15.5k | if (_data.size != | 306 | 15.5k | _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.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 15.5k | _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.5k | 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.5k | _parsed = true; | 326 | 15.5k | return Status::OK(); | 327 | 15.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 299 | 41.6k | Status init() override { | 300 | 41.6k | CHECK(!_parsed); | 301 | 41.6k | size_t unused; | 302 | 41.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 41.6k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 41.6k | if (_data.size != | 306 | 41.6k | _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.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 41.6k | _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.6k | 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.6k | _parsed = true; | 326 | 41.6k | return Status::OK(); | 327 | 41.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 299 | 32.3k | Status init() override { | 300 | 32.3k | CHECK(!_parsed); | 301 | 32.3k | size_t unused; | 302 | 32.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 32.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 32.3k | if (_data.size != | 306 | 32.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 | 32.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 32.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 | 32.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 | 32.3k | _parsed = true; | 326 | 32.3k | return Status::OK(); | 327 | 32.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 299 | 1.77k | Status init() override { | 300 | 1.77k | CHECK(!_parsed); | 301 | 1.77k | size_t unused; | 302 | 1.77k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.77k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.77k | if (_data.size != | 306 | 1.77k | _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.77k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.77k | _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.77k | 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.77k | _parsed = true; | 326 | 1.77k | return Status::OK(); | 327 | 1.77k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 299 | 887 | Status init() override { | 300 | 887 | CHECK(!_parsed); | 301 | 887 | size_t unused; | 302 | 887 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 887 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 887 | if (_data.size != | 306 | 887 | _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 | 887 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 887 | _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 | 887 | 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 | 887 | _parsed = true; | 326 | 887 | return Status::OK(); | 327 | 887 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 299 | 934 | Status init() override { | 300 | 934 | CHECK(!_parsed); | 301 | 934 | size_t unused; | 302 | 934 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 934 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 934 | if (_data.size != | 306 | 934 | _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 | 934 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 934 | _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 | 934 | 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 | 934 | _parsed = true; | 326 | 934 | return Status::OK(); | 327 | 934 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 299 | 5.31k | Status init() override { | 300 | 5.31k | CHECK(!_parsed); | 301 | 5.31k | size_t unused; | 302 | 5.31k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 5.31k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 5.31k | if (_data.size != | 306 | 5.31k | _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.31k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 5.31k | _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.31k | 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.31k | _parsed = true; | 326 | 5.31k | return Status::OK(); | 327 | 5.31k | } |
|
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 | 2.98M | Status seek_to_position_in_page(size_t pos) override { |
336 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
337 | 2.98M | if (_num_elements == 0) [[unlikely]] { |
338 | 3.44k | 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 | 3.44k | } |
343 | | |
344 | 2.98M | DCHECK_LE(pos, _num_elements); |
345 | 2.98M | _cur_index = pos; |
346 | 2.98M | return Status::OK(); |
347 | 2.98M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 96.0k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 96.0k | if (_num_elements == 0) [[unlikely]] { | 338 | 358 | 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 | 358 | } | 343 | | | 344 | 96.0k | DCHECK_LE(pos, _num_elements); | 345 | 96.0k | _cur_index = pos; | 346 | 96.0k | return Status::OK(); | 347 | 96.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 3.78k | Status seek_to_position_in_page(size_t pos) override { | 336 | 3.78k | DCHECK(_parsed) << "Must call init()"; | 337 | 3.78k | 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 | 3.78k | DCHECK_LE(pos, _num_elements); | 345 | 3.78k | _cur_index = pos; | 346 | 3.78k | return Status::OK(); | 347 | 3.78k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.62M | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 1.62M | if (_num_elements == 0) [[unlikely]] { | 338 | 2.22k | 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.22k | } | 343 | | | 344 | 1.62M | DCHECK_LE(pos, _num_elements); | 345 | 1.62M | _cur_index = pos; | 346 | 1.62M | return Status::OK(); | 347 | 1.62M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 148k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 148k | if (_num_elements == 0) [[unlikely]] { | 338 | 241 | 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 | 241 | } | 343 | | | 344 | 148k | DCHECK_LE(pos, _num_elements); | 345 | 148k | _cur_index = pos; | 346 | 148k | return Status::OK(); | 347 | 148k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 5.33k | Status seek_to_position_in_page(size_t pos) override { | 336 | 5.33k | DCHECK(_parsed) << "Must call init()"; | 337 | 5.33k | 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 | 5.33k | DCHECK_LE(pos, _num_elements); | 345 | 5.33k | _cur_index = pos; | 346 | 5.33k | return Status::OK(); | 347 | 5.33k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 13.7k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 13.7k | 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 | 13.7k | DCHECK_LE(pos, _num_elements); | 345 | 13.7k | _cur_index = pos; | 346 | 13.7k | return Status::OK(); | 347 | 13.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 970 | Status seek_to_position_in_page(size_t pos) override { | 336 | 970 | DCHECK(_parsed) << "Must call init()"; | 337 | 970 | 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 | 970 | DCHECK_LE(pos, _num_elements); | 345 | 970 | _cur_index = pos; | 346 | 970 | return Status::OK(); | 347 | 970 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 2.48k | Status seek_to_position_in_page(size_t pos) override { | 336 | 2.48k | DCHECK(_parsed) << "Must call init()"; | 337 | 2.48k | if (_num_elements == 0) [[unlikely]] { | 338 | 5 | 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 | 5 | } | 343 | | | 344 | 2.48k | DCHECK_LE(pos, _num_elements); | 345 | 2.48k | _cur_index = pos; | 346 | 2.48k | return Status::OK(); | 347 | 2.48k | } |
_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 | 209k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 209k | 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 | 209k | DCHECK_LE(pos, _num_elements); | 345 | 209k | _cur_index = pos; | 346 | 209k | return Status::OK(); | 347 | 209k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 484k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 484k | 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 | 484k | DCHECK_LE(pos, _num_elements); | 345 | 484k | _cur_index = pos; | 346 | 484k | return Status::OK(); | 347 | 484k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 51.8k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 51.8k | 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 | 51.8k | DCHECK_LE(pos, _num_elements); | 345 | 51.8k | _cur_index = pos; | 346 | 51.8k | return Status::OK(); | 347 | 51.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.09k | Status seek_to_position_in_page(size_t pos) override { | 336 | 1.09k | 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 | 198k | Status seek_to_position_in_page(size_t pos) override { | 336 | 198k | DCHECK(_parsed) << "Must call init()"; | 337 | 198k | 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 | 198k | DCHECK_LE(pos, _num_elements); | 345 | 198k | _cur_index = pos; | 346 | 198k | return Status::OK(); | 347 | 198k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 7.26k | Status seek_to_position_in_page(size_t pos) override { | 336 | 7.26k | DCHECK(_parsed) << "Must call init()"; | 337 | 7.26k | if (_num_elements == 0) [[unlikely]] { | 338 | 350 | 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 | 350 | } | 343 | | | 344 | 7.26k | DCHECK_LE(pos, _num_elements); | 345 | 7.26k | _cur_index = pos; | 346 | 7.26k | return Status::OK(); | 347 | 7.26k | } |
_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 | 879 | Status seek_to_position_in_page(size_t pos) override { | 336 | 879 | DCHECK(_parsed) << "Must call init()"; | 337 | 879 | if (_num_elements == 0) [[unlikely]] { | 338 | 25 | 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 | 25 | } | 343 | | | 344 | 879 | DCHECK_LE(pos, _num_elements); | 345 | 879 | _cur_index = pos; | 346 | 879 | return Status::OK(); | 347 | 879 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 18.5k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.5k | DCHECK(_parsed) << "Must call init()"; | 337 | 18.5k | 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 | 18.5k | DCHECK_LE(pos, _num_elements); | 345 | 18.5k | _cur_index = pos; | 346 | 18.5k | return Status::OK(); | 347 | 18.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 114k | Status seek_to_position_in_page(size_t pos) override { | 336 | 114k | DCHECK(_parsed) << "Must call init()"; | 337 | 114k | 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 | 114k | DCHECK_LE(pos, _num_elements); | 345 | 114k | _cur_index = pos; | 346 | 114k | return Status::OK(); | 347 | 114k | } |
_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 | 3.60k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 3.60k | 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 | 3.60k | DCHECK_LE(pos, _num_elements); | 345 | 3.60k | _cur_index = pos; | 346 | 3.60k | return Status::OK(); | 347 | 3.60k | } |
|
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 | 69 | left = mid + 1; |
369 | 78 | } else { |
370 | 78 | right = mid; |
371 | 78 | } |
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 | 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 | } |
_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 | 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 | } |
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 | 23 | left = mid + 1; | 369 | 26 | } else { | 370 | 26 | right = mid; | 371 | 26 | } | 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 | 1.70M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
389 | 1.70M | DCHECK(_parsed); |
390 | 1.70M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
391 | 0 | *n = 0; |
392 | 0 | return Status::OK(); |
393 | 0 | } |
394 | | |
395 | 1.70M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
396 | | |
397 | 1.70M | StorageLayout<Type>::storage_to_column( |
398 | 1.70M | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); |
399 | 1.70M | *n = max_fetch; |
400 | 1.70M | if constexpr (forward_index) { |
401 | 1.64M | _cur_index += max_fetch; |
402 | 1.64M | } |
403 | | |
404 | 1.70M | return Status::OK(); |
405 | 1.70M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 179k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 179k | DCHECK(_parsed); | 390 | 179k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 179k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 179k | StorageLayout<Type>::storage_to_column( | 398 | 179k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 179k | *n = max_fetch; | 400 | 179k | if constexpr (forward_index) { | 401 | 179k | _cur_index += max_fetch; | 402 | 179k | } | 403 | | | 404 | 179k | return Status::OK(); | 405 | 179k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 15.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 15.8k | DCHECK(_parsed); | 390 | 15.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 15.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 15.8k | StorageLayout<Type>::storage_to_column( | 398 | 15.8k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 15.8k | *n = max_fetch; | 400 | 15.8k | if constexpr (forward_index) { | 401 | 15.8k | _cur_index += max_fetch; | 402 | 15.8k | } | 403 | | | 404 | 15.8k | return Status::OK(); | 405 | 15.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 531k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 531k | DCHECK(_parsed); | 390 | 532k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 531k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 531k | StorageLayout<Type>::storage_to_column( | 398 | 531k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 531k | *n = max_fetch; | 400 | 531k | if constexpr (forward_index) { | 401 | 531k | _cur_index += max_fetch; | 402 | 531k | } | 403 | | | 404 | 531k | return Status::OK(); | 405 | 531k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 133k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 133k | DCHECK(_parsed); | 390 | 133k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 133k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 133k | StorageLayout<Type>::storage_to_column( | 398 | 133k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 133k | *n = max_fetch; | 400 | 133k | if constexpr (forward_index) { | 401 | 133k | _cur_index += max_fetch; | 402 | 133k | } | 403 | | | 404 | 133k | return Status::OK(); | 405 | 133k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_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_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 94.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 94.2k | 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.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 94.2k | StorageLayout<Type>::storage_to_column( | 398 | 94.2k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 94.2k | *n = max_fetch; | 400 | 94.2k | if constexpr (forward_index) { | 401 | 94.2k | _cur_index += max_fetch; | 402 | 94.2k | } | 403 | | | 404 | 94.2k | return Status::OK(); | 405 | 94.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 53.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 53.8k | DCHECK(_parsed); | 390 | 53.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 53.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 53.8k | StorageLayout<Type>::storage_to_column( | 398 | 53.8k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 53.8k | *n = max_fetch; | 400 | | if constexpr (forward_index) { | 401 | | _cur_index += max_fetch; | 402 | | } | 403 | | | 404 | 53.8k | return Status::OK(); | 405 | 53.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 8.76k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 8.76k | DCHECK(_parsed); | 390 | 8.76k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 8.76k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 8.76k | StorageLayout<Type>::storage_to_column( | 398 | 8.76k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 8.76k | *n = max_fetch; | 400 | 8.76k | if constexpr (forward_index) { | 401 | 8.76k | _cur_index += max_fetch; | 402 | 8.76k | } | 403 | | | 404 | 8.76k | return Status::OK(); | 405 | 8.76k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 52.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 52.7k | DCHECK(_parsed); | 390 | 52.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 52.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 52.7k | StorageLayout<Type>::storage_to_column( | 398 | 52.7k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 52.7k | *n = max_fetch; | 400 | 52.7k | if constexpr (forward_index) { | 401 | 52.7k | _cur_index += max_fetch; | 402 | 52.7k | } | 403 | | | 404 | 52.7k | return Status::OK(); | 405 | 52.7k | } |
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 | 4.40k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 4.40k | DCHECK(_parsed); | 390 | 4.41k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 4.40k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 4.40k | StorageLayout<Type>::storage_to_column( | 398 | 4.40k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 4.40k | *n = max_fetch; | 400 | 4.40k | if constexpr (forward_index) { | 401 | 4.40k | _cur_index += max_fetch; | 402 | 4.40k | } | 403 | | | 404 | 4.40k | return Status::OK(); | 405 | 4.40k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 356k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 356k | DCHECK(_parsed); | 390 | 356k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 356k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 356k | StorageLayout<Type>::storage_to_column( | 398 | 356k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 356k | *n = max_fetch; | 400 | 356k | if constexpr (forward_index) { | 401 | 356k | _cur_index += max_fetch; | 402 | 356k | } | 403 | | | 404 | 356k | return Status::OK(); | 405 | 356k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 63.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 63.8k | DCHECK(_parsed); | 390 | 63.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 63.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 63.8k | StorageLayout<Type>::storage_to_column( | 398 | 63.8k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 63.8k | *n = max_fetch; | 400 | 63.8k | if constexpr (forward_index) { | 401 | 63.8k | _cur_index += max_fetch; | 402 | 63.8k | } | 403 | | | 404 | 63.8k | return Status::OK(); | 405 | 63.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.85k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.85k | DCHECK(_parsed); | 390 | 1.85k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.85k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.85k | StorageLayout<Type>::storage_to_column( | 398 | 1.85k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.85k | *n = max_fetch; | 400 | 1.85k | if constexpr (forward_index) { | 401 | 1.85k | _cur_index += max_fetch; | 402 | 1.85k | } | 403 | | | 404 | 1.85k | return Status::OK(); | 405 | 1.85k | } |
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.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.26k | DCHECK(_parsed); | 390 | 1.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.26k | StorageLayout<Type>::storage_to_column( | 398 | 1.26k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.26k | *n = max_fetch; | 400 | 1.26k | if constexpr (forward_index) { | 401 | 1.26k | _cur_index += max_fetch; | 402 | 1.26k | } | 403 | | | 404 | 1.26k | return Status::OK(); | 405 | 1.26k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 7.96k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 7.96k | DCHECK(_parsed); | 390 | 7.96k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 7.96k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 7.96k | StorageLayout<Type>::storage_to_column( | 398 | 7.96k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 7.96k | *n = max_fetch; | 400 | 7.96k | if constexpr (forward_index) { | 401 | 7.96k | _cur_index += max_fetch; | 402 | 7.96k | } | 403 | | | 404 | 7.96k | return Status::OK(); | 405 | 7.96k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46.3k | DCHECK(_parsed); | 390 | 46.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46.3k | StorageLayout<Type>::storage_to_column( | 398 | 46.3k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46.3k | *n = max_fetch; | 400 | 46.3k | if constexpr (forward_index) { | 401 | 46.3k | _cur_index += max_fetch; | 402 | 46.3k | } | 403 | | | 404 | 46.3k | return Status::OK(); | 405 | 46.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 22.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 22.3k | DCHECK(_parsed); | 390 | 22.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 22.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 22.3k | StorageLayout<Type>::storage_to_column( | 398 | 22.3k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 22.3k | *n = max_fetch; | 400 | 22.3k | if constexpr (forward_index) { | 401 | 22.3k | _cur_index += max_fetch; | 402 | 22.3k | } | 403 | | | 404 | 22.3k | return Status::OK(); | 405 | 22.3k | } |
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.18k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 3.18k | DCHECK(_parsed); | 390 | 3.18k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 3.18k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 3.18k | StorageLayout<Type>::storage_to_column( | 398 | 3.18k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 3.18k | *n = max_fetch; | 400 | 3.18k | if constexpr (forward_index) { | 401 | 3.18k | _cur_index += max_fetch; | 402 | 3.18k | } | 403 | | | 404 | 3.18k | return Status::OK(); | 405 | 3.18k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 626 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 626 | DCHECK(_parsed); | 390 | 626 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 626 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 626 | StorageLayout<Type>::storage_to_column( | 398 | 626 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 626 | *n = max_fetch; | 400 | 626 | if constexpr (forward_index) { | 401 | 626 | _cur_index += max_fetch; | 402 | 626 | } | 403 | | | 404 | 626 | return Status::OK(); | 405 | 626 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 653 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 653 | DCHECK(_parsed); | 390 | 653 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 653 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 653 | StorageLayout<Type>::storage_to_column( | 398 | 653 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 653 | *n = max_fetch; | 400 | 653 | if constexpr (forward_index) { | 401 | 653 | _cur_index += max_fetch; | 402 | 653 | } | 403 | | | 404 | 653 | return Status::OK(); | 405 | 653 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 97.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 97.0k | DCHECK(_parsed); | 390 | 97.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 97.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 97.0k | StorageLayout<Type>::storage_to_column( | 398 | 97.0k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 97.0k | *n = max_fetch; | 400 | 97.0k | if constexpr (forward_index) { | 401 | 97.0k | _cur_index += max_fetch; | 402 | 97.0k | } | 403 | | | 404 | 97.0k | return Status::OK(); | 405 | 97.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
406 | | |
407 | 1.64M | 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 | 179k | 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 | 15.8k | 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 | 532k | 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 | 133k | 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 | 14.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 | 94.2k | 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 | 8.76k | 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 | 52.4k | 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 | 4.41k | 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 | 356k | 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 | 63.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.85k | 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.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 7.96k | 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 | 46.3k | 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 | 22.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 3.18k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 628 | 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 | 653 | 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 | 97.1k | 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 | 506k | MutableColumnPtr& dst) override { |
411 | 506k | DCHECK(_parsed); |
412 | 506k | if (*n == 0) [[unlikely]] { |
413 | 0 | *n = 0; |
414 | 0 | return Status::OK(); |
415 | 0 | } |
416 | | |
417 | 506k | auto total = *n; |
418 | 506k | auto read_count = 0; |
419 | 506k | _buffer.resize(total); |
420 | 64.1M | for (size_t i = 0; i < total; ++i) { |
421 | 63.6M | ordinal_t ord = rowids[i] - page_first_ordinal; |
422 | 63.6M | if (UNLIKELY(ord >= _num_elements)) { |
423 | 9.26k | break; |
424 | 9.26k | } |
425 | | |
426 | 63.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
427 | 63.5M | } |
428 | | |
429 | 506k | if (LIKELY(read_count > 0)) { |
430 | 506k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), |
431 | 506k | read_count, *dst); |
432 | 506k | } |
433 | | |
434 | 506k | *n = read_count; |
435 | 506k | return Status::OK(); |
436 | 506k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 47.9k | MutableColumnPtr& dst) override { | 411 | 47.9k | DCHECK(_parsed); | 412 | 47.9k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 47.9k | auto total = *n; | 418 | 47.9k | auto read_count = 0; | 419 | 47.9k | _buffer.resize(total); | 420 | 923k | for (size_t i = 0; i < total; ++i) { | 421 | 875k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 875k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 13 | break; | 424 | 13 | } | 425 | | | 426 | 875k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 875k | } | 428 | | | 429 | 48.0k | if (LIKELY(read_count > 0)) { | 430 | 48.0k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 48.0k | read_count, *dst); | 432 | 48.0k | } | 433 | | | 434 | 47.9k | *n = read_count; | 435 | 47.9k | return Status::OK(); | 436 | 47.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 8.44k | MutableColumnPtr& dst) override { | 411 | 8.44k | DCHECK(_parsed); | 412 | 8.44k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 8.44k | auto total = *n; | 418 | 8.44k | auto read_count = 0; | 419 | 8.44k | _buffer.resize(total); | 420 | 84.0k | for (size_t i = 0; i < total; ++i) { | 421 | 75.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 75.5k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 75.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 75.5k | } | 428 | | | 429 | 8.45k | if (LIKELY(read_count > 0)) { | 430 | 8.45k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 8.45k | read_count, *dst); | 432 | 8.45k | } | 433 | | | 434 | 8.44k | *n = read_count; | 435 | 8.44k | return Status::OK(); | 436 | 8.44k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 88.3k | MutableColumnPtr& dst) override { | 411 | 88.3k | DCHECK(_parsed); | 412 | 88.3k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 88.3k | auto total = *n; | 418 | 88.3k | auto read_count = 0; | 419 | 88.3k | _buffer.resize(total); | 420 | 8.00M | for (size_t i = 0; i < total; ++i) { | 421 | 7.91M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 7.91M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 863 | break; | 424 | 863 | } | 425 | | | 426 | 7.91M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 7.91M | } | 428 | | | 429 | 88.4k | if (LIKELY(read_count > 0)) { | 430 | 88.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 88.4k | read_count, *dst); | 432 | 88.4k | } | 433 | | | 434 | 88.3k | *n = read_count; | 435 | 88.3k | return Status::OK(); | 436 | 88.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 148k | MutableColumnPtr& dst) override { | 411 | 148k | DCHECK(_parsed); | 412 | 148k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 148k | auto total = *n; | 418 | 148k | auto read_count = 0; | 419 | 148k | _buffer.resize(total); | 420 | 4.01M | for (size_t i = 0; i < total; ++i) { | 421 | 3.86M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 3.86M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 679 | break; | 424 | 679 | } | 425 | | | 426 | 3.86M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 3.86M | } | 428 | | | 429 | 148k | if (LIKELY(read_count > 0)) { | 430 | 148k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 148k | read_count, *dst); | 432 | 148k | } | 433 | | | 434 | 148k | *n = read_count; | 435 | 148k | return Status::OK(); | 436 | 148k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 7.94k | MutableColumnPtr& dst) override { | 411 | 7.94k | DCHECK(_parsed); | 412 | 7.94k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 7.94k | auto total = *n; | 418 | 7.94k | auto read_count = 0; | 419 | 7.94k | _buffer.resize(total); | 420 | 18.9k | for (size_t i = 0; i < total; ++i) { | 421 | 10.9k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 10.9k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 10.9k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 10.9k | } | 428 | | | 429 | 7.95k | if (LIKELY(read_count > 0)) { | 430 | 7.95k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 7.95k | read_count, *dst); | 432 | 7.95k | } | 433 | | | 434 | 7.94k | *n = read_count; | 435 | 7.94k | return Status::OK(); | 436 | 7.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 63.3k | MutableColumnPtr& dst) override { | 411 | 63.3k | DCHECK(_parsed); | 412 | 63.3k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 63.3k | auto total = *n; | 418 | 63.3k | auto read_count = 0; | 419 | 63.3k | _buffer.resize(total); | 420 | 683k | for (size_t i = 0; i < total; ++i) { | 421 | 620k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 620k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 12 | break; | 424 | 12 | } | 425 | | | 426 | 620k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 620k | } | 428 | | | 429 | 63.3k | if (LIKELY(read_count > 0)) { | 430 | 63.3k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 63.3k | read_count, *dst); | 432 | 63.3k | } | 433 | | | 434 | 63.3k | *n = read_count; | 435 | 63.3k | return Status::OK(); | 436 | 63.3k | } |
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.27k | MutableColumnPtr& dst) override { | 411 | 5.27k | DCHECK(_parsed); | 412 | 5.27k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 5.27k | auto total = *n; | 418 | 5.27k | auto read_count = 0; | 419 | 5.27k | _buffer.resize(total); | 420 | 20.1k | for (size_t i = 0; i < total; ++i) { | 421 | 14.9k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.9k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 14.9k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.9k | } | 428 | | | 429 | 5.27k | if (LIKELY(read_count > 0)) { | 430 | 5.27k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 5.27k | read_count, *dst); | 432 | 5.27k | } | 433 | | | 434 | 5.27k | *n = read_count; | 435 | 5.27k | return Status::OK(); | 436 | 5.27k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 7.76k | MutableColumnPtr& dst) override { | 411 | 7.76k | DCHECK(_parsed); | 412 | 7.76k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 7.76k | auto total = *n; | 418 | 7.76k | auto read_count = 0; | 419 | 7.76k | _buffer.resize(total); | 420 | 389k | for (size_t i = 0; i < total; ++i) { | 421 | 381k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 381k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 85 | break; | 424 | 85 | } | 425 | | | 426 | 381k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 381k | } | 428 | | | 429 | 7.76k | if (LIKELY(read_count > 0)) { | 430 | 7.76k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 7.76k | read_count, *dst); | 432 | 7.76k | } | 433 | | | 434 | 7.76k | *n = read_count; | 435 | 7.76k | return Status::OK(); | 436 | 7.76k | } |
_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.47k | MutableColumnPtr& dst) override { | 411 | 1.47k | DCHECK(_parsed); | 412 | 1.47k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.47k | auto total = *n; | 418 | 1.47k | auto read_count = 0; | 419 | 1.47k | _buffer.resize(total); | 420 | 504k | for (size_t i = 0; i < total; ++i) { | 421 | 503k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 503k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 14 | break; | 424 | 14 | } | 425 | | | 426 | 503k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 503k | } | 428 | | | 429 | 1.47k | 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.47k | *n = read_count; | 435 | 1.47k | return Status::OK(); | 436 | 1.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 29.2k | MutableColumnPtr& dst) override { | 411 | 29.2k | DCHECK(_parsed); | 412 | 29.2k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 29.2k | auto total = *n; | 418 | 29.2k | auto read_count = 0; | 419 | 29.2k | _buffer.resize(total); | 420 | 7.64M | for (size_t i = 0; i < total; ++i) { | 421 | 7.61M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 7.61M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 672 | break; | 424 | 672 | } | 425 | | | 426 | 7.61M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 7.61M | } | 428 | | | 429 | 29.2k | if (LIKELY(read_count > 0)) { | 430 | 29.2k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 29.2k | read_count, *dst); | 432 | 29.2k | } | 433 | | | 434 | 29.2k | *n = read_count; | 435 | 29.2k | return Status::OK(); | 436 | 29.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 32.5k | MutableColumnPtr& dst) override { | 411 | 32.5k | DCHECK(_parsed); | 412 | 32.5k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 32.5k | auto total = *n; | 418 | 32.5k | auto read_count = 0; | 419 | 32.5k | _buffer.resize(total); | 420 | 10.4M | for (size_t i = 0; i < total; ++i) { | 421 | 10.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 10.4M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 163 | break; | 424 | 163 | } | 425 | | | 426 | 10.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 10.4M | } | 428 | | | 429 | 32.6k | if (LIKELY(read_count > 0)) { | 430 | 32.6k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 32.6k | read_count, *dst); | 432 | 32.6k | } | 433 | | | 434 | 32.5k | *n = read_count; | 435 | 32.5k | return Status::OK(); | 436 | 32.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.23k | MutableColumnPtr& dst) override { | 411 | 1.23k | DCHECK(_parsed); | 412 | 1.23k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.23k | auto total = *n; | 418 | 1.23k | auto read_count = 0; | 419 | 1.23k | _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.23k | *n = read_count; | 435 | 1.23k | return Status::OK(); | 436 | 1.23k | } |
_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 | 501k | for (size_t i = 0; i < total; ++i) { | 421 | 499k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 499k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 241 | break; | 424 | 241 | } | 425 | | | 426 | 499k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 499k | } | 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.7k | MutableColumnPtr& dst) override { | 411 | 12.7k | DCHECK(_parsed); | 412 | 12.7k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 12.7k | auto total = *n; | 418 | 12.7k | auto read_count = 0; | 419 | 12.7k | _buffer.resize(total); | 420 | 27.2k | 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 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.4k | } | 428 | | | 429 | 12.7k | if (LIKELY(read_count > 0)) { | 430 | 12.7k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 12.7k | read_count, *dst); | 432 | 12.7k | } | 433 | | | 434 | 12.7k | *n = read_count; | 435 | 12.7k | return Status::OK(); | 436 | 12.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 166 | MutableColumnPtr& dst) override { | 411 | 166 | DCHECK(_parsed); | 412 | 166 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 166 | auto total = *n; | 418 | 166 | auto read_count = 0; | 419 | 166 | _buffer.resize(total); | 420 | 476 | for (size_t i = 0; i < total; ++i) { | 421 | 312 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 312 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 2 | break; | 424 | 2 | } | 425 | | | 426 | 310 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 310 | } | 428 | | | 429 | 166 | if (LIKELY(read_count > 0)) { | 430 | 166 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 166 | read_count, *dst); | 432 | 166 | } | 433 | | | 434 | 166 | *n = read_count; | 435 | 166 | return Status::OK(); | 436 | 166 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 4.60k | MutableColumnPtr& dst) override { | 411 | 4.60k | DCHECK(_parsed); | 412 | 4.60k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 4.60k | auto total = *n; | 418 | 4.60k | auto read_count = 0; | 419 | 4.60k | _buffer.resize(total); | 420 | 19.1k | 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 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.5k | } | 428 | | | 429 | 4.60k | if (LIKELY(read_count > 0)) { | 430 | 4.60k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 4.60k | read_count, *dst); | 432 | 4.60k | } | 433 | | | 434 | 4.60k | *n = read_count; | 435 | 4.60k | return Status::OK(); | 436 | 4.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 28.9k | MutableColumnPtr& dst) override { | 411 | 28.9k | DCHECK(_parsed); | 412 | 28.9k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 28.9k | auto total = *n; | 418 | 28.9k | auto read_count = 0; | 419 | 28.9k | _buffer.resize(total); | 420 | 21.6M | for (size_t i = 0; i < total; ++i) { | 421 | 21.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 21.6M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 5.80k | break; | 424 | 5.80k | } | 425 | | | 426 | 21.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 21.6M | } | 428 | | | 429 | 29.0k | if (LIKELY(read_count > 0)) { | 430 | 29.0k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 29.0k | read_count, *dst); | 432 | 29.0k | } | 433 | | | 434 | 28.9k | *n = read_count; | 435 | 28.9k | return Status::OK(); | 436 | 28.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 13.4k | MutableColumnPtr& dst) override { | 411 | 13.4k | DCHECK(_parsed); | 412 | 13.4k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 13.4k | auto total = *n; | 418 | 13.4k | auto read_count = 0; | 419 | 13.4k | _buffer.resize(total); | 420 | 9.14M | for (size_t i = 0; i < total; ++i) { | 421 | 9.13M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 9.13M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 698 | break; | 424 | 698 | } | 425 | | | 426 | 9.12M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 9.12M | } | 428 | | | 429 | 13.4k | if (LIKELY(read_count > 0)) { | 430 | 13.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 13.4k | read_count, *dst); | 432 | 13.4k | } | 433 | | | 434 | 13.4k | *n = read_count; | 435 | 13.4k | return Status::OK(); | 436 | 13.4k | } |
_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 | 303 | MutableColumnPtr& dst) override { | 411 | 303 | DCHECK(_parsed); | 412 | 303 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 303 | auto total = *n; | 418 | 303 | auto read_count = 0; | 419 | 303 | _buffer.resize(total); | 420 | 1.00k | for (size_t i = 0; i < total; ++i) { | 421 | 699 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 699 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 699 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 699 | } | 428 | | | 429 | 303 | if (LIKELY(read_count > 0)) { | 430 | 303 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 303 | read_count, *dst); | 432 | 303 | } | 433 | | | 434 | 303 | *n = read_count; | 435 | 303 | return Status::OK(); | 436 | 303 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 340 | MutableColumnPtr& dst) override { | 411 | 340 | DCHECK(_parsed); | 412 | 340 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 340 | auto total = *n; | 418 | 340 | auto read_count = 0; | 419 | 340 | _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 | 340 | if (LIKELY(read_count > 0)) { | 430 | 340 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 340 | read_count, *dst); | 432 | 340 | } | 433 | | | 434 | 340 | *n = read_count; | 435 | 340 | return Status::OK(); | 436 | 340 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 517 | MutableColumnPtr& dst) override { | 411 | 517 | DCHECK(_parsed); | 412 | 517 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 517 | auto total = *n; | 418 | 517 | auto read_count = 0; | 419 | 517 | _buffer.resize(total); | 420 | 1.29k | 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 | 517 | if (LIKELY(read_count > 0)) { | 430 | 517 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 517 | read_count, *dst); | 432 | 517 | } | 433 | | | 434 | 517 | *n = read_count; | 435 | 517 | return Status::OK(); | 436 | 517 | } |
|
437 | | |
438 | 53.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
439 | 53.9k | return next_batch<false>(n, dst); |
440 | 53.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 | 53.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 439 | 53.9k | return next_batch<false>(n, dst); | 440 | 53.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 | 2.64M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 444 | 1.41k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 444 | 995 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 444 | 1.68M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 444 | 192k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 444 | 518 | 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 | 605 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 444 | 2.62k | 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 | 205k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 444 | 223k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 444 | 24.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 444 | 320 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 444 | 196k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 444 | 1.20k | 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.59k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 444 | 1.07k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 444 | 107k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 444 | 368 | 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 | 785 | size_t current_index() const override { return _cur_index; } |
|
445 | | |
446 | 66.7M | char* get_data(size_t index) const { |
447 | 66.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
448 | 66.7M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 446 | 1.05M | char* get_data(size_t index) const { | 447 | 1.05M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.05M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 446 | 91.4k | char* get_data(size_t index) const { | 447 | 91.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 91.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 446 | 9.86M | char* get_data(size_t index) const { | 447 | 9.86M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 9.86M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 446 | 4.00M | char* get_data(size_t index) const { | 447 | 4.00M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 4.00M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 446 | 25.5k | char* get_data(size_t index) const { | 447 | 25.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 25.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 446 | 768k | char* get_data(size_t index) const { | 447 | 768k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 768k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 446 | 23.7k | char* get_data(size_t index) const { | 447 | 23.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 23.7k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 446 | 434k | char* get_data(size_t index) const { | 447 | 434k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 434k | } |
_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 | 507k | char* get_data(size_t index) const { | 447 | 507k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 507k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 446 | 7.96M | char* get_data(size_t index) const { | 447 | 7.96M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 7.96M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 446 | 10.4M | char* get_data(size_t index) const { | 447 | 10.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 10.4M | } |
_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 | 501k | char* get_data(size_t index) const { | 447 | 501k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 501k | } |
_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.63k | char* get_data(size_t index) const { | 447 | 1.63k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.63k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 446 | 22.4k | char* get_data(size_t index) const { | 447 | 22.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 22.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 446 | 21.6M | char* get_data(size_t index) const { | 447 | 21.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 21.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 446 | 9.15M | char* get_data(size_t index) const { | 447 | 9.15M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 9.15M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 446 | 5.17k | char* get_data(size_t index) const { | 447 | 5.17k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 5.17k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 446 | 1.32k | char* get_data(size_t index) const { | 447 | 1.32k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.32k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 446 | 1.66k | char* get_data(size_t index) const { | 447 | 1.66k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.66k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 446 | 97.7k | char* get_data(size_t index) const { | 447 | 97.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 97.7k | } |
|
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 |