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 | 701k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 47.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 9.36k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 365k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 52.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 13.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 66.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 96 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 7.01k | 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 | 344 | 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.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 96 | 339 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 438 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.71k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 338 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.63k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 17.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.20k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 671 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 669 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 96 | 586 | Status init() override { return reset(); } |
|
97 | | |
98 | 164M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 48.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 11.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 164M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 162k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 12.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 66.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 6.15k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 18.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 98 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 98 | 450 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 46.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 44.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 98 | 338 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 568 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.74k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 314 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.17k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 30.7k | 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 | 630 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 653 | 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.25M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.25M | return add_internal<false>(vals, count); |
102 | 1.25M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 48.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 48.9k | return add_internal<false>(vals, count); | 102 | 48.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 11.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.1k | return add_internal<false>(vals, count); | 102 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 744k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 744k | return add_internal<false>(vals, count); | 102 | 744k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 162k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 162k | return add_internal<false>(vals, count); | 102 | 162k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 12.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 12.4k | return add_internal<false>(vals, count); | 102 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 66.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 66.4k | return add_internal<false>(vals, count); | 102 | 66.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 6.15k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 6.15k | return add_internal<false>(vals, count); | 102 | 6.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 18.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 18.8k | return add_internal<false>(vals, count); | 102 | 18.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 100 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 194 | return add_internal<false>(vals, count); | 102 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 452 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 452 | return add_internal<false>(vals, count); | 102 | 452 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 46.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 46.7k | return add_internal<false>(vals, count); | 102 | 46.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 44.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 44.0k | return add_internal<false>(vals, count); | 102 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 100 | 338 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 338 | return add_internal<false>(vals, count); | 102 | 338 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 568 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 568 | return add_internal<false>(vals, count); | 102 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.74k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.74k | return add_internal<false>(vals, count); | 102 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 315 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 315 | return add_internal<false>(vals, count); | 102 | 315 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.17k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.17k | return add_internal<false>(vals, count); | 102 | 5.17k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 30.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 30.7k | return add_internal<false>(vals, count); | 102 | 30.7k | } |
_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 | 630 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 630 | return add_internal<false>(vals, count); | 102 | 630 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 653 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 653 | return add_internal<false>(vals, count); | 102 | 653 | } |
_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 | 162M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 162M | return add_internal<true>(vals, count); |
106 | 162M | } |
107 | | |
108 | | template <bool single> |
109 | 160M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 160M | DCHECK(!_finished); |
111 | 160M | 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 | 160M | uint32_t to_add = cast_set<UInt32>( |
127 | 160M | 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 | 160M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 160M | 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 | 160M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 164M | _count += to_add; |
135 | 164M | _remain_element_capacity -= to_add; |
136 | 164M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 164M | *num_written = to_add; |
139 | 164M | 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 | 163M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 163M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 163M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 163M | 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 | 163M | } |
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 | 164M | return Status::OK(); |
160 | 160M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 48.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 48.9k | DCHECK(!_finished); | 111 | 48.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 | 48.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 48.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 | 48.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 48.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 | 48.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 48.9k | _count += to_add; | 135 | 48.9k | _remain_element_capacity -= to_add; | 136 | 48.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 48.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 | 48.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 48.9k | return Status::OK(); | 160 | 48.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.1k | DCHECK(!_finished); | 111 | 11.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 | 11.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.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 | 11.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.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 | 11.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.1k | _count += to_add; | 135 | 11.1k | _remain_element_capacity -= to_add; | 136 | 11.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.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 | 11.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.1k | return Status::OK(); | 160 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 744k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 744k | DCHECK(!_finished); | 111 | 744k | 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 | 744k | uint32_t to_add = cast_set<UInt32>( | 127 | 744k | 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 | 744k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 744k | 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 | 744k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 744k | _count += to_add; | 135 | 744k | _remain_element_capacity -= to_add; | 136 | 744k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 744k | *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 | 744k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 744k | return Status::OK(); | 160 | 744k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 162k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 162k | DCHECK(!_finished); | 111 | 162k | 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 | 162k | uint32_t to_add = cast_set<UInt32>( | 127 | 162k | 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 | 162k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 162k | 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 | 162k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 162k | _count += to_add; | 135 | 162k | _remain_element_capacity -= to_add; | 136 | 162k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 162k | *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 | 162k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 162k | return Status::OK(); | 160 | 162k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 12.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 12.4k | DCHECK(!_finished); | 111 | 12.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 12.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 12.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 12.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 12.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 12.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 12.4k | _count += to_add; | 135 | 12.4k | _remain_element_capacity -= to_add; | 136 | 12.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 12.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 | 12.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 12.4k | return Status::OK(); | 160 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 66.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 66.4k | DCHECK(!_finished); | 111 | 66.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 66.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 66.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 66.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 66.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 66.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 66.4k | _count += to_add; | 135 | 66.4k | _remain_element_capacity -= to_add; | 136 | 66.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 66.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 | 66.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 66.4k | return Status::OK(); | 160 | 66.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 6.15k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 6.15k | DCHECK(!_finished); | 111 | 6.15k | 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 | 6.15k | uint32_t to_add = cast_set<UInt32>( | 127 | 6.15k | 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 | 6.15k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 6.15k | 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 | 6.15k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 6.15k | _count += to_add; | 135 | 6.15k | _remain_element_capacity -= to_add; | 136 | 6.15k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 6.15k | *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 | 6.15k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 6.15k | return Status::OK(); | 160 | 6.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 18.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 18.8k | DCHECK(!_finished); | 111 | 18.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 | 18.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 18.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 | 18.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 18.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 | 18.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 18.9k | _count += to_add; | 135 | 18.9k | _remain_element_capacity -= to_add; | 136 | 18.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 18.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 | 18.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 18.9k | return Status::OK(); | 160 | 18.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 194 | DCHECK(!_finished); | 111 | 194 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 194 | uint32_t to_add = cast_set<UInt32>( | 127 | 194 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 194 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 194 | _count += to_add; | 135 | 194 | _remain_element_capacity -= to_add; | 136 | 194 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 194 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 194 | return Status::OK(); | 160 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 452 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 452 | DCHECK(!_finished); | 111 | 452 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 452 | uint32_t to_add = cast_set<UInt32>( | 127 | 452 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 452 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 452 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 452 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 452 | _count += to_add; | 135 | 452 | _remain_element_capacity -= to_add; | 136 | 452 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 452 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 452 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 452 | return Status::OK(); | 160 | 452 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 46.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 46.7k | DCHECK(!_finished); | 111 | 46.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 | 46.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 46.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 | 46.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 46.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 | 46.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 46.7k | _count += to_add; | 135 | 46.7k | _remain_element_capacity -= to_add; | 136 | 46.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 46.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 | 46.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 46.7k | return Status::OK(); | 160 | 46.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 44.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 44.0k | DCHECK(!_finished); | 111 | 44.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 | 44.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 44.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 | 44.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 44.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 | 44.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 44.0k | _count += to_add; | 135 | 44.0k | _remain_element_capacity -= to_add; | 136 | 44.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 44.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 | 44.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 44.0k | return Status::OK(); | 160 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 338 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 338 | DCHECK(!_finished); | 111 | 338 | 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 | 338 | uint32_t to_add = cast_set<UInt32>( | 127 | 338 | 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 | 338 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 338 | 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 | 338 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 338 | _count += to_add; | 135 | 338 | _remain_element_capacity -= to_add; | 136 | 338 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 338 | *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 | 338 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 338 | return Status::OK(); | 160 | 338 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 568 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 568 | DCHECK(!_finished); | 111 | 568 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 568 | uint32_t to_add = cast_set<UInt32>( | 127 | 568 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 568 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 568 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 568 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 568 | _count += to_add; | 135 | 568 | _remain_element_capacity -= to_add; | 136 | 568 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 568 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 568 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 568 | return Status::OK(); | 160 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.74k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.74k | DCHECK(!_finished); | 111 | 7.74k | 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.74k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.74k | 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.74k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.74k | 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.74k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.74k | _count += to_add; | 135 | 7.74k | _remain_element_capacity -= to_add; | 136 | 7.74k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.74k | *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.74k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.74k | return Status::OK(); | 160 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 315 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 315 | DCHECK(!_finished); | 111 | 315 | 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 | 315 | uint32_t to_add = cast_set<UInt32>( | 127 | 315 | 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 | 315 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 315 | 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 | 315 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 315 | _count += to_add; | 135 | 315 | _remain_element_capacity -= to_add; | 136 | 315 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 315 | *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 | 315 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 315 | return Status::OK(); | 160 | 315 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.17k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.17k | DCHECK(!_finished); | 111 | 5.17k | 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.17k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.17k | 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.17k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.17k | 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.17k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.17k | _count += to_add; | 135 | 5.17k | _remain_element_capacity -= to_add; | 136 | 5.17k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.17k | *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.17k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.17k | return Status::OK(); | 160 | 5.17k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 30.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 30.7k | DCHECK(!_finished); | 111 | 30.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 | 30.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 30.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 | 30.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 30.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 | 30.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 30.7k | _count += to_add; | 135 | 30.7k | _remain_element_capacity -= to_add; | 136 | 30.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 30.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 | 30.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 30.7k | return Status::OK(); | 160 | 30.7k | } |
_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 | 630 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 630 | DCHECK(!_finished); | 111 | 630 | 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 | 630 | uint32_t to_add = cast_set<UInt32>( | 127 | 630 | 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 | 630 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 630 | 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 | 630 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 630 | _count += to_add; | 135 | 630 | _remain_element_capacity -= to_add; | 136 | 630 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 630 | *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 | 630 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 630 | return Status::OK(); | 160 | 630 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 653 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 653 | DCHECK(!_finished); | 111 | 653 | 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 | 653 | uint32_t to_add = cast_set<UInt32>( | 127 | 653 | 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 | 653 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 653 | 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 | 653 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 653 | _count += to_add; | 135 | 653 | _remain_element_capacity -= to_add; | 136 | 653 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 653 | *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 | 653 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 653 | return Status::OK(); | 160 | 653 | } |
_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 | 159M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 159M | DCHECK(!_finished); | 111 | 159M | 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 | 159M | uint32_t to_add = cast_set<UInt32>( | 127 | 159M | 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 | 159M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 159M | 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 | 159M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 163M | _count += to_add; | 135 | 163M | _remain_element_capacity -= to_add; | 136 | 163M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 163M | *num_written = to_add; | 139 | 163M | 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 | 163M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 163M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 163M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 163M | 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 | 163M | } | 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 | 163M | return Status::OK(); | 160 | 159M | } |
|
161 | | |
162 | 697k | Status finish(OwnedSlice* slice) override { |
163 | 697k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
164 | 697k | return Status::OK(); |
165 | 697k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 45.9k | Status finish(OwnedSlice* slice) override { | 163 | 45.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 45.9k | return Status::OK(); | 165 | 45.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.47k | Status finish(OwnedSlice* slice) override { | 163 | 8.47k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 8.47k | return Status::OK(); | 165 | 8.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 353k | Status finish(OwnedSlice* slice) override { | 163 | 353k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 353k | return Status::OK(); | 165 | 353k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 55.5k | Status finish(OwnedSlice* slice) override { | 163 | 55.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 55.5k | return Status::OK(); | 165 | 55.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 12.6k | Status finish(OwnedSlice* slice) override { | 163 | 12.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 12.6k | return Status::OK(); | 165 | 12.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 66.1k | Status finish(OwnedSlice* slice) override { | 163 | 66.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 66.1k | return Status::OK(); | 165 | 66.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6.14k | Status finish(OwnedSlice* slice) override { | 163 | 6.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 6.14k | return Status::OK(); | 165 | 6.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.40k | Status finish(OwnedSlice* slice) override { | 163 | 8.40k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 8.40k | return Status::OK(); | 165 | 8.40k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6 | Status finish(OwnedSlice* slice) override { | 163 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 6 | return Status::OK(); | 165 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 375 | Status finish(OwnedSlice* slice) override { | 163 | 375 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 375 | return Status::OK(); | 165 | 375 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 38.4k | Status finish(OwnedSlice* slice) override { | 163 | 38.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 38.4k | return Status::OK(); | 165 | 38.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.2k | Status finish(OwnedSlice* slice) override { | 163 | 43.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 43.2k | return Status::OK(); | 165 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 280 | Status finish(OwnedSlice* slice) override { | 163 | 280 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 280 | return Status::OK(); | 165 | 280 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 605 | Status finish(OwnedSlice* slice) override { | 163 | 605 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 604 | return Status::OK(); | 165 | 605 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.78k | Status finish(OwnedSlice* slice) override { | 163 | 7.78k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 7.78k | return Status::OK(); | 165 | 7.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 264 | Status finish(OwnedSlice* slice) override { | 163 | 264 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 264 | return Status::OK(); | 165 | 264 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.63k | Status finish(OwnedSlice* slice) override { | 163 | 9.63k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 9.64k | return Status::OK(); | 165 | 9.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.9k | Status finish(OwnedSlice* slice) override { | 163 | 19.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 19.9k | return Status::OK(); | 165 | 19.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 17.1k | Status finish(OwnedSlice* slice) override { | 163 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 17.1k | return Status::OK(); | 165 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.14k | Status finish(OwnedSlice* slice) override { | 163 | 1.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 1.14k | return Status::OK(); | 165 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 584 | Status finish(OwnedSlice* slice) override { | 163 | 584 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 584 | return Status::OK(); | 165 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 590 | Status finish(OwnedSlice* slice) override { | 163 | 590 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 591 | return Status::OK(); | 165 | 590 | } |
_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.69M | Status reset() override { |
168 | 1.69M | RETURN_IF_CATCH_EXCEPTION({ |
169 | 1.69M | size_t block_size = _options.data_page_size; |
170 | 1.69M | _count = 0; |
171 | 1.69M | _raw_data_size = 0; |
172 | 1.69M | _data.clear(); |
173 | 1.69M | _data.reserve(block_size); |
174 | 1.69M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
175 | 1.69M | << "buffer must be naturally-aligned"; |
176 | 1.69M | _buffer.clear(); |
177 | 1.69M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
178 | 1.69M | _finished = false; |
179 | 1.69M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
180 | 1.69M | }); |
181 | 1.69M | return Status::OK(); |
182 | 1.69M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 167 | 93.3k | Status reset() override { | 168 | 93.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 93.3k | size_t block_size = _options.data_page_size; | 170 | 93.3k | _count = 0; | 171 | 93.3k | _raw_data_size = 0; | 172 | 93.3k | _data.clear(); | 173 | 93.3k | _data.reserve(block_size); | 174 | 93.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 93.3k | << "buffer must be naturally-aligned"; | 176 | 93.3k | _buffer.clear(); | 177 | 93.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 93.3k | _finished = false; | 179 | 93.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 93.3k | }); | 181 | 93.4k | return Status::OK(); | 182 | 93.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 167 | 17.8k | Status reset() override { | 168 | 17.8k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 17.8k | size_t block_size = _options.data_page_size; | 170 | 17.8k | _count = 0; | 171 | 17.8k | _raw_data_size = 0; | 172 | 17.8k | _data.clear(); | 173 | 17.8k | _data.reserve(block_size); | 174 | 17.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 17.8k | << "buffer must be naturally-aligned"; | 176 | 17.8k | _buffer.clear(); | 177 | 17.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 17.8k | _finished = false; | 179 | 17.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 17.8k | }); | 181 | 17.8k | return Status::OK(); | 182 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 167 | 1.01M | Status reset() override { | 168 | 1.01M | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.01M | size_t block_size = _options.data_page_size; | 170 | 1.01M | _count = 0; | 171 | 1.01M | _raw_data_size = 0; | 172 | 1.01M | _data.clear(); | 173 | 1.01M | _data.reserve(block_size); | 174 | 1.01M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.01M | << "buffer must be naturally-aligned"; | 176 | 1.01M | _buffer.clear(); | 177 | 1.01M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.01M | _finished = false; | 179 | 1.01M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.01M | }); | 181 | 1.01M | return Status::OK(); | 182 | 1.01M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 167 | 108k | Status reset() override { | 168 | 108k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 108k | size_t block_size = _options.data_page_size; | 170 | 108k | _count = 0; | 171 | 108k | _raw_data_size = 0; | 172 | 108k | _data.clear(); | 173 | 108k | _data.reserve(block_size); | 174 | 108k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 108k | << "buffer must be naturally-aligned"; | 176 | 108k | _buffer.clear(); | 177 | 108k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 108k | _finished = false; | 179 | 108k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 108k | }); | 181 | 108k | return Status::OK(); | 182 | 108k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 167 | 25.7k | Status reset() override { | 168 | 25.7k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 25.7k | size_t block_size = _options.data_page_size; | 170 | 25.7k | _count = 0; | 171 | 25.7k | _raw_data_size = 0; | 172 | 25.7k | _data.clear(); | 173 | 25.7k | _data.reserve(block_size); | 174 | 25.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 25.7k | << "buffer must be naturally-aligned"; | 176 | 25.7k | _buffer.clear(); | 177 | 25.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 25.7k | _finished = false; | 179 | 25.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 25.7k | }); | 181 | 25.7k | return Status::OK(); | 182 | 25.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 167 | 132k | Status reset() override { | 168 | 132k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 132k | size_t block_size = _options.data_page_size; | 170 | 132k | _count = 0; | 171 | 132k | _raw_data_size = 0; | 172 | 132k | _data.clear(); | 173 | 132k | _data.reserve(block_size); | 174 | 132k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 132k | << "buffer must be naturally-aligned"; | 176 | 132k | _buffer.clear(); | 177 | 132k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 132k | _finished = false; | 179 | 132k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 132k | }); | 181 | 132k | return Status::OK(); | 182 | 132k | } |
_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 | 13.1k | Status reset() override { | 168 | 13.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 13.1k | size_t block_size = _options.data_page_size; | 170 | 13.1k | _count = 0; | 171 | 13.1k | _raw_data_size = 0; | 172 | 13.1k | _data.clear(); | 173 | 13.1k | _data.reserve(block_size); | 174 | 13.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 13.1k | << "buffer must be naturally-aligned"; | 176 | 13.1k | _buffer.clear(); | 177 | 13.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 13.1k | _finished = false; | 179 | 13.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 13.1k | }); | 181 | 13.1k | return Status::OK(); | 182 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 167 | 16.1k | Status reset() override { | 168 | 16.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 16.1k | size_t block_size = _options.data_page_size; | 170 | 16.1k | _count = 0; | 171 | 16.1k | _raw_data_size = 0; | 172 | 16.1k | _data.clear(); | 173 | 16.1k | _data.reserve(block_size); | 174 | 16.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 16.1k | << "buffer must be naturally-aligned"; | 176 | 16.1k | _buffer.clear(); | 177 | 16.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 16.1k | _finished = false; | 179 | 16.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 16.1k | }); | 181 | 16.1k | return Status::OK(); | 182 | 16.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 167 | 8 | Status reset() override { | 168 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 8 | size_t block_size = _options.data_page_size; | 170 | 8 | _count = 0; | 171 | 8 | _raw_data_size = 0; | 172 | 8 | _data.clear(); | 173 | 8 | _data.reserve(block_size); | 174 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 8 | << "buffer must be naturally-aligned"; | 176 | 8 | _buffer.clear(); | 177 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 8 | _finished = false; | 179 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 8 | }); | 181 | 8 | return Status::OK(); | 182 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 167 | 717 | Status reset() override { | 168 | 717 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 717 | size_t block_size = _options.data_page_size; | 170 | 717 | _count = 0; | 171 | 717 | _raw_data_size = 0; | 172 | 717 | _data.clear(); | 173 | 717 | _data.reserve(block_size); | 174 | 717 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 717 | << "buffer must be naturally-aligned"; | 176 | 717 | _buffer.clear(); | 177 | 717 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 717 | _finished = false; | 179 | 717 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 717 | }); | 181 | 717 | return Status::OK(); | 182 | 717 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 167 | 75.8k | Status reset() override { | 168 | 75.8k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 75.8k | size_t block_size = _options.data_page_size; | 170 | 75.8k | _count = 0; | 171 | 75.8k | _raw_data_size = 0; | 172 | 75.8k | _data.clear(); | 173 | 75.8k | _data.reserve(block_size); | 174 | 75.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 75.8k | << "buffer must be naturally-aligned"; | 176 | 75.8k | _buffer.clear(); | 177 | 75.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 75.8k | _finished = false; | 179 | 75.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 75.8k | }); | 181 | 75.9k | return Status::OK(); | 182 | 75.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 167 | 87.5k | Status reset() override { | 168 | 87.5k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 87.5k | size_t block_size = _options.data_page_size; | 170 | 87.5k | _count = 0; | 171 | 87.5k | _raw_data_size = 0; | 172 | 87.5k | _data.clear(); | 173 | 87.5k | _data.reserve(block_size); | 174 | 87.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 87.5k | << "buffer must be naturally-aligned"; | 176 | 87.5k | _buffer.clear(); | 177 | 87.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 87.5k | _finished = false; | 179 | 87.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 87.5k | }); | 181 | 87.5k | return Status::OK(); | 182 | 87.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 167 | 619 | Status reset() override { | 168 | 619 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 619 | size_t block_size = _options.data_page_size; | 170 | 619 | _count = 0; | 171 | 619 | _raw_data_size = 0; | 172 | 619 | _data.clear(); | 173 | 619 | _data.reserve(block_size); | 174 | 619 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 619 | << "buffer must be naturally-aligned"; | 176 | 619 | _buffer.clear(); | 177 | 619 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 619 | _finished = false; | 179 | 619 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 619 | }); | 181 | 619 | return Status::OK(); | 182 | 619 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 167 | 1.04k | Status reset() override { | 168 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.04k | size_t block_size = _options.data_page_size; | 170 | 1.04k | _count = 0; | 171 | 1.04k | _raw_data_size = 0; | 172 | 1.04k | _data.clear(); | 173 | 1.04k | _data.reserve(block_size); | 174 | 1.04k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.04k | << "buffer must be naturally-aligned"; | 176 | 1.04k | _buffer.clear(); | 177 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.04k | _finished = false; | 179 | 1.04k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.04k | }); | 181 | 1.04k | return Status::OK(); | 182 | 1.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 167 | 15.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 | 601 | Status reset() override { | 168 | 601 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 601 | size_t block_size = _options.data_page_size; | 170 | 601 | _count = 0; | 171 | 601 | _raw_data_size = 0; | 172 | 601 | _data.clear(); | 173 | 601 | _data.reserve(block_size); | 174 | 601 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 601 | << "buffer must be naturally-aligned"; | 176 | 601 | _buffer.clear(); | 177 | 601 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 601 | _finished = false; | 179 | 601 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 601 | }); | 181 | 601 | return Status::OK(); | 182 | 601 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 167 | 19.2k | Status reset() override { | 168 | 19.2k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 19.2k | size_t block_size = _options.data_page_size; | 170 | 19.2k | _count = 0; | 171 | 19.2k | _raw_data_size = 0; | 172 | 19.2k | _data.clear(); | 173 | 19.2k | _data.reserve(block_size); | 174 | 19.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 19.2k | << "buffer must be naturally-aligned"; | 176 | 19.2k | _buffer.clear(); | 177 | 19.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 19.2k | _finished = false; | 179 | 19.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 19.2k | }); | 181 | 19.2k | return Status::OK(); | 182 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 167 | 32.1k | Status reset() override { | 168 | 32.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 32.1k | size_t block_size = _options.data_page_size; | 170 | 32.1k | _count = 0; | 171 | 32.1k | _raw_data_size = 0; | 172 | 32.1k | _data.clear(); | 173 | 32.1k | _data.reserve(block_size); | 174 | 32.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 32.1k | << "buffer must be naturally-aligned"; | 176 | 32.1k | _buffer.clear(); | 177 | 32.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 32.1k | _finished = false; | 179 | 32.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 32.1k | }); | 181 | 32.1k | return Status::OK(); | 182 | 32.1k | } |
_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.35k | Status reset() override { | 168 | 2.35k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 2.35k | size_t block_size = _options.data_page_size; | 170 | 2.35k | _count = 0; | 171 | 2.35k | _raw_data_size = 0; | 172 | 2.35k | _data.clear(); | 173 | 2.35k | _data.reserve(block_size); | 174 | 2.35k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 2.35k | << "buffer must be naturally-aligned"; | 176 | 2.35k | _buffer.clear(); | 177 | 2.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 2.35k | _finished = false; | 179 | 2.35k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 2.35k | }); | 181 | 2.36k | return Status::OK(); | 182 | 2.35k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 167 | 1.25k | Status reset() override { | 168 | 1.25k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.25k | size_t block_size = _options.data_page_size; | 170 | 1.25k | _count = 0; | 171 | 1.25k | _raw_data_size = 0; | 172 | 1.25k | _data.clear(); | 173 | 1.25k | _data.reserve(block_size); | 174 | 1.25k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.25k | << "buffer must be naturally-aligned"; | 176 | 1.25k | _buffer.clear(); | 177 | 1.25k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.25k | _finished = false; | 179 | 1.25k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.25k | }); | 181 | 1.25k | return Status::OK(); | 182 | 1.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 167 | 1.25k | Status reset() override { | 168 | 1.25k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.25k | size_t block_size = _options.data_page_size; | 170 | 1.25k | _count = 0; | 171 | 1.25k | _raw_data_size = 0; | 172 | 1.25k | _data.clear(); | 173 | 1.25k | _data.reserve(block_size); | 174 | 1.25k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.25k | << "buffer must be naturally-aligned"; | 176 | 1.25k | _buffer.clear(); | 177 | 1.25k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.25k | _finished = false; | 179 | 1.25k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.25k | }); | 181 | 1.26k | return Status::OK(); | 182 | 1.25k | } |
_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 | 36.0k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 186 | 2.99k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 186 | 669 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 186 | 20.4k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 186 | 2.81k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 186 | 1.09k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 186 | 925 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 186 | 203 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 186 | 254 | 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.66k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 186 | 2.28k | 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 | 166 | 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 | 247 | 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 | 412k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 188 | 45.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 188 | 8.47k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 188 | 68.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 188 | 55.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 188 | 12.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 188 | 66.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 188 | 6.13k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 188 | 7.77k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 188 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 188 | 364 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 188 | 38.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 188 | 43.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 188 | 280 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 188 | 600 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 188 | 7.78k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 188 | 259 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.63k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 188 | 19.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 188 | 17.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 188 | 1.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 188 | 584 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 188 | 591 | 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 | 700k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 47.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.35k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 364k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 52.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 13.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 66.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.01k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.75k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 344 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 37.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 | 339 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 438 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.62k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 338 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.63k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 12.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 17.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1.20k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 671 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 668 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 581 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
193 | | |
194 | 697k | OwnedSlice _finish(int final_size_of_type) { |
195 | 697k | _data.resize(final_size_of_type * _count); |
196 | | |
197 | | // Do padding so that the input num of element is multiple of 8. |
198 | 697k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
199 | 697k | int padding_elems = num_elems_after_padding - _count; |
200 | 697k | int padding_bytes = padding_elems * final_size_of_type; |
201 | 18.8M | for (int i = 0; i < padding_bytes; i++) { |
202 | 18.1M | _data.push_back(0); |
203 | 18.1M | } |
204 | | |
205 | | // reserve enough place for compression |
206 | 697k | _buffer.resize( |
207 | 697k | BITSHUFFLE_PAGE_HEADER_SIZE + |
208 | 697k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
209 | | |
210 | 697k | int64_t bytes = |
211 | 697k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
212 | 697k | num_elems_after_padding, final_size_of_type, 0); |
213 | 697k | 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 | 697k | encode_fixed32_le(&_buffer[0], _count); |
223 | 697k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
224 | 697k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
225 | 697k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
226 | 697k | _finished = true; |
227 | | // before build(), update buffer length to the actual compressed size |
228 | 697k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
229 | 697k | return _buffer.build(); |
230 | 697k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 194 | 45.9k | OwnedSlice _finish(int final_size_of_type) { | 195 | 45.9k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 45.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 45.9k | int padding_elems = num_elems_after_padding - _count; | 200 | 45.9k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 293k | for (int i = 0; i < padding_bytes; i++) { | 202 | 247k | _data.push_back(0); | 203 | 247k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 45.9k | _buffer.resize( | 207 | 45.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 45.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 45.9k | int64_t bytes = | 211 | 45.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 45.9k | num_elems_after_padding, final_size_of_type, 0); | 213 | 45.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 | 45.9k | encode_fixed32_le(&_buffer[0], _count); | 223 | 45.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 45.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 45.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 45.9k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 45.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 45.9k | return _buffer.build(); | 230 | 45.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 194 | 8.47k | OwnedSlice _finish(int final_size_of_type) { | 195 | 8.47k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 8.47k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 8.47k | int padding_elems = num_elems_after_padding - _count; | 200 | 8.47k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 87.6k | for (int i = 0; i < padding_bytes; i++) { | 202 | 79.1k | _data.push_back(0); | 203 | 79.1k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 8.47k | _buffer.resize( | 207 | 8.47k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 8.47k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 8.47k | int64_t bytes = | 211 | 8.47k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 8.47k | num_elems_after_padding, final_size_of_type, 0); | 213 | 8.47k | 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.47k | encode_fixed32_le(&_buffer[0], _count); | 223 | 8.47k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 8.47k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 8.47k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 8.47k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 8.47k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 8.47k | return _buffer.build(); | 230 | 8.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 194 | 353k | OwnedSlice _finish(int final_size_of_type) { | 195 | 353k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 353k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 353k | int padding_elems = num_elems_after_padding - _count; | 200 | 353k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 6.72M | for (int i = 0; i < padding_bytes; i++) { | 202 | 6.37M | _data.push_back(0); | 203 | 6.37M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 353k | _buffer.resize( | 207 | 353k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 353k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 353k | int64_t bytes = | 211 | 353k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 353k | num_elems_after_padding, final_size_of_type, 0); | 213 | 353k | 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 | 353k | encode_fixed32_le(&_buffer[0], _count); | 223 | 353k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 353k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 353k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 353k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 353k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 353k | return _buffer.build(); | 230 | 353k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 194 | 55.5k | OwnedSlice _finish(int final_size_of_type) { | 195 | 55.5k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 55.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 55.5k | int padding_elems = num_elems_after_padding - _count; | 200 | 55.5k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 2.10M | for (int i = 0; i < padding_bytes; i++) { | 202 | 2.05M | _data.push_back(0); | 203 | 2.05M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 55.5k | _buffer.resize( | 207 | 55.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 55.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 55.5k | int64_t bytes = | 211 | 55.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 55.5k | num_elems_after_padding, final_size_of_type, 0); | 213 | 55.5k | 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 | 55.5k | encode_fixed32_le(&_buffer[0], _count); | 223 | 55.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 55.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 55.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 55.5k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 55.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 55.5k | return _buffer.build(); | 230 | 55.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 194 | 12.6k | OwnedSlice _finish(int final_size_of_type) { | 195 | 12.6k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 12.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 12.6k | int padding_elems = num_elems_after_padding - _count; | 200 | 12.6k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 879k | for (int i = 0; i < padding_bytes; i++) { | 202 | 867k | _data.push_back(0); | 203 | 867k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 12.6k | _buffer.resize( | 207 | 12.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 12.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 12.6k | int64_t bytes = | 211 | 12.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 12.6k | num_elems_after_padding, final_size_of_type, 0); | 213 | 12.6k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 12.6k | encode_fixed32_le(&_buffer[0], _count); | 223 | 12.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 12.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 12.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 12.6k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 12.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 12.6k | return _buffer.build(); | 230 | 12.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 194 | 66.1k | OwnedSlice _finish(int final_size_of_type) { | 195 | 66.1k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 66.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 66.1k | int padding_elems = num_elems_after_padding - _count; | 200 | 66.1k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 3.19M | for (int i = 0; i < padding_bytes; i++) { | 202 | 3.12M | _data.push_back(0); | 203 | 3.12M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 66.1k | _buffer.resize( | 207 | 66.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 66.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 66.1k | int64_t bytes = | 211 | 66.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 66.1k | num_elems_after_padding, final_size_of_type, 0); | 213 | 66.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 | 66.1k | encode_fixed32_le(&_buffer[0], _count); | 223 | 66.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 66.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 66.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 66.1k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 66.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 66.1k | return _buffer.build(); | 230 | 66.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 194 | 6.14k | OwnedSlice _finish(int final_size_of_type) { | 195 | 6.14k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 6.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 6.14k | int padding_elems = num_elems_after_padding - _count; | 200 | 6.14k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 136k | for (int i = 0; i < padding_bytes; i++) { | 202 | 130k | _data.push_back(0); | 203 | 130k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 6.14k | _buffer.resize( | 207 | 6.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 6.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 6.14k | int64_t bytes = | 211 | 6.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 6.14k | num_elems_after_padding, final_size_of_type, 0); | 213 | 6.14k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 6.14k | encode_fixed32_le(&_buffer[0], _count); | 223 | 6.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 6.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 6.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 6.14k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 6.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 6.14k | return _buffer.build(); | 230 | 6.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 194 | 8.40k | OwnedSlice _finish(int final_size_of_type) { | 195 | 8.40k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 8.40k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 8.40k | int padding_elems = num_elems_after_padding - _count; | 200 | 8.40k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 300k | for (int i = 0; i < padding_bytes; i++) { | 202 | 292k | _data.push_back(0); | 203 | 292k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 8.40k | _buffer.resize( | 207 | 8.40k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 8.40k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 8.40k | int64_t bytes = | 211 | 8.40k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 8.40k | num_elems_after_padding, final_size_of_type, 0); | 213 | 8.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 | 8.40k | encode_fixed32_le(&_buffer[0], _count); | 223 | 8.40k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 8.40k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 8.40k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 8.40k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 8.40k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 8.40k | return _buffer.build(); | 230 | 8.40k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 194 | 6 | OwnedSlice _finish(int final_size_of_type) { | 195 | 6 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 6 | int padding_elems = num_elems_after_padding - _count; | 200 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 18 | for (int i = 0; i < padding_bytes; i++) { | 202 | 12 | _data.push_back(0); | 203 | 12 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 6 | _buffer.resize( | 207 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 6 | int64_t bytes = | 211 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 6 | num_elems_after_padding, final_size_of_type, 0); | 213 | 6 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 6 | encode_fixed32_le(&_buffer[0], _count); | 223 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 6 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 6 | return _buffer.build(); | 230 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 194 | 375 | OwnedSlice _finish(int final_size_of_type) { | 195 | 375 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 375 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 375 | int padding_elems = num_elems_after_padding - _count; | 200 | 375 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 5.54k | for (int i = 0; i < padding_bytes; i++) { | 202 | 5.16k | _data.push_back(0); | 203 | 5.16k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 375 | _buffer.resize( | 207 | 375 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 375 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 375 | int64_t bytes = | 211 | 375 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 375 | num_elems_after_padding, final_size_of_type, 0); | 213 | 375 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 375 | encode_fixed32_le(&_buffer[0], _count); | 223 | 375 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 375 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 375 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 375 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 375 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 375 | return _buffer.build(); | 230 | 375 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 194 | 38.4k | OwnedSlice _finish(int final_size_of_type) { | 195 | 38.4k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 38.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 38.4k | int padding_elems = num_elems_after_padding - _count; | 200 | 38.4k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 809k | for (int i = 0; i < padding_bytes; i++) { | 202 | 770k | _data.push_back(0); | 203 | 770k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 38.4k | _buffer.resize( | 207 | 38.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 38.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 38.4k | int64_t bytes = | 211 | 38.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 38.4k | num_elems_after_padding, final_size_of_type, 0); | 213 | 38.4k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 38.4k | encode_fixed32_le(&_buffer[0], _count); | 223 | 38.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 38.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 38.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 38.4k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 38.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 38.4k | return _buffer.build(); | 230 | 38.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 194 | 43.2k | OwnedSlice _finish(int final_size_of_type) { | 195 | 43.2k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 43.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 43.2k | int padding_elems = num_elems_after_padding - _count; | 200 | 43.2k | 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.2k | _buffer.resize( | 207 | 43.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 43.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 43.2k | int64_t bytes = | 211 | 43.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 43.2k | num_elems_after_padding, final_size_of_type, 0); | 213 | 43.2k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 43.2k | encode_fixed32_le(&_buffer[0], _count); | 223 | 43.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 43.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 43.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 43.2k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 43.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 43.2k | return _buffer.build(); | 230 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 194 | 280 | OwnedSlice _finish(int final_size_of_type) { | 195 | 280 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 280 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 280 | int padding_elems = num_elems_after_padding - _count; | 200 | 280 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.7k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.4k | _data.push_back(0); | 203 | 11.4k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 280 | _buffer.resize( | 207 | 280 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 280 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 280 | int64_t bytes = | 211 | 280 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 280 | num_elems_after_padding, final_size_of_type, 0); | 213 | 280 | 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 | 280 | encode_fixed32_le(&_buffer[0], _count); | 223 | 280 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 280 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 280 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 280 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 280 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 280 | return _buffer.build(); | 230 | 280 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 194 | 605 | OwnedSlice _finish(int final_size_of_type) { | 195 | 605 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 605 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 605 | int padding_elems = num_elems_after_padding - _count; | 200 | 605 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 13.5k | for (int i = 0; i < padding_bytes; i++) { | 202 | 12.9k | _data.push_back(0); | 203 | 12.9k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 605 | _buffer.resize( | 207 | 605 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 605 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 605 | int64_t bytes = | 211 | 605 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 605 | num_elems_after_padding, final_size_of_type, 0); | 213 | 605 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 605 | encode_fixed32_le(&_buffer[0], _count); | 223 | 605 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 605 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 605 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 605 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 605 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 605 | return _buffer.build(); | 230 | 605 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 194 | 7.78k | OwnedSlice _finish(int final_size_of_type) { | 195 | 7.78k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 7.78k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 7.78k | int padding_elems = num_elems_after_padding - _count; | 200 | 7.78k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 405k | for (int i = 0; i < padding_bytes; i++) { | 202 | 398k | _data.push_back(0); | 203 | 398k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 7.78k | _buffer.resize( | 207 | 7.78k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 7.78k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 7.78k | int64_t bytes = | 211 | 7.78k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 7.78k | num_elems_after_padding, final_size_of_type, 0); | 213 | 7.78k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 7.78k | encode_fixed32_le(&_buffer[0], _count); | 223 | 7.78k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 7.78k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 7.78k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 7.78k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 7.78k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 7.78k | return _buffer.build(); | 230 | 7.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 194 | 264 | OwnedSlice _finish(int final_size_of_type) { | 195 | 264 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 264 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 264 | int padding_elems = num_elems_after_padding - _count; | 200 | 264 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 16.4k | for (int i = 0; i < padding_bytes; i++) { | 202 | 16.2k | _data.push_back(0); | 203 | 16.2k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 264 | _buffer.resize( | 207 | 264 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 264 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 264 | int64_t bytes = | 211 | 264 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 264 | num_elems_after_padding, final_size_of_type, 0); | 213 | 264 | 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 | 264 | encode_fixed32_le(&_buffer[0], _count); | 223 | 264 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 264 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 264 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 264 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 264 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 264 | return _buffer.build(); | 230 | 264 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 194 | 9.63k | OwnedSlice _finish(int final_size_of_type) { | 195 | 9.63k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 9.63k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 9.63k | int padding_elems = num_elems_after_padding - _count; | 200 | 9.63k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 116k | for (int i = 0; i < padding_bytes; i++) { | 202 | 106k | _data.push_back(0); | 203 | 106k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 9.63k | _buffer.resize( | 207 | 9.63k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 9.63k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 9.63k | int64_t bytes = | 211 | 9.63k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 9.63k | num_elems_after_padding, final_size_of_type, 0); | 213 | 9.63k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 9.63k | encode_fixed32_le(&_buffer[0], _count); | 223 | 9.63k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 9.63k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 9.63k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 9.63k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 9.63k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 9.63k | return _buffer.build(); | 230 | 9.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 194 | 19.9k | OwnedSlice _finish(int final_size_of_type) { | 195 | 19.9k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 19.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 19.9k | int padding_elems = num_elems_after_padding - _count; | 200 | 19.9k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 493k | for (int i = 0; i < padding_bytes; i++) { | 202 | 473k | _data.push_back(0); | 203 | 473k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 19.9k | _buffer.resize( | 207 | 19.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 19.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 19.9k | int64_t bytes = | 211 | 19.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 19.9k | num_elems_after_padding, final_size_of_type, 0); | 213 | 19.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 | 19.9k | encode_fixed32_le(&_buffer[0], _count); | 223 | 19.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 19.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 19.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 19.9k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 19.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 19.9k | return _buffer.build(); | 230 | 19.9k | } |
_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.14k | OwnedSlice _finish(int final_size_of_type) { | 195 | 1.14k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 1.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 1.14k | int padding_elems = num_elems_after_padding - _count; | 200 | 1.14k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 174k | for (int i = 0; i < padding_bytes; i++) { | 202 | 173k | _data.push_back(0); | 203 | 173k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 1.14k | _buffer.resize( | 207 | 1.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 1.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 1.14k | int64_t bytes = | 211 | 1.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 1.14k | num_elems_after_padding, final_size_of_type, 0); | 213 | 1.14k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 1.14k | encode_fixed32_le(&_buffer[0], _count); | 223 | 1.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 1.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 1.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 1.14k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 1.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 1.14k | return _buffer.build(); | 230 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 194 | 584 | OwnedSlice _finish(int final_size_of_type) { | 195 | 584 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 584 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 584 | int padding_elems = num_elems_after_padding - _count; | 200 | 584 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.8k | 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 | 584 | _buffer.resize( | 207 | 584 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 584 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 584 | int64_t bytes = | 211 | 584 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 584 | num_elems_after_padding, final_size_of_type, 0); | 213 | 584 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 584 | encode_fixed32_le(&_buffer[0], _count); | 223 | 584 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 584 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 584 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 584 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 584 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 584 | return _buffer.build(); | 230 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 194 | 590 | OwnedSlice _finish(int final_size_of_type) { | 195 | 590 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 590 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 590 | int padding_elems = num_elems_after_padding - _count; | 200 | 590 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 47.1k | for (int i = 0; i < padding_bytes; i++) { | 202 | 46.5k | _data.push_back(0); | 203 | 46.5k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 590 | _buffer.resize( | 207 | 590 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 590 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 590 | int64_t bytes = | 211 | 590 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 590 | num_elems_after_padding, final_size_of_type, 0); | 213 | 590 | 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 | 590 | encode_fixed32_le(&_buffer[0], _count); | 223 | 590 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 590 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 590 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 590 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 590 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 590 | return _buffer.build(); | 230 | 590 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 194 | 691 | OwnedSlice _finish(int final_size_of_type) { | 195 | 691 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 691 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 691 | int padding_elems = num_elems_after_padding - _count; | 200 | 691 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 50.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 49.6k | _data.push_back(0); | 203 | 49.6k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 691 | _buffer.resize( | 207 | 691 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 691 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 691 | int64_t bytes = | 211 | 691 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 691 | num_elems_after_padding, final_size_of_type, 0); | 213 | 691 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 691 | encode_fixed32_le(&_buffer[0], _count); | 223 | 691 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 691 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 691 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 691 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 691 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 691 | return _buffer.build(); | 230 | 691 | } |
|
231 | | |
232 | | using CppType = typename TypeTraits<Type>::CppType; |
233 | | |
234 | | CppType cell(int idx) const { |
235 | | DCHECK_GE(idx, 0); |
236 | | CppType ret; |
237 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
238 | | return ret; |
239 | | } |
240 | | |
241 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
242 | | PageBuilderOptions _options; |
243 | | uint32_t _count; |
244 | | uint32_t _remain_element_capacity; |
245 | | bool _finished; |
246 | | faststring _data; |
247 | | faststring _buffer; |
248 | | uint64_t _raw_data_size = 0; |
249 | | }; |
250 | | |
251 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
252 | | size_t& compressed_size, size_t& num_element_after_padding, |
253 | 2.12M | int& size_of_element) { |
254 | 2.12M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
255 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
256 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
257 | 0 | } |
258 | | |
259 | 2.12M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
260 | 2.12M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
261 | 2.12M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
262 | 2.12M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
263 | 2.12M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
264 | 0 | return Status::InternalError( |
265 | 0 | "num of element information corrupted," |
266 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
267 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
268 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
269 | 0 | size_of_element, data.size); |
270 | 0 | } |
271 | 2.12M | switch (size_of_element) { |
272 | 151k | case 1: |
273 | 174k | case 2: |
274 | 178k | case 3: |
275 | 1.43M | case 4: |
276 | 2.01M | case 8: |
277 | 2.01M | case 12: |
278 | 2.12M | case 16: |
279 | 2.13M | case 32: |
280 | 2.13M | break; |
281 | 0 | default: |
282 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
283 | 2.12M | } |
284 | 2.13M | return Status::OK(); |
285 | 2.12M | } |
286 | | |
287 | | template <FieldType Type> |
288 | | class BitShufflePageDecoder : public PageDecoder { |
289 | | public: |
290 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
291 | 1.06M | : _data(data), |
292 | 1.06M | _options(options), |
293 | 1.06M | _parsed(false), |
294 | 1.06M | _num_elements(0), |
295 | 1.06M | _num_element_after_padding(0), |
296 | 1.06M | _size_of_element(0), |
297 | 1.06M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 75.9k | : _data(data), | 292 | 75.9k | _options(options), | 293 | 75.9k | _parsed(false), | 294 | 75.9k | _num_elements(0), | 295 | 75.9k | _num_element_after_padding(0), | 296 | 75.9k | _size_of_element(0), | 297 | 75.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_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_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 540k | : _data(data), | 292 | 540k | _options(options), | 293 | 540k | _parsed(false), | 294 | 540k | _num_elements(0), | 295 | 540k | _num_element_after_padding(0), | 296 | 540k | _size_of_element(0), | 297 | 540k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 54.4k | : _data(data), | 292 | 54.4k | _options(options), | 293 | 54.4k | _parsed(false), | 294 | 54.4k | _num_elements(0), | 295 | 54.4k | _num_element_after_padding(0), | 296 | 54.4k | _size_of_element(0), | 297 | 54.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 17.3k | : _data(data), | 292 | 17.3k | _options(options), | 293 | 17.3k | _parsed(false), | 294 | 17.3k | _num_elements(0), | 295 | 17.3k | _num_element_after_padding(0), | 296 | 17.3k | _size_of_element(0), | 297 | 17.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 91.1k | : _data(data), | 292 | 91.1k | _options(options), | 293 | 91.1k | _parsed(false), | 294 | 91.1k | _num_elements(0), | 295 | 91.1k | _num_element_after_padding(0), | 296 | 91.1k | _size_of_element(0), | 297 | 91.1k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 9.26k | : _data(data), | 292 | 9.26k | _options(options), | 293 | 9.26k | _parsed(false), | 294 | 9.26k | _num_elements(0), | 295 | 9.26k | _num_element_after_padding(0), | 296 | 9.26k | _size_of_element(0), | 297 | 9.26k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 11.8k | : _data(data), | 292 | 11.8k | _options(options), | 293 | 11.8k | _parsed(false), | 294 | 11.8k | _num_elements(0), | 295 | 11.8k | _num_element_after_padding(0), | 296 | 11.8k | _size_of_element(0), | 297 | 11.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 6 | : _data(data), | 292 | 6 | _options(options), | 293 | 6 | _parsed(false), | 294 | 6 | _num_elements(0), | 295 | 6 | _num_element_after_padding(0), | 296 | 6 | _size_of_element(0), | 297 | 6 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.84k | : _data(data), | 292 | 1.84k | _options(options), | 293 | 1.84k | _parsed(false), | 294 | 1.84k | _num_elements(0), | 295 | 1.84k | _num_element_after_padding(0), | 296 | 1.84k | _size_of_element(0), | 297 | 1.84k | _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 | 67.2k | : _data(data), | 292 | 67.2k | _options(options), | 293 | 67.2k | _parsed(false), | 294 | 67.2k | _num_elements(0), | 295 | 67.2k | _num_element_after_padding(0), | 296 | 67.2k | _size_of_element(0), | 297 | 67.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 3.15k | : _data(data), | 292 | 3.15k | _options(options), | 293 | 3.15k | _parsed(false), | 294 | 3.15k | _num_elements(0), | 295 | 3.15k | _num_element_after_padding(0), | 296 | 3.15k | _size_of_element(0), | 297 | 3.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 2.41k | : _data(data), | 292 | 2.41k | _options(options), | 293 | 2.41k | _parsed(false), | 294 | 2.41k | _num_elements(0), | 295 | 2.41k | _num_element_after_padding(0), | 296 | 2.41k | _size_of_element(0), | 297 | 2.41k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 16.5k | : _data(data), | 292 | 16.5k | _options(options), | 293 | 16.5k | _parsed(false), | 294 | 16.5k | _num_elements(0), | 295 | 16.5k | _num_element_after_padding(0), | 296 | 16.5k | _size_of_element(0), | 297 | 16.5k | _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.3k | : _data(data), | 292 | 15.3k | _options(options), | 293 | 15.3k | _parsed(false), | 294 | 15.3k | _num_elements(0), | 295 | 15.3k | _num_element_after_padding(0), | 296 | 15.3k | _size_of_element(0), | 297 | 15.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 44.6k | : _data(data), | 292 | 44.6k | _options(options), | 293 | 44.6k | _parsed(false), | 294 | 44.6k | _num_elements(0), | 295 | 44.6k | _num_element_after_padding(0), | 296 | 44.6k | _size_of_element(0), | 297 | 44.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 31.9k | : _data(data), | 292 | 31.9k | _options(options), | 293 | 31.9k | _parsed(false), | 294 | 31.9k | _num_elements(0), | 295 | 31.9k | _num_element_after_padding(0), | 296 | 31.9k | _size_of_element(0), | 297 | 31.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.76k | : _data(data), | 292 | 1.76k | _options(options), | 293 | 1.76k | _parsed(false), | 294 | 1.76k | _num_elements(0), | 295 | 1.76k | _num_element_after_padding(0), | 296 | 1.76k | _size_of_element(0), | 297 | 1.76k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 896 | : _data(data), | 292 | 896 | _options(options), | 293 | 896 | _parsed(false), | 294 | 896 | _num_elements(0), | 295 | 896 | _num_element_after_padding(0), | 296 | 896 | _size_of_element(0), | 297 | 896 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 942 | : _data(data), | 292 | 942 | _options(options), | 293 | 942 | _parsed(false), | 294 | 942 | _num_elements(0), | 295 | 942 | _num_element_after_padding(0), | 296 | 942 | _size_of_element(0), | 297 | 942 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 5.17k | : _data(data), | 292 | 5.17k | _options(options), | 293 | 5.17k | _parsed(false), | 294 | 5.17k | _num_elements(0), | 295 | 5.17k | _num_element_after_padding(0), | 296 | 5.17k | _size_of_element(0), | 297 | 5.17k | _cur_index(0) {} |
|
298 | | |
299 | 1.06M | Status init() override { |
300 | 1.06M | CHECK(!_parsed); |
301 | 1.06M | size_t unused; |
302 | 1.06M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
303 | 1.06M | _num_element_after_padding, _size_of_element)); |
304 | | |
305 | 1.06M | if (_data.size != |
306 | 1.06M | _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.06M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
316 | 1.06M | _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.06M | 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.06M | _parsed = true; |
326 | 1.06M | return Status::OK(); |
327 | 1.06M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 299 | 75.5k | Status init() override { | 300 | 75.5k | CHECK(!_parsed); | 301 | 75.5k | size_t unused; | 302 | 75.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 75.5k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 75.5k | if (_data.size != | 306 | 75.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 | 75.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 75.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 | 75.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 | 75.5k | _parsed = true; | 326 | 75.5k | return Status::OK(); | 327 | 75.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv 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 | 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 | 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_9FieldTypeE5EE4initEv Line | Count | Source | 299 | 538k | Status init() override { | 300 | 538k | CHECK(!_parsed); | 301 | 538k | size_t unused; | 302 | 538k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 538k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 538k | if (_data.size != | 306 | 538k | _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 | 538k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 538k | _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 | 538k | 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 | 538k | _parsed = true; | 326 | 538k | return Status::OK(); | 327 | 538k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 299 | 54.2k | Status init() override { | 300 | 54.2k | CHECK(!_parsed); | 301 | 54.2k | size_t unused; | 302 | 54.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 54.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 54.2k | if (_data.size != | 306 | 54.2k | _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 | 54.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 54.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 | 54.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 | 54.2k | _parsed = true; | 326 | 54.2k | return Status::OK(); | 327 | 54.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 299 | 17.2k | Status init() override { | 300 | 17.2k | CHECK(!_parsed); | 301 | 17.2k | size_t unused; | 302 | 17.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 17.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 17.2k | if (_data.size != | 306 | 17.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 | 17.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 17.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 | 17.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 | 17.2k | _parsed = true; | 326 | 17.2k | return Status::OK(); | 327 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 299 | 90.7k | Status init() override { | 300 | 90.7k | CHECK(!_parsed); | 301 | 90.7k | size_t unused; | 302 | 90.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 90.7k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 90.7k | if (_data.size != | 306 | 90.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 90.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 90.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 | 90.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 | 90.7k | _parsed = true; | 326 | 90.7k | return Status::OK(); | 327 | 90.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 299 | 9.25k | Status init() override { | 300 | 9.25k | CHECK(!_parsed); | 301 | 9.25k | size_t unused; | 302 | 9.25k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 9.25k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 9.25k | if (_data.size != | 306 | 9.25k | _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 | 9.25k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 9.25k | _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 | 9.25k | 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 | 9.25k | _parsed = true; | 326 | 9.25k | return Status::OK(); | 327 | 9.25k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 299 | 11.8k | Status init() override { | 300 | 11.8k | CHECK(!_parsed); | 301 | 11.8k | size_t unused; | 302 | 11.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 11.8k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 11.8k | if (_data.size != | 306 | 11.8k | _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 | 11.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 11.8k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 11.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 11.8k | _parsed = true; | 326 | 11.8k | return Status::OK(); | 327 | 11.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 299 | 6 | Status init() override { | 300 | 6 | CHECK(!_parsed); | 301 | 6 | size_t unused; | 302 | 6 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 6 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 6 | if (_data.size != | 306 | 6 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 6 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 6 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 6 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 6 | _parsed = true; | 326 | 6 | return Status::OK(); | 327 | 6 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 299 | 1.84k | Status init() override { | 300 | 1.84k | CHECK(!_parsed); | 301 | 1.84k | size_t unused; | 302 | 1.84k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.84k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.84k | if (_data.size != | 306 | 1.84k | _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.84k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.84k | _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.84k | 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.84k | _parsed = true; | 326 | 1.84k | return Status::OK(); | 327 | 1.84k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 299 | 59.8k | Status init() override { | 300 | 59.8k | CHECK(!_parsed); | 301 | 59.8k | size_t unused; | 302 | 59.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 59.8k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 59.8k | if (_data.size != | 306 | 59.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 59.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 59.8k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 59.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 59.8k | _parsed = true; | 326 | 59.8k | return Status::OK(); | 327 | 59.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 299 | 67.0k | Status init() override { | 300 | 67.0k | CHECK(!_parsed); | 301 | 67.0k | size_t unused; | 302 | 67.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 67.0k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 67.0k | if (_data.size != | 306 | 67.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 67.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 67.0k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 67.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 67.0k | _parsed = true; | 326 | 67.0k | return Status::OK(); | 327 | 67.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 299 | 3.13k | Status init() override { | 300 | 3.13k | CHECK(!_parsed); | 301 | 3.13k | size_t unused; | 302 | 3.13k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 3.13k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 3.13k | if (_data.size != | 306 | 3.13k | _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.13k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 3.13k | _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.13k | 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.13k | _parsed = true; | 326 | 3.13k | return Status::OK(); | 327 | 3.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 299 | 2.40k | Status init() override { | 300 | 2.40k | CHECK(!_parsed); | 301 | 2.40k | size_t unused; | 302 | 2.40k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 2.40k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 2.40k | if (_data.size != | 306 | 2.40k | _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.40k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 2.40k | _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.40k | 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.40k | _parsed = true; | 326 | 2.40k | return Status::OK(); | 327 | 2.40k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 299 | 16.4k | Status init() override { | 300 | 16.4k | CHECK(!_parsed); | 301 | 16.4k | size_t unused; | 302 | 16.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 16.4k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 16.4k | if (_data.size != | 306 | 16.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 16.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 16.4k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 16.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 16.4k | _parsed = true; | 326 | 16.4k | return Status::OK(); | 327 | 16.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 299 | 1.36k | Status init() override { | 300 | 1.36k | CHECK(!_parsed); | 301 | 1.36k | size_t unused; | 302 | 1.36k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.36k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.36k | if (_data.size != | 306 | 1.36k | _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.36k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.36k | _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.36k | 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.36k | _parsed = true; | 326 | 1.36k | return Status::OK(); | 327 | 1.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 299 | 15.3k | Status init() override { | 300 | 15.3k | CHECK(!_parsed); | 301 | 15.3k | size_t unused; | 302 | 15.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 15.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 15.3k | if (_data.size != | 306 | 15.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 | 15.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 15.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 | 15.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 | 15.3k | _parsed = true; | 326 | 15.3k | return Status::OK(); | 327 | 15.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 299 | 44.5k | Status init() override { | 300 | 44.5k | CHECK(!_parsed); | 301 | 44.5k | size_t unused; | 302 | 44.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 44.5k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 44.5k | if (_data.size != | 306 | 44.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 | 44.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 44.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 | 44.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 | 44.5k | _parsed = true; | 326 | 44.5k | return Status::OK(); | 327 | 44.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 299 | 31.9k | Status init() override { | 300 | 31.9k | CHECK(!_parsed); | 301 | 31.9k | size_t unused; | 302 | 31.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 31.9k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 31.9k | if (_data.size != | 306 | 31.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 | 31.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 31.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 | 31.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 | 31.9k | _parsed = true; | 326 | 31.9k | return Status::OK(); | 327 | 31.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 299 | 1.76k | Status init() override { | 300 | 1.76k | CHECK(!_parsed); | 301 | 1.76k | size_t unused; | 302 | 1.76k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.76k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.76k | if (_data.size != | 306 | 1.76k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.76k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.76k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.76k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.76k | _parsed = true; | 326 | 1.76k | return Status::OK(); | 327 | 1.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 299 | 891 | Status init() override { | 300 | 891 | CHECK(!_parsed); | 301 | 891 | size_t unused; | 302 | 891 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 891 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 891 | if (_data.size != | 306 | 891 | _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 | 891 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 891 | _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 | 891 | 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 | 891 | _parsed = true; | 326 | 891 | return Status::OK(); | 327 | 891 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 299 | 942 | Status init() override { | 300 | 942 | CHECK(!_parsed); | 301 | 942 | size_t unused; | 302 | 942 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 942 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 942 | if (_data.size != | 306 | 942 | _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 | 942 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 942 | _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 | 942 | 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 | 942 | _parsed = true; | 326 | 942 | return Status::OK(); | 327 | 942 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 299 | 5.16k | Status init() override { | 300 | 5.16k | CHECK(!_parsed); | 301 | 5.16k | size_t unused; | 302 | 5.16k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 5.16k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 5.16k | if (_data.size != | 306 | 5.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 | 5.16k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 5.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 | 5.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 | 5.16k | _parsed = true; | 326 | 5.16k | return Status::OK(); | 327 | 5.16k | } |
|
328 | | |
329 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
330 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
331 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
332 | | // code such as check if the count == 0, then skip seek, but there are other method such |
333 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
334 | | // == 0, because next batch will return empty in this method. |
335 | 4.23M | Status seek_to_position_in_page(size_t pos) override { |
336 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
337 | 4.23M | if (_num_elements == 0) [[unlikely]] { |
338 | 13.6k | 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 | 13.6k | } |
343 | | |
344 | 4.23M | DCHECK_LE(pos, _num_elements); |
345 | 4.23M | _cur_index = pos; |
346 | 4.23M | return Status::OK(); |
347 | 4.23M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 320k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 320k | if (_num_elements == 0) [[unlikely]] { | 338 | 440 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 440 | } | 343 | | | 344 | 320k | DCHECK_LE(pos, _num_elements); | 345 | 320k | _cur_index = pos; | 346 | 320k | return Status::OK(); | 347 | 320k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 235k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 235k | 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 | 235k | DCHECK_LE(pos, _num_elements); | 345 | 235k | _cur_index = pos; | 346 | 235k | return Status::OK(); | 347 | 235k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.81M | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 1.81M | if (_num_elements == 0) [[unlikely]] { | 338 | 7.38k | 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 | 7.38k | } | 343 | | | 344 | 1.81M | DCHECK_LE(pos, _num_elements); | 345 | 1.81M | _cur_index = pos; | 346 | 1.81M | return Status::OK(); | 347 | 1.81M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 118k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 118k | if (_num_elements == 0) [[unlikely]] { | 338 | 595 | 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 | 595 | } | 343 | | | 344 | 118k | DCHECK_LE(pos, _num_elements); | 345 | 118k | _cur_index = pos; | 346 | 118k | return Status::OK(); | 347 | 118k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 116k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 116k | 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 | 116k | DCHECK_LE(pos, _num_elements); | 345 | 116k | _cur_index = pos; | 346 | 116k | return Status::OK(); | 347 | 116k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 13.8k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 13.8k | 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.8k | DCHECK_LE(pos, _num_elements); | 345 | 13.8k | _cur_index = pos; | 346 | 13.8k | return Status::OK(); | 347 | 13.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 239k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 239k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 239k | DCHECK_LE(pos, _num_elements); | 345 | 239k | _cur_index = pos; | 346 | 239k | return Status::OK(); | 347 | 239k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 212k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 212k | 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 | 212k | DCHECK_LE(pos, _num_elements); | 345 | 212k | _cur_index = pos; | 346 | 212k | return Status::OK(); | 347 | 212k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 94 | Status seek_to_position_in_page(size_t pos) override { | 336 | 94 | DCHECK(_parsed) << "Must call init()"; | 337 | 94 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 94 | DCHECK_LE(pos, _num_elements); | 345 | 94 | _cur_index = pos; | 346 | 94 | return Status::OK(); | 347 | 94 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 226k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 226k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 226k | DCHECK_LE(pos, _num_elements); | 345 | 226k | _cur_index = pos; | 346 | 226k | return Status::OK(); | 347 | 226k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 518k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 518k | 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 | 518k | DCHECK_LE(pos, _num_elements); | 345 | 518k | _cur_index = pos; | 346 | 518k | return Status::OK(); | 347 | 518k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 46.6k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 46.6k | if (_num_elements == 0) [[unlikely]] { | 338 | 14 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 14 | } | 343 | | | 344 | 46.6k | DCHECK_LE(pos, _num_elements); | 345 | 46.6k | _cur_index = pos; | 346 | 46.6k | return Status::OK(); | 347 | 46.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_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 | 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 | 970 | DCHECK_LE(pos, _num_elements); | 345 | 970 | _cur_index = pos; | 346 | 970 | return Status::OK(); | 347 | 970 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 211k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 211k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 211k | DCHECK_LE(pos, _num_elements); | 345 | 211k | _cur_index = pos; | 346 | 211k | return Status::OK(); | 347 | 211k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 7.35k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 7.35k | if (_num_elements == 0) [[unlikely]] { | 338 | 355 | 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 | 355 | } | 343 | | | 344 | 7.35k | DCHECK_LE(pos, _num_elements); | 345 | 7.35k | _cur_index = pos; | 346 | 7.35k | return Status::OK(); | 347 | 7.35k | } |
_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 | 860 | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 860 | if (_num_elements == 0) [[unlikely]] { | 338 | 26 | 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 | 26 | } | 343 | | | 344 | 860 | DCHECK_LE(pos, _num_elements); | 345 | 860 | _cur_index = pos; | 346 | 860 | return Status::OK(); | 347 | 860 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 19.3k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 19.3k | if (_num_elements == 0) [[unlikely]] { | 338 | 3.49k | 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.49k | } | 343 | | | 344 | 19.3k | DCHECK_LE(pos, _num_elements); | 345 | 19.3k | _cur_index = pos; | 346 | 19.3k | return Status::OK(); | 347 | 19.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 120k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 120k | if (_num_elements == 0) [[unlikely]] { | 338 | 1.11k | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 1.11k | } | 343 | | | 344 | 120k | DCHECK_LE(pos, _num_elements); | 345 | 120k | _cur_index = pos; | 346 | 120k | return Status::OK(); | 347 | 120k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.99k | Status seek_to_position_in_page(size_t pos) override { | 336 | 1.99k | DCHECK(_parsed) << "Must call init()"; | 337 | 1.99k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 1.99k | DCHECK_LE(pos, _num_elements); | 345 | 1.99k | _cur_index = pos; | 346 | 1.99k | return Status::OK(); | 347 | 1.99k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 53 | Status seek_to_position_in_page(size_t pos) override { | 336 | 53 | DCHECK(_parsed) << "Must call init()"; | 337 | 53 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 53 | DCHECK_LE(pos, _num_elements); | 345 | 53 | _cur_index = pos; | 346 | 53 | return Status::OK(); | 347 | 53 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 62 | Status seek_to_position_in_page(size_t pos) override { | 336 | 62 | DCHECK(_parsed) << "Must call init()"; | 337 | 62 | if (_num_elements == 0) [[unlikely]] { | 338 | 1 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 1 | } | 343 | | | 344 | 62 | DCHECK_LE(pos, _num_elements); | 345 | 62 | _cur_index = pos; | 346 | 62 | return Status::OK(); | 347 | 62 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 9.49k | Status seek_to_position_in_page(size_t pos) override { | 336 | 9.49k | DCHECK(_parsed) << "Must call init()"; | 337 | 9.49k | if (_num_elements == 0) [[unlikely]] { | 338 | 18 | 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 | 18 | } | 343 | | | 344 | 9.49k | DCHECK_LE(pos, _num_elements); | 345 | 9.49k | _cur_index = pos; | 346 | 9.49k | return Status::OK(); | 347 | 9.49k | } |
|
348 | | |
349 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
350 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
351 | | |
352 | 15 | if (_num_elements == 0) { |
353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
354 | 0 | } |
355 | | |
356 | 15 | size_t left = 0; |
357 | 15 | size_t right = _num_elements; |
358 | | |
359 | 15 | void* mid_value = nullptr; |
360 | | |
361 | | // find the first value >= target. after loop, |
362 | | // - left == index of first value >= target when found |
363 | | // - left == _num_elements when not found (all values < target) |
364 | 162 | while (left < right) { |
365 | 147 | size_t mid = left + (right - left) / 2; |
366 | 147 | mid_value = get_data(mid); |
367 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
368 | 68 | left = mid + 1; |
369 | 79 | } else { |
370 | 79 | right = mid; |
371 | 79 | } |
372 | 147 | } |
373 | 15 | if (left >= _num_elements) { |
374 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
375 | 3 | } |
376 | 12 | void* find_value = get_data(left); |
377 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
378 | 9 | *exact_match = true; |
379 | 9 | } else { |
380 | 3 | *exact_match = false; |
381 | 3 | } |
382 | | |
383 | 12 | _cur_index = left; |
384 | 12 | return Status::OK(); |
385 | 15 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 21 | left = mid + 1; | 369 | 28 | } else { | 370 | 28 | right = mid; | 371 | 28 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 22 | left = mid + 1; | 369 | 27 | } else { | 370 | 27 | right = mid; | 371 | 27 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 25 | left = mid + 1; | 369 | 25 | } else { | 370 | 24 | right = mid; | 371 | 24 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE22seek_at_or_after_valueEPKvPb |
386 | | |
387 | | template <bool forward_index = true> |
388 | 1.50M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
389 | 1.50M | DCHECK(_parsed); |
390 | 1.51M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
391 | 0 | *n = 0; |
392 | 0 | return Status::OK(); |
393 | 0 | } |
394 | | |
395 | 1.50M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
396 | | |
397 | 1.50M | StorageLayout<Type>::storage_to_column( |
398 | 1.50M | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); |
399 | 1.50M | *n = max_fetch; |
400 | 1.50M | if constexpr (forward_index) { |
401 | 1.45M | _cur_index += max_fetch; |
402 | 1.45M | } |
403 | | |
404 | 1.50M | return Status::OK(); |
405 | 1.50M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 146k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 146k | DCHECK(_parsed); | 390 | 146k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 146k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 146k | StorageLayout<Type>::storage_to_column( | 398 | 146k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 146k | *n = max_fetch; | 400 | 146k | if constexpr (forward_index) { | 401 | 146k | _cur_index += max_fetch; | 402 | 146k | } | 403 | | | 404 | 146k | return Status::OK(); | 405 | 146k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 10.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 10.1k | DCHECK(_parsed); | 390 | 10.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 10.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 10.1k | StorageLayout<Type>::storage_to_column( | 398 | 10.1k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 10.1k | *n = max_fetch; | 400 | 10.1k | if constexpr (forward_index) { | 401 | 10.1k | _cur_index += max_fetch; | 402 | 10.1k | } | 403 | | | 404 | 10.1k | return Status::OK(); | 405 | 10.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 446k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 446k | DCHECK(_parsed); | 390 | 447k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 446k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 446k | StorageLayout<Type>::storage_to_column( | 398 | 446k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 446k | *n = max_fetch; | 400 | 446k | if constexpr (forward_index) { | 401 | 446k | _cur_index += max_fetch; | 402 | 446k | } | 403 | | | 404 | 446k | return Status::OK(); | 405 | 446k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 64.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 64.1k | DCHECK(_parsed); | 390 | 64.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 64.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 64.1k | StorageLayout<Type>::storage_to_column( | 398 | 64.1k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 64.1k | *n = max_fetch; | 400 | 64.1k | if constexpr (forward_index) { | 401 | 64.1k | _cur_index += max_fetch; | 402 | 64.1k | } | 403 | | | 404 | 64.1k | return Status::OK(); | 405 | 64.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 12.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 12.5k | DCHECK(_parsed); | 390 | 12.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 12.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 12.5k | StorageLayout<Type>::storage_to_column( | 398 | 12.5k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 12.5k | *n = max_fetch; | 400 | 12.5k | if constexpr (forward_index) { | 401 | 12.5k | _cur_index += max_fetch; | 402 | 12.5k | } | 403 | | | 404 | 12.5k | return Status::OK(); | 405 | 12.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 | 93.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 93.6k | DCHECK(_parsed); | 390 | 93.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 93.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 93.6k | StorageLayout<Type>::storage_to_column( | 398 | 93.6k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 93.6k | *n = max_fetch; | 400 | 93.6k | if constexpr (forward_index) { | 401 | 93.6k | _cur_index += max_fetch; | 402 | 93.6k | } | 403 | | | 404 | 93.6k | return Status::OK(); | 405 | 93.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 52.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 52.9k | DCHECK(_parsed); | 390 | 52.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 52.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 52.9k | StorageLayout<Type>::storage_to_column( | 398 | 52.9k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 52.9k | *n = max_fetch; | 400 | | if constexpr (forward_index) { | 401 | | _cur_index += max_fetch; | 402 | | } | 403 | | | 404 | 52.9k | return Status::OK(); | 405 | 52.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 5.45k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 5.45k | DCHECK(_parsed); | 390 | 5.46k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 5.45k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 5.45k | StorageLayout<Type>::storage_to_column( | 398 | 5.45k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 5.45k | *n = max_fetch; | 400 | 5.45k | if constexpr (forward_index) { | 401 | 5.45k | _cur_index += max_fetch; | 402 | 5.45k | } | 403 | | | 404 | 5.45k | return Status::OK(); | 405 | 5.45k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 35.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 35.9k | DCHECK(_parsed); | 390 | 36.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 35.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 35.9k | StorageLayout<Type>::storage_to_column( | 398 | 35.9k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 35.9k | *n = max_fetch; | 400 | 35.9k | if constexpr (forward_index) { | 401 | 35.9k | _cur_index += max_fetch; | 402 | 35.9k | } | 403 | | | 404 | 35.9k | return Status::OK(); | 405 | 35.9k | } |
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.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 4.26k | DCHECK(_parsed); | 390 | 4.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 4.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 4.26k | StorageLayout<Type>::storage_to_column( | 398 | 4.26k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 4.26k | *n = max_fetch; | 400 | 4.26k | if constexpr (forward_index) { | 401 | 4.26k | _cur_index += max_fetch; | 402 | 4.26k | } | 403 | | | 404 | 4.26k | return Status::OK(); | 405 | 4.26k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 378k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 378k | DCHECK(_parsed); | 390 | 378k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 378k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 378k | StorageLayout<Type>::storage_to_column( | 398 | 378k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 378k | *n = max_fetch; | 400 | 378k | if constexpr (forward_index) { | 401 | 378k | _cur_index += max_fetch; | 402 | 378k | } | 403 | | | 404 | 378k | return Status::OK(); | 405 | 378k | } |
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.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 63.6k | DCHECK(_parsed); | 390 | 63.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 63.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 63.6k | StorageLayout<Type>::storage_to_column( | 398 | 63.6k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 63.6k | *n = max_fetch; | 400 | 63.6k | if constexpr (forward_index) { | 401 | 63.6k | _cur_index += max_fetch; | 402 | 63.6k | } | 403 | | | 404 | 63.6k | return Status::OK(); | 405 | 63.6k | } |
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.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 2.14k | DCHECK(_parsed); | 390 | 2.14k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 2.14k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 2.14k | StorageLayout<Type>::storage_to_column( | 398 | 2.14k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 2.14k | *n = max_fetch; | 400 | 2.14k | if constexpr (forward_index) { | 401 | 2.14k | _cur_index += max_fetch; | 402 | 2.14k | } | 403 | | | 404 | 2.14k | return Status::OK(); | 405 | 2.14k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 1.35k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.35k | DCHECK(_parsed); | 390 | 1.35k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.35k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.35k | StorageLayout<Type>::storage_to_column( | 398 | 1.35k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.35k | *n = max_fetch; | 400 | 1.35k | if constexpr (forward_index) { | 401 | 1.35k | _cur_index += max_fetch; | 402 | 1.35k | } | 403 | | | 404 | 1.35k | return Status::OK(); | 405 | 1.35k | } |
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.48k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 8.48k | DCHECK(_parsed); | 390 | 8.48k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 8.48k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 8.48k | StorageLayout<Type>::storage_to_column( | 398 | 8.48k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 8.48k | *n = max_fetch; | 400 | 8.48k | if constexpr (forward_index) { | 401 | 8.48k | _cur_index += max_fetch; | 402 | 8.48k | } | 403 | | | 404 | 8.48k | return Status::OK(); | 405 | 8.48k | } |
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.79k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 7.79k | DCHECK(_parsed); | 390 | 7.79k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 7.79k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 7.79k | StorageLayout<Type>::storage_to_column( | 398 | 7.79k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 7.79k | *n = max_fetch; | 400 | 7.79k | if constexpr (forward_index) { | 401 | 7.79k | _cur_index += max_fetch; | 402 | 7.79k | } | 403 | | | 404 | 7.79k | return Status::OK(); | 405 | 7.79k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 52.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 52.3k | DCHECK(_parsed); | 390 | 52.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 52.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 52.3k | StorageLayout<Type>::storage_to_column( | 398 | 52.3k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 52.3k | *n = max_fetch; | 400 | 52.3k | if constexpr (forward_index) { | 401 | 52.3k | _cur_index += max_fetch; | 402 | 52.3k | } | 403 | | | 404 | 52.3k | return Status::OK(); | 405 | 52.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 | 21.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 21.3k | DCHECK(_parsed); | 390 | 21.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 21.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 21.3k | StorageLayout<Type>::storage_to_column( | 398 | 21.3k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 21.3k | *n = max_fetch; | 400 | 21.3k | if constexpr (forward_index) { | 401 | 21.3k | _cur_index += max_fetch; | 402 | 21.3k | } | 403 | | | 404 | 21.3k | return Status::OK(); | 405 | 21.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 | 636 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 636 | DCHECK(_parsed); | 390 | 636 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 636 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 636 | StorageLayout<Type>::storage_to_column( | 398 | 636 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 636 | *n = max_fetch; | 400 | 636 | if constexpr (forward_index) { | 401 | 636 | _cur_index += max_fetch; | 402 | 636 | } | 403 | | | 404 | 636 | return Status::OK(); | 405 | 636 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 658 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 658 | DCHECK(_parsed); | 390 | 658 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 658 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 658 | StorageLayout<Type>::storage_to_column( | 398 | 658 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 658 | *n = max_fetch; | 400 | 658 | if constexpr (forward_index) { | 401 | 658 | _cur_index += max_fetch; | 402 | 658 | } | 403 | | | 404 | 658 | return Status::OK(); | 405 | 658 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 94.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 94.9k | DCHECK(_parsed); | 390 | 94.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 94.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 94.9k | StorageLayout<Type>::storage_to_column( | 398 | 94.9k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 94.9k | *n = max_fetch; | 400 | 94.9k | if constexpr (forward_index) { | 401 | 94.9k | _cur_index += max_fetch; | 402 | 94.9k | } | 403 | | | 404 | 94.9k | return Status::OK(); | 405 | 94.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
406 | | |
407 | 1.45M | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 146k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 10.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 449k | 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 | 64.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 12.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 | 93.7k | 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 | 5.47k | 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 | 35.9k | 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.26k | 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 | 378k | 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.6k | 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.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 1.35k | 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.49k | 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.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 7.80k | 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 | 52.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 | 21.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 | 637 | 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 | 659 | 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 | 95.0k | 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 | 364k | MutableColumnPtr& dst) override { |
411 | 364k | DCHECK(_parsed); |
412 | 364k | if (*n == 0) [[unlikely]] { |
413 | 0 | *n = 0; |
414 | 0 | return Status::OK(); |
415 | 0 | } |
416 | | |
417 | 364k | auto total = *n; |
418 | 364k | auto read_count = 0; |
419 | 364k | _buffer.resize(total); |
420 | 89.1M | for (size_t i = 0; i < total; ++i) { |
421 | 88.7M | ordinal_t ord = rowids[i] - page_first_ordinal; |
422 | 88.7M | if (UNLIKELY(ord >= _num_elements)) { |
423 | 9.50k | break; |
424 | 9.50k | } |
425 | | |
426 | 88.7M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
427 | 88.7M | } |
428 | | |
429 | 364k | if (LIKELY(read_count > 0)) { |
430 | 364k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), |
431 | 364k | read_count, *dst); |
432 | 364k | } |
433 | | |
434 | 364k | *n = read_count; |
435 | 364k | return Status::OK(); |
436 | 364k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 39.6k | MutableColumnPtr& dst) override { | 411 | 39.6k | DCHECK(_parsed); | 412 | 39.6k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 39.6k | auto total = *n; | 418 | 39.6k | auto read_count = 0; | 419 | 39.6k | _buffer.resize(total); | 420 | 2.15M | for (size_t i = 0; i < total; ++i) { | 421 | 2.11M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 2.11M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 2.11M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 2.11M | } | 428 | | | 429 | 39.7k | if (LIKELY(read_count > 0)) { | 430 | 39.7k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 39.7k | read_count, *dst); | 432 | 39.7k | } | 433 | | | 434 | 39.6k | *n = read_count; | 435 | 39.6k | return Status::OK(); | 436 | 39.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 5.89k | MutableColumnPtr& dst) override { | 411 | 5.89k | DCHECK(_parsed); | 412 | 5.89k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 5.89k | auto total = *n; | 418 | 5.89k | auto read_count = 0; | 419 | 5.89k | _buffer.resize(total); | 420 | 677k | for (size_t i = 0; i < total; ++i) { | 421 | 671k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 671k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 13 | break; | 424 | 13 | } | 425 | | | 426 | 671k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 671k | } | 428 | | | 429 | 5.89k | if (LIKELY(read_count > 0)) { | 430 | 5.89k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 5.89k | read_count, *dst); | 432 | 5.89k | } | 433 | | | 434 | 5.89k | *n = read_count; | 435 | 5.89k | return Status::OK(); | 436 | 5.89k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 70.3k | MutableColumnPtr& dst) override { | 411 | 70.3k | DCHECK(_parsed); | 412 | 70.3k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 70.3k | auto total = *n; | 418 | 70.3k | auto read_count = 0; | 419 | 70.3k | _buffer.resize(total); | 420 | 13.9M | for (size_t i = 0; i < total; ++i) { | 421 | 13.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 13.8M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 265 | break; | 424 | 265 | } | 425 | | | 426 | 13.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 13.8M | } | 428 | | | 429 | 70.3k | if (LIKELY(read_count > 0)) { | 430 | 70.3k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 70.3k | read_count, *dst); | 432 | 70.3k | } | 433 | | | 434 | 70.3k | *n = read_count; | 435 | 70.3k | return Status::OK(); | 436 | 70.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 38.3k | MutableColumnPtr& dst) override { | 411 | 38.3k | DCHECK(_parsed); | 412 | 38.3k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 38.3k | auto total = *n; | 418 | 38.3k | auto read_count = 0; | 419 | 38.3k | _buffer.resize(total); | 420 | 18.3M | for (size_t i = 0; i < total; ++i) { | 421 | 18.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 18.2M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1.47k | break; | 424 | 1.47k | } | 425 | | | 426 | 18.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 18.2M | } | 428 | | | 429 | 38.4k | if (LIKELY(read_count > 0)) { | 430 | 38.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 38.4k | read_count, *dst); | 432 | 38.4k | } | 433 | | | 434 | 38.3k | *n = read_count; | 435 | 38.3k | return Status::OK(); | 436 | 38.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 9.42k | MutableColumnPtr& dst) override { | 411 | 9.42k | DCHECK(_parsed); | 412 | 9.42k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 9.42k | auto total = *n; | 418 | 9.42k | auto read_count = 0; | 419 | 9.42k | _buffer.resize(total); | 420 | 1.64M | for (size_t i = 0; i < total; ++i) { | 421 | 1.63M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.63M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 545 | break; | 424 | 545 | } | 425 | | | 426 | 1.63M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.63M | } | 428 | | | 429 | 9.42k | if (LIKELY(read_count > 0)) { | 430 | 9.42k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 9.42k | read_count, *dst); | 432 | 9.42k | } | 433 | | | 434 | 9.42k | *n = read_count; | 435 | 9.42k | return Status::OK(); | 436 | 9.42k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 64.3k | MutableColumnPtr& dst) override { | 411 | 64.3k | DCHECK(_parsed); | 412 | 64.3k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 64.3k | auto total = *n; | 418 | 64.3k | auto read_count = 0; | 419 | 64.3k | _buffer.resize(total); | 420 | 567k | for (size_t i = 0; i < total; ++i) { | 421 | 502k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 502k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 12 | break; | 424 | 12 | } | 425 | | | 426 | 502k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 502k | } | 428 | | | 429 | 64.3k | if (LIKELY(read_count > 0)) { | 430 | 64.3k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 64.3k | read_count, *dst); | 432 | 64.3k | } | 433 | | | 434 | 64.3k | *n = read_count; | 435 | 64.3k | return Status::OK(); | 436 | 64.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.35k | MutableColumnPtr& dst) override { | 411 | 5.35k | DCHECK(_parsed); | 412 | 5.35k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 5.35k | auto total = *n; | 418 | 5.35k | auto read_count = 0; | 419 | 5.35k | _buffer.resize(total); | 420 | 1.21M | for (size_t i = 0; i < total; ++i) { | 421 | 1.20M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.20M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 29 | break; | 424 | 29 | } | 425 | | | 426 | 1.20M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.20M | } | 428 | | | 429 | 5.35k | if (LIKELY(read_count > 0)) { | 430 | 5.35k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 5.35k | read_count, *dst); | 432 | 5.35k | } | 433 | | | 434 | 5.35k | *n = read_count; | 435 | 5.35k | return Status::OK(); | 436 | 5.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 6.63k | MutableColumnPtr& dst) override { | 411 | 6.63k | DCHECK(_parsed); | 412 | 6.63k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 6.63k | auto total = *n; | 418 | 6.63k | auto read_count = 0; | 419 | 6.63k | _buffer.resize(total); | 420 | 1.38M | for (size_t i = 0; i < total; ++i) { | 421 | 1.38M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.38M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 350 | break; | 424 | 350 | } | 425 | | | 426 | 1.38M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.38M | } | 428 | | | 429 | 6.63k | if (LIKELY(read_count > 0)) { | 430 | 6.63k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 6.63k | read_count, *dst); | 432 | 6.63k | } | 433 | | | 434 | 6.63k | *n = read_count; | 435 | 6.63k | return Status::OK(); | 436 | 6.63k | } |
_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.49k | MutableColumnPtr& dst) override { | 411 | 1.49k | DCHECK(_parsed); | 412 | 1.49k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.49k | auto total = *n; | 418 | 1.49k | auto read_count = 0; | 419 | 1.49k | _buffer.resize(total); | 420 | 505k | 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 | 13 | break; | 424 | 13 | } | 425 | | | 426 | 503k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 503k | } | 428 | | | 429 | 1.49k | if (LIKELY(read_count > 0)) { | 430 | 1.49k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.49k | read_count, *dst); | 432 | 1.49k | } | 433 | | | 434 | 1.49k | *n = read_count; | 435 | 1.49k | return Status::OK(); | 436 | 1.49k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27.9k | MutableColumnPtr& dst) override { | 411 | 27.9k | DCHECK(_parsed); | 412 | 27.9k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27.9k | auto total = *n; | 418 | 27.9k | auto read_count = 0; | 419 | 27.9k | _buffer.resize(total); | 420 | 7.23M | for (size_t i = 0; i < total; ++i) { | 421 | 7.20M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 7.20M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 529 | break; | 424 | 529 | } | 425 | | | 426 | 7.20M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 7.20M | } | 428 | | | 429 | 28.0k | if (LIKELY(read_count > 0)) { | 430 | 28.0k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 28.0k | read_count, *dst); | 432 | 28.0k | } | 433 | | | 434 | 27.9k | *n = read_count; | 435 | 27.9k | return Status::OK(); | 436 | 27.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 32.4k | MutableColumnPtr& dst) override { | 411 | 32.4k | DCHECK(_parsed); | 412 | 32.4k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 32.4k | auto total = *n; | 418 | 32.4k | auto read_count = 0; | 419 | 32.4k | _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 | 147 | break; | 424 | 147 | } | 425 | | | 426 | 10.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 10.4M | } | 428 | | | 429 | 32.4k | if (LIKELY(read_count > 0)) { | 430 | 32.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 32.4k | read_count, *dst); | 432 | 32.4k | } | 433 | | | 434 | 32.4k | *n = read_count; | 435 | 32.4k | return Status::OK(); | 436 | 32.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.22k | MutableColumnPtr& dst) override { | 411 | 1.22k | DCHECK(_parsed); | 412 | 1.22k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.22k | auto total = *n; | 418 | 1.22k | auto read_count = 0; | 419 | 1.22k | _buffer.resize(total); | 420 | 4.26k | for (size_t i = 0; i < total; ++i) { | 421 | 3.03k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 3.03k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 3.03k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 3.03k | } | 428 | | | 429 | 1.23k | if (LIKELY(read_count > 0)) { | 430 | 1.23k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.23k | read_count, *dst); | 432 | 1.23k | } | 433 | | | 434 | 1.22k | *n = read_count; | 435 | 1.22k | return Status::OK(); | 436 | 1.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.82k | MutableColumnPtr& dst) override { | 411 | 1.82k | DCHECK(_parsed); | 412 | 1.82k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.82k | auto total = *n; | 418 | 1.82k | auto read_count = 0; | 419 | 1.82k | _buffer.resize(total); | 420 | 504k | for (size_t i = 0; i < total; ++i) { | 421 | 502k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 502k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 243 | break; | 424 | 243 | } | 425 | | | 426 | 502k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 502k | } | 428 | | | 429 | 1.82k | if (LIKELY(read_count > 0)) { | 430 | 1.82k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.82k | read_count, *dst); | 432 | 1.82k | } | 433 | | | 434 | 1.82k | *n = read_count; | 435 | 1.82k | return Status::OK(); | 436 | 1.82k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 12.8k | MutableColumnPtr& dst) override { | 411 | 12.8k | DCHECK(_parsed); | 412 | 12.8k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 12.8k | auto total = *n; | 418 | 12.8k | auto read_count = 0; | 419 | 12.8k | _buffer.resize(total); | 420 | 27.3k | for (size_t i = 0; i < total; ++i) { | 421 | 14.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.5k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.5k | } | 428 | | | 429 | 12.8k | if (LIKELY(read_count > 0)) { | 430 | 12.8k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 12.8k | read_count, *dst); | 432 | 12.8k | } | 433 | | | 434 | 12.8k | *n = read_count; | 435 | 12.8k | return Status::OK(); | 436 | 12.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 162 | MutableColumnPtr& dst) override { | 411 | 162 | DCHECK(_parsed); | 412 | 162 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 162 | auto total = *n; | 418 | 162 | auto read_count = 0; | 419 | 162 | _buffer.resize(total); | 420 | 469 | for (size_t i = 0; i < total; ++i) { | 421 | 309 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 309 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 2 | break; | 424 | 2 | } | 425 | | | 426 | 307 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 307 | } | 428 | | | 429 | 162 | if (LIKELY(read_count > 0)) { | 430 | 162 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 162 | read_count, *dst); | 432 | 162 | } | 433 | | | 434 | 162 | *n = read_count; | 435 | 162 | return Status::OK(); | 436 | 162 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 4.53k | MutableColumnPtr& dst) override { | 411 | 4.53k | DCHECK(_parsed); | 412 | 4.53k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 4.53k | auto total = *n; | 418 | 4.53k | auto read_count = 0; | 419 | 4.53k | _buffer.resize(total); | 420 | 18.9k | for (size_t i = 0; i < total; ++i) { | 421 | 14.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.4k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.4k | } | 428 | | | 429 | 4.53k | if (LIKELY(read_count > 0)) { | 430 | 4.53k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 4.53k | read_count, *dst); | 432 | 4.53k | } | 433 | | | 434 | 4.53k | *n = read_count; | 435 | 4.53k | return Status::OK(); | 436 | 4.53k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 25.8k | MutableColumnPtr& dst) override { | 411 | 25.8k | DCHECK(_parsed); | 412 | 25.8k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 25.8k | auto total = *n; | 418 | 25.8k | auto read_count = 0; | 419 | 25.8k | _buffer.resize(total); | 420 | 20.9M | for (size_t i = 0; i < total; ++i) { | 421 | 20.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 20.9M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 5.19k | break; | 424 | 5.19k | } | 425 | | | 426 | 20.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 20.9M | } | 428 | | | 429 | 25.8k | if (LIKELY(read_count > 0)) { | 430 | 25.8k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 25.8k | read_count, *dst); | 432 | 25.8k | } | 433 | | | 434 | 25.8k | *n = read_count; | 435 | 25.8k | return Status::OK(); | 436 | 25.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 13.5k | MutableColumnPtr& dst) override { | 411 | 13.5k | DCHECK(_parsed); | 412 | 13.5k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 13.5k | auto total = *n; | 418 | 13.5k | auto read_count = 0; | 419 | 13.5k | _buffer.resize(total); | 420 | 9.44M | for (size_t i = 0; i < total; ++i) { | 421 | 9.42M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 9.42M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 678 | break; | 424 | 678 | } | 425 | | | 426 | 9.42M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 9.42M | } | 428 | | | 429 | 13.5k | if (LIKELY(read_count > 0)) { | 430 | 13.5k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 13.5k | read_count, *dst); | 432 | 13.5k | } | 433 | | | 434 | 13.5k | *n = read_count; | 435 | 13.5k | return Status::OK(); | 436 | 13.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.00k | MutableColumnPtr& dst) override { | 411 | 1.00k | DCHECK(_parsed); | 412 | 1.00k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.00k | auto total = *n; | 418 | 1.00k | auto read_count = 0; | 419 | 1.00k | _buffer.resize(total); | 420 | 2.98k | for (size_t i = 0; i < total; ++i) { | 421 | 1.99k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.99k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 6 | break; | 424 | 6 | } | 425 | | | 426 | 1.98k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.98k | } | 428 | | | 429 | 1.00k | if (LIKELY(read_count > 0)) { | 430 | 1.00k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.00k | read_count, *dst); | 432 | 1.00k | } | 433 | | | 434 | 1.00k | *n = read_count; | 435 | 1.00k | return Status::OK(); | 436 | 1.00k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 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 | 339 | MutableColumnPtr& dst) override { | 411 | 339 | DCHECK(_parsed); | 412 | 339 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 339 | auto total = *n; | 418 | 339 | auto read_count = 0; | 419 | 339 | _buffer.resize(total); | 420 | 1.34k | for (size_t i = 0; i < total; ++i) { | 421 | 1.00k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.00k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 1.00k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.00k | } | 428 | | | 429 | 341 | if (LIKELY(read_count > 0)) { | 430 | 341 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 341 | read_count, *dst); | 432 | 341 | } | 433 | | | 434 | 339 | *n = read_count; | 435 | 339 | return Status::OK(); | 436 | 339 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 541 | MutableColumnPtr& dst) override { | 411 | 541 | DCHECK(_parsed); | 412 | 541 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 541 | auto total = *n; | 418 | 541 | auto read_count = 0; | 419 | 541 | _buffer.resize(total); | 420 | 1.33k | for (size_t i = 0; i < total; ++i) { | 421 | 799 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 799 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 796 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 796 | } | 428 | | | 429 | 541 | if (LIKELY(read_count > 0)) { | 430 | 541 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 541 | read_count, *dst); | 432 | 541 | } | 433 | | | 434 | 541 | *n = read_count; | 435 | 541 | return Status::OK(); | 436 | 541 | } |
|
437 | | |
438 | 52.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
439 | 52.9k | return next_batch<false>(n, dst); |
440 | 52.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 | 52.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 439 | 52.9k | return next_batch<false>(n, dst); | 440 | 52.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
441 | | |
442 | 4 | size_t count() const override { return _num_elements; }Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 442 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE5countEv |
443 | | |
444 | 3.94M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 444 | 233k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 444 | 231k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 444 | 2.00M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 444 | 86.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 444 | 110k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 444 | 238k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 444 | 210k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv Line | Count | Source | 444 | 184 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 444 | 222k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 444 | 240k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 444 | 18.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 444 | 315 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 444 | 210k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 444 | 1.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.60k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 444 | 4.63k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 444 | 115k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 444 | 367 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 444 | 91 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 444 | 99 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 444 | 11.6k | size_t current_index() const override { return _cur_index; } |
|
445 | | |
446 | 91.7M | char* get_data(size_t index) const { |
447 | 91.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
448 | 91.7M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 446 | 2.26M | char* get_data(size_t index) const { | 447 | 2.26M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 2.26M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 446 | 681k | char* get_data(size_t index) const { | 447 | 681k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 681k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 446 | 15.8M | char* get_data(size_t index) const { | 447 | 15.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 15.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 446 | 18.3M | char* get_data(size_t index) const { | 447 | 18.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 18.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 446 | 1.64M | char* get_data(size_t index) const { | 447 | 1.64M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.64M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 446 | 649k | char* get_data(size_t index) const { | 447 | 649k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 649k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 446 | 1.21M | char* get_data(size_t index) const { | 447 | 1.21M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.21M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 446 | 1.41M | char* get_data(size_t index) const { | 447 | 1.41M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.41M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 446 | 803 | char* get_data(size_t index) const { | 447 | 803 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 803 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 446 | 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.58M | char* get_data(size_t index) const { | 447 | 7.58M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 7.58M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 446 | 10.5M | char* get_data(size_t index) const { | 447 | 10.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 10.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_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_9FieldTypeE15EE8get_dataEm Line | Count | Source | 446 | 503k | char* get_data(size_t index) const { | 447 | 503k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 503k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 446 | 23.0k | char* get_data(size_t index) const { | 447 | 23.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 23.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 446 | 1.62k | char* get_data(size_t index) const { | 447 | 1.62k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.62k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 446 | 22.2k | char* get_data(size_t index) const { | 447 | 22.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 22.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 446 | 21.0M | char* get_data(size_t index) const { | 447 | 21.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 21.0M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 446 | 9.45M | char* get_data(size_t index) const { | 447 | 9.45M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 9.45M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 446 | 5.16k | char* get_data(size_t index) const { | 447 | 5.16k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 5.16k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 446 | 1.33k | char* get_data(size_t index) const { | 447 | 1.33k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.33k | } |
_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 | 95.7k | char* get_data(size_t index) const { | 447 | 95.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 95.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 |