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 | 674k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 362k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 39.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.53k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 39.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 10.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 67.0k | 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.58k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 7.96k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 334 | 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.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 335 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 430 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.45k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 332 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.76k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.0k | 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 | 711 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 706 | Status init() override { return reset(); } |
|
96 | | |
97 | 143M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 142M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 46.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 8.59k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 148k | 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 | 67.7k | 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.47k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 8.99k | 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 | 350 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 45.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 44.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 274 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 493 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.60k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 237 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.22k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 25.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 17.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 611 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 624 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.11M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.11M | return add_internal<false>(vals, count); |
101 | 1.11M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 671k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 671k | return add_internal<false>(vals, count); | 101 | 671k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 46.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 46.7k | return add_internal<false>(vals, count); | 101 | 46.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 8.59k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.59k | return add_internal<false>(vals, count); | 101 | 8.59k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 148k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 148k | return add_internal<false>(vals, count); | 101 | 148k | } |
_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 | 67.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 67.7k | return add_internal<false>(vals, count); | 101 | 67.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 6.47k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.47k | return add_internal<false>(vals, count); | 101 | 6.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 8.99k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.99k | return add_internal<false>(vals, count); | 101 | 8.99k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 350 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 350 | return add_internal<false>(vals, count); | 101 | 350 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 45.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.3k | return add_internal<false>(vals, count); | 101 | 45.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 44.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.1k | return add_internal<false>(vals, count); | 101 | 44.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 274 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 274 | return add_internal<false>(vals, count); | 101 | 274 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 493 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 493 | return add_internal<false>(vals, count); | 101 | 493 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.60k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.60k | return add_internal<false>(vals, count); | 101 | 7.60k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 237 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 237 | return add_internal<false>(vals, count); | 101 | 237 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.22k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.22k | return add_internal<false>(vals, count); | 101 | 5.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 25.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 25.3k | return add_internal<false>(vals, count); | 101 | 25.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 17.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 17.9k | return add_internal<false>(vals, count); | 101 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.37k | return add_internal<false>(vals, count); | 101 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 611 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 611 | return add_internal<false>(vals, count); | 101 | 611 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 624 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 624 | return add_internal<false>(vals, count); | 101 | 624 | } |
|
102 | | |
103 | 144M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 144M | return add_internal<true>(vals, count); |
105 | 144M | } |
106 | | |
107 | | template <bool single> |
108 | 142M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 142M | DCHECK(!_finished); |
110 | 142M | 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 | 142M | uint32_t to_add = cast_set<UInt32>( |
126 | 142M | 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 | 142M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 142M | 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 | 142M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 145M | _count += to_add; |
134 | 145M | _remain_element_capacity -= to_add; |
135 | 145M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 145M | *num_written = to_add; |
138 | 145M | 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 | 144M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 144M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 144M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 144M | 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 | 144M | } |
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 | 145M | return Status::OK(); |
159 | 142M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 671k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 671k | DCHECK(!_finished); | 110 | 671k | 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 | 671k | uint32_t to_add = cast_set<UInt32>( | 126 | 671k | 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 | 671k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 671k | 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 | 671k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 671k | _count += to_add; | 134 | 671k | _remain_element_capacity -= to_add; | 135 | 671k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 671k | *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 | 671k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 671k | return Status::OK(); | 159 | 671k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 140M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 140M | DCHECK(!_finished); | 110 | 140M | 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 | 140M | uint32_t to_add = cast_set<UInt32>( | 126 | 140M | 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 | 140M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 140M | 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 | 140M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 144M | _count += to_add; | 134 | 144M | _remain_element_capacity -= to_add; | 135 | 144M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 144M | *num_written = to_add; | 138 | 144M | 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 | 144M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 144M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 144M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 144M | 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 | 144M | } | 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 | 144M | return Status::OK(); | 159 | 140M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 46.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 46.7k | DCHECK(!_finished); | 110 | 46.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 | 46.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 46.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 | 46.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 46.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 | 46.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 46.7k | _count += to_add; | 134 | 46.7k | _remain_element_capacity -= to_add; | 135 | 46.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 46.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 | 46.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 46.7k | return Status::OK(); | 159 | 46.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.59k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.59k | DCHECK(!_finished); | 110 | 8.59k | 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.59k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.59k | 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.59k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.59k | 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.59k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.59k | _count += to_add; | 134 | 8.59k | _remain_element_capacity -= to_add; | 135 | 8.59k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.59k | *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.59k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.59k | return Status::OK(); | 159 | 8.59k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 148k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 148k | DCHECK(!_finished); | 110 | 148k | 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 | 148k | uint32_t to_add = cast_set<UInt32>( | 126 | 148k | 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 | 148k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 148k | 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 | 148k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 148k | _count += to_add; | 134 | 148k | _remain_element_capacity -= to_add; | 135 | 148k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 148k | *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 | 148k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 148k | return Status::OK(); | 159 | 148k | } |
_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 | 67.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 67.7k | DCHECK(!_finished); | 110 | 67.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 | 67.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 67.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 | 67.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 67.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 | 67.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 67.7k | _count += to_add; | 134 | 67.7k | _remain_element_capacity -= to_add; | 135 | 67.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 67.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 | 67.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 67.7k | return Status::OK(); | 159 | 67.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.47k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.47k | DCHECK(!_finished); | 110 | 6.47k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 6.47k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.47k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 6.47k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.47k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 6.47k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.47k | _count += to_add; | 134 | 6.47k | _remain_element_capacity -= to_add; | 135 | 6.47k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.47k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 6.47k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.47k | return Status::OK(); | 159 | 6.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.99k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.99k | DCHECK(!_finished); | 110 | 8.99k | 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.99k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.99k | 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.99k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.99k | 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.99k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.99k | _count += to_add; | 134 | 8.99k | _remain_element_capacity -= to_add; | 135 | 8.99k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.99k | *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.99k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.99k | return Status::OK(); | 159 | 8.99k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 350 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 350 | DCHECK(!_finished); | 110 | 350 | 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 | 350 | uint32_t to_add = cast_set<UInt32>( | 126 | 350 | 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 | 350 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 350 | 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 | 350 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 350 | _count += to_add; | 134 | 350 | _remain_element_capacity -= to_add; | 135 | 350 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 350 | *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 | 350 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 350 | return Status::OK(); | 159 | 350 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.3k | DCHECK(!_finished); | 110 | 45.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 | 45.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.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 | 45.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.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 | 45.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.3k | _count += to_add; | 134 | 45.3k | _remain_element_capacity -= to_add; | 135 | 45.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.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 | 45.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.3k | return Status::OK(); | 159 | 45.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.1k | DCHECK(!_finished); | 110 | 44.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 | 44.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.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 | 44.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.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 | 44.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.1k | _count += to_add; | 134 | 44.1k | _remain_element_capacity -= to_add; | 135 | 44.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.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 | 44.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.1k | return Status::OK(); | 159 | 44.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 274 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 274 | DCHECK(!_finished); | 110 | 274 | 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 | 274 | uint32_t to_add = cast_set<UInt32>( | 126 | 274 | 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 | 274 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 274 | 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 | 274 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 274 | _count += to_add; | 134 | 274 | _remain_element_capacity -= to_add; | 135 | 274 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 274 | *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 | 274 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 274 | return Status::OK(); | 159 | 274 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 493 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 493 | DCHECK(!_finished); | 110 | 493 | 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 | 493 | uint32_t to_add = cast_set<UInt32>( | 126 | 493 | 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 | 493 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 493 | 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 | 493 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 493 | _count += to_add; | 134 | 493 | _remain_element_capacity -= to_add; | 135 | 493 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 493 | *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 | 493 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 493 | return Status::OK(); | 159 | 493 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.59k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.59k | DCHECK(!_finished); | 110 | 7.59k | 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.59k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.59k | 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.59k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.59k | 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.59k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.60k | _count += to_add; | 134 | 7.60k | _remain_element_capacity -= to_add; | 135 | 7.60k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.60k | *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.60k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.60k | return Status::OK(); | 159 | 7.59k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 237 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 237 | DCHECK(!_finished); | 110 | 237 | 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 | 237 | uint32_t to_add = cast_set<UInt32>( | 126 | 237 | 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 | 237 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 237 | 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 | 237 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 237 | _count += to_add; | 134 | 237 | _remain_element_capacity -= to_add; | 135 | 237 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 237 | *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 | 237 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 237 | return Status::OK(); | 159 | 237 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.22k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.22k | DCHECK(!_finished); | 110 | 5.22k | 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.22k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.22k | 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.22k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.22k | 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.22k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.22k | _count += to_add; | 134 | 5.22k | _remain_element_capacity -= to_add; | 135 | 5.22k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.22k | *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.22k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.22k | return Status::OK(); | 159 | 5.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 25.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 25.3k | DCHECK(!_finished); | 110 | 25.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 | 25.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 25.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 | 25.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 25.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 | 25.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 25.3k | _count += to_add; | 134 | 25.3k | _remain_element_capacity -= to_add; | 135 | 25.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 25.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 | 25.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 25.3k | return Status::OK(); | 159 | 25.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 17.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 17.9k | DCHECK(!_finished); | 110 | 17.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 | 17.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 17.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 | 17.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 17.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 | 17.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 17.9k | _count += to_add; | 134 | 17.9k | _remain_element_capacity -= to_add; | 135 | 17.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 17.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 | 17.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 17.9k | return Status::OK(); | 159 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.37k | DCHECK(!_finished); | 110 | 1.37k | 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.37k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.37k | 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.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.37k | 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.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.37k | _count += to_add; | 134 | 1.37k | _remain_element_capacity -= to_add; | 135 | 1.37k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.37k | *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.37k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.37k | return Status::OK(); | 159 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 611 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 611 | DCHECK(!_finished); | 110 | 611 | 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 | 611 | uint32_t to_add = cast_set<UInt32>( | 126 | 611 | 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 | 611 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 611 | 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 | 611 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 611 | _count += to_add; | 134 | 611 | _remain_element_capacity -= to_add; | 135 | 611 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 611 | *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 | 611 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 611 | return Status::OK(); | 159 | 611 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 624 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 624 | DCHECK(!_finished); | 110 | 624 | 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 | 624 | uint32_t to_add = cast_set<UInt32>( | 126 | 624 | 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 | 624 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 624 | 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 | 624 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 624 | _count += to_add; | 134 | 624 | _remain_element_capacity -= to_add; | 135 | 624 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 624 | *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 | 624 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 624 | return Status::OK(); | 159 | 624 | } |
|
160 | | |
161 | 665k | Status finish(OwnedSlice* slice) override { |
162 | 665k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 665k | return Status::OK(); |
164 | 665k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 345k | Status finish(OwnedSlice* slice) override { | 162 | 345k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 346k | return Status::OK(); | 164 | 345k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_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_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.02k | Status finish(OwnedSlice* slice) override { | 162 | 8.02k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.02k | return Status::OK(); | 164 | 8.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 42.4k | Status finish(OwnedSlice* slice) override { | 162 | 42.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 42.4k | return Status::OK(); | 164 | 42.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.9k | Status finish(OwnedSlice* slice) override { | 162 | 10.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.9k | return Status::OK(); | 164 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 66.8k | Status finish(OwnedSlice* slice) override { | 162 | 66.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 66.8k | return Status::OK(); | 164 | 66.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.11k | Status finish(OwnedSlice* slice) override { | 162 | 6.11k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.11k | return Status::OK(); | 164 | 6.11k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.86k | Status finish(OwnedSlice* slice) override { | 162 | 7.86k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.86k | return Status::OK(); | 164 | 7.86k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 345 | Status finish(OwnedSlice* slice) override { | 162 | 345 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 345 | return Status::OK(); | 164 | 345 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.4k | Status finish(OwnedSlice* slice) override { | 162 | 38.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.4k | return Status::OK(); | 164 | 38.4k | } |
_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 | 268 | Status finish(OwnedSlice* slice) override { | 162 | 268 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 268 | return Status::OK(); | 164 | 268 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 583 | Status finish(OwnedSlice* slice) override { | 162 | 583 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 583 | return Status::OK(); | 164 | 583 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.68k | Status finish(OwnedSlice* slice) override { | 162 | 7.68k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.70k | return Status::OK(); | 164 | 7.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 239 | Status finish(OwnedSlice* slice) override { | 162 | 239 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 239 | return Status::OK(); | 164 | 239 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.75k | Status finish(OwnedSlice* slice) override { | 162 | 9.75k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.75k | return Status::OK(); | 164 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.0k | Status finish(OwnedSlice* slice) override { | 162 | 19.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.0k | return Status::OK(); | 164 | 19.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.1k | Status finish(OwnedSlice* slice) override { | 162 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.1k | return Status::OK(); | 164 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.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 | 617 | Status finish(OwnedSlice* slice) override { | 162 | 617 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 617 | return Status::OK(); | 164 | 617 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 614 | Status finish(OwnedSlice* slice) override { | 162 | 614 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 614 | return Status::OK(); | 164 | 614 | } |
|
165 | | |
166 | 1.63M | Status reset() override { |
167 | 1.63M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.63M | size_t block_size = _options.data_page_size; |
169 | 1.63M | _count = 0; |
170 | 1.63M | _raw_data_size = 0; |
171 | 1.63M | _data.clear(); |
172 | 1.63M | _data.reserve(block_size); |
173 | 1.63M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.63M | << "buffer must be naturally-aligned"; |
175 | 1.63M | _buffer.clear(); |
176 | 1.63M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.63M | _finished = false; |
178 | 1.63M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.63M | }); |
180 | 1.63M | return Status::OK(); |
181 | 1.63M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.00M | Status reset() override { | 167 | 1.00M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.00M | size_t block_size = _options.data_page_size; | 169 | 1.00M | _count = 0; | 170 | 1.00M | _raw_data_size = 0; | 171 | 1.00M | _data.clear(); | 172 | 1.00M | _data.reserve(block_size); | 173 | 1.00M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.00M | << "buffer must be naturally-aligned"; | 175 | 1.00M | _buffer.clear(); | 176 | 1.00M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.00M | _finished = false; | 178 | 1.00M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.00M | }); | 180 | 1.00M | return Status::OK(); | 181 | 1.00M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 77.4k | Status reset() override { | 167 | 77.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 77.4k | size_t block_size = _options.data_page_size; | 169 | 77.4k | _count = 0; | 170 | 77.4k | _raw_data_size = 0; | 171 | 77.4k | _data.clear(); | 172 | 77.4k | _data.reserve(block_size); | 173 | 77.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 77.4k | << "buffer must be naturally-aligned"; | 175 | 77.4k | _buffer.clear(); | 176 | 77.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 77.4k | _finished = false; | 178 | 77.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 77.4k | }); | 180 | 77.4k | return Status::OK(); | 181 | 77.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 16.5k | Status reset() override { | 167 | 16.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 16.5k | size_t block_size = _options.data_page_size; | 169 | 16.5k | _count = 0; | 170 | 16.5k | _raw_data_size = 0; | 171 | 16.5k | _data.clear(); | 172 | 16.5k | _data.reserve(block_size); | 173 | 16.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 16.5k | << "buffer must be naturally-aligned"; | 175 | 16.5k | _buffer.clear(); | 176 | 16.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 16.5k | _finished = false; | 178 | 16.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 16.5k | }); | 180 | 16.5k | return Status::OK(); | 181 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 82.3k | Status reset() override { | 167 | 82.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 82.3k | size_t block_size = _options.data_page_size; | 169 | 82.3k | _count = 0; | 170 | 82.3k | _raw_data_size = 0; | 171 | 82.3k | _data.clear(); | 172 | 82.3k | _data.reserve(block_size); | 173 | 82.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 82.3k | << "buffer must be naturally-aligned"; | 175 | 82.3k | _buffer.clear(); | 176 | 82.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 82.3k | _finished = false; | 178 | 82.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 82.3k | }); | 180 | 82.4k | return Status::OK(); | 181 | 82.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 21.8k | Status reset() override { | 167 | 21.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 21.8k | size_t block_size = _options.data_page_size; | 169 | 21.8k | _count = 0; | 170 | 21.8k | _raw_data_size = 0; | 171 | 21.8k | _data.clear(); | 172 | 21.8k | _data.reserve(block_size); | 173 | 21.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 21.8k | << "buffer must be naturally-aligned"; | 175 | 21.8k | _buffer.clear(); | 176 | 21.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 21.8k | _finished = false; | 178 | 21.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 21.8k | }); | 180 | 21.8k | return Status::OK(); | 181 | 21.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 133k | Status reset() override { | 167 | 133k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 133k | size_t block_size = _options.data_page_size; | 169 | 133k | _count = 0; | 170 | 133k | _raw_data_size = 0; | 171 | 133k | _data.clear(); | 172 | 133k | _data.reserve(block_size); | 173 | 133k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 133k | << "buffer must be naturally-aligned"; | 175 | 133k | _buffer.clear(); | 176 | 133k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 133k | _finished = false; | 178 | 133k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 133k | }); | 180 | 134k | return Status::OK(); | 181 | 133k | } |
_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.6k | Status reset() override { | 167 | 12.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 12.6k | size_t block_size = _options.data_page_size; | 169 | 12.6k | _count = 0; | 170 | 12.6k | _raw_data_size = 0; | 171 | 12.6k | _data.clear(); | 172 | 12.6k | _data.reserve(block_size); | 173 | 12.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 12.6k | << "buffer must be naturally-aligned"; | 175 | 12.6k | _buffer.clear(); | 176 | 12.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 12.6k | _finished = false; | 178 | 12.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 12.6k | }); | 180 | 12.6k | return Status::OK(); | 181 | 12.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 15.8k | Status reset() override { | 167 | 15.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.8k | size_t block_size = _options.data_page_size; | 169 | 15.8k | _count = 0; | 170 | 15.8k | _raw_data_size = 0; | 171 | 15.8k | _data.clear(); | 172 | 15.8k | _data.reserve(block_size); | 173 | 15.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.8k | << "buffer must be naturally-aligned"; | 175 | 15.8k | _buffer.clear(); | 176 | 15.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.8k | _finished = false; | 178 | 15.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.8k | }); | 180 | 15.8k | return Status::OK(); | 181 | 15.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 678 | Status reset() override { | 167 | 678 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 678 | size_t block_size = _options.data_page_size; | 169 | 678 | _count = 0; | 170 | 678 | _raw_data_size = 0; | 171 | 678 | _data.clear(); | 172 | 678 | _data.reserve(block_size); | 173 | 678 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 678 | << "buffer must be naturally-aligned"; | 175 | 678 | _buffer.clear(); | 176 | 678 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 678 | _finished = false; | 178 | 678 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 678 | }); | 180 | 679 | return Status::OK(); | 181 | 678 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 76.0k | Status reset() override { | 167 | 76.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 76.0k | size_t block_size = _options.data_page_size; | 169 | 76.0k | _count = 0; | 170 | 76.0k | _raw_data_size = 0; | 171 | 76.0k | _data.clear(); | 172 | 76.0k | _data.reserve(block_size); | 173 | 76.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 76.0k | << "buffer must be naturally-aligned"; | 175 | 76.0k | _buffer.clear(); | 176 | 76.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 76.0k | _finished = false; | 178 | 76.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 76.0k | }); | 180 | 76.1k | return Status::OK(); | 181 | 76.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.7k | Status reset() override { | 167 | 87.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.7k | size_t block_size = _options.data_page_size; | 169 | 87.7k | _count = 0; | 170 | 87.7k | _raw_data_size = 0; | 171 | 87.7k | _data.clear(); | 172 | 87.7k | _data.reserve(block_size); | 173 | 87.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.7k | << "buffer must be naturally-aligned"; | 175 | 87.7k | _buffer.clear(); | 176 | 87.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.7k | _finished = false; | 178 | 87.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.7k | }); | 180 | 87.8k | return Status::OK(); | 181 | 87.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 603 | Status reset() override { | 167 | 603 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 603 | size_t block_size = _options.data_page_size; | 169 | 603 | _count = 0; | 170 | 603 | _raw_data_size = 0; | 171 | 603 | _data.clear(); | 172 | 603 | _data.reserve(block_size); | 173 | 603 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 603 | << "buffer must be naturally-aligned"; | 175 | 603 | _buffer.clear(); | 176 | 603 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 603 | _finished = false; | 178 | 603 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 603 | }); | 180 | 604 | return Status::OK(); | 181 | 603 | } |
_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.0k | Status reset() override { | 167 | 15.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.0k | size_t block_size = _options.data_page_size; | 169 | 15.0k | _count = 0; | 170 | 15.0k | _raw_data_size = 0; | 171 | 15.0k | _data.clear(); | 172 | 15.0k | _data.reserve(block_size); | 173 | 15.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.0k | << "buffer must be naturally-aligned"; | 175 | 15.0k | _buffer.clear(); | 176 | 15.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.0k | _finished = false; | 178 | 15.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.0k | }); | 180 | 15.4k | return Status::OK(); | 181 | 15.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 571 | Status reset() override { | 167 | 571 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 571 | size_t block_size = _options.data_page_size; | 169 | 571 | _count = 0; | 170 | 571 | _raw_data_size = 0; | 171 | 571 | _data.clear(); | 172 | 571 | _data.reserve(block_size); | 173 | 571 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 571 | << "buffer must be naturally-aligned"; | 175 | 571 | _buffer.clear(); | 176 | 571 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 571 | _finished = false; | 178 | 571 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 571 | }); | 180 | 571 | return Status::OK(); | 181 | 571 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.5k | Status reset() override { | 167 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.5k | size_t block_size = _options.data_page_size; | 169 | 19.5k | _count = 0; | 170 | 19.5k | _raw_data_size = 0; | 171 | 19.5k | _data.clear(); | 172 | 19.5k | _data.reserve(block_size); | 173 | 19.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.5k | << "buffer must be naturally-aligned"; | 175 | 19.5k | _buffer.clear(); | 176 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.5k | _finished = false; | 178 | 19.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.5k | }); | 180 | 19.5k | return Status::OK(); | 181 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.0k | Status reset() override { | 167 | 31.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.0k | size_t block_size = _options.data_page_size; | 169 | 31.0k | _count = 0; | 170 | 31.0k | _raw_data_size = 0; | 171 | 31.0k | _data.clear(); | 172 | 31.0k | _data.reserve(block_size); | 173 | 31.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.0k | << "buffer must be naturally-aligned"; | 175 | 31.0k | _buffer.clear(); | 176 | 31.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.0k | _finished = false; | 178 | 31.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.0k | }); | 180 | 31.0k | return Status::OK(); | 181 | 31.0k | } |
_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.1k | return Status::OK(); | 181 | 34.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.30k | Status reset() override { | 167 | 2.30k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.30k | size_t block_size = _options.data_page_size; | 169 | 2.30k | _count = 0; | 170 | 2.30k | _raw_data_size = 0; | 171 | 2.30k | _data.clear(); | 172 | 2.30k | _data.reserve(block_size); | 173 | 2.30k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.30k | << "buffer must be naturally-aligned"; | 175 | 2.30k | _buffer.clear(); | 176 | 2.30k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.30k | _finished = false; | 178 | 2.30k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.30k | }); | 180 | 2.31k | return Status::OK(); | 181 | 2.30k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv 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 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.31k | Status reset() override { | 167 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.31k | size_t block_size = _options.data_page_size; | 169 | 1.31k | _count = 0; | 170 | 1.31k | _raw_data_size = 0; | 171 | 1.31k | _data.clear(); | 172 | 1.31k | _data.reserve(block_size); | 173 | 1.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.31k | << "buffer must be naturally-aligned"; | 175 | 1.31k | _buffer.clear(); | 176 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.31k | _finished = false; | 178 | 1.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.31k | }); | 180 | 1.32k | return Status::OK(); | 181 | 1.31k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv 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_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 20.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.36k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 860 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 2.71k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.18k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 965 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 485 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 611 | 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.70k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.43k | 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 | 136 | 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 | 267 | 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.22k | 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 | 385k | 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_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.02k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 42.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6.11k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.86k | 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 | 345 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.4k | 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 | 268 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 583 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.69k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 239 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.75k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.10k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 617 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 614 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 672k | : _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_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 39.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.53k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 39.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 66.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.58k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.96k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 334 | : _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 | 335 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 430 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.36k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 332 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.76k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.0k | : _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 | 709 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 707 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 665k | OwnedSlice _finish(int final_size_of_type) { |
194 | 665k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 665k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 665k | int padding_elems = num_elems_after_padding - _count; |
199 | 665k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 18.3M | for (int i = 0; i < padding_bytes; i++) { |
201 | 17.6M | _data.push_back(0); |
202 | 17.6M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 665k | _buffer.resize( |
206 | 665k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 665k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 665k | int64_t bytes = |
210 | 665k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 665k | num_elems_after_padding, final_size_of_type, 0); |
212 | 665k | 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 | 665k | encode_fixed32_le(&_buffer[0], _count); |
222 | 665k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 665k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 665k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 665k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 665k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 665k | return _buffer.build(); |
229 | 665k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 345k | OwnedSlice _finish(int final_size_of_type) { | 194 | 345k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 345k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 345k | int padding_elems = num_elems_after_padding - _count; | 199 | 345k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.69M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.35M | _data.push_back(0); | 202 | 6.35M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 345k | _buffer.resize( | 206 | 345k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 345k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 345k | int64_t bytes = | 210 | 345k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 345k | num_elems_after_padding, final_size_of_type, 0); | 212 | 345k | 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 | 345k | encode_fixed32_le(&_buffer[0], _count); | 222 | 345k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 345k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 345k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 345k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 345k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 345k | return _buffer.build(); | 229 | 345k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_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 | 239k | for (int i = 0; i < padding_bytes; i++) { | 201 | 201k | _data.push_back(0); | 202 | 201k | } | 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_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 8.02k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.02k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.02k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.02k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.02k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 89.5k | for (int i = 0; i < padding_bytes; i++) { | 201 | 81.5k | _data.push_back(0); | 202 | 81.5k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.02k | _buffer.resize( | 206 | 8.02k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.02k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.02k | int64_t bytes = | 210 | 8.02k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.02k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.02k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 8.02k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.02k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.02k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.02k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.02k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.02k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.02k | return _buffer.build(); | 229 | 8.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 42.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 42.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 42.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 42.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 42.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.69M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.65M | _data.push_back(0); | 202 | 1.65M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 42.4k | _buffer.resize( | 206 | 42.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 42.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 42.4k | int64_t bytes = | 210 | 42.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 42.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 42.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 | 42.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 42.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 42.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 42.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 42.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 42.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 42.4k | return _buffer.build(); | 229 | 42.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 10.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 819k | for (int i = 0; i < padding_bytes; i++) { | 201 | 808k | _data.push_back(0); | 202 | 808k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.9k | _buffer.resize( | 206 | 10.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.9k | int64_t bytes = | 210 | 10.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.9k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 10.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.9k | return _buffer.build(); | 229 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 66.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 66.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 66.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 66.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 66.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.23M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.16M | _data.push_back(0); | 202 | 3.16M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 66.8k | _buffer.resize( | 206 | 66.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 66.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 66.8k | int64_t bytes = | 210 | 66.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 66.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 66.8k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 66.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 66.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 66.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 66.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 66.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 66.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 66.8k | return _buffer.build(); | 229 | 66.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 6.11k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.11k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.11k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.11k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.11k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 140k | for (int i = 0; i < padding_bytes; i++) { | 201 | 134k | _data.push_back(0); | 202 | 134k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.11k | _buffer.resize( | 206 | 6.11k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.11k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.11k | int64_t bytes = | 210 | 6.11k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.11k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.11k | 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.11k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.11k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.11k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.11k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.11k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.11k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.11k | return _buffer.build(); | 229 | 6.11k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 7.86k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.86k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.86k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.86k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.86k | 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.86k | _buffer.resize( | 206 | 7.86k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.86k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.86k | int64_t bytes = | 210 | 7.86k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.86k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.86k | 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.86k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.86k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.86k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.86k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.86k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.86k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.86k | return _buffer.build(); | 229 | 7.86k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 344 | OwnedSlice _finish(int final_size_of_type) { | 194 | 344 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 344 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 344 | int padding_elems = num_elems_after_padding - _count; | 199 | 344 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.15k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.81k | _data.push_back(0); | 202 | 4.81k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 344 | _buffer.resize( | 206 | 344 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 344 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 344 | int64_t bytes = | 210 | 344 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 344 | num_elems_after_padding, final_size_of_type, 0); | 212 | 344 | 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 | 344 | encode_fixed32_le(&_buffer[0], _count); | 222 | 344 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 344 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 344 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 344 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 344 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 344 | return _buffer.build(); | 229 | 344 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 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.4k | _buffer.resize( | 206 | 38.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.4k | int64_t bytes = | 210 | 38.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 38.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.4k | return _buffer.build(); | 229 | 38.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.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.77M | _data.push_back(0); | 202 | 1.77M | } | 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 | 268 | OwnedSlice _finish(int final_size_of_type) { | 194 | 268 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 268 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 268 | int padding_elems = num_elems_after_padding - _count; | 199 | 268 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.1k | _data.push_back(0); | 202 | 11.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 268 | _buffer.resize( | 206 | 268 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 268 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 268 | int64_t bytes = | 210 | 268 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 268 | num_elems_after_padding, final_size_of_type, 0); | 212 | 268 | 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 | 268 | encode_fixed32_le(&_buffer[0], _count); | 222 | 268 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 268 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 268 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 268 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 268 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 268 | return _buffer.build(); | 229 | 268 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 583 | OwnedSlice _finish(int final_size_of_type) { | 194 | 583 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 583 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 583 | int padding_elems = num_elems_after_padding - _count; | 199 | 583 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.5k | _data.push_back(0); | 202 | 12.5k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 583 | _buffer.resize( | 206 | 583 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 583 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 583 | int64_t bytes = | 210 | 583 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 583 | num_elems_after_padding, final_size_of_type, 0); | 212 | 583 | 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 | 583 | encode_fixed32_le(&_buffer[0], _count); | 222 | 583 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 583 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 583 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 583 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 583 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 583 | return _buffer.build(); | 229 | 583 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.68k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.68k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.68k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.68k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.68k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 400k | for (int i = 0; i < padding_bytes; i++) { | 201 | 393k | _data.push_back(0); | 202 | 393k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.68k | _buffer.resize( | 206 | 7.68k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.68k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.68k | int64_t bytes = | 210 | 7.68k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.68k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.68k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.68k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.68k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.68k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.68k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.68k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.68k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.68k | return _buffer.build(); | 229 | 7.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 239 | OwnedSlice _finish(int final_size_of_type) { | 194 | 239 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 239 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 239 | int padding_elems = num_elems_after_padding - _count; | 199 | 239 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 14.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 14.3k | _data.push_back(0); | 202 | 14.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 239 | _buffer.resize( | 206 | 239 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 239 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 239 | int64_t bytes = | 210 | 239 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 239 | num_elems_after_padding, final_size_of_type, 0); | 212 | 239 | 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 | 239 | encode_fixed32_le(&_buffer[0], _count); | 222 | 239 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 239 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 239 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 239 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 239 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 239 | return _buffer.build(); | 229 | 239 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.75k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.75k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.75k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.75k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.75k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 118k | for (int i = 0; i < padding_bytes; i++) { | 201 | 108k | _data.push_back(0); | 202 | 108k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.75k | _buffer.resize( | 206 | 9.75k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.75k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.75k | int64_t bytes = | 210 | 9.75k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.75k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.75k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 9.75k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.75k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.75k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.75k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.75k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.75k | return _buffer.build(); | 229 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 19.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 485k | for (int i = 0; i < padding_bytes; i++) { | 201 | 466k | _data.push_back(0); | 202 | 466k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.0k | _buffer.resize( | 206 | 19.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.0k | int64_t bytes = | 210 | 19.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.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 | 19.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.0k | return _buffer.build(); | 229 | 19.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.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.1k | _buffer.resize( | 206 | 17.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.1k | int64_t bytes = | 210 | 17.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 17.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.1k | return _buffer.build(); | 229 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.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 | 617 | OwnedSlice _finish(int final_size_of_type) { | 194 | 617 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 617 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 617 | int padding_elems = num_elems_after_padding - _count; | 199 | 617 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.0k | _data.push_back(0); | 202 | 12.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 617 | _buffer.resize( | 206 | 617 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 617 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 617 | int64_t bytes = | 210 | 617 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 617 | num_elems_after_padding, final_size_of_type, 0); | 212 | 617 | 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 | 617 | encode_fixed32_le(&_buffer[0], _count); | 222 | 617 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 617 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 617 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 617 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 617 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 617 | return _buffer.build(); | 229 | 617 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 614 | OwnedSlice _finish(int final_size_of_type) { | 194 | 614 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 614 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 614 | int padding_elems = num_elems_after_padding - _count; | 199 | 614 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.4k | _data.push_back(0); | 202 | 49.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 614 | _buffer.resize( | 206 | 614 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 614 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 614 | int64_t bytes = | 210 | 614 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 614 | num_elems_after_padding, final_size_of_type, 0); | 212 | 614 | 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 | 614 | encode_fixed32_le(&_buffer[0], _count); | 222 | 614 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 614 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 614 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 614 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 614 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 614 | return _buffer.build(); | 229 | 614 | } |
|
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 | 1.74M | int& size_of_element) { |
253 | 1.74M | 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 | 1.74M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 1.74M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 1.74M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 1.74M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 1.74M | 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 | 1.74M | switch (size_of_element) { |
271 | 141k | case 1: |
272 | 163k | case 2: |
273 | 166k | case 3: |
274 | 1.20M | case 4: |
275 | 1.66M | case 8: |
276 | 1.67M | case 12: |
277 | 1.74M | case 16: |
278 | 1.74M | case 32: |
279 | 1.74M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 1.74M | } |
283 | 1.74M | return Status::OK(); |
284 | 1.74M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.07M | : _data(data), |
291 | 1.07M | _options(options), |
292 | 1.07M | _parsed(false), |
293 | 1.07M | _num_elements(0), |
294 | 1.07M | _num_element_after_padding(0), |
295 | 1.07M | _size_of_element(0), |
296 | 1.07M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 541k | : _data(data), | 291 | 541k | _options(options), | 292 | 541k | _parsed(false), | 293 | 541k | _num_elements(0), | 294 | 541k | _num_element_after_padding(0), | 295 | 541k | _size_of_element(0), | 296 | 541k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 85.7k | : _data(data), | 291 | 85.7k | _options(options), | 292 | 85.7k | _parsed(false), | 293 | 85.7k | _num_elements(0), | 294 | 85.7k | _num_element_after_padding(0), | 295 | 85.7k | _size_of_element(0), | 296 | 85.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.8k | : _data(data), | 291 | 13.8k | _options(options), | 292 | 13.8k | _parsed(false), | 293 | 13.8k | _num_elements(0), | 294 | 13.8k | _num_element_after_padding(0), | 295 | 13.8k | _size_of_element(0), | 296 | 13.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 56.2k | : _data(data), | 291 | 56.2k | _options(options), | 292 | 56.2k | _parsed(false), | 293 | 56.2k | _num_elements(0), | 294 | 56.2k | _num_element_after_padding(0), | 295 | 56.2k | _size_of_element(0), | 296 | 56.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.6k | : _data(data), | 291 | 17.6k | _options(options), | 292 | 17.6k | _parsed(false), | 293 | 17.6k | _num_elements(0), | 294 | 17.6k | _num_element_after_padding(0), | 295 | 17.6k | _size_of_element(0), | 296 | 17.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 88.7k | : _data(data), | 291 | 88.7k | _options(options), | 292 | 88.7k | _parsed(false), | 293 | 88.7k | _num_elements(0), | 294 | 88.7k | _num_element_after_padding(0), | 295 | 88.7k | _size_of_element(0), | 296 | 88.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 11.6k | : _data(data), | 291 | 11.6k | _options(options), | 292 | 11.6k | _parsed(false), | 293 | 11.6k | _num_elements(0), | 294 | 11.6k | _num_element_after_padding(0), | 295 | 11.6k | _size_of_element(0), | 296 | 11.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.0k | : _data(data), | 291 | 16.0k | _options(options), | 292 | 16.0k | _parsed(false), | 293 | 16.0k | _num_elements(0), | 294 | 16.0k | _num_element_after_padding(0), | 295 | 16.0k | _size_of_element(0), | 296 | 16.0k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.16k | : _data(data), | 291 | 2.16k | _options(options), | 292 | 2.16k | _parsed(false), | 293 | 2.16k | _num_elements(0), | 294 | 2.16k | _num_element_after_padding(0), | 295 | 2.16k | _size_of_element(0), | 296 | 2.16k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 60.2k | : _data(data), | 291 | 60.2k | _options(options), | 292 | 60.2k | _parsed(false), | 293 | 60.2k | _num_elements(0), | 294 | 60.2k | _num_element_after_padding(0), | 295 | 60.2k | _size_of_element(0), | 296 | 60.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 67.7k | : _data(data), | 291 | 67.7k | _options(options), | 292 | 67.7k | _parsed(false), | 293 | 67.7k | _num_elements(0), | 294 | 67.7k | _num_element_after_padding(0), | 295 | 67.7k | _size_of_element(0), | 296 | 67.7k | _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.93k | : _data(data), | 291 | 2.93k | _options(options), | 292 | 2.93k | _parsed(false), | 293 | 2.93k | _num_elements(0), | 294 | 2.93k | _num_element_after_padding(0), | 295 | 2.93k | _size_of_element(0), | 296 | 2.93k | _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.37k | : _data(data), | 291 | 1.37k | _options(options), | 292 | 1.37k | _parsed(false), | 293 | 1.37k | _num_elements(0), | 294 | 1.37k | _num_element_after_padding(0), | 295 | 1.37k | _size_of_element(0), | 296 | 1.37k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_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_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 39.8k | : _data(data), | 291 | 39.8k | _options(options), | 292 | 39.8k | _parsed(false), | 293 | 39.8k | _num_elements(0), | 294 | 39.8k | _num_element_after_padding(0), | 295 | 39.8k | _size_of_element(0), | 296 | 39.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.6k | : _data(data), | 291 | 30.6k | _options(options), | 292 | 30.6k | _parsed(false), | 293 | 30.6k | _num_elements(0), | 294 | 30.6k | _num_element_after_padding(0), | 295 | 30.6k | _size_of_element(0), | 296 | 30.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.72k | : _data(data), | 291 | 1.72k | _options(options), | 292 | 1.72k | _parsed(false), | 293 | 1.72k | _num_elements(0), | 294 | 1.72k | _num_element_after_padding(0), | 295 | 1.72k | _size_of_element(0), | 296 | 1.72k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 918 | : _data(data), | 291 | 918 | _options(options), | 292 | 918 | _parsed(false), | 293 | 918 | _num_elements(0), | 294 | 918 | _num_element_after_padding(0), | 295 | 918 | _size_of_element(0), | 296 | 918 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 956 | : _data(data), | 291 | 956 | _options(options), | 292 | 956 | _parsed(false), | 293 | 956 | _num_elements(0), | 294 | 956 | _num_element_after_padding(0), | 295 | 956 | _size_of_element(0), | 296 | 956 | _cur_index(0) {} |
|
297 | | |
298 | 1.07M | Status init() override { |
299 | 1.07M | CHECK(!_parsed); |
300 | 1.07M | size_t unused; |
301 | 1.07M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.07M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.07M | if (_data.size != |
305 | 1.07M | _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.07M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.07M | _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.07M | 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.07M | _parsed = true; |
325 | 1.07M | return Status::OK(); |
326 | 1.07M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 540k | Status init() override { | 299 | 540k | CHECK(!_parsed); | 300 | 540k | size_t unused; | 301 | 540k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 540k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 540k | if (_data.size != | 305 | 540k | _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 | 540k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 540k | _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 | 540k | 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 | 540k | _parsed = true; | 325 | 540k | return Status::OK(); | 326 | 540k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 85.7k | Status init() override { | 299 | 85.7k | CHECK(!_parsed); | 300 | 85.7k | size_t unused; | 301 | 85.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 85.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 85.7k | if (_data.size != | 305 | 85.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 85.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 85.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 85.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 85.7k | _parsed = true; | 325 | 85.7k | return Status::OK(); | 326 | 85.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 13.8k | Status init() override { | 299 | 13.8k | CHECK(!_parsed); | 300 | 13.8k | size_t unused; | 301 | 13.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.8k | if (_data.size != | 305 | 13.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 | 13.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.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 | 13.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 | 13.8k | _parsed = true; | 325 | 13.8k | return Status::OK(); | 326 | 13.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 56.1k | Status init() override { | 299 | 56.1k | CHECK(!_parsed); | 300 | 56.1k | size_t unused; | 301 | 56.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 56.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 56.1k | if (_data.size != | 305 | 56.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 | 56.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 56.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 | 56.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 | 56.1k | _parsed = true; | 325 | 56.1k | return Status::OK(); | 326 | 56.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 17.6k | Status init() override { | 299 | 17.6k | CHECK(!_parsed); | 300 | 17.6k | size_t unused; | 301 | 17.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 17.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 17.6k | if (_data.size != | 305 | 17.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 | 17.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 17.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 | 17.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 | 17.6k | _parsed = true; | 325 | 17.6k | return Status::OK(); | 326 | 17.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 88.7k | Status init() override { | 299 | 88.7k | CHECK(!_parsed); | 300 | 88.7k | size_t unused; | 301 | 88.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 88.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 88.7k | if (_data.size != | 305 | 88.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 88.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 88.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 88.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 88.7k | _parsed = true; | 325 | 88.7k | return Status::OK(); | 326 | 88.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 11.6k | Status init() override { | 299 | 11.6k | CHECK(!_parsed); | 300 | 11.6k | size_t unused; | 301 | 11.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 11.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 11.6k | if (_data.size != | 305 | 11.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 | 11.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 11.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 | 11.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 | 11.6k | _parsed = true; | 325 | 11.6k | return Status::OK(); | 326 | 11.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 16.0k | Status init() override { | 299 | 16.0k | CHECK(!_parsed); | 300 | 16.0k | size_t unused; | 301 | 16.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.0k | if (_data.size != | 305 | 16.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 | 16.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.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 | 16.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 | 16.0k | _parsed = true; | 325 | 16.0k | return Status::OK(); | 326 | 16.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 2.16k | Status init() override { | 299 | 2.16k | CHECK(!_parsed); | 300 | 2.16k | size_t unused; | 301 | 2.16k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.16k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.16k | if (_data.size != | 305 | 2.16k | _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.16k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.16k | _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.16k | 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.16k | _parsed = true; | 325 | 2.16k | return Status::OK(); | 326 | 2.16k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 60.2k | Status init() override { | 299 | 60.2k | CHECK(!_parsed); | 300 | 60.2k | size_t unused; | 301 | 60.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 60.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 60.2k | if (_data.size != | 305 | 60.2k | _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.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 60.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 60.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 60.2k | _parsed = true; | 325 | 60.2k | return Status::OK(); | 326 | 60.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 67.7k | Status init() override { | 299 | 67.7k | CHECK(!_parsed); | 300 | 67.7k | size_t unused; | 301 | 67.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 67.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 67.7k | if (_data.size != | 305 | 67.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 67.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 67.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 67.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 67.7k | _parsed = true; | 325 | 67.7k | return Status::OK(); | 326 | 67.7k | } |
_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.93k | Status init() override { | 299 | 2.93k | CHECK(!_parsed); | 300 | 2.93k | size_t unused; | 301 | 2.93k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.93k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.93k | if (_data.size != | 305 | 2.93k | _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.93k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.93k | _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.93k | 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.93k | _parsed = true; | 325 | 2.93k | return Status::OK(); | 326 | 2.93k | } |
_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.36k | Status init() override { | 299 | 1.36k | CHECK(!_parsed); | 300 | 1.36k | size_t unused; | 301 | 1.36k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.36k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.36k | if (_data.size != | 305 | 1.36k | _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.36k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.36k | _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.36k | 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.36k | _parsed = true; | 325 | 1.36k | return Status::OK(); | 326 | 1.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv 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_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 39.8k | Status init() override { | 299 | 39.8k | CHECK(!_parsed); | 300 | 39.8k | size_t unused; | 301 | 39.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 39.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 39.8k | if (_data.size != | 305 | 39.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 | 39.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 39.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 | 39.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 | 39.8k | _parsed = true; | 325 | 39.8k | return Status::OK(); | 326 | 39.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.6k | Status init() override { | 299 | 30.6k | CHECK(!_parsed); | 300 | 30.6k | size_t unused; | 301 | 30.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.6k | if (_data.size != | 305 | 30.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 | 30.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.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 | 30.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 | 30.6k | _parsed = true; | 325 | 30.6k | return Status::OK(); | 326 | 30.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.72k | Status init() override { | 299 | 1.72k | CHECK(!_parsed); | 300 | 1.72k | size_t unused; | 301 | 1.72k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.72k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.72k | if (_data.size != | 305 | 1.72k | _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.72k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.72k | _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.72k | 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.72k | _parsed = true; | 325 | 1.72k | return Status::OK(); | 326 | 1.72k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 918 | Status init() override { | 299 | 918 | CHECK(!_parsed); | 300 | 918 | size_t unused; | 301 | 918 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 918 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 918 | if (_data.size != | 305 | 918 | _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 | 918 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 918 | _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 | 918 | 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 | 918 | _parsed = true; | 325 | 918 | return Status::OK(); | 326 | 918 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 956 | Status init() override { | 299 | 956 | CHECK(!_parsed); | 300 | 956 | size_t unused; | 301 | 956 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 956 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 956 | if (_data.size != | 305 | 956 | _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 | 956 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 956 | _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 | 956 | 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 | 956 | _parsed = true; | 325 | 956 | return Status::OK(); | 326 | 956 | } |
|
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.70M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.70M | if (_num_elements == 0) [[unlikely]] { |
337 | 3.88k | 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.88k | } |
342 | | |
343 | 4.70M | DCHECK_LE(pos, _num_elements); |
344 | 4.70M | _cur_index = pos; |
345 | 4.70M | return Status::OK(); |
346 | 4.70M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.23M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.23M | if (_num_elements == 0) [[unlikely]] { | 337 | 2.09k | 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.09k | } | 342 | | | 343 | 2.23M | DCHECK_LE(pos, _num_elements); | 344 | 2.23M | _cur_index = pos; | 345 | 2.23M | return Status::OK(); | 346 | 2.23M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 330k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 330k | if (_num_elements == 0) [[unlikely]] { | 337 | 440 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 440 | } | 342 | | | 343 | 330k | DCHECK_LE(pos, _num_elements); | 344 | 330k | _cur_index = pos; | 345 | 330k | return Status::OK(); | 346 | 330k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 229k | Status seek_to_position_in_page(size_t pos) override { | 335 | 229k | DCHECK(_parsed) << "Must call init()"; | 336 | 229k | 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 | 229k | DCHECK_LE(pos, _num_elements); | 344 | 229k | _cur_index = pos; | 345 | 229k | return Status::OK(); | 346 | 229k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 162k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 162k | if (_num_elements == 0) [[unlikely]] { | 337 | 689 | 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 | 689 | } | 342 | | | 343 | 162k | DCHECK_LE(pos, _num_elements); | 344 | 162k | _cur_index = pos; | 345 | 162k | return Status::OK(); | 346 | 162k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 122k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 122k | 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 | 122k | DCHECK_LE(pos, _num_elements); | 344 | 122k | _cur_index = pos; | 345 | 122k | return Status::OK(); | 346 | 122k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 13.6k | DCHECK(_parsed) << "Must call init()"; | 336 | 13.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 | 13.6k | DCHECK_LE(pos, _num_elements); | 344 | 13.6k | _cur_index = pos; | 345 | 13.6k | return Status::OK(); | 346 | 13.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 234k | Status seek_to_position_in_page(size_t pos) override { | 335 | 234k | DCHECK(_parsed) << "Must call init()"; | 336 | 234k | 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 | 234k | DCHECK_LE(pos, _num_elements); | 344 | 234k | _cur_index = pos; | 345 | 234k | return Status::OK(); | 346 | 234k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 207k | Status seek_to_position_in_page(size_t pos) override { | 335 | 207k | DCHECK(_parsed) << "Must call init()"; | 336 | 207k | if (_num_elements == 0) [[unlikely]] { | 337 | 5 | 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 | 5 | } | 342 | | | 343 | 207k | DCHECK_LE(pos, _num_elements); | 344 | 207k | _cur_index = pos; | 345 | 207k | return Status::OK(); | 346 | 207k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 225k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 225k | if (_num_elements == 0) [[unlikely]] { | 337 | 4 | 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 | 4 | } | 342 | | | 343 | 225k | DCHECK_LE(pos, _num_elements); | 344 | 225k | _cur_index = pos; | 345 | 225k | return Status::OK(); | 346 | 225k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 511k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 511k | 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 | 511k | DCHECK_LE(pos, _num_elements); | 344 | 511k | _cur_index = pos; | 345 | 511k | return Status::OK(); | 346 | 511k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 70.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 70.7k | 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 | 70.7k | DCHECK_LE(pos, _num_elements); | 344 | 70.7k | _cur_index = pos; | 345 | 70.7k | return Status::OK(); | 346 | 70.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.07k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.07k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.07k | 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 | 1.07k | DCHECK_LE(pos, _num_elements); | 344 | 1.07k | _cur_index = pos; | 345 | 1.07k | return Status::OK(); | 346 | 1.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 206k | Status seek_to_position_in_page(size_t pos) override { | 335 | 206k | DCHECK(_parsed) << "Must call init()"; | 336 | 206k | 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 | 206k | DCHECK_LE(pos, _num_elements); | 344 | 206k | _cur_index = pos; | 345 | 206k | return Status::OK(); | 346 | 206k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.86k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.86k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.86k | if (_num_elements == 0) [[unlikely]] { | 337 | 357 | 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 | 357 | } | 342 | | | 343 | 6.86k | DCHECK_LE(pos, _num_elements); | 344 | 6.86k | _cur_index = pos; | 345 | 6.86k | return Status::OK(); | 346 | 6.86k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 28 | Status seek_to_position_in_page(size_t pos) override { | 335 | 28 | DCHECK(_parsed) << "Must call init()"; | 336 | 28 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 28 | DCHECK_LE(pos, _num_elements); | 344 | 28 | _cur_index = pos; | 345 | 28 | return Status::OK(); | 346 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 900 | Status seek_to_position_in_page(size_t pos) override { | 335 | 900 | DCHECK(_parsed) << "Must call init()"; | 336 | 900 | if (_num_elements == 0) [[unlikely]] { | 337 | 26 | 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 | 26 | } | 342 | | | 343 | 900 | DCHECK_LE(pos, _num_elements); | 344 | 900 | _cur_index = pos; | 345 | 900 | return Status::OK(); | 346 | 900 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 17.8k | DCHECK(_parsed) << "Must call init()"; | 336 | 17.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 15 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 15 | } | 342 | | | 343 | 17.8k | DCHECK_LE(pos, _num_elements); | 344 | 17.8k | _cur_index = pos; | 345 | 17.8k | return Status::OK(); | 346 | 17.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 122k | Status seek_to_position_in_page(size_t pos) override { | 335 | 122k | DCHECK(_parsed) << "Must call init()"; | 336 | 122k | 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 | 122k | DCHECK_LE(pos, _num_elements); | 344 | 122k | _cur_index = pos; | 345 | 122k | return Status::OK(); | 346 | 122k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.94k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.94k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.94k | 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.94k | DCHECK_LE(pos, _num_elements); | 344 | 1.94k | _cur_index = pos; | 345 | 1.94k | return Status::OK(); | 346 | 1.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 25 | Status seek_to_position_in_page(size_t pos) override { | 335 | 25 | DCHECK(_parsed) << "Must call init()"; | 336 | 25 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 25 | DCHECK_LE(pos, _num_elements); | 344 | 25 | _cur_index = pos; | 345 | 25 | return Status::OK(); | 346 | 25 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 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_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_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 | 2.15M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 2.15M | DCHECK(_parsed); |
389 | 2.16M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 2.15M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 2.15M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 2.15M | *n = max_fetch; |
398 | 2.15M | if constexpr (forward_index) { |
399 | 1.95M | _cur_index += max_fetch; |
400 | 1.95M | } |
401 | | |
402 | 2.15M | return Status::OK(); |
403 | 2.15M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 910k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 910k | DCHECK(_parsed); | 389 | 911k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 910k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 910k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 910k | *n = max_fetch; | 398 | 910k | if constexpr (forward_index) { | 399 | 910k | _cur_index += max_fetch; | 400 | 910k | } | 401 | | | 402 | 910k | return Status::OK(); | 403 | 910k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 238k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 238k | DCHECK(_parsed); | 389 | 238k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 238k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 238k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 238k | *n = max_fetch; | 398 | 238k | if constexpr (forward_index) { | 399 | 238k | _cur_index += max_fetch; | 400 | 238k | } | 401 | | | 402 | 238k | return Status::OK(); | 403 | 238k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 15.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.7k | DCHECK(_parsed); | 389 | 15.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 15.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.7k | *n = max_fetch; | 398 | 15.7k | if constexpr (forward_index) { | 399 | 15.7k | _cur_index += max_fetch; | 400 | 15.7k | } | 401 | | | 402 | 15.7k | return Status::OK(); | 403 | 15.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 63.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 63.6k | DCHECK(_parsed); | 389 | 63.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 63.6k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 63.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 63.6k | *n = max_fetch; | 398 | 63.6k | if constexpr (forward_index) { | 399 | 63.6k | _cur_index += max_fetch; | 400 | 63.6k | } | 401 | | | 402 | 63.6k | return Status::OK(); | 403 | 63.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.7k | DCHECK(_parsed); | 389 | 16.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.7k | *n = max_fetch; | 398 | 16.7k | if constexpr (forward_index) { | 399 | 16.7k | _cur_index += max_fetch; | 400 | 16.7k | } | 401 | | | 402 | 16.7k | return Status::OK(); | 403 | 16.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 150k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 150k | DCHECK(_parsed); | 389 | 150k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 150k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 150k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 150k | *n = max_fetch; | 398 | 150k | if constexpr (forward_index) { | 399 | 150k | _cur_index += max_fetch; | 400 | 150k | } | 401 | | | 402 | 150k | return Status::OK(); | 403 | 150k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 201k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 201k | DCHECK(_parsed); | 389 | 201k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 201k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 201k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 201k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 201k | return Status::OK(); | 403 | 201k | } |
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 | 10.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 10.0k | DCHECK(_parsed); | 389 | 10.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 10.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 10.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 10.0k | *n = max_fetch; | 398 | 10.0k | if constexpr (forward_index) { | 399 | 10.0k | _cur_index += max_fetch; | 400 | 10.0k | } | 401 | | | 402 | 10.0k | return Status::OK(); | 403 | 10.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 14.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 14.8k | DCHECK(_parsed); | 389 | 14.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 14.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 14.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 14.8k | *n = max_fetch; | 398 | 14.8k | if constexpr (forward_index) { | 399 | 14.8k | _cur_index += max_fetch; | 400 | 14.8k | } | 401 | | | 402 | 14.8k | return Status::OK(); | 403 | 14.8k | } |
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 | 10.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 10.1k | DCHECK(_parsed); | 389 | 10.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 10.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 10.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 10.1k | *n = max_fetch; | 398 | 10.1k | if constexpr (forward_index) { | 399 | 10.1k | _cur_index += max_fetch; | 400 | 10.1k | } | 401 | | | 402 | 10.1k | return Status::OK(); | 403 | 10.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 378k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 378k | DCHECK(_parsed); | 389 | 378k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 378k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 378k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 378k | *n = max_fetch; | 398 | 378k | if constexpr (forward_index) { | 399 | 378k | _cur_index += max_fetch; | 400 | 378k | } | 401 | | | 402 | 378k | return Status::OK(); | 403 | 378k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 68.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 68.4k | DCHECK(_parsed); | 389 | 68.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 68.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 68.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 68.4k | *n = max_fetch; | 398 | 68.4k | if constexpr (forward_index) { | 399 | 68.4k | _cur_index += max_fetch; | 400 | 68.4k | } | 401 | | | 402 | 68.4k | return Status::OK(); | 403 | 68.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.28k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.28k | DCHECK(_parsed); | 389 | 2.28k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.28k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.28k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.28k | *n = max_fetch; | 398 | 2.28k | if constexpr (forward_index) { | 399 | 2.28k | _cur_index += max_fetch; | 400 | 2.28k | } | 401 | | | 402 | 2.28k | return Status::OK(); | 403 | 2.28k | } |
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.76k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.76k | DCHECK(_parsed); | 389 | 1.76k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.76k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.76k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.76k | *n = max_fetch; | 398 | 1.76k | if constexpr (forward_index) { | 399 | 1.76k | _cur_index += max_fetch; | 400 | 1.76k | } | 401 | | | 402 | 1.76k | return Status::OK(); | 403 | 1.76k | } |
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.00k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.00k | DCHECK(_parsed); | 389 | 8.00k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.00k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.00k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.00k | *n = max_fetch; | 398 | 8.00k | if constexpr (forward_index) { | 399 | 8.00k | _cur_index += max_fetch; | 400 | 8.00k | } | 401 | | | 402 | 8.00k | return Status::OK(); | 403 | 8.00k | } |
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.24k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.24k | DCHECK(_parsed); | 389 | 1.24k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.24k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.24k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.24k | *n = max_fetch; | 398 | 1.24k | if constexpr (forward_index) { | 399 | 1.24k | _cur_index += max_fetch; | 400 | 1.24k | } | 401 | | | 402 | 1.24k | return Status::OK(); | 403 | 1.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.96k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.96k | DCHECK(_parsed); | 389 | 9.96k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.96k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.96k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.96k | *n = max_fetch; | 398 | 9.96k | if constexpr (forward_index) { | 399 | 9.96k | _cur_index += max_fetch; | 400 | 9.96k | } | 401 | | | 402 | 9.96k | return Status::OK(); | 403 | 9.96k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 30.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 30.2k | DCHECK(_parsed); | 389 | 30.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 30.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 30.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 30.2k | *n = max_fetch; | 398 | 30.2k | if constexpr (forward_index) { | 399 | 30.2k | _cur_index += max_fetch; | 400 | 30.2k | } | 401 | | | 402 | 30.2k | return Status::OK(); | 403 | 30.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 22.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 22.4k | DCHECK(_parsed); | 389 | 22.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 22.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 22.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 22.4k | *n = max_fetch; | 398 | 22.4k | if constexpr (forward_index) { | 399 | 22.4k | _cur_index += max_fetch; | 400 | 22.4k | } | 401 | | | 402 | 22.4k | return Status::OK(); | 403 | 22.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.13k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.13k | DCHECK(_parsed); | 389 | 3.13k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.13k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.13k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.13k | *n = max_fetch; | 398 | 3.13k | if constexpr (forward_index) { | 399 | 3.13k | _cur_index += max_fetch; | 400 | 3.13k | } | 401 | | | 402 | 3.13k | return Status::OK(); | 403 | 3.13k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 622 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 622 | DCHECK(_parsed); | 389 | 622 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 622 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 622 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 622 | *n = max_fetch; | 398 | 622 | if constexpr (forward_index) { | 399 | 622 | _cur_index += max_fetch; | 400 | 622 | } | 401 | | | 402 | 622 | return Status::OK(); | 403 | 622 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 643 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 643 | DCHECK(_parsed); | 389 | 643 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 643 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 643 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 643 | *n = max_fetch; | 398 | 643 | if constexpr (forward_index) { | 399 | 643 | _cur_index += max_fetch; | 400 | 643 | } | 401 | | | 402 | 643 | return Status::OK(); | 403 | 643 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.95M | 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 | 905k | 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 | 238k | 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 | 15.7k | 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 | 63.6k | 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 | 16.7k | 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 | 150k | 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 | 10.0k | 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 | 14.8k | 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 | 10.1k | 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 | 378k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 68.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 2.28k | 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.76k | 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.24k | 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 | 9.96k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 30.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 22.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.13k | 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 | 622 | 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 | 643 | 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 | 330k | MutableColumnPtr& dst) override { |
409 | 330k | DCHECK(_parsed); |
410 | 330k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 330k | auto total = *n; |
416 | 330k | auto read_count = 0; |
417 | 330k | _buffer.resize(total); |
418 | 89.5M | for (size_t i = 0; i < total; ++i) { |
419 | 89.2M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 89.2M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 15.0k | break; |
422 | 15.0k | } |
423 | | |
424 | 89.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 89.2M | } |
426 | | |
427 | 330k | if (LIKELY(read_count > 0)) { |
428 | 330k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 330k | } |
430 | | |
431 | 330k | *n = read_count; |
432 | 330k | return Status::OK(); |
433 | 330k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 87.1k | MutableColumnPtr& dst) override { | 409 | 87.1k | DCHECK(_parsed); | 410 | 87.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 87.1k | auto total = *n; | 416 | 87.1k | auto read_count = 0; | 417 | 87.1k | _buffer.resize(total); | 418 | 17.4M | for (size_t i = 0; i < total; ++i) { | 419 | 17.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 17.4M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 3.52k | break; | 422 | 3.52k | } | 423 | | | 424 | 17.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 17.4M | } | 426 | | | 427 | 87.1k | if (LIKELY(read_count > 0)) { | 428 | 87.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 87.1k | } | 430 | | | 431 | 87.1k | *n = read_count; | 432 | 87.1k | return Status::OK(); | 433 | 87.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 25.5k | MutableColumnPtr& dst) override { | 409 | 25.5k | DCHECK(_parsed); | 410 | 25.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 25.5k | auto total = *n; | 416 | 25.5k | auto read_count = 0; | 417 | 25.5k | _buffer.resize(total); | 418 | 1.88M | for (size_t i = 0; i < total; ++i) { | 419 | 1.86M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.86M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 128 | break; | 422 | 128 | } | 423 | | | 424 | 1.86M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.86M | } | 426 | | | 427 | 25.5k | if (LIKELY(read_count > 0)) { | 428 | 25.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 25.5k | } | 430 | | | 431 | 25.5k | *n = read_count; | 432 | 25.5k | return Status::OK(); | 433 | 25.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.35k | MutableColumnPtr& dst) override { | 409 | 6.35k | DCHECK(_parsed); | 410 | 6.35k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.35k | auto total = *n; | 416 | 6.35k | auto read_count = 0; | 417 | 6.35k | _buffer.resize(total); | 418 | 571k | for (size_t i = 0; i < total; ++i) { | 419 | 565k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 565k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 565k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 565k | } | 426 | | | 427 | 6.35k | if (LIKELY(read_count > 0)) { | 428 | 6.35k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.35k | } | 430 | | | 431 | 6.35k | *n = read_count; | 432 | 6.35k | return Status::OK(); | 433 | 6.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 35.5k | MutableColumnPtr& dst) override { | 409 | 35.5k | DCHECK(_parsed); | 410 | 35.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 35.5k | auto total = *n; | 416 | 35.5k | auto read_count = 0; | 417 | 35.5k | _buffer.resize(total); | 418 | 16.3M | for (size_t i = 0; i < total; ++i) { | 419 | 16.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 16.2M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.93k | break; | 422 | 2.93k | } | 423 | | | 424 | 16.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 16.2M | } | 426 | | | 427 | 35.5k | if (LIKELY(read_count > 0)) { | 428 | 35.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 35.5k | } | 430 | | | 431 | 35.5k | *n = read_count; | 432 | 35.5k | return Status::OK(); | 433 | 35.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.73k | MutableColumnPtr& dst) override { | 409 | 8.73k | DCHECK(_parsed); | 410 | 8.73k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.73k | auto total = *n; | 416 | 8.73k | auto read_count = 0; | 417 | 8.73k | _buffer.resize(total); | 418 | 1.35M | for (size_t i = 0; i < total; ++i) { | 419 | 1.34M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.34M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 536 | break; | 422 | 536 | } | 423 | | | 424 | 1.34M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.34M | } | 426 | | | 427 | 8.74k | if (LIKELY(read_count > 0)) { | 428 | 8.74k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.74k | } | 430 | | | 431 | 8.73k | *n = read_count; | 432 | 8.73k | return Status::OK(); | 433 | 8.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.6k | MutableColumnPtr& dst) override { | 409 | 27.6k | DCHECK(_parsed); | 410 | 27.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.6k | auto total = *n; | 416 | 27.6k | auto read_count = 0; | 417 | 27.6k | _buffer.resize(total); | 418 | 409k | for (size_t i = 0; i < total; ++i) { | 419 | 382k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 382k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 382k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 382k | } | 426 | | | 427 | 27.6k | if (LIKELY(read_count > 0)) { | 428 | 27.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.6k | } | 430 | | | 431 | 27.6k | *n = read_count; | 432 | 27.6k | return Status::OK(); | 433 | 27.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.04k | MutableColumnPtr& dst) override { | 409 | 6.04k | DCHECK(_parsed); | 410 | 6.04k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.04k | auto total = *n; | 416 | 6.04k | auto read_count = 0; | 417 | 6.04k | _buffer.resize(total); | 418 | 1.14M | for (size_t i = 0; i < total; ++i) { | 419 | 1.13M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.13M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 32 | break; | 422 | 32 | } | 423 | | | 424 | 1.13M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.13M | } | 426 | | | 427 | 6.04k | if (LIKELY(read_count > 0)) { | 428 | 6.04k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.04k | } | 430 | | | 431 | 6.04k | *n = read_count; | 432 | 6.04k | return Status::OK(); | 433 | 6.04k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.47k | MutableColumnPtr& dst) override { | 409 | 7.47k | DCHECK(_parsed); | 410 | 7.47k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.47k | auto total = *n; | 416 | 7.47k | auto read_count = 0; | 417 | 7.47k | _buffer.resize(total); | 418 | 1.29M | for (size_t i = 0; i < total; ++i) { | 419 | 1.29M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.29M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 370 | break; | 422 | 370 | } | 423 | | | 424 | 1.29M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.29M | } | 426 | | | 427 | 7.47k | if (LIKELY(read_count > 0)) { | 428 | 7.47k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.47k | } | 430 | | | 431 | 7.47k | *n = read_count; | 432 | 7.47k | return Status::OK(); | 433 | 7.47k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.46k | MutableColumnPtr& dst) override { | 409 | 1.46k | DCHECK(_parsed); | 410 | 1.46k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.46k | auto total = *n; | 416 | 1.46k | auto read_count = 0; | 417 | 1.46k | _buffer.resize(total); | 418 | 436k | for (size_t i = 0; i < total; ++i) { | 419 | 434k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 434k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 12 | break; | 422 | 12 | } | 423 | | | 424 | 434k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 434k | } | 426 | | | 427 | 1.46k | if (LIKELY(read_count > 0)) { | 428 | 1.46k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.46k | } | 430 | | | 431 | 1.46k | *n = read_count; | 432 | 1.46k | return Status::OK(); | 433 | 1.46k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.8k | MutableColumnPtr& dst) override { | 409 | 28.8k | DCHECK(_parsed); | 410 | 28.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.8k | auto total = *n; | 416 | 28.8k | auto read_count = 0; | 417 | 28.8k | _buffer.resize(total); | 418 | 8.30M | for (size_t i = 0; i < total; ++i) { | 419 | 8.27M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.27M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 537 | break; | 422 | 537 | } | 423 | | | 424 | 8.27M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.27M | } | 426 | | | 427 | 28.8k | if (LIKELY(read_count > 0)) { | 428 | 28.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.8k | } | 430 | | | 431 | 28.8k | *n = read_count; | 432 | 28.8k | return Status::OK(); | 433 | 28.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.4k | MutableColumnPtr& dst) override { | 409 | 32.4k | DCHECK(_parsed); | 410 | 32.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.4k | auto total = *n; | 416 | 32.4k | auto read_count = 0; | 417 | 32.4k | _buffer.resize(total); | 418 | 10.0M | for (size_t i = 0; i < total; ++i) { | 419 | 9.96M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.96M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 194 | break; | 422 | 194 | } | 423 | | | 424 | 9.96M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.96M | } | 426 | | | 427 | 32.4k | if (LIKELY(read_count > 0)) { | 428 | 32.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.4k | } | 430 | | | 431 | 32.4k | *n = read_count; | 432 | 32.4k | return Status::OK(); | 433 | 32.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.17k | MutableColumnPtr& dst) override { | 409 | 1.17k | DCHECK(_parsed); | 410 | 1.17k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.17k | auto total = *n; | 416 | 1.17k | auto read_count = 0; | 417 | 1.17k | _buffer.resize(total); | 418 | 4.00k | for (size_t i = 0; i < total; ++i) { | 419 | 2.83k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.83k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.83k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.83k | } | 426 | | | 427 | 1.17k | if (LIKELY(read_count > 0)) { | 428 | 1.17k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.17k | } | 430 | | | 431 | 1.17k | *n = read_count; | 432 | 1.17k | return Status::OK(); | 433 | 1.17k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.87k | MutableColumnPtr& dst) override { | 409 | 1.87k | DCHECK(_parsed); | 410 | 1.87k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.87k | auto total = *n; | 416 | 1.87k | auto read_count = 0; | 417 | 1.87k | _buffer.resize(total); | 418 | 431k | for (size_t i = 0; i < total; ++i) { | 419 | 429k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 429k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 249 | break; | 422 | 249 | } | 423 | | | 424 | 429k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 429k | } | 426 | | | 427 | 1.87k | if (LIKELY(read_count > 0)) { | 428 | 1.87k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.87k | } | 430 | | | 431 | 1.87k | *n = read_count; | 432 | 1.87k | return Status::OK(); | 433 | 1.87k | } |
_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 | 146 | MutableColumnPtr& dst) override { | 409 | 146 | DCHECK(_parsed); | 410 | 146 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 146 | auto total = *n; | 416 | 146 | auto read_count = 0; | 417 | 146 | _buffer.resize(total); | 418 | 297 | for (size_t i = 0; i < total; ++i) { | 419 | 151 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 151 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 151 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 151 | } | 426 | | | 427 | 146 | if (LIKELY(read_count > 0)) { | 428 | 146 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 146 | } | 430 | | | 431 | 146 | *n = read_count; | 432 | 146 | return Status::OK(); | 433 | 146 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.59k | MutableColumnPtr& dst) override { | 409 | 4.59k | DCHECK(_parsed); | 410 | 4.59k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.59k | auto total = *n; | 416 | 4.59k | auto read_count = 0; | 417 | 4.59k | _buffer.resize(total); | 418 | 19.0k | for (size_t i = 0; i < total; ++i) { | 419 | 14.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.4k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.4k | } | 426 | | | 427 | 4.59k | if (LIKELY(read_count > 0)) { | 428 | 4.59k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.59k | } | 430 | | | 431 | 4.59k | *n = read_count; | 432 | 4.59k | return Status::OK(); | 433 | 4.59k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.2k | MutableColumnPtr& dst) override { | 409 | 28.2k | DCHECK(_parsed); | 410 | 28.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.2k | auto total = *n; | 416 | 28.2k | auto read_count = 0; | 417 | 28.2k | _buffer.resize(total); | 418 | 20.9M | for (size_t i = 0; i < total; ++i) { | 419 | 20.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 20.9M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.85k | break; | 422 | 5.85k | } | 423 | | | 424 | 20.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 20.9M | } | 426 | | | 427 | 28.2k | if (LIKELY(read_count > 0)) { | 428 | 28.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.2k | } | 430 | | | 431 | 28.2k | *n = read_count; | 432 | 28.2k | return Status::OK(); | 433 | 28.2k | } |
_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.88M | for (size_t i = 0; i < total; ++i) { | 419 | 8.86M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.86M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 710 | break; | 422 | 710 | } | 423 | | | 424 | 8.86M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.86M | } | 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 | 961 | MutableColumnPtr& dst) override { | 409 | 961 | DCHECK(_parsed); | 410 | 961 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 961 | auto total = *n; | 416 | 961 | auto read_count = 0; | 417 | 961 | _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 | 961 | *n = read_count; | 432 | 961 | return Status::OK(); | 433 | 961 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 290 | MutableColumnPtr& dst) override { | 409 | 290 | DCHECK(_parsed); | 410 | 290 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 290 | auto total = *n; | 416 | 290 | auto read_count = 0; | 417 | 290 | _buffer.resize(total); | 418 | 824 | for (size_t i = 0; i < total; ++i) { | 419 | 534 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 534 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 534 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 534 | } | 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 | 290 | *n = read_count; | 432 | 290 | return Status::OK(); | 433 | 290 | } |
_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 | 201k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 201k | return next_batch<false>(n, dst); |
437 | 201k | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE 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_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 | 201k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 201k | return next_batch<false>(n, dst); | 437 | 201k | } |
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; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv 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 | 3.88M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.93M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 227k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 225k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 124k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 116k | 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 | 232k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 204k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 217k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 234k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 42.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 276 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 204k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.08k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 6 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.58k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 740 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 116k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 41 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 47 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 92.3M | char* get_data(size_t index) const { |
444 | 92.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 92.3M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 19.2M | char* get_data(size_t index) const { | 444 | 19.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 19.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 2.09M | char* get_data(size_t index) const { | 444 | 2.09M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.09M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 581k | char* get_data(size_t index) const { | 444 | 581k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 581k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 16.3M | char* get_data(size_t index) const { | 444 | 16.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 16.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.36M | char* get_data(size_t index) const { | 444 | 1.36M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.36M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 733k | char* get_data(size_t index) const { | 444 | 733k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 733k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.14M | char* get_data(size_t index) const { | 444 | 1.14M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.14M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.30M | char* get_data(size_t index) const { | 444 | 1.30M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.30M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 444k | char* get_data(size_t index) const { | 444 | 444k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 444k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 8.65M | char* get_data(size_t index) const { | 444 | 8.65M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.65M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_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 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 5.11k | char* get_data(size_t index) const { | 444 | 5.11k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.11k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 431k | char* get_data(size_t index) const { | 444 | 431k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 431k | } |
_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.39k | char* get_data(size_t index) const { | 444 | 1.39k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.39k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 24.4k | char* get_data(size_t index) const { | 444 | 24.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 24.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 20.9M | char* get_data(size_t index) const { | 444 | 20.9M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.9M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.88M | char* get_data(size_t index) const { | 444 | 8.88M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.88M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.95k | char* get_data(size_t index) const { | 444 | 4.95k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.95k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.15k | char* get_data(size_t index) const { | 444 | 1.15k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.15k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.48k | char* get_data(size_t index) const { | 444 | 1.48k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.48k | } |
|
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 |