be/src/storage/segment/bitshuffle_page.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <glog/logging.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <cstddef> |
24 | | #include <cstdint> |
25 | | #include <cstring> |
26 | | #include <ostream> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/cast_set.h" |
30 | | #include "common/compiler_util.h" // IWYU pragma: keep |
31 | | #include "common/status.h" |
32 | | #include "core/column/column.h" |
33 | | #include "core/data_type/data_type.h" |
34 | | #include "core/types.h" |
35 | | #include "storage/olap_common.h" |
36 | | #include "storage/segment/bitshuffle_wrapper.h" |
37 | | #include "storage/segment/common.h" |
38 | | #include "storage/segment/options.h" |
39 | | #include "storage/segment/page_builder.h" |
40 | | #include "storage/segment/page_decoder.h" |
41 | | #include "storage/types.h" |
42 | | #include "util/alignment.h" |
43 | | #include "util/coding.h" |
44 | | #include "util/faststring.h" |
45 | | #include "util/slice.h" |
46 | | |
47 | | namespace doris { |
48 | | namespace segment_v2 { |
49 | | |
50 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
51 | | |
52 | | void warn_with_bitshuffle_error(int64_t val); |
53 | | |
54 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
55 | | // size type blocks with lz4. |
56 | | // |
57 | | // The page format is as follows: |
58 | | // |
59 | | // 1. Header: (16 bytes total) |
60 | | // |
61 | | // <num_elements> [32-bit] |
62 | | // The number of elements encoded in the page. |
63 | | // |
64 | | // <compressed_size> [32-bit] |
65 | | // The post-compression size of the page, including this header. |
66 | | // |
67 | | // <padded_num_elements> [32-bit] |
68 | | // Padding is needed to meet the requirements of the bitshuffle |
69 | | // library such that the input/output is a multiple of 8. Some |
70 | | // ignored elements are appended to the end of the page if necessary |
71 | | // to meet this requirement. |
72 | | // |
73 | | // This header field is the post-padding element count. |
74 | | // |
75 | | // <elem_size_bytes> [32-bit] |
76 | | // The size of the elements, in bytes, as actually encoded. In the |
77 | | // case that all of the data in a page can fit into a smaller |
78 | | // integer type, then we may choose to encode that smaller type |
79 | | // to save CPU costs. |
80 | | // |
81 | | // This is currently only implemented in the UINT32 page type. |
82 | | // |
83 | | // NOTE: all on-disk ints are encoded little-endian |
84 | | // |
85 | | // 2. Element data |
86 | | // |
87 | | // The header is followed by the bitshuffle-compressed element data. |
88 | | // |
89 | | template <FieldType Type> |
90 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
91 | | public: |
92 | | using Self = BitshufflePageBuilder<Type>; |
93 | | friend class PageBuilderHelper<Self>; |
94 | | |
95 | 747k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 47.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.13k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 362k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 104k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 11.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 66.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 6.39k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 7.90k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 335 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 333 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 431 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.54k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 334 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.85k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 11.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.20k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 712 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 709 | Status init() override { return reset(); } |
|
96 | | |
97 | 136M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 50.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 10.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 136M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 287k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 10.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 66.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 6.28k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 8.86k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 351 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 44.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 44.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 276 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 494 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.65k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 240 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.89k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 23.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 17.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.38k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 613 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 626 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.25M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.25M | return add_internal<false>(vals, count); |
101 | 1.25M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 50.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 50.4k | return add_internal<false>(vals, count); | 101 | 50.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 10.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.6k | return add_internal<false>(vals, count); | 101 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 669k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 669k | return add_internal<false>(vals, count); | 101 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 287k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 287k | return add_internal<false>(vals, count); | 101 | 287k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 10.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.9k | return add_internal<false>(vals, count); | 101 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 66.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 66.3k | return add_internal<false>(vals, count); | 101 | 66.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 6.28k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.28k | return add_internal<false>(vals, count); | 101 | 6.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 8.86k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.86k | return add_internal<false>(vals, count); | 101 | 8.86k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 351 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 351 | return add_internal<false>(vals, count); | 101 | 351 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 44.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.6k | return add_internal<false>(vals, count); | 101 | 44.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 44.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.7k | return add_internal<false>(vals, count); | 101 | 44.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 276 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 276 | return add_internal<false>(vals, count); | 101 | 276 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 494 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 494 | return add_internal<false>(vals, count); | 101 | 494 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.66k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.66k | return add_internal<false>(vals, count); | 101 | 7.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 240 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 240 | return add_internal<false>(vals, count); | 101 | 240 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.89k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.89k | return add_internal<false>(vals, count); | 101 | 5.89k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 23.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 23.1k | return add_internal<false>(vals, count); | 101 | 23.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 17.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 17.8k | return add_internal<false>(vals, count); | 101 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.38k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.38k | return add_internal<false>(vals, count); | 101 | 1.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 613 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 613 | return add_internal<false>(vals, count); | 101 | 613 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 626 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 626 | return add_internal<false>(vals, count); | 101 | 626 | } |
|
102 | | |
103 | 137M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 137M | return add_internal<true>(vals, count); |
105 | 137M | } |
106 | | |
107 | | template <bool single> |
108 | 135M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 135M | DCHECK(!_finished); |
110 | 135M | if (_remain_element_capacity == 0) { |
111 | 0 | *num_written = 0; |
112 | 0 | return Status::OK(); |
113 | 0 | } |
114 | | |
115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
116 | | // the row count of a single men tbl could be very large. |
117 | | // a real log: |
118 | | /* |
119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
120 | | */ |
121 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
125 | 135M | uint32_t to_add = cast_set<UInt32>( |
126 | 135M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
128 | 135M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 135M | size_t orig_size = _data.size(); |
130 | | // This may need a large memory, should return error if could not allocated |
131 | | // successfully, to avoid BE OOM. |
132 | 135M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 138M | _count += to_add; |
134 | 138M | _remain_element_capacity -= to_add; |
135 | 138M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 138M | *num_written = to_add; |
138 | 138M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | _data[orig_size] = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 137M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 137M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 137M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 137M | return Status::OK(); |
150 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
152 | | *reinterpret_cast<const uint64_t*>(vals); |
153 | | return Status::OK(); |
154 | | } |
155 | 137M | } |
156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
158 | 138M | return Status::OK(); |
159 | 135M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 50.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 50.4k | DCHECK(!_finished); | 110 | 50.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 50.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 50.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 50.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 50.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 50.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 50.4k | _count += to_add; | 134 | 50.4k | _remain_element_capacity -= to_add; | 135 | 50.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 50.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 50.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 50.4k | return Status::OK(); | 159 | 50.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.6k | DCHECK(!_finished); | 110 | 10.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 10.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 10.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 10.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.6k | _count += to_add; | 134 | 10.6k | _remain_element_capacity -= to_add; | 135 | 10.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 10.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.6k | return Status::OK(); | 159 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 669k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 669k | DCHECK(!_finished); | 110 | 669k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 669k | uint32_t to_add = cast_set<UInt32>( | 126 | 669k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 669k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 669k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 669k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 669k | _count += to_add; | 134 | 669k | _remain_element_capacity -= to_add; | 135 | 669k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 669k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 669k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 669k | return Status::OK(); | 159 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 287k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 287k | DCHECK(!_finished); | 110 | 287k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 287k | uint32_t to_add = cast_set<UInt32>( | 126 | 287k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 287k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 287k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 287k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 287k | _count += to_add; | 134 | 287k | _remain_element_capacity -= to_add; | 135 | 287k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 287k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 287k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 287k | return Status::OK(); | 159 | 287k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.9k | DCHECK(!_finished); | 110 | 10.9k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 10.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 10.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.9k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 10.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.9k | _count += to_add; | 134 | 10.9k | _remain_element_capacity -= to_add; | 135 | 10.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.9k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 10.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.9k | return Status::OK(); | 159 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 66.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 66.3k | DCHECK(!_finished); | 110 | 66.3k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 66.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 66.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 66.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 66.3k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 66.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 66.3k | _count += to_add; | 134 | 66.3k | _remain_element_capacity -= to_add; | 135 | 66.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 66.3k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 66.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 66.3k | return Status::OK(); | 159 | 66.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.28k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.28k | DCHECK(!_finished); | 110 | 6.28k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 6.28k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.28k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 6.28k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.28k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 6.28k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.28k | _count += to_add; | 134 | 6.28k | _remain_element_capacity -= to_add; | 135 | 6.28k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.28k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 6.28k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.28k | return Status::OK(); | 159 | 6.28k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.86k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.86k | DCHECK(!_finished); | 110 | 8.86k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 8.86k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.86k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 8.86k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.86k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 8.86k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.86k | _count += to_add; | 134 | 8.86k | _remain_element_capacity -= to_add; | 135 | 8.86k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.86k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 8.86k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.86k | return Status::OK(); | 159 | 8.86k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 351 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 351 | DCHECK(!_finished); | 110 | 351 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 351 | uint32_t to_add = cast_set<UInt32>( | 126 | 351 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 351 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 351 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 351 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 351 | _count += to_add; | 134 | 351 | _remain_element_capacity -= to_add; | 135 | 351 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 351 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 351 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 351 | return Status::OK(); | 159 | 351 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.6k | DCHECK(!_finished); | 110 | 44.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.6k | _count += to_add; | 134 | 44.6k | _remain_element_capacity -= to_add; | 135 | 44.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 44.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.6k | return Status::OK(); | 159 | 44.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.7k | DCHECK(!_finished); | 110 | 44.7k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.7k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.7k | _count += to_add; | 134 | 44.7k | _remain_element_capacity -= to_add; | 135 | 44.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 44.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.7k | return Status::OK(); | 159 | 44.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 276 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 276 | DCHECK(!_finished); | 110 | 276 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 276 | uint32_t to_add = cast_set<UInt32>( | 126 | 276 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 276 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 276 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 276 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 276 | _count += to_add; | 134 | 276 | _remain_element_capacity -= to_add; | 135 | 276 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 276 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 276 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 276 | return Status::OK(); | 159 | 276 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 494 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 494 | DCHECK(!_finished); | 110 | 494 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 494 | uint32_t to_add = cast_set<UInt32>( | 126 | 494 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 494 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 494 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 494 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 494 | _count += to_add; | 134 | 494 | _remain_element_capacity -= to_add; | 135 | 494 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 494 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 494 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 494 | return Status::OK(); | 159 | 494 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.65k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.65k | DCHECK(!_finished); | 110 | 7.65k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 7.65k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.65k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 7.65k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.65k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 7.65k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.65k | _count += to_add; | 134 | 7.65k | _remain_element_capacity -= to_add; | 135 | 7.65k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.65k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 7.65k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.65k | return Status::OK(); | 159 | 7.65k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 240 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 240 | DCHECK(!_finished); | 110 | 240 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 240 | uint32_t to_add = cast_set<UInt32>( | 126 | 240 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 240 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 240 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 240 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 240 | _count += to_add; | 134 | 240 | _remain_element_capacity -= to_add; | 135 | 240 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 240 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 240 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 240 | return Status::OK(); | 159 | 240 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.89k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.89k | DCHECK(!_finished); | 110 | 5.89k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 5.89k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.89k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 5.89k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.89k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 5.89k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.89k | _count += to_add; | 134 | 5.89k | _remain_element_capacity -= to_add; | 135 | 5.89k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.89k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.89k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.89k | return Status::OK(); | 159 | 5.89k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 23.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 23.1k | DCHECK(!_finished); | 110 | 23.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 23.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 23.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 23.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 23.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 23.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 23.1k | _count += to_add; | 134 | 23.1k | _remain_element_capacity -= to_add; | 135 | 23.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 23.1k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 23.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 23.1k | return Status::OK(); | 159 | 23.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 17.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 17.8k | DCHECK(!_finished); | 110 | 17.8k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 17.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 17.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 17.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 17.8k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 17.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 17.8k | _count += to_add; | 134 | 17.8k | _remain_element_capacity -= to_add; | 135 | 17.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 17.8k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 17.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 17.8k | return Status::OK(); | 159 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.38k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.38k | DCHECK(!_finished); | 110 | 1.38k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.38k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.38k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.38k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.38k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.38k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.38k | _count += to_add; | 134 | 1.38k | _remain_element_capacity -= to_add; | 135 | 1.38k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.38k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.38k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.38k | return Status::OK(); | 159 | 1.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 613 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 613 | DCHECK(!_finished); | 110 | 613 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 613 | uint32_t to_add = cast_set<UInt32>( | 126 | 613 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 613 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 613 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 613 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 613 | _count += to_add; | 134 | 613 | _remain_element_capacity -= to_add; | 135 | 613 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 613 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 613 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 613 | return Status::OK(); | 159 | 613 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 626 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 626 | DCHECK(!_finished); | 110 | 626 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 626 | uint32_t to_add = cast_set<UInt32>( | 126 | 626 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 626 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 626 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 626 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 626 | _count += to_add; | 134 | 626 | _remain_element_capacity -= to_add; | 135 | 626 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 626 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 626 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 626 | return Status::OK(); | 159 | 626 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 134M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 134M | DCHECK(!_finished); | 110 | 134M | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 134M | uint32_t to_add = cast_set<UInt32>( | 126 | 134M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 134M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 134M | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 134M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 137M | _count += to_add; | 134 | 137M | _remain_element_capacity -= to_add; | 135 | 137M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 137M | *num_written = to_add; | 138 | 137M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 137M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 137M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 137M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 137M | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | 137M | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 137M | return Status::OK(); | 159 | 134M | } |
|
160 | | |
161 | 746k | Status finish(OwnedSlice* slice) override { |
162 | 746k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 746k | return Status::OK(); |
164 | 746k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 47.4k | Status finish(OwnedSlice* slice) override { | 162 | 47.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 47.4k | return Status::OK(); | 164 | 47.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.78k | Status finish(OwnedSlice* slice) override { | 162 | 7.78k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.78k | return Status::OK(); | 164 | 7.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 351k | Status finish(OwnedSlice* slice) override { | 162 | 351k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 351k | return Status::OK(); | 164 | 351k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 109k | Status finish(OwnedSlice* slice) override { | 162 | 109k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 109k | return Status::OK(); | 164 | 109k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.0k | Status finish(OwnedSlice* slice) override { | 162 | 11.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.0k | return Status::OK(); | 164 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 66.2k | Status finish(OwnedSlice* slice) override { | 162 | 66.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 66.2k | return Status::OK(); | 164 | 66.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.06k | Status finish(OwnedSlice* slice) override { | 162 | 6.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.06k | return Status::OK(); | 164 | 6.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.87k | Status finish(OwnedSlice* slice) override { | 162 | 7.87k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.87k | return Status::OK(); | 164 | 7.87k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 346 | Status finish(OwnedSlice* slice) override { | 162 | 346 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 346 | return Status::OK(); | 164 | 346 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.1k | Status finish(OwnedSlice* slice) override { | 162 | 38.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.1k | return Status::OK(); | 164 | 38.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.4k | Status finish(OwnedSlice* slice) override { | 162 | 43.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.4k | return Status::OK(); | 164 | 43.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 270 | Status finish(OwnedSlice* slice) override { | 162 | 270 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 270 | return Status::OK(); | 164 | 270 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 584 | Status finish(OwnedSlice* slice) override { | 162 | 584 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 584 | return Status::OK(); | 164 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.74k | Status finish(OwnedSlice* slice) override { | 162 | 7.74k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.75k | return Status::OK(); | 164 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 242 | Status finish(OwnedSlice* slice) override { | 162 | 242 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 242 | return Status::OK(); | 164 | 242 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.85k | Status finish(OwnedSlice* slice) override { | 162 | 9.85k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.85k | return Status::OK(); | 164 | 9.85k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.2k | Status finish(OwnedSlice* slice) override { | 162 | 18.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.2k | return Status::OK(); | 164 | 18.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.0k | Status finish(OwnedSlice* slice) override { | 162 | 17.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.0k | return Status::OK(); | 164 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.10k | Status finish(OwnedSlice* slice) override { | 162 | 1.10k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.10k | return Status::OK(); | 164 | 1.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 619 | Status finish(OwnedSlice* slice) override { | 162 | 619 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 619 | return Status::OK(); | 164 | 619 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 616 | Status finish(OwnedSlice* slice) override { | 162 | 616 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 616 | return Status::OK(); | 164 | 616 | } |
|
165 | | |
166 | 1.78M | Status reset() override { |
167 | 1.78M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.78M | size_t block_size = _options.data_page_size; |
169 | 1.78M | _count = 0; |
170 | 1.78M | _raw_data_size = 0; |
171 | 1.78M | _data.clear(); |
172 | 1.78M | _data.reserve(block_size); |
173 | 1.78M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.78M | << "buffer must be naturally-aligned"; |
175 | 1.78M | _buffer.clear(); |
176 | 1.78M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.78M | _finished = false; |
178 | 1.78M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.78M | }); |
180 | 1.79M | return Status::OK(); |
181 | 1.78M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 95.2k | Status reset() override { | 167 | 95.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 95.2k | size_t block_size = _options.data_page_size; | 169 | 95.2k | _count = 0; | 170 | 95.2k | _raw_data_size = 0; | 171 | 95.2k | _data.clear(); | 172 | 95.2k | _data.reserve(block_size); | 173 | 95.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 95.2k | << "buffer must be naturally-aligned"; | 175 | 95.2k | _buffer.clear(); | 176 | 95.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 95.2k | _finished = false; | 178 | 95.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 95.2k | }); | 180 | 95.3k | return Status::OK(); | 181 | 95.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 15.9k | Status reset() override { | 167 | 15.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.9k | size_t block_size = _options.data_page_size; | 169 | 15.9k | _count = 0; | 170 | 15.9k | _raw_data_size = 0; | 171 | 15.9k | _data.clear(); | 172 | 15.9k | _data.reserve(block_size); | 173 | 15.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.9k | << "buffer must be naturally-aligned"; | 175 | 15.9k | _buffer.clear(); | 176 | 15.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.9k | _finished = false; | 178 | 15.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.9k | }); | 180 | 15.9k | return Status::OK(); | 181 | 15.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.01M | Status reset() override { | 167 | 1.01M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.01M | size_t block_size = _options.data_page_size; | 169 | 1.01M | _count = 0; | 170 | 1.01M | _raw_data_size = 0; | 171 | 1.01M | _data.clear(); | 172 | 1.01M | _data.reserve(block_size); | 173 | 1.01M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.01M | << "buffer must be naturally-aligned"; | 175 | 1.01M | _buffer.clear(); | 176 | 1.01M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.01M | _finished = false; | 178 | 1.01M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.01M | }); | 180 | 1.01M | return Status::OK(); | 181 | 1.01M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 214k | Status reset() override { | 167 | 214k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 214k | size_t block_size = _options.data_page_size; | 169 | 214k | _count = 0; | 170 | 214k | _raw_data_size = 0; | 171 | 214k | _data.clear(); | 172 | 214k | _data.reserve(block_size); | 173 | 214k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 214k | << "buffer must be naturally-aligned"; | 175 | 214k | _buffer.clear(); | 176 | 214k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 214k | _finished = false; | 178 | 214k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 214k | }); | 180 | 214k | return Status::OK(); | 181 | 214k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 22.0k | Status reset() override { | 167 | 22.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 22.0k | size_t block_size = _options.data_page_size; | 169 | 22.0k | _count = 0; | 170 | 22.0k | _raw_data_size = 0; | 171 | 22.0k | _data.clear(); | 172 | 22.0k | _data.reserve(block_size); | 173 | 22.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 22.0k | << "buffer must be naturally-aligned"; | 175 | 22.0k | _buffer.clear(); | 176 | 22.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 22.0k | _finished = false; | 178 | 22.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 22.0k | }); | 180 | 22.1k | return Status::OK(); | 181 | 22.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 132k | Status reset() override { | 167 | 132k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 132k | size_t block_size = _options.data_page_size; | 169 | 132k | _count = 0; | 170 | 132k | _raw_data_size = 0; | 171 | 132k | _data.clear(); | 172 | 132k | _data.reserve(block_size); | 173 | 132k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 132k | << "buffer must be naturally-aligned"; | 175 | 132k | _buffer.clear(); | 176 | 132k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 132k | _finished = false; | 178 | 132k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 132k | }); | 180 | 132k | return Status::OK(); | 181 | 132k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 12.4k | Status reset() override { | 167 | 12.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 12.4k | size_t block_size = _options.data_page_size; | 169 | 12.4k | _count = 0; | 170 | 12.4k | _raw_data_size = 0; | 171 | 12.4k | _data.clear(); | 172 | 12.4k | _data.reserve(block_size); | 173 | 12.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 12.4k | << "buffer must be naturally-aligned"; | 175 | 12.4k | _buffer.clear(); | 176 | 12.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 12.4k | _finished = false; | 178 | 12.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 12.4k | }); | 180 | 12.4k | return Status::OK(); | 181 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 15.7k | Status reset() override { | 167 | 15.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.7k | size_t block_size = _options.data_page_size; | 169 | 15.7k | _count = 0; | 170 | 15.7k | _raw_data_size = 0; | 171 | 15.7k | _data.clear(); | 172 | 15.7k | _data.reserve(block_size); | 173 | 15.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.7k | << "buffer must be naturally-aligned"; | 175 | 15.7k | _buffer.clear(); | 176 | 15.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.7k | _finished = false; | 178 | 15.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.7k | }); | 180 | 15.7k | return Status::OK(); | 181 | 15.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 681 | Status reset() override { | 167 | 681 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 681 | size_t block_size = _options.data_page_size; | 169 | 681 | _count = 0; | 170 | 681 | _raw_data_size = 0; | 171 | 681 | _data.clear(); | 172 | 681 | _data.reserve(block_size); | 173 | 681 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 681 | << "buffer must be naturally-aligned"; | 175 | 681 | _buffer.clear(); | 176 | 681 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 681 | _finished = false; | 178 | 681 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 681 | }); | 180 | 681 | return Status::OK(); | 181 | 681 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.8k | Status reset() override { | 167 | 75.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.8k | size_t block_size = _options.data_page_size; | 169 | 75.8k | _count = 0; | 170 | 75.8k | _raw_data_size = 0; | 171 | 75.8k | _data.clear(); | 172 | 75.8k | _data.reserve(block_size); | 173 | 75.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.8k | << "buffer must be naturally-aligned"; | 175 | 75.8k | _buffer.clear(); | 176 | 75.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.8k | _finished = false; | 178 | 75.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.8k | }); | 180 | 75.9k | return Status::OK(); | 181 | 75.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.8k | Status reset() override { | 167 | 87.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.8k | size_t block_size = _options.data_page_size; | 169 | 87.8k | _count = 0; | 170 | 87.8k | _raw_data_size = 0; | 171 | 87.8k | _data.clear(); | 172 | 87.8k | _data.reserve(block_size); | 173 | 87.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.8k | << "buffer must be naturally-aligned"; | 175 | 87.8k | _buffer.clear(); | 176 | 87.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.8k | _finished = false; | 178 | 87.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.8k | }); | 180 | 87.8k | return Status::OK(); | 181 | 87.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 602 | Status reset() override { | 167 | 602 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 602 | size_t block_size = _options.data_page_size; | 169 | 602 | _count = 0; | 170 | 602 | _raw_data_size = 0; | 171 | 602 | _data.clear(); | 172 | 602 | _data.reserve(block_size); | 173 | 602 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 602 | << "buffer must be naturally-aligned"; | 175 | 602 | _buffer.clear(); | 176 | 602 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 602 | _finished = false; | 178 | 602 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 602 | }); | 180 | 607 | return Status::OK(); | 181 | 602 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.01k | Status reset() override { | 167 | 1.01k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.01k | size_t block_size = _options.data_page_size; | 169 | 1.01k | _count = 0; | 170 | 1.01k | _raw_data_size = 0; | 171 | 1.01k | _data.clear(); | 172 | 1.01k | _data.reserve(block_size); | 173 | 1.01k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.01k | << "buffer must be naturally-aligned"; | 175 | 1.01k | _buffer.clear(); | 176 | 1.01k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.01k | _finished = false; | 178 | 1.01k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.01k | }); | 180 | 1.01k | return Status::OK(); | 181 | 1.01k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 15.1k | Status reset() override { | 167 | 15.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.1k | size_t block_size = _options.data_page_size; | 169 | 15.1k | _count = 0; | 170 | 15.1k | _raw_data_size = 0; | 171 | 15.1k | _data.clear(); | 172 | 15.1k | _data.reserve(block_size); | 173 | 15.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.1k | << "buffer must be naturally-aligned"; | 175 | 15.1k | _buffer.clear(); | 176 | 15.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.1k | _finished = false; | 178 | 15.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.1k | }); | 180 | 15.5k | return Status::OK(); | 181 | 15.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 576 | Status reset() override { | 167 | 576 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 576 | size_t block_size = _options.data_page_size; | 169 | 576 | _count = 0; | 170 | 576 | _raw_data_size = 0; | 171 | 576 | _data.clear(); | 172 | 576 | _data.reserve(block_size); | 173 | 576 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 576 | << "buffer must be naturally-aligned"; | 175 | 576 | _buffer.clear(); | 176 | 576 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 576 | _finished = false; | 178 | 576 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 576 | }); | 180 | 576 | return Status::OK(); | 181 | 576 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.6k | Status reset() override { | 167 | 19.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.6k | size_t block_size = _options.data_page_size; | 169 | 19.6k | _count = 0; | 170 | 19.6k | _raw_data_size = 0; | 171 | 19.6k | _data.clear(); | 172 | 19.6k | _data.reserve(block_size); | 173 | 19.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.6k | << "buffer must be naturally-aligned"; | 175 | 19.6k | _buffer.clear(); | 176 | 19.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.6k | _finished = false; | 178 | 19.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.6k | }); | 180 | 19.7k | return Status::OK(); | 181 | 19.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 30.2k | Status reset() override { | 167 | 30.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 30.2k | size_t block_size = _options.data_page_size; | 169 | 30.2k | _count = 0; | 170 | 30.2k | _raw_data_size = 0; | 171 | 30.2k | _data.clear(); | 172 | 30.2k | _data.reserve(block_size); | 173 | 30.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 30.2k | << "buffer must be naturally-aligned"; | 175 | 30.2k | _buffer.clear(); | 176 | 30.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 30.2k | _finished = false; | 178 | 30.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 30.2k | }); | 180 | 30.3k | return Status::OK(); | 181 | 30.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 34.0k | Status reset() override { | 167 | 34.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 34.0k | size_t block_size = _options.data_page_size; | 169 | 34.0k | _count = 0; | 170 | 34.0k | _raw_data_size = 0; | 171 | 34.0k | _data.clear(); | 172 | 34.0k | _data.reserve(block_size); | 173 | 34.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 34.0k | << "buffer must be naturally-aligned"; | 175 | 34.0k | _buffer.clear(); | 176 | 34.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 34.0k | _finished = false; | 178 | 34.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 34.0k | }); | 180 | 34.0k | return Status::OK(); | 181 | 34.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.31k | Status reset() override { | 167 | 2.31k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.31k | size_t block_size = _options.data_page_size; | 169 | 2.31k | _count = 0; | 170 | 2.31k | _raw_data_size = 0; | 171 | 2.31k | _data.clear(); | 172 | 2.31k | _data.reserve(block_size); | 173 | 2.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.31k | << "buffer must be naturally-aligned"; | 175 | 2.31k | _buffer.clear(); | 176 | 2.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.31k | _finished = false; | 178 | 2.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.31k | }); | 180 | 2.32k | return Status::OK(); | 181 | 2.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.33k | Status reset() override { | 167 | 1.33k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.33k | size_t block_size = _options.data_page_size; | 169 | 1.33k | _count = 0; | 170 | 1.33k | _raw_data_size = 0; | 171 | 1.33k | _data.clear(); | 172 | 1.33k | _data.reserve(block_size); | 173 | 1.33k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.33k | << "buffer must be naturally-aligned"; | 175 | 1.33k | _buffer.clear(); | 176 | 1.33k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.33k | _finished = false; | 178 | 1.33k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.33k | }); | 180 | 1.33k | return Status::OK(); | 181 | 1.33k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.32k | Status reset() override { | 167 | 1.32k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.32k | size_t block_size = _options.data_page_size; | 169 | 1.32k | _count = 0; | 170 | 1.32k | _raw_data_size = 0; | 171 | 1.32k | _data.clear(); | 172 | 1.32k | _data.reserve(block_size); | 173 | 1.32k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.32k | << "buffer must be naturally-aligned"; | 175 | 1.32k | _buffer.clear(); | 176 | 1.32k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.32k | _finished = false; | 178 | 1.32k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.32k | }); | 180 | 1.32k | return Status::OK(); | 181 | 1.32k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv |
184 | | |
185 | 37.9k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.65k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 909 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 20.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 3.08k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.24k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 956 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 542 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 565 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.72k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.41k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 293 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 393 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.20k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 128 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 459k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 47.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.78k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 65.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 109k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 11.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.87k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 346 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 270 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 584 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.74k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 242 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.85k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.10k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 619 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 616 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 744k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 47.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.13k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 360k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 104k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 65.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 6.39k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.89k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 335 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 333 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 431 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.44k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 334 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.84k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.20k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 711 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 709 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 746k | OwnedSlice _finish(int final_size_of_type) { |
194 | 746k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 746k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 746k | int padding_elems = num_elems_after_padding - _count; |
199 | 746k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 21.5M | for (int i = 0; i < padding_bytes; i++) { |
201 | 20.7M | _data.push_back(0); |
202 | 20.7M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 746k | _buffer.resize( |
206 | 746k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 746k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 746k | int64_t bytes = |
210 | 746k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 746k | num_elems_after_padding, final_size_of_type, 0); |
212 | 746k | if (bytes < 0) [[unlikely]] { |
213 | | // This means the bitshuffle function fails. |
214 | | // Ideally, this should not happen. |
215 | 0 | warn_with_bitshuffle_error(bytes); |
216 | | // It does not matter what will be returned here, |
217 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
218 | 0 | return OwnedSlice(); |
219 | 0 | } |
220 | | // update header |
221 | 746k | encode_fixed32_le(&_buffer[0], _count); |
222 | 746k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 746k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 746k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 746k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 746k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 746k | return _buffer.build(); |
229 | 746k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 47.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 47.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 47.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 47.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 47.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 309k | for (int i = 0; i < padding_bytes; i++) { | 201 | 262k | _data.push_back(0); | 202 | 262k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 47.4k | _buffer.resize( | 206 | 47.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 47.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 47.4k | int64_t bytes = | 210 | 47.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 47.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 47.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 47.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 47.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 47.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 47.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 47.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 47.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 47.4k | return _buffer.build(); | 229 | 47.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 7.78k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.78k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.78k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.78k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.78k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 86.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 78.2k | _data.push_back(0); | 202 | 78.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.78k | _buffer.resize( | 206 | 7.78k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.78k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.78k | int64_t bytes = | 210 | 7.78k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.78k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.78k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.78k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.78k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.78k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.78k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.78k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.78k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.78k | return _buffer.build(); | 229 | 7.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 351k | OwnedSlice _finish(int final_size_of_type) { | 194 | 351k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 351k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 351k | int padding_elems = num_elems_after_padding - _count; | 199 | 351k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.78M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.43M | _data.push_back(0); | 202 | 6.43M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 351k | _buffer.resize( | 206 | 351k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 351k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 351k | int64_t bytes = | 210 | 351k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 351k | num_elems_after_padding, final_size_of_type, 0); | 212 | 351k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 351k | encode_fixed32_le(&_buffer[0], _count); | 222 | 351k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 351k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 351k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 351k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 351k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 351k | return _buffer.build(); | 229 | 351k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 109k | OwnedSlice _finish(int final_size_of_type) { | 194 | 109k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 109k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 109k | int padding_elems = num_elems_after_padding - _count; | 199 | 109k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.79M | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.68M | _data.push_back(0); | 202 | 4.68M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 109k | _buffer.resize( | 206 | 109k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 109k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 109k | int64_t bytes = | 210 | 109k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 109k | num_elems_after_padding, final_size_of_type, 0); | 212 | 109k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 109k | encode_fixed32_le(&_buffer[0], _count); | 222 | 109k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 109k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 109k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 109k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 109k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 109k | return _buffer.build(); | 229 | 109k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 11.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 830k | for (int i = 0; i < padding_bytes; i++) { | 201 | 819k | _data.push_back(0); | 202 | 819k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.0k | _buffer.resize( | 206 | 11.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.0k | int64_t bytes = | 210 | 11.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.0k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 11.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.0k | return _buffer.build(); | 229 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 66.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 66.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 66.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 66.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 66.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.18M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.12M | _data.push_back(0); | 202 | 3.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 66.2k | _buffer.resize( | 206 | 66.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 66.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 66.2k | int64_t bytes = | 210 | 66.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 66.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 66.2k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 66.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 66.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 66.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 66.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 66.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 66.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 66.2k | return _buffer.build(); | 229 | 66.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 6.06k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.06k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.06k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.06k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 135k | for (int i = 0; i < padding_bytes; i++) { | 201 | 129k | _data.push_back(0); | 202 | 129k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.06k | _buffer.resize( | 206 | 6.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.06k | int64_t bytes = | 210 | 6.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.06k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.06k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6.06k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.06k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.06k | return _buffer.build(); | 229 | 6.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 7.87k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.87k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.87k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.87k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.87k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 332k | for (int i = 0; i < padding_bytes; i++) { | 201 | 324k | _data.push_back(0); | 202 | 324k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.87k | _buffer.resize( | 206 | 7.87k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.87k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.87k | int64_t bytes = | 210 | 7.87k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.87k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.87k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.87k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.87k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.87k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.87k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.87k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.87k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.87k | return _buffer.build(); | 229 | 7.87k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 346 | OwnedSlice _finish(int final_size_of_type) { | 194 | 346 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 346 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 346 | int padding_elems = num_elems_after_padding - _count; | 199 | 346 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.18k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.83k | _data.push_back(0); | 202 | 4.83k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 346 | _buffer.resize( | 206 | 346 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 346 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 346 | int64_t bytes = | 210 | 346 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 346 | num_elems_after_padding, final_size_of_type, 0); | 212 | 346 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 346 | encode_fixed32_le(&_buffer[0], _count); | 222 | 346 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 346 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 346 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 346 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 346 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 346 | return _buffer.build(); | 229 | 346 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 811k | for (int i = 0; i < padding_bytes; i++) { | 201 | 773k | _data.push_back(0); | 202 | 773k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.1k | _buffer.resize( | 206 | 38.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.1k | int64_t bytes = | 210 | 38.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 38.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.1k | return _buffer.build(); | 229 | 38.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.82M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.78M | _data.push_back(0); | 202 | 1.78M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.4k | _buffer.resize( | 206 | 43.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.4k | int64_t bytes = | 210 | 43.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.4k | return _buffer.build(); | 229 | 43.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 270 | OwnedSlice _finish(int final_size_of_type) { | 194 | 270 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 270 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 270 | int padding_elems = num_elems_after_padding - _count; | 199 | 270 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.2k | _data.push_back(0); | 202 | 11.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 270 | _buffer.resize( | 206 | 270 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 270 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 270 | int64_t bytes = | 210 | 270 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 270 | num_elems_after_padding, final_size_of_type, 0); | 212 | 270 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 270 | encode_fixed32_le(&_buffer[0], _count); | 222 | 270 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 270 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 270 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 270 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 270 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 270 | return _buffer.build(); | 229 | 270 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 584 | OwnedSlice _finish(int final_size_of_type) { | 194 | 584 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 584 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 584 | int padding_elems = num_elems_after_padding - _count; | 199 | 584 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.6k | _data.push_back(0); | 202 | 12.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 584 | _buffer.resize( | 206 | 584 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 584 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 584 | int64_t bytes = | 210 | 584 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 584 | num_elems_after_padding, final_size_of_type, 0); | 212 | 584 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 584 | encode_fixed32_le(&_buffer[0], _count); | 222 | 584 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 584 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 584 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 584 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 584 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 584 | return _buffer.build(); | 229 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.74k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.74k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.74k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.74k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.74k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 404k | for (int i = 0; i < padding_bytes; i++) { | 201 | 396k | _data.push_back(0); | 202 | 396k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.74k | _buffer.resize( | 206 | 7.74k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.74k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.74k | int64_t bytes = | 210 | 7.74k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.74k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.74k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.74k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.74k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.74k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.74k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.74k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.74k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.74k | return _buffer.build(); | 229 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 242 | OwnedSlice _finish(int final_size_of_type) { | 194 | 242 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 242 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 242 | int padding_elems = num_elems_after_padding - _count; | 199 | 242 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 14.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 14.6k | _data.push_back(0); | 202 | 14.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 242 | _buffer.resize( | 206 | 242 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 242 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 242 | int64_t bytes = | 210 | 242 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 242 | num_elems_after_padding, final_size_of_type, 0); | 212 | 242 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 242 | encode_fixed32_le(&_buffer[0], _count); | 222 | 242 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 242 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 242 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 242 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 242 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 242 | return _buffer.build(); | 229 | 242 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.85k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.85k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.85k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.85k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.85k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 120k | for (int i = 0; i < padding_bytes; i++) { | 201 | 110k | _data.push_back(0); | 202 | 110k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.85k | _buffer.resize( | 206 | 9.85k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.85k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.85k | int64_t bytes = | 210 | 9.85k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.85k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.85k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 9.85k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.85k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.85k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.85k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.85k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.85k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.85k | return _buffer.build(); | 229 | 9.85k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 484k | for (int i = 0; i < padding_bytes; i++) { | 201 | 466k | _data.push_back(0); | 202 | 466k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.2k | _buffer.resize( | 206 | 18.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.2k | int64_t bytes = | 210 | 18.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.2k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 18.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.2k | return _buffer.build(); | 229 | 18.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.14M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.12M | _data.push_back(0); | 202 | 1.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.0k | _buffer.resize( | 206 | 17.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.0k | int64_t bytes = | 210 | 17.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.0k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 17.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.0k | return _buffer.build(); | 229 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.10k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.10k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.10k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.10k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.10k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 173k | for (int i = 0; i < padding_bytes; i++) { | 201 | 171k | _data.push_back(0); | 202 | 171k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.10k | _buffer.resize( | 206 | 1.10k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.10k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.10k | int64_t bytes = | 210 | 1.10k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.10k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.10k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.10k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.10k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.10k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.10k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.10k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.10k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.10k | return _buffer.build(); | 229 | 1.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 619 | OwnedSlice _finish(int final_size_of_type) { | 194 | 619 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 619 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 619 | int padding_elems = num_elems_after_padding - _count; | 199 | 619 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.1k | _data.push_back(0); | 202 | 12.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 619 | _buffer.resize( | 206 | 619 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 619 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 619 | int64_t bytes = | 210 | 619 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 619 | num_elems_after_padding, final_size_of_type, 0); | 212 | 619 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 619 | encode_fixed32_le(&_buffer[0], _count); | 222 | 619 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 619 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 619 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 619 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 619 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 619 | return _buffer.build(); | 229 | 619 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 616 | OwnedSlice _finish(int final_size_of_type) { | 194 | 616 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 616 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 616 | int padding_elems = num_elems_after_padding - _count; | 199 | 616 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.7k | _data.push_back(0); | 202 | 49.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 616 | _buffer.resize( | 206 | 616 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 616 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 616 | int64_t bytes = | 210 | 616 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 616 | num_elems_after_padding, final_size_of_type, 0); | 212 | 616 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 616 | encode_fixed32_le(&_buffer[0], _count); | 222 | 616 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 616 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 616 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 616 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 616 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 616 | return _buffer.build(); | 229 | 616 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 2.31M | int& size_of_element) { |
253 | 2.31M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 2.31M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.31M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.31M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.31M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.31M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 2.31M | switch (size_of_element) { |
271 | 176k | case 1: |
272 | 210k | case 2: |
273 | 213k | case 3: |
274 | 1.49M | case 4: |
275 | 2.21M | case 8: |
276 | 2.21M | case 12: |
277 | 2.31M | case 16: |
278 | 2.31M | case 32: |
279 | 2.31M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.31M | } |
283 | 2.31M | return Status::OK(); |
284 | 2.31M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.15M | : _data(data), |
291 | 1.15M | _options(options), |
292 | 1.15M | _parsed(false), |
293 | 1.15M | _num_elements(0), |
294 | 1.15M | _num_element_after_padding(0), |
295 | 1.15M | _size_of_element(0), |
296 | 1.15M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 88.2k | : _data(data), | 291 | 88.2k | _options(options), | 292 | 88.2k | _parsed(false), | 293 | 88.2k | _num_elements(0), | 294 | 88.2k | _num_element_after_padding(0), | 295 | 88.2k | _size_of_element(0), | 296 | 88.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.0k | : _data(data), | 291 | 17.0k | _options(options), | 292 | 17.0k | _parsed(false), | 293 | 17.0k | _num_elements(0), | 294 | 17.0k | _num_element_after_padding(0), | 295 | 17.0k | _size_of_element(0), | 296 | 17.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 553k | : _data(data), | 291 | 553k | _options(options), | 292 | 553k | _parsed(false), | 293 | 553k | _num_elements(0), | 294 | 553k | _num_element_after_padding(0), | 295 | 553k | _size_of_element(0), | 296 | 553k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 121k | : _data(data), | 291 | 121k | _options(options), | 292 | 121k | _parsed(false), | 293 | 121k | _num_elements(0), | 294 | 121k | _num_element_after_padding(0), | 295 | 121k | _size_of_element(0), | 296 | 121k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.5k | : _data(data), | 291 | 15.5k | _options(options), | 292 | 15.5k | _parsed(false), | 293 | 15.5k | _num_elements(0), | 294 | 15.5k | _num_element_after_padding(0), | 295 | 15.5k | _size_of_element(0), | 296 | 15.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 95.3k | : _data(data), | 291 | 95.3k | _options(options), | 292 | 95.3k | _parsed(false), | 293 | 95.3k | _num_elements(0), | 294 | 95.3k | _num_element_after_padding(0), | 295 | 95.3k | _size_of_element(0), | 296 | 95.3k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 9.95k | : _data(data), | 291 | 9.95k | _options(options), | 292 | 9.95k | _parsed(false), | 293 | 9.95k | _num_elements(0), | 294 | 9.95k | _num_element_after_padding(0), | 295 | 9.95k | _size_of_element(0), | 296 | 9.95k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.0k | : _data(data), | 291 | 15.0k | _options(options), | 292 | 15.0k | _parsed(false), | 293 | 15.0k | _num_elements(0), | 294 | 15.0k | _num_element_after_padding(0), | 295 | 15.0k | _size_of_element(0), | 296 | 15.0k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.59k | : _data(data), | 291 | 1.59k | _options(options), | 292 | 1.59k | _parsed(false), | 293 | 1.59k | _num_elements(0), | 294 | 1.59k | _num_element_after_padding(0), | 295 | 1.59k | _size_of_element(0), | 296 | 1.59k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 60.4k | : _data(data), | 291 | 60.4k | _options(options), | 292 | 60.4k | _parsed(false), | 293 | 60.4k | _num_elements(0), | 294 | 60.4k | _num_element_after_padding(0), | 295 | 60.4k | _size_of_element(0), | 296 | 60.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 66.9k | : _data(data), | 291 | 66.9k | _options(options), | 292 | 66.9k | _parsed(false), | 293 | 66.9k | _num_elements(0), | 294 | 66.9k | _num_element_after_padding(0), | 295 | 66.9k | _size_of_element(0), | 296 | 66.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.15k | : _data(data), | 291 | 3.15k | _options(options), | 292 | 3.15k | _parsed(false), | 293 | 3.15k | _num_elements(0), | 294 | 3.15k | _num_element_after_padding(0), | 295 | 3.15k | _size_of_element(0), | 296 | 3.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.52k | : _data(data), | 291 | 2.52k | _options(options), | 292 | 2.52k | _parsed(false), | 293 | 2.52k | _num_elements(0), | 294 | 2.52k | _num_element_after_padding(0), | 295 | 2.52k | _size_of_element(0), | 296 | 2.52k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.8k | : _data(data), | 291 | 15.8k | _options(options), | 292 | 15.8k | _parsed(false), | 293 | 15.8k | _num_elements(0), | 294 | 15.8k | _num_element_after_padding(0), | 295 | 15.8k | _size_of_element(0), | 296 | 15.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.47k | : _data(data), | 291 | 1.47k | _options(options), | 292 | 1.47k | _parsed(false), | 293 | 1.47k | _num_elements(0), | 294 | 1.47k | _num_element_after_padding(0), | 295 | 1.47k | _size_of_element(0), | 296 | 1.47k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.7k | : _data(data), | 291 | 15.7k | _options(options), | 292 | 15.7k | _parsed(false), | 293 | 15.7k | _num_elements(0), | 294 | 15.7k | _num_element_after_padding(0), | 295 | 15.7k | _size_of_element(0), | 296 | 15.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 40.4k | : _data(data), | 291 | 40.4k | _options(options), | 292 | 40.4k | _parsed(false), | 293 | 40.4k | _num_elements(0), | 294 | 40.4k | _num_element_after_padding(0), | 295 | 40.4k | _size_of_element(0), | 296 | 40.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 29.4k | : _data(data), | 291 | 29.4k | _options(options), | 292 | 29.4k | _parsed(false), | 293 | 29.4k | _num_elements(0), | 294 | 29.4k | _num_element_after_padding(0), | 295 | 29.4k | _size_of_element(0), | 296 | 29.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.71k | : _data(data), | 291 | 1.71k | _options(options), | 292 | 1.71k | _parsed(false), | 293 | 1.71k | _num_elements(0), | 294 | 1.71k | _num_element_after_padding(0), | 295 | 1.71k | _size_of_element(0), | 296 | 1.71k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 929 | : _data(data), | 291 | 929 | _options(options), | 292 | 929 | _parsed(false), | 293 | 929 | _num_elements(0), | 294 | 929 | _num_element_after_padding(0), | 295 | 929 | _size_of_element(0), | 296 | 929 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 964 | : _data(data), | 291 | 964 | _options(options), | 292 | 964 | _parsed(false), | 293 | 964 | _num_elements(0), | 294 | 964 | _num_element_after_padding(0), | 295 | 964 | _size_of_element(0), | 296 | 964 | _cur_index(0) {} |
|
297 | | |
298 | 1.15M | Status init() override { |
299 | 1.15M | CHECK(!_parsed); |
300 | 1.15M | size_t unused; |
301 | 1.15M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.15M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.15M | if (_data.size != |
305 | 1.15M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 0 | std::stringstream ss; |
307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 0 | return Status::InternalError(ss.str()); |
311 | 0 | } |
312 | | |
313 | | // Currently, only the UINT32 block encoder supports expanding size: |
314 | 1.15M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.15M | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 1.15M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 1.15M | _parsed = true; |
325 | 1.15M | return Status::OK(); |
326 | 1.15M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 88.1k | Status init() override { | 299 | 88.1k | CHECK(!_parsed); | 300 | 88.1k | size_t unused; | 301 | 88.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 88.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 88.1k | if (_data.size != | 305 | 88.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 88.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 88.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 88.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 88.1k | _parsed = true; | 325 | 88.1k | return Status::OK(); | 326 | 88.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 16.9k | Status init() override { | 299 | 16.9k | CHECK(!_parsed); | 300 | 16.9k | size_t unused; | 301 | 16.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.9k | if (_data.size != | 305 | 16.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 16.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.9k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 16.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 16.9k | _parsed = true; | 325 | 16.9k | return Status::OK(); | 326 | 16.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 552k | Status init() override { | 299 | 552k | CHECK(!_parsed); | 300 | 552k | size_t unused; | 301 | 552k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 552k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 552k | if (_data.size != | 305 | 552k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 552k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 552k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 552k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 552k | _parsed = true; | 325 | 552k | return Status::OK(); | 326 | 552k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 121k | Status init() override { | 299 | 121k | CHECK(!_parsed); | 300 | 121k | size_t unused; | 301 | 121k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 121k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 121k | if (_data.size != | 305 | 121k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 121k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 121k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 121k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 121k | _parsed = true; | 325 | 121k | return Status::OK(); | 326 | 121k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 15.5k | Status init() override { | 299 | 15.5k | CHECK(!_parsed); | 300 | 15.5k | size_t unused; | 301 | 15.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.5k | if (_data.size != | 305 | 15.5k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.5k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.5k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.5k | _parsed = true; | 325 | 15.5k | return Status::OK(); | 326 | 15.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 95.3k | Status init() override { | 299 | 95.3k | CHECK(!_parsed); | 300 | 95.3k | size_t unused; | 301 | 95.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 95.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 95.3k | if (_data.size != | 305 | 95.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 95.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 95.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 95.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 95.3k | _parsed = true; | 325 | 95.3k | return Status::OK(); | 326 | 95.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 9.94k | Status init() override { | 299 | 9.94k | CHECK(!_parsed); | 300 | 9.94k | size_t unused; | 301 | 9.94k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 9.94k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 9.94k | if (_data.size != | 305 | 9.94k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 9.94k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 9.94k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 9.94k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 9.94k | _parsed = true; | 325 | 9.94k | return Status::OK(); | 326 | 9.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 15.0k | Status init() override { | 299 | 15.0k | CHECK(!_parsed); | 300 | 15.0k | size_t unused; | 301 | 15.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.0k | if (_data.size != | 305 | 15.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.0k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.0k | _parsed = true; | 325 | 15.0k | return Status::OK(); | 326 | 15.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.59k | Status init() override { | 299 | 1.59k | CHECK(!_parsed); | 300 | 1.59k | size_t unused; | 301 | 1.59k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.59k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.59k | if (_data.size != | 305 | 1.59k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.59k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.59k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.59k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.59k | _parsed = true; | 325 | 1.59k | return Status::OK(); | 326 | 1.59k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 60.3k | Status init() override { | 299 | 60.3k | CHECK(!_parsed); | 300 | 60.3k | size_t unused; | 301 | 60.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 60.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 60.3k | if (_data.size != | 305 | 60.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 60.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 60.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 60.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 60.3k | _parsed = true; | 325 | 60.3k | return Status::OK(); | 326 | 60.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 66.8k | Status init() override { | 299 | 66.8k | CHECK(!_parsed); | 300 | 66.8k | size_t unused; | 301 | 66.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 66.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 66.8k | if (_data.size != | 305 | 66.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 66.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 66.8k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 66.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 66.8k | _parsed = true; | 325 | 66.8k | return Status::OK(); | 326 | 66.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.15k | Status init() override { | 299 | 3.15k | CHECK(!_parsed); | 300 | 3.15k | size_t unused; | 301 | 3.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.15k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.15k | if (_data.size != | 305 | 3.15k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.15k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.15k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.15k | _parsed = true; | 325 | 3.15k | return Status::OK(); | 326 | 3.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.52k | Status init() override { | 299 | 2.52k | CHECK(!_parsed); | 300 | 2.52k | size_t unused; | 301 | 2.52k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.52k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.52k | if (_data.size != | 305 | 2.52k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.52k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.52k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.52k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.52k | _parsed = true; | 325 | 2.52k | return Status::OK(); | 326 | 2.52k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 15.8k | Status init() override { | 299 | 15.8k | CHECK(!_parsed); | 300 | 15.8k | size_t unused; | 301 | 15.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.8k | if (_data.size != | 305 | 15.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.8k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.8k | _parsed = true; | 325 | 15.8k | return Status::OK(); | 326 | 15.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.47k | Status init() override { | 299 | 1.47k | CHECK(!_parsed); | 300 | 1.47k | size_t unused; | 301 | 1.47k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.47k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.47k | if (_data.size != | 305 | 1.47k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.47k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.47k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.47k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.47k | _parsed = true; | 325 | 1.47k | return Status::OK(); | 326 | 1.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.6k | Status init() override { | 299 | 15.6k | CHECK(!_parsed); | 300 | 15.6k | size_t unused; | 301 | 15.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.6k | if (_data.size != | 305 | 15.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.6k | _parsed = true; | 325 | 15.6k | return Status::OK(); | 326 | 15.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 40.4k | Status init() override { | 299 | 40.4k | CHECK(!_parsed); | 300 | 40.4k | size_t unused; | 301 | 40.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 40.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 40.4k | if (_data.size != | 305 | 40.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 40.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 40.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 40.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 40.4k | _parsed = true; | 325 | 40.4k | return Status::OK(); | 326 | 40.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 29.4k | Status init() override { | 299 | 29.4k | CHECK(!_parsed); | 300 | 29.4k | size_t unused; | 301 | 29.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 29.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 29.4k | if (_data.size != | 305 | 29.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 29.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 29.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 29.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 29.4k | _parsed = true; | 325 | 29.4k | return Status::OK(); | 326 | 29.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.71k | Status init() override { | 299 | 1.71k | CHECK(!_parsed); | 300 | 1.71k | size_t unused; | 301 | 1.71k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.71k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.71k | if (_data.size != | 305 | 1.71k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.71k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.71k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.71k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.71k | _parsed = true; | 325 | 1.71k | return Status::OK(); | 326 | 1.71k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 925 | Status init() override { | 299 | 925 | CHECK(!_parsed); | 300 | 925 | size_t unused; | 301 | 925 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 925 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 925 | if (_data.size != | 305 | 925 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 925 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 925 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 925 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 925 | _parsed = true; | 325 | 925 | return Status::OK(); | 326 | 925 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 964 | Status init() override { | 299 | 964 | CHECK(!_parsed); | 300 | 964 | size_t unused; | 301 | 964 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 964 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 964 | if (_data.size != | 305 | 964 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 964 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 964 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 964 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 964 | _parsed = true; | 325 | 964 | return Status::OK(); | 326 | 964 | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 4.18M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.18M | if (_num_elements == 0) [[unlikely]] { |
337 | 3.64k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 3.64k | } |
342 | | |
343 | 4.18M | DCHECK_LE(pos, _num_elements); |
344 | 4.18M | _cur_index = pos; |
345 | 4.18M | return Status::OK(); |
346 | 4.18M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 98.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 98.6k | if (_num_elements == 0) [[unlikely]] { | 337 | 443 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 443 | } | 342 | | | 343 | 98.6k | DCHECK_LE(pos, _num_elements); | 344 | 98.6k | _cur_index = pos; | 345 | 98.6k | return Status::OK(); | 346 | 98.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.58k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.58k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.58k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.58k | DCHECK_LE(pos, _num_elements); | 344 | 1.58k | _cur_index = pos; | 345 | 1.58k | return Status::OK(); | 346 | 1.58k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.77M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.77M | if (_num_elements == 0) [[unlikely]] { | 337 | 2.04k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 2.04k | } | 342 | | | 343 | 2.77M | DCHECK_LE(pos, _num_elements); | 344 | 2.77M | _cur_index = pos; | 345 | 2.77M | return Status::OK(); | 346 | 2.77M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 135k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 135k | if (_num_elements == 0) [[unlikely]] { | 337 | 498 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 498 | } | 342 | | | 343 | 135k | DCHECK_LE(pos, _num_elements); | 344 | 135k | _cur_index = pos; | 345 | 135k | return Status::OK(); | 346 | 135k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 5.18k | Status seek_to_position_in_page(size_t pos) override { | 335 | 5.18k | DCHECK(_parsed) << "Must call init()"; | 336 | 5.18k | if (_num_elements == 0) [[unlikely]] { | 337 | 6 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 6 | } | 342 | | | 343 | 5.18k | DCHECK_LE(pos, _num_elements); | 344 | 5.18k | _cur_index = pos; | 345 | 5.18k | return Status::OK(); | 346 | 5.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 20.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 20.6k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 20.6k | DCHECK_LE(pos, _num_elements); | 344 | 20.6k | _cur_index = pos; | 345 | 20.6k | return Status::OK(); | 346 | 20.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 539 | Status seek_to_position_in_page(size_t pos) override { | 335 | 539 | DCHECK(_parsed) << "Must call init()"; | 336 | 539 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 539 | DCHECK_LE(pos, _num_elements); | 344 | 539 | _cur_index = pos; | 345 | 539 | return Status::OK(); | 346 | 539 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.53k | Status seek_to_position_in_page(size_t pos) override { | 335 | 2.53k | DCHECK(_parsed) << "Must call init()"; | 336 | 2.53k | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 2.53k | DCHECK_LE(pos, _num_elements); | 344 | 2.53k | _cur_index = pos; | 345 | 2.53k | return Status::OK(); | 346 | 2.53k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 214k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 214k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 214k | DCHECK_LE(pos, _num_elements); | 344 | 214k | _cur_index = pos; | 345 | 214k | return Status::OK(); | 346 | 214k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 494k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 494k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 197 | } | 342 | | | 343 | 494k | DCHECK_LE(pos, _num_elements); | 344 | 494k | _cur_index = pos; | 345 | 494k | return Status::OK(); | 346 | 494k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 78.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 78.6k | DCHECK(_parsed) << "Must call init()"; | 336 | 78.6k | if (_num_elements == 0) [[unlikely]] { | 337 | 14 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 14 | } | 342 | | | 343 | 78.6k | DCHECK_LE(pos, _num_elements); | 344 | 78.6k | _cur_index = pos; | 345 | 78.6k | return Status::OK(); | 346 | 78.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 944 | Status seek_to_position_in_page(size_t pos) override { | 335 | 944 | DCHECK(_parsed) << "Must call init()"; | 336 | 944 | if (_num_elements == 0) [[unlikely]] { | 337 | 8 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 8 | } | 342 | | | 343 | 944 | DCHECK_LE(pos, _num_elements); | 344 | 944 | _cur_index = pos; | 345 | 944 | return Status::OK(); | 346 | 944 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 201k | Status seek_to_position_in_page(size_t pos) override { | 335 | 201k | DCHECK(_parsed) << "Must call init()"; | 336 | 201k | if (_num_elements == 0) [[unlikely]] { | 337 | 16 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 16 | } | 342 | | | 343 | 201k | DCHECK_LE(pos, _num_elements); | 344 | 201k | _cur_index = pos; | 345 | 201k | return Status::OK(); | 346 | 201k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.80k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.80k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.80k | if (_num_elements == 0) [[unlikely]] { | 337 | 354 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 354 | } | 342 | | | 343 | 6.80k | DCHECK_LE(pos, _num_elements); | 344 | 6.80k | _cur_index = pos; | 345 | 6.80k | return Status::OK(); | 346 | 6.80k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 138 | Status seek_to_position_in_page(size_t pos) override { | 335 | 138 | DCHECK(_parsed) << "Must call init()"; | 336 | 138 | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 12 | } | 342 | | | 343 | 138 | DCHECK_LE(pos, _num_elements); | 344 | 138 | _cur_index = pos; | 345 | 138 | return Status::OK(); | 346 | 138 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 854 | Status seek_to_position_in_page(size_t pos) override { | 335 | 854 | DCHECK(_parsed) << "Must call init()"; | 336 | 854 | if (_num_elements == 0) [[unlikely]] { | 337 | 27 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 27 | } | 342 | | | 343 | 854 | DCHECK_LE(pos, _num_elements); | 344 | 854 | _cur_index = pos; | 345 | 854 | return Status::OK(); | 346 | 854 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 17.5k | DCHECK(_parsed) << "Must call init()"; | 336 | 17.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 12 | } | 342 | | | 343 | 17.5k | DCHECK_LE(pos, _num_elements); | 344 | 17.5k | _cur_index = pos; | 345 | 17.5k | return Status::OK(); | 346 | 17.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 121k | Status seek_to_position_in_page(size_t pos) override { | 335 | 121k | DCHECK(_parsed) << "Must call init()"; | 336 | 121k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 10 | } | 342 | | | 343 | 121k | DCHECK_LE(pos, _num_elements); | 344 | 121k | _cur_index = pos; | 345 | 121k | return Status::OK(); | 346 | 121k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.93k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.93k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.93k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.93k | DCHECK_LE(pos, _num_elements); | 344 | 1.93k | _cur_index = pos; | 345 | 1.93k | return Status::OK(); | 346 | 1.93k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 24 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 24 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 24 | DCHECK_LE(pos, _num_elements); | 344 | 24 | _cur_index = pos; | 345 | 24 | return Status::OK(); | 346 | 24 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 30 | Status seek_to_position_in_page(size_t pos) override { | 335 | 30 | DCHECK(_parsed) << "Must call init()"; | 336 | 30 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 30 | DCHECK_LE(pos, _num_elements); | 344 | 30 | _cur_index = pos; | 345 | 30 | return Status::OK(); | 346 | 30 | } |
|
347 | | |
348 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | |
|
351 | 0 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 0 | size_t left = 0; |
356 | 0 | size_t right = _num_elements; |
357 | |
|
358 | 0 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 0 | while (left < right) { |
364 | 0 | size_t mid = left + (right - left) / 2; |
365 | 0 | mid_value = get_data(mid); |
366 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 0 | left = mid + 1; |
368 | 0 | } else { |
369 | 0 | right = mid; |
370 | 0 | } |
371 | 0 | } |
372 | 0 | if (left >= _num_elements) { |
373 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 0 | } |
375 | 0 | void* find_value = get_data(left); |
376 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 0 | *exact_match = true; |
378 | 0 | } else { |
379 | 0 | *exact_match = false; |
380 | 0 | } |
381 | |
|
382 | 0 | _cur_index = left; |
383 | 0 | return Status::OK(); |
384 | 0 | } 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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb 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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb 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 |
385 | | |
386 | | template <bool forward_index = true> |
387 | 1.75M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.75M | DCHECK(_parsed); |
389 | 1.75M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.75M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.75M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.75M | *n = max_fetch; |
398 | 1.75M | if constexpr (forward_index) { |
399 | 1.55M | _cur_index += max_fetch; |
400 | 1.55M | } |
401 | | |
402 | 1.75M | return Status::OK(); |
403 | 1.75M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 212k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 212k | DCHECK(_parsed); | 389 | 212k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 212k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 212k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 212k | *n = max_fetch; | 398 | 212k | if constexpr (forward_index) { | 399 | 212k | _cur_index += max_fetch; | 400 | 212k | } | 401 | | | 402 | 212k | return Status::OK(); | 403 | 212k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 12.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 12.6k | DCHECK(_parsed); | 389 | 12.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 12.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 12.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 12.6k | *n = max_fetch; | 398 | 12.6k | if constexpr (forward_index) { | 399 | 12.6k | _cur_index += max_fetch; | 400 | 12.6k | } | 401 | | | 402 | 12.6k | return Status::OK(); | 403 | 12.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 532k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 532k | DCHECK(_parsed); | 389 | 533k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 532k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 532k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 532k | *n = max_fetch; | 398 | 532k | if constexpr (forward_index) { | 399 | 532k | _cur_index += max_fetch; | 400 | 532k | } | 401 | | | 402 | 532k | return Status::OK(); | 403 | 532k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 97.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 97.0k | DCHECK(_parsed); | 389 | 97.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 97.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 97.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 97.0k | *n = max_fetch; | 398 | 97.0k | if constexpr (forward_index) { | 399 | 97.0k | _cur_index += max_fetch; | 400 | 97.0k | } | 401 | | | 402 | 97.0k | return Status::OK(); | 403 | 97.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 13.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 13.4k | DCHECK(_parsed); | 389 | 13.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 13.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 13.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 13.4k | *n = max_fetch; | 398 | 13.4k | if constexpr (forward_index) { | 399 | 13.4k | _cur_index += max_fetch; | 400 | 13.4k | } | 401 | | | 402 | 13.4k | return Status::OK(); | 403 | 13.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 148k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 148k | DCHECK(_parsed); | 389 | 148k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 148k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 148k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 148k | *n = max_fetch; | 398 | 148k | if constexpr (forward_index) { | 399 | 148k | _cur_index += max_fetch; | 400 | 148k | } | 401 | | | 402 | 148k | return Status::OK(); | 403 | 148k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 194k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 194k | DCHECK(_parsed); | 389 | 194k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 194k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 194k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 194k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 194k | return Status::OK(); | 403 | 194k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 5.96k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 5.96k | DCHECK(_parsed); | 389 | 5.96k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 5.96k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 5.96k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 5.96k | *n = max_fetch; | 398 | 5.96k | if constexpr (forward_index) { | 399 | 5.96k | _cur_index += max_fetch; | 400 | 5.96k | } | 401 | | | 402 | 5.96k | return Status::OK(); | 403 | 5.96k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 10.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 10.5k | DCHECK(_parsed); | 389 | 10.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 10.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 10.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 10.5k | *n = max_fetch; | 398 | 10.5k | if constexpr (forward_index) { | 399 | 10.5k | _cur_index += max_fetch; | 400 | 10.5k | } | 401 | | | 402 | 10.5k | return Status::OK(); | 403 | 10.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.68k | DCHECK(_parsed); | 389 | 2.68k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.68k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.68k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.68k | *n = max_fetch; | 398 | 2.68k | if constexpr (forward_index) { | 399 | 2.68k | _cur_index += max_fetch; | 400 | 2.68k | } | 401 | | | 402 | 2.68k | return Status::OK(); | 403 | 2.68k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 370k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 370k | DCHECK(_parsed); | 389 | 370k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 370k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 370k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 370k | *n = max_fetch; | 398 | 370k | if constexpr (forward_index) { | 399 | 370k | _cur_index += max_fetch; | 400 | 370k | } | 401 | | | 402 | 370k | return Status::OK(); | 403 | 370k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 67.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 67.5k | DCHECK(_parsed); | 389 | 67.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 67.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 67.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 67.5k | *n = max_fetch; | 398 | 67.5k | if constexpr (forward_index) { | 399 | 67.5k | _cur_index += max_fetch; | 400 | 67.5k | } | 401 | | | 402 | 67.5k | return Status::OK(); | 403 | 67.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.16k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.16k | DCHECK(_parsed); | 389 | 2.16k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.16k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.16k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.16k | *n = max_fetch; | 398 | 2.16k | if constexpr (forward_index) { | 399 | 2.16k | _cur_index += max_fetch; | 400 | 2.16k | } | 401 | | | 402 | 2.16k | return Status::OK(); | 403 | 2.16k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.45k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.45k | DCHECK(_parsed); | 389 | 1.45k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.45k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.45k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.45k | *n = max_fetch; | 398 | 1.45k | if constexpr (forward_index) { | 399 | 1.45k | _cur_index += max_fetch; | 400 | 1.45k | } | 401 | | | 402 | 1.45k | return Status::OK(); | 403 | 1.45k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.01k | DCHECK(_parsed); | 389 | 8.01k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.01k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.01k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.01k | *n = max_fetch; | 398 | 8.01k | if constexpr (forward_index) { | 399 | 8.01k | _cur_index += max_fetch; | 400 | 8.01k | } | 401 | | | 402 | 8.01k | return Status::OK(); | 403 | 8.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.37k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.37k | DCHECK(_parsed); | 389 | 1.37k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.37k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.37k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.37k | *n = max_fetch; | 398 | 1.37k | if constexpr (forward_index) { | 399 | 1.37k | _cur_index += max_fetch; | 400 | 1.37k | } | 401 | | | 402 | 1.37k | return Status::OK(); | 403 | 1.37k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 10.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 10.2k | DCHECK(_parsed); | 389 | 10.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 10.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 10.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 10.2k | *n = max_fetch; | 398 | 10.2k | if constexpr (forward_index) { | 399 | 10.2k | _cur_index += max_fetch; | 400 | 10.2k | } | 401 | | | 402 | 10.2k | return Status::OK(); | 403 | 10.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 32.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 32.5k | DCHECK(_parsed); | 389 | 32.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 32.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 32.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 32.5k | *n = max_fetch; | 398 | 32.5k | if constexpr (forward_index) { | 399 | 32.5k | _cur_index += max_fetch; | 400 | 32.5k | } | 401 | | | 402 | 32.5k | return Status::OK(); | 403 | 32.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 21.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 21.4k | DCHECK(_parsed); | 389 | 21.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 21.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 21.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 21.4k | *n = max_fetch; | 398 | 21.4k | if constexpr (forward_index) { | 399 | 21.4k | _cur_index += max_fetch; | 400 | 21.4k | } | 401 | | | 402 | 21.4k | return Status::OK(); | 403 | 21.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.12k | DCHECK(_parsed); | 389 | 3.12k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.12k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.12k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.12k | *n = max_fetch; | 398 | 3.12k | if constexpr (forward_index) { | 399 | 3.12k | _cur_index += max_fetch; | 400 | 3.12k | } | 401 | | | 402 | 3.12k | return Status::OK(); | 403 | 3.12k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 632 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 632 | DCHECK(_parsed); | 389 | 633 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 632 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 632 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 632 | *n = max_fetch; | 398 | 632 | if constexpr (forward_index) { | 399 | 632 | _cur_index += max_fetch; | 400 | 632 | } | 401 | | | 402 | 632 | return Status::OK(); | 403 | 632 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 651 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 651 | DCHECK(_parsed); | 389 | 652 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 651 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 651 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 651 | *n = max_fetch; | 398 | 651 | if constexpr (forward_index) { | 399 | 651 | _cur_index += max_fetch; | 400 | 651 | } | 401 | | | 402 | 651 | return Status::OK(); | 403 | 651 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.55M | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 212k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 12.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 532k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 97.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 13.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 148k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 5.96k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 10.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 2.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 370k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 67.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 2.16k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.45k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 8.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.37k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 10.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 32.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 21.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 3.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 633 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 652 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
406 | | |
407 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
408 | 459k | MutableColumnPtr& dst) override { |
409 | 459k | DCHECK(_parsed); |
410 | 459k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 459k | auto total = *n; |
416 | 459k | auto read_count = 0; |
417 | 459k | _buffer.resize(total); |
418 | 121M | for (size_t i = 0; i < total; ++i) { |
419 | 121M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 121M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 13.2k | break; |
422 | 13.2k | } |
423 | | |
424 | 121M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 121M | } |
426 | | |
427 | 459k | if (LIKELY(read_count > 0)) { |
428 | 459k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 459k | } |
430 | | |
431 | 459k | *n = read_count; |
432 | 459k | return Status::OK(); |
433 | 459k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 30.7k | MutableColumnPtr& dst) override { | 409 | 30.7k | DCHECK(_parsed); | 410 | 30.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 30.7k | auto total = *n; | 416 | 30.7k | auto read_count = 0; | 417 | 30.7k | _buffer.resize(total); | 418 | 796k | for (size_t i = 0; i < total; ++i) { | 419 | 765k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 765k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 21 | break; | 422 | 21 | } | 423 | | | 424 | 765k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 765k | } | 426 | | | 427 | 30.7k | if (LIKELY(read_count > 0)) { | 428 | 30.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 30.7k | } | 430 | | | 431 | 30.7k | *n = read_count; | 432 | 30.7k | return Status::OK(); | 433 | 30.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.37k | MutableColumnPtr& dst) override { | 409 | 7.37k | DCHECK(_parsed); | 410 | 7.37k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.37k | auto total = *n; | 416 | 7.37k | auto read_count = 0; | 417 | 7.37k | _buffer.resize(total); | 418 | 24.3k | for (size_t i = 0; i < total; ++i) { | 419 | 16.9k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 16.9k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 16.9k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 16.9k | } | 426 | | | 427 | 7.38k | if (LIKELY(read_count > 0)) { | 428 | 7.38k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.38k | } | 430 | | | 431 | 7.37k | *n = read_count; | 432 | 7.37k | return Status::OK(); | 433 | 7.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 87.3k | MutableColumnPtr& dst) override { | 409 | 87.3k | DCHECK(_parsed); | 410 | 87.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 87.3k | auto total = *n; | 416 | 87.3k | auto read_count = 0; | 417 | 87.3k | _buffer.resize(total); | 418 | 49.7M | for (size_t i = 0; i < total; ++i) { | 419 | 49.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 49.6M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.81k | break; | 422 | 1.81k | } | 423 | | | 424 | 49.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 49.6M | } | 426 | | | 427 | 87.4k | if (LIKELY(read_count > 0)) { | 428 | 87.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 87.4k | } | 430 | | | 431 | 87.3k | *n = read_count; | 432 | 87.3k | return Status::OK(); | 433 | 87.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 152k | MutableColumnPtr& dst) override { | 409 | 152k | DCHECK(_parsed); | 410 | 152k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 152k | auto total = *n; | 416 | 152k | auto read_count = 0; | 417 | 152k | _buffer.resize(total); | 418 | 14.6M | for (size_t i = 0; i < total; ++i) { | 419 | 14.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.5M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.29k | break; | 422 | 1.29k | } | 423 | | | 424 | 14.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.4M | } | 426 | | | 427 | 152k | if (LIKELY(read_count > 0)) { | 428 | 152k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 152k | } | 430 | | | 431 | 152k | *n = read_count; | 432 | 152k | return Status::OK(); | 433 | 152k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.49k | MutableColumnPtr& dst) override { | 409 | 7.49k | DCHECK(_parsed); | 410 | 7.49k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.49k | auto total = *n; | 416 | 7.49k | auto read_count = 0; | 417 | 7.49k | _buffer.resize(total); | 418 | 16.8k | for (size_t i = 0; i < total; ++i) { | 419 | 9.32k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.32k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 9.32k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.32k | } | 426 | | | 427 | 7.49k | if (LIKELY(read_count > 0)) { | 428 | 7.49k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.49k | } | 430 | | | 431 | 7.49k | *n = read_count; | 432 | 7.49k | return Status::OK(); | 433 | 7.49k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 38.2k | MutableColumnPtr& dst) override { | 409 | 38.2k | DCHECK(_parsed); | 410 | 38.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 38.2k | auto total = *n; | 416 | 38.2k | auto read_count = 0; | 417 | 38.2k | _buffer.resize(total); | 418 | 9.78M | for (size_t i = 0; i < total; ++i) { | 419 | 9.75M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.75M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.88k | break; | 422 | 2.88k | } | 423 | | | 424 | 9.74M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.74M | } | 426 | | | 427 | 38.3k | if (LIKELY(read_count > 0)) { | 428 | 38.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 38.3k | } | 430 | | | 431 | 38.2k | *n = read_count; | 432 | 38.2k | return Status::OK(); | 433 | 38.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.47k | MutableColumnPtr& dst) override { | 409 | 4.47k | DCHECK(_parsed); | 410 | 4.47k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.47k | auto total = *n; | 416 | 4.47k | auto read_count = 0; | 417 | 4.47k | _buffer.resize(total); | 418 | 13.6k | for (size_t i = 0; i < total; ++i) { | 419 | 9.15k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.15k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 9.15k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.15k | } | 426 | | | 427 | 4.47k | if (LIKELY(read_count > 0)) { | 428 | 4.47k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.47k | } | 430 | | | 431 | 4.47k | *n = read_count; | 432 | 4.47k | return Status::OK(); | 433 | 4.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.86k | MutableColumnPtr& dst) override { | 409 | 6.86k | DCHECK(_parsed); | 410 | 6.86k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.86k | auto total = *n; | 416 | 6.86k | auto read_count = 0; | 417 | 6.86k | _buffer.resize(total); | 418 | 631k | for (size_t i = 0; i < total; ++i) { | 419 | 624k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 624k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 190 | break; | 422 | 190 | } | 423 | | | 424 | 624k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 624k | } | 426 | | | 427 | 6.86k | if (LIKELY(read_count > 0)) { | 428 | 6.86k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.86k | } | 430 | | | 431 | 6.86k | *n = read_count; | 432 | 6.86k | return Status::OK(); | 433 | 6.86k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.44k | MutableColumnPtr& dst) override { | 409 | 1.44k | DCHECK(_parsed); | 410 | 1.44k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.44k | auto total = *n; | 416 | 1.44k | auto read_count = 0; | 417 | 1.44k | _buffer.resize(total); | 418 | 505k | for (size_t i = 0; i < total; ++i) { | 419 | 503k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 503k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 9 | break; | 422 | 9 | } | 423 | | | 424 | 503k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 503k | } | 426 | | | 427 | 1.44k | if (LIKELY(read_count > 0)) { | 428 | 1.44k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.44k | } | 430 | | | 431 | 1.44k | *n = read_count; | 432 | 1.44k | return Status::OK(); | 433 | 1.44k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.3k | MutableColumnPtr& dst) override { | 409 | 29.3k | DCHECK(_parsed); | 410 | 29.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.3k | auto total = *n; | 416 | 29.3k | auto read_count = 0; | 417 | 29.3k | _buffer.resize(total); | 418 | 6.54M | for (size_t i = 0; i < total; ++i) { | 419 | 6.51M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.51M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 807 | break; | 422 | 807 | } | 423 | | | 424 | 6.51M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.51M | } | 426 | | | 427 | 29.4k | if (LIKELY(read_count > 0)) { | 428 | 29.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.4k | } | 430 | | | 431 | 29.3k | *n = read_count; | 432 | 29.3k | return Status::OK(); | 433 | 29.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 31.9k | MutableColumnPtr& dst) override { | 409 | 31.9k | DCHECK(_parsed); | 410 | 31.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 31.9k | auto total = *n; | 416 | 31.9k | auto read_count = 0; | 417 | 31.9k | _buffer.resize(total); | 418 | 9.35M | for (size_t i = 0; i < total; ++i) { | 419 | 9.32M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.32M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 221 | break; | 422 | 221 | } | 423 | | | 424 | 9.32M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.32M | } | 426 | | | 427 | 31.9k | if (LIKELY(read_count > 0)) { | 428 | 31.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 31.9k | } | 430 | | | 431 | 31.9k | *n = read_count; | 432 | 31.9k | return Status::OK(); | 433 | 31.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.16k | MutableColumnPtr& dst) override { | 409 | 1.16k | DCHECK(_parsed); | 410 | 1.16k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.16k | auto total = *n; | 416 | 1.16k | auto read_count = 0; | 417 | 1.16k | _buffer.resize(total); | 418 | 3.99k | for (size_t i = 0; i < total; ++i) { | 419 | 2.82k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.82k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.82k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.82k | } | 426 | | | 427 | 1.16k | if (LIKELY(read_count > 0)) { | 428 | 1.16k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.16k | } | 430 | | | 431 | 1.16k | *n = read_count; | 432 | 1.16k | return Status::OK(); | 433 | 1.16k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.97k | MutableColumnPtr& dst) override { | 409 | 1.97k | DCHECK(_parsed); | 410 | 1.97k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.97k | auto total = *n; | 416 | 1.97k | auto read_count = 0; | 417 | 1.97k | _buffer.resize(total); | 418 | 504k | for (size_t i = 0; i < total; ++i) { | 419 | 502k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 502k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 242 | break; | 422 | 242 | } | 423 | | | 424 | 502k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 502k | } | 426 | | | 427 | 1.97k | if (LIKELY(read_count > 0)) { | 428 | 1.97k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.97k | } | 430 | | | 431 | 1.97k | *n = read_count; | 432 | 1.97k | return Status::OK(); | 433 | 1.97k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.3k | MutableColumnPtr& dst) override { | 409 | 12.3k | DCHECK(_parsed); | 410 | 12.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.3k | auto total = *n; | 416 | 12.3k | auto read_count = 0; | 417 | 12.3k | _buffer.resize(total); | 418 | 26.2k | for (size_t i = 0; i < total; ++i) { | 419 | 13.8k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.8k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.8k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.8k | } | 426 | | | 427 | 12.3k | if (LIKELY(read_count > 0)) { | 428 | 12.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.3k | } | 430 | | | 431 | 12.3k | *n = read_count; | 432 | 12.3k | return Status::OK(); | 433 | 12.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 193 | MutableColumnPtr& dst) override { | 409 | 193 | DCHECK(_parsed); | 410 | 193 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 193 | auto total = *n; | 416 | 193 | auto read_count = 0; | 417 | 193 | _buffer.resize(total); | 418 | 392 | for (size_t i = 0; i < total; ++i) { | 419 | 199 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 199 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 199 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 199 | } | 426 | | | 427 | 194 | if (LIKELY(read_count > 0)) { | 428 | 194 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 194 | } | 430 | | | 431 | 193 | *n = read_count; | 432 | 193 | return Status::OK(); | 433 | 193 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.63k | MutableColumnPtr& dst) override { | 409 | 4.63k | DCHECK(_parsed); | 410 | 4.63k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.63k | auto total = *n; | 416 | 4.63k | auto read_count = 0; | 417 | 4.63k | _buffer.resize(total); | 418 | 18.5k | for (size_t i = 0; i < total; ++i) { | 419 | 13.9k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.9k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.9k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.9k | } | 426 | | | 427 | 4.63k | if (LIKELY(read_count > 0)) { | 428 | 4.63k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.63k | } | 430 | | | 431 | 4.63k | *n = read_count; | 432 | 4.63k | return Status::OK(); | 433 | 4.63k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.4k | MutableColumnPtr& dst) override { | 409 | 26.4k | DCHECK(_parsed); | 410 | 26.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.4k | auto total = *n; | 416 | 26.4k | auto read_count = 0; | 417 | 26.4k | _buffer.resize(total); | 418 | 20.5M | for (size_t i = 0; i < total; ++i) { | 419 | 20.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 20.5M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.06k | break; | 422 | 5.06k | } | 423 | | | 424 | 20.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 20.5M | } | 426 | | | 427 | 26.4k | if (LIKELY(read_count > 0)) { | 428 | 26.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.4k | } | 430 | | | 431 | 26.4k | *n = read_count; | 432 | 26.4k | return Status::OK(); | 433 | 26.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.4k | MutableColumnPtr& dst) override { | 409 | 13.4k | DCHECK(_parsed); | 410 | 13.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.4k | auto total = *n; | 416 | 13.4k | auto read_count = 0; | 417 | 13.4k | _buffer.resize(total); | 418 | 8.60M | for (size_t i = 0; i < total; ++i) { | 419 | 8.59M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.59M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 700 | break; | 422 | 700 | } | 423 | | | 424 | 8.59M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.59M | } | 426 | | | 427 | 13.4k | if (LIKELY(read_count > 0)) { | 428 | 13.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.4k | } | 430 | | | 431 | 13.4k | *n = read_count; | 432 | 13.4k | return Status::OK(); | 433 | 13.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 962 | MutableColumnPtr& dst) override { | 409 | 962 | DCHECK(_parsed); | 410 | 962 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 962 | auto total = *n; | 416 | 962 | auto read_count = 0; | 417 | 962 | _buffer.resize(total); | 418 | 2.77k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 962 | if (LIKELY(read_count > 0)) { | 428 | 962 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 962 | } | 430 | | | 431 | 962 | *n = read_count; | 432 | 962 | return Status::OK(); | 433 | 962 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 289 | MutableColumnPtr& dst) override { | 409 | 289 | DCHECK(_parsed); | 410 | 289 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 289 | auto total = *n; | 416 | 289 | auto read_count = 0; | 417 | 289 | _buffer.resize(total); | 418 | 820 | for (size_t i = 0; i < total; ++i) { | 419 | 531 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 531 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 531 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 531 | } | 426 | | | 427 | 290 | if (LIKELY(read_count > 0)) { | 428 | 290 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 290 | } | 430 | | | 431 | 289 | *n = read_count; | 432 | 289 | return Status::OK(); | 433 | 289 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 323 | MutableColumnPtr& dst) override { | 409 | 323 | DCHECK(_parsed); | 410 | 323 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 323 | auto total = *n; | 416 | 323 | auto read_count = 0; | 417 | 323 | _buffer.resize(total); | 418 | 1.16k | for (size_t i = 0; i < total; ++i) { | 419 | 838 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 838 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 838 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 838 | } | 426 | | | 427 | 323 | if (LIKELY(read_count > 0)) { | 428 | 323 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 323 | } | 430 | | | 431 | 323 | *n = read_count; | 432 | 323 | return Status::OK(); | 433 | 323 | } |
|
434 | | |
435 | 194k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 194k | return next_batch<false>(n, dst); |
437 | 194k | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 194k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 194k | return next_batch<false>(n, dst); | 437 | 194k | } |
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 |
438 | | |
439 | 4 | size_t count() const override { return _num_elements; }Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv |
440 | | |
441 | 2.71M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 1.32k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 820 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.71M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 175k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 406 | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 726 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 1.04k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 211k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 228k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 51.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 270 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 200k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.01k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 14 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.55k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 643 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 117k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 39 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 45 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 125M | char* get_data(size_t index) const { |
444 | 125M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 125M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 978k | char* get_data(size_t index) const { | 444 | 978k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 978k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 29.6k | char* get_data(size_t index) const { | 444 | 29.6k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 29.6k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 52.2M | char* get_data(size_t index) const { | 444 | 52.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 52.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 14.5M | char* get_data(size_t index) const { | 444 | 14.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 14.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 22.7k | char* get_data(size_t index) const { | 444 | 22.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.7k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 10.0M | char* get_data(size_t index) const { | 444 | 10.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 10.0M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 15.1k | char* get_data(size_t index) const { | 444 | 15.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 15.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 634k | char* get_data(size_t index) const { | 444 | 634k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 634k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 506k | char* get_data(size_t index) const { | 444 | 506k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 506k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.88M | char* get_data(size_t index) const { | 444 | 6.88M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.88M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.39M | char* get_data(size_t index) const { | 444 | 9.39M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.39M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 4.99k | char* get_data(size_t index) const { | 444 | 4.99k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.99k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 504k | char* get_data(size_t index) const { | 444 | 504k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 504k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 21.9k | char* get_data(size_t index) const { | 444 | 21.9k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.9k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.56k | char* get_data(size_t index) const { | 444 | 1.56k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.56k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 24.2k | char* get_data(size_t index) const { | 444 | 24.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 24.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 20.5M | char* get_data(size_t index) const { | 444 | 20.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.61M | char* get_data(size_t index) const { | 444 | 8.61M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.61M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.93k | char* get_data(size_t index) const { | 444 | 4.93k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.93k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.16k | char* get_data(size_t index) const { | 444 | 1.16k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.16k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.49k | char* get_data(size_t index) const { | 444 | 1.49k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.49k | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |