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 | 861k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 396k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 54.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 7.56k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 149k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 76.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 9.62k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 12.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 20.2k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 185 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 38.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 45.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 284 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.08k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 193 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.79k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 17.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.15k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 780 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 694 | Status init() override { return reset(); } |
|
96 | | |
97 | 159M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 158M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 63.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 13.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 371k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 76.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 12.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 12.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 22.2k | 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 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 55.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 45.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 338 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 6.92k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 99 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.34k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 34.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 18.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.36k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 706 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 3.11k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.51M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.51M | return add_internal<false>(vals, count); |
101 | 1.51M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 770k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 770k | return add_internal<false>(vals, count); | 101 | 770k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 63.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 63.0k | return add_internal<false>(vals, count); | 101 | 63.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 13.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 13.2k | return add_internal<false>(vals, count); | 101 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 371k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 371k | return add_internal<false>(vals, count); | 101 | 371k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 76.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 76.8k | return add_internal<false>(vals, count); | 101 | 76.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 12.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.5k | return add_internal<false>(vals, count); | 101 | 12.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 12.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.7k | return add_internal<false>(vals, count); | 101 | 12.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 22.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 22.2k | return add_internal<false>(vals, count); | 101 | 22.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 192 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 192 | return add_internal<false>(vals, count); | 101 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 55.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 55.1k | return add_internal<false>(vals, count); | 101 | 55.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 45.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.5k | return add_internal<false>(vals, count); | 101 | 45.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 338 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 338 | return add_internal<false>(vals, count); | 101 | 338 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 6.92k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.92k | return add_internal<false>(vals, count); | 101 | 6.92k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 99 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 99 | return add_internal<false>(vals, count); | 101 | 99 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.34k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.34k | return add_internal<false>(vals, count); | 101 | 5.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 34.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 34.4k | return add_internal<false>(vals, count); | 101 | 34.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 18.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 18.4k | return add_internal<false>(vals, count); | 101 | 18.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.36k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.36k | return add_internal<false>(vals, count); | 101 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 706 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 706 | return add_internal<false>(vals, count); | 101 | 706 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 3.11k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 3.11k | return add_internal<false>(vals, count); | 101 | 3.11k | } |
|
102 | | |
103 | 162M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 162M | return add_internal<true>(vals, count); |
105 | 162M | } |
106 | | |
107 | | template <bool single> |
108 | 163M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 163M | DCHECK(!_finished); |
110 | 163M | 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 | 163M | uint32_t to_add = cast_set<UInt32>( |
126 | 163M | 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 | 163M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 163M | 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 | 163M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 161M | _count += to_add; |
134 | 161M | _remain_element_capacity -= to_add; |
135 | 161M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 161M | *num_written = to_add; |
138 | 161M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | *reinterpret_cast<uint8_t*>(&_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 | 160M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 160M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 160M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 160M | 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 | 160M | } |
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 | 161M | return Status::OK(); |
159 | 163M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 770k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 770k | DCHECK(!_finished); | 110 | 770k | 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 | 770k | uint32_t to_add = cast_set<UInt32>( | 126 | 770k | 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 | 770k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 770k | 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 | 770k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 770k | _count += to_add; | 134 | 770k | _remain_element_capacity -= to_add; | 135 | 770k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 770k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 770k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 770k | return Status::OK(); | 159 | 770k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 161M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 161M | DCHECK(!_finished); | 110 | 161M | 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 | 161M | uint32_t to_add = cast_set<UInt32>( | 126 | 161M | 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 | 161M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 161M | 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 | 161M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 160M | _count += to_add; | 134 | 160M | _remain_element_capacity -= to_add; | 135 | 160M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 160M | *num_written = to_add; | 138 | 160M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 160M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 160M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 160M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 160M | 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 | 160M | } | 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 | 160M | return Status::OK(); | 159 | 161M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 63.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 63.0k | DCHECK(!_finished); | 110 | 63.0k | 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 | 63.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 63.0k | 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 | 63.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 63.0k | 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 | 63.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 63.0k | _count += to_add; | 134 | 63.0k | _remain_element_capacity -= to_add; | 135 | 63.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 63.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 63.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 63.0k | return Status::OK(); | 159 | 63.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 13.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 13.2k | DCHECK(!_finished); | 110 | 13.2k | 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 | 13.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 13.2k | 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 | 13.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 13.2k | 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 | 13.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 13.2k | _count += to_add; | 134 | 13.2k | _remain_element_capacity -= to_add; | 135 | 13.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 13.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 13.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 13.2k | return Status::OK(); | 159 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 371k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 371k | DCHECK(!_finished); | 110 | 371k | 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 | 371k | uint32_t to_add = cast_set<UInt32>( | 126 | 371k | 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 | 371k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 371k | 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 | 371k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 371k | _count += to_add; | 134 | 371k | _remain_element_capacity -= to_add; | 135 | 371k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 371k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 371k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 371k | return Status::OK(); | 159 | 371k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 76.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 76.8k | DCHECK(!_finished); | 110 | 76.8k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 76.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 76.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 76.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 76.8k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 76.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 76.8k | _count += to_add; | 134 | 76.8k | _remain_element_capacity -= to_add; | 135 | 76.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 76.8k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 76.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 76.8k | return Status::OK(); | 159 | 76.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.5k | DCHECK(!_finished); | 110 | 12.5k | 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 | 12.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.5k | 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 | 12.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.5k | 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 | 12.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.5k | _count += to_add; | 134 | 12.5k | _remain_element_capacity -= to_add; | 135 | 12.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.5k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 12.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.5k | return Status::OK(); | 159 | 12.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.7k | DCHECK(!_finished); | 110 | 12.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 | 12.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.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 | 12.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.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 | 12.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.7k | _count += to_add; | 134 | 12.7k | _remain_element_capacity -= to_add; | 135 | 12.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 12.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.7k | return Status::OK(); | 159 | 12.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 22.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 22.2k | DCHECK(!_finished); | 110 | 22.2k | 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 | 22.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 22.2k | 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 | 22.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 22.2k | 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 | 22.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 22.2k | _count += to_add; | 134 | 22.2k | _remain_element_capacity -= to_add; | 135 | 22.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 22.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 22.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 22.2k | return Status::OK(); | 159 | 22.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 192 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 192 | DCHECK(!_finished); | 110 | 192 | 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 | 192 | uint32_t to_add = cast_set<UInt32>( | 126 | 192 | 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 | 192 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 192 | 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 | 192 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 192 | _count += to_add; | 134 | 192 | _remain_element_capacity -= to_add; | 135 | 192 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 192 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 192 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 192 | return Status::OK(); | 159 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 55.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 55.1k | DCHECK(!_finished); | 110 | 55.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 | 55.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 55.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 | 55.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 55.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 | 55.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 55.1k | _count += to_add; | 134 | 55.1k | _remain_element_capacity -= to_add; | 135 | 55.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 55.1k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 55.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 55.1k | return Status::OK(); | 159 | 55.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.5k | DCHECK(!_finished); | 110 | 45.5k | 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.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.5k | 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.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.5k | 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.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.5k | _count += to_add; | 134 | 45.5k | _remain_element_capacity -= to_add; | 135 | 45.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.5k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.5k | return Status::OK(); | 159 | 45.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 338 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 338 | DCHECK(!_finished); | 110 | 338 | 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 | 338 | uint32_t to_add = cast_set<UInt32>( | 126 | 338 | 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 | 338 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 338 | 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 | 338 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 338 | _count += to_add; | 134 | 338 | _remain_element_capacity -= to_add; | 135 | 338 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 338 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 338 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 338 | return Status::OK(); | 159 | 338 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.92k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.92k | DCHECK(!_finished); | 110 | 6.92k | 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.92k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.92k | 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.92k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.92k | 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.92k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.92k | _count += to_add; | 134 | 6.92k | _remain_element_capacity -= to_add; | 135 | 6.92k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.92k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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.92k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.92k | return Status::OK(); | 159 | 6.92k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 99 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 99 | DCHECK(!_finished); | 110 | 99 | 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 | 99 | uint32_t to_add = cast_set<UInt32>( | 126 | 99 | 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 | 99 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 99 | 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 | 99 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 99 | _count += to_add; | 134 | 99 | _remain_element_capacity -= to_add; | 135 | 99 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 99 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 99 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 99 | return Status::OK(); | 159 | 99 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.34k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.34k | DCHECK(!_finished); | 110 | 5.34k | 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.34k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.34k | 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.34k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.34k | 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.34k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.33k | _count += to_add; | 134 | 5.33k | _remain_element_capacity -= to_add; | 135 | 5.33k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.33k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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.33k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.33k | return Status::OK(); | 159 | 5.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 34.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 34.4k | DCHECK(!_finished); | 110 | 34.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 34.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 34.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 34.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 34.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 34.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 34.4k | _count += to_add; | 134 | 34.4k | _remain_element_capacity -= to_add; | 135 | 34.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 34.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 34.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 34.4k | return Status::OK(); | 159 | 34.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 18.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 18.4k | DCHECK(!_finished); | 110 | 18.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 18.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 18.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 18.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 18.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 18.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 18.4k | _count += to_add; | 134 | 18.4k | _remain_element_capacity -= to_add; | 135 | 18.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 18.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 18.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 18.4k | return Status::OK(); | 159 | 18.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.36k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.36k | DCHECK(!_finished); | 110 | 1.36k | 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.36k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.36k | 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.36k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.36k | 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.36k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.36k | _count += to_add; | 134 | 1.36k | _remain_element_capacity -= to_add; | 135 | 1.36k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.36k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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.36k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.36k | return Status::OK(); | 159 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 706 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 706 | DCHECK(!_finished); | 110 | 706 | 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 | 706 | uint32_t to_add = cast_set<UInt32>( | 126 | 706 | 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 | 706 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 706 | 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 | 706 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 706 | _count += to_add; | 134 | 706 | _remain_element_capacity -= to_add; | 135 | 706 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 706 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 706 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 706 | return Status::OK(); | 159 | 706 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 3.11k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 3.11k | DCHECK(!_finished); | 110 | 3.11k | 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 | 3.11k | uint32_t to_add = cast_set<UInt32>( | 126 | 3.11k | 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 | 3.11k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 3.11k | 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 | 3.11k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 3.11k | _count += to_add; | 134 | 3.11k | _remain_element_capacity -= to_add; | 135 | 3.11k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 3.11k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | *reinterpret_cast<uint8_t*>(&_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 | 3.11k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 3.11k | return Status::OK(); | 159 | 3.11k | } |
|
160 | | |
161 | 851k | Status finish(OwnedSlice* slice) override { |
162 | 851k | if (_count > 0) { |
163 | 803k | _first_value = cell(0); |
164 | 803k | _last_value = cell(_count - 1); |
165 | 803k | } |
166 | 851k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
167 | 851k | return Status::OK(); |
168 | 851k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 378k | Status finish(OwnedSlice* slice) override { | 162 | 378k | if (_count > 0) { | 163 | 345k | _first_value = cell(0); | 164 | 345k | _last_value = cell(_count - 1); | 165 | 345k | } | 166 | 378k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 378k | return Status::OK(); | 168 | 378k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 54.0k | Status finish(OwnedSlice* slice) override { | 162 | 54.0k | if (_count > 0) { | 163 | 53.2k | _first_value = cell(0); | 164 | 53.2k | _last_value = cell(_count - 1); | 165 | 53.2k | } | 166 | 54.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 54.0k | return Status::OK(); | 168 | 54.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.43k | Status finish(OwnedSlice* slice) override { | 162 | 7.43k | if (_count > 0) { | 163 | 7.27k | _first_value = cell(0); | 164 | 7.27k | _last_value = cell(_count - 1); | 165 | 7.27k | } | 166 | 7.43k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 7.43k | return Status::OK(); | 168 | 7.43k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 153k | Status finish(OwnedSlice* slice) override { | 162 | 153k | if (_count > 0) { | 163 | 150k | _first_value = cell(0); | 164 | 150k | _last_value = cell(_count - 1); | 165 | 150k | } | 166 | 153k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 153k | return Status::OK(); | 168 | 153k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 76.2k | Status finish(OwnedSlice* slice) override { | 162 | 76.2k | if (_count > 0) { | 163 | 76.2k | _first_value = cell(0); | 164 | 76.2k | _last_value = cell(_count - 1); | 165 | 76.2k | } | 166 | 76.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 76.2k | return Status::OK(); | 168 | 76.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.85k | Status finish(OwnedSlice* slice) override { | 162 | 9.85k | if (_count > 0) { | 163 | 9.58k | _first_value = cell(0); | 164 | 9.58k | _last_value = cell(_count - 1); | 165 | 9.58k | } | 166 | 9.85k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 9.85k | return Status::OK(); | 168 | 9.85k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 12.1k | Status finish(OwnedSlice* slice) override { | 162 | 12.1k | if (_count > 0) { | 163 | 11.7k | _first_value = cell(0); | 164 | 11.7k | _last_value = cell(_count - 1); | 165 | 11.7k | } | 166 | 12.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 12.1k | return Status::OK(); | 168 | 12.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 20.2k | Status finish(OwnedSlice* slice) override { | 162 | 20.2k | if (_count > 0) { | 163 | 19.7k | _first_value = cell(0); | 164 | 19.7k | _last_value = cell(_count - 1); | 165 | 19.7k | } | 166 | 20.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 20.2k | return Status::OK(); | 168 | 20.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 197 | Status finish(OwnedSlice* slice) override { | 162 | 197 | if (_count > 0) { | 163 | 192 | _first_value = cell(0); | 164 | 192 | _last_value = cell(_count - 1); | 165 | 192 | } | 166 | 197 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 197 | return Status::OK(); | 168 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.5k | Status finish(OwnedSlice* slice) override { | 162 | 38.5k | if (_count > 0) { | 163 | 37.4k | _first_value = cell(0); | 164 | 37.4k | _last_value = cell(_count - 1); | 165 | 37.4k | } | 166 | 38.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 38.5k | return Status::OK(); | 168 | 38.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 44.8k | Status finish(OwnedSlice* slice) override { | 162 | 44.8k | if (_count > 0) { | 163 | 43.2k | _first_value = cell(0); | 164 | 43.2k | _last_value = cell(_count - 1); | 165 | 43.2k | } | 166 | 44.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 44.8k | return Status::OK(); | 168 | 44.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 438 | Status finish(OwnedSlice* slice) override { | 162 | 438 | if (_count > 0) { | 163 | 338 | _first_value = cell(0); | 164 | 338 | _last_value = cell(_count - 1); | 165 | 338 | } | 166 | 438 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 438 | return Status::OK(); | 168 | 438 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.12k | Status finish(OwnedSlice* slice) override { | 162 | 7.12k | if (_count > 0) { | 163 | 6.92k | _first_value = cell(0); | 164 | 6.92k | _last_value = cell(_count - 1); | 165 | 6.92k | } | 166 | 7.12k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 7.12k | return Status::OK(); | 168 | 7.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 107 | Status finish(OwnedSlice* slice) override { | 162 | 107 | if (_count > 0) { | 163 | 99 | _first_value = cell(0); | 164 | 99 | _last_value = cell(_count - 1); | 165 | 99 | } | 166 | 107 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 107 | return Status::OK(); | 168 | 107 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.78k | Status finish(OwnedSlice* slice) override { | 162 | 9.78k | if (_count > 0) { | 163 | 4.83k | _first_value = cell(0); | 164 | 4.83k | _last_value = cell(_count - 1); | 165 | 4.83k | } | 166 | 9.78k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 9.78k | return Status::OK(); | 168 | 9.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.6k | Status finish(OwnedSlice* slice) override { | 162 | 18.6k | if (_count > 0) { | 163 | 17.7k | _first_value = cell(0); | 164 | 17.7k | _last_value = cell(_count - 1); | 165 | 17.7k | } | 166 | 18.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 18.6k | return Status::OK(); | 168 | 18.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.5k | Status finish(OwnedSlice* slice) override { | 162 | 17.5k | if (_count > 0) { | 163 | 17.0k | _first_value = cell(0); | 164 | 17.0k | _last_value = cell(_count - 1); | 165 | 17.0k | } | 166 | 17.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 17.5k | return Status::OK(); | 168 | 17.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.06k | Status finish(OwnedSlice* slice) override { | 162 | 1.06k | if (_count > 0) { | 163 | 1.00k | _first_value = cell(0); | 164 | 1.00k | _last_value = cell(_count - 1); | 165 | 1.00k | } | 166 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 1.06k | return Status::OK(); | 168 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 692 | Status finish(OwnedSlice* slice) override { | 162 | 692 | if (_count > 0) { | 163 | 642 | _first_value = cell(0); | 164 | 642 | _last_value = cell(_count - 1); | 165 | 642 | } | 166 | 692 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 692 | return Status::OK(); | 168 | 692 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 611 | Status finish(OwnedSlice* slice) override { | 162 | 611 | if (_count > 0) { | 163 | 576 | _first_value = cell(0); | 164 | 576 | _last_value = cell(_count - 1); | 165 | 576 | } | 166 | 611 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 167 | 611 | return Status::OK(); | 168 | 611 | } |
|
169 | | |
170 | 2.03M | Status reset() override { |
171 | 2.03M | RETURN_IF_CATCH_EXCEPTION({ |
172 | 2.03M | size_t block_size = _options.data_page_size; |
173 | 2.03M | _count = 0; |
174 | 2.03M | _raw_data_size = 0; |
175 | 2.03M | _data.clear(); |
176 | 2.03M | _data.reserve(block_size); |
177 | 2.03M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
178 | 2.03M | << "buffer must be naturally-aligned"; |
179 | 2.03M | _buffer.clear(); |
180 | 2.03M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
181 | 2.03M | _finished = false; |
182 | 2.03M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
183 | 2.03M | }); |
184 | 2.03M | return Status::OK(); |
185 | 2.03M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 170 | 1.09M | Status reset() override { | 171 | 1.09M | RETURN_IF_CATCH_EXCEPTION({ | 172 | 1.09M | size_t block_size = _options.data_page_size; | 173 | 1.09M | _count = 0; | 174 | 1.09M | _raw_data_size = 0; | 175 | 1.09M | _data.clear(); | 176 | 1.09M | _data.reserve(block_size); | 177 | 1.09M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 1.09M | << "buffer must be naturally-aligned"; | 179 | 1.09M | _buffer.clear(); | 180 | 1.09M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 1.09M | _finished = false; | 182 | 1.09M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 1.09M | }); | 184 | 1.10M | return Status::OK(); | 185 | 1.09M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 170 | 108k | Status reset() override { | 171 | 108k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 108k | size_t block_size = _options.data_page_size; | 173 | 108k | _count = 0; | 174 | 108k | _raw_data_size = 0; | 175 | 108k | _data.clear(); | 176 | 108k | _data.reserve(block_size); | 177 | 108k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 108k | << "buffer must be naturally-aligned"; | 179 | 108k | _buffer.clear(); | 180 | 108k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 108k | _finished = false; | 182 | 108k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 108k | }); | 184 | 108k | return Status::OK(); | 185 | 108k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 170 | 15.0k | Status reset() override { | 171 | 15.0k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 15.0k | size_t block_size = _options.data_page_size; | 173 | 15.0k | _count = 0; | 174 | 15.0k | _raw_data_size = 0; | 175 | 15.0k | _data.clear(); | 176 | 15.0k | _data.reserve(block_size); | 177 | 15.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 15.0k | << "buffer must be naturally-aligned"; | 179 | 15.0k | _buffer.clear(); | 180 | 15.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 15.0k | _finished = false; | 182 | 15.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 15.0k | }); | 184 | 15.0k | return Status::OK(); | 185 | 15.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 170 | 302k | Status reset() override { | 171 | 302k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 302k | size_t block_size = _options.data_page_size; | 173 | 302k | _count = 0; | 174 | 302k | _raw_data_size = 0; | 175 | 302k | _data.clear(); | 176 | 302k | _data.reserve(block_size); | 177 | 302k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 302k | << "buffer must be naturally-aligned"; | 179 | 302k | _buffer.clear(); | 180 | 302k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 302k | _finished = false; | 182 | 302k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 302k | }); | 184 | 303k | return Status::OK(); | 185 | 302k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 170 | 152k | Status reset() override { | 171 | 152k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 152k | size_t block_size = _options.data_page_size; | 173 | 152k | _count = 0; | 174 | 152k | _raw_data_size = 0; | 175 | 152k | _data.clear(); | 176 | 152k | _data.reserve(block_size); | 177 | 152k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 152k | << "buffer must be naturally-aligned"; | 179 | 152k | _buffer.clear(); | 180 | 152k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 152k | _finished = false; | 182 | 152k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 152k | }); | 184 | 152k | return Status::OK(); | 185 | 152k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 170 | 19.4k | Status reset() override { | 171 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 19.4k | size_t block_size = _options.data_page_size; | 173 | 19.4k | _count = 0; | 174 | 19.4k | _raw_data_size = 0; | 175 | 19.4k | _data.clear(); | 176 | 19.4k | _data.reserve(block_size); | 177 | 19.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 19.4k | << "buffer must be naturally-aligned"; | 179 | 19.4k | _buffer.clear(); | 180 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 19.4k | _finished = false; | 182 | 19.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 19.4k | }); | 184 | 19.4k | return Status::OK(); | 185 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 170 | 25.1k | Status reset() override { | 171 | 25.1k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 25.1k | size_t block_size = _options.data_page_size; | 173 | 25.1k | _count = 0; | 174 | 25.1k | _raw_data_size = 0; | 175 | 25.1k | _data.clear(); | 176 | 25.1k | _data.reserve(block_size); | 177 | 25.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 25.1k | << "buffer must be naturally-aligned"; | 179 | 25.1k | _buffer.clear(); | 180 | 25.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 25.1k | _finished = false; | 182 | 25.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 25.1k | }); | 184 | 25.1k | return Status::OK(); | 185 | 25.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 170 | 40.4k | Status reset() override { | 171 | 40.4k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 40.4k | size_t block_size = _options.data_page_size; | 173 | 40.4k | _count = 0; | 174 | 40.4k | _raw_data_size = 0; | 175 | 40.4k | _data.clear(); | 176 | 40.4k | _data.reserve(block_size); | 177 | 40.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 40.4k | << "buffer must be naturally-aligned"; | 179 | 40.4k | _buffer.clear(); | 180 | 40.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 40.4k | _finished = false; | 182 | 40.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 40.4k | }); | 184 | 40.4k | return Status::OK(); | 185 | 40.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 170 | 382 | Status reset() override { | 171 | 382 | RETURN_IF_CATCH_EXCEPTION({ | 172 | 382 | size_t block_size = _options.data_page_size; | 173 | 382 | _count = 0; | 174 | 382 | _raw_data_size = 0; | 175 | 382 | _data.clear(); | 176 | 382 | _data.reserve(block_size); | 177 | 382 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 382 | << "buffer must be naturally-aligned"; | 179 | 382 | _buffer.clear(); | 180 | 382 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 382 | _finished = false; | 182 | 382 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 382 | }); | 184 | 382 | return Status::OK(); | 185 | 382 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 170 | 76.5k | Status reset() override { | 171 | 76.5k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 76.5k | size_t block_size = _options.data_page_size; | 173 | 76.5k | _count = 0; | 174 | 76.5k | _raw_data_size = 0; | 175 | 76.5k | _data.clear(); | 176 | 76.5k | _data.reserve(block_size); | 177 | 76.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 76.5k | << "buffer must be naturally-aligned"; | 179 | 76.5k | _buffer.clear(); | 180 | 76.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 76.5k | _finished = false; | 182 | 76.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 76.5k | }); | 184 | 76.5k | return Status::OK(); | 185 | 76.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 170 | 90.6k | Status reset() override { | 171 | 90.6k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 90.6k | size_t block_size = _options.data_page_size; | 173 | 90.6k | _count = 0; | 174 | 90.6k | _raw_data_size = 0; | 175 | 90.6k | _data.clear(); | 176 | 90.6k | _data.reserve(block_size); | 177 | 90.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 90.6k | << "buffer must be naturally-aligned"; | 179 | 90.6k | _buffer.clear(); | 180 | 90.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 90.6k | _finished = false; | 182 | 90.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 90.6k | }); | 184 | 90.6k | return Status::OK(); | 185 | 90.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 170 | 722 | Status reset() override { | 171 | 722 | RETURN_IF_CATCH_EXCEPTION({ | 172 | 722 | size_t block_size = _options.data_page_size; | 173 | 722 | _count = 0; | 174 | 722 | _raw_data_size = 0; | 175 | 722 | _data.clear(); | 176 | 722 | _data.reserve(block_size); | 177 | 722 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 722 | << "buffer must be naturally-aligned"; | 179 | 722 | _buffer.clear(); | 180 | 722 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 722 | _finished = false; | 182 | 722 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 722 | }); | 184 | 722 | return Status::OK(); | 185 | 722 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 170 | 14.1k | Status reset() override { | 171 | 14.1k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 14.1k | size_t block_size = _options.data_page_size; | 173 | 14.1k | _count = 0; | 174 | 14.1k | _raw_data_size = 0; | 175 | 14.1k | _data.clear(); | 176 | 14.1k | _data.reserve(block_size); | 177 | 14.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 14.1k | << "buffer must be naturally-aligned"; | 179 | 14.1k | _buffer.clear(); | 180 | 14.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 14.1k | _finished = false; | 182 | 14.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 14.1k | }); | 184 | 14.2k | return Status::OK(); | 185 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 170 | 300 | Status reset() override { | 171 | 300 | RETURN_IF_CATCH_EXCEPTION({ | 172 | 300 | size_t block_size = _options.data_page_size; | 173 | 300 | _count = 0; | 174 | 300 | _raw_data_size = 0; | 175 | 300 | _data.clear(); | 176 | 300 | _data.reserve(block_size); | 177 | 300 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 300 | << "buffer must be naturally-aligned"; | 179 | 300 | _buffer.clear(); | 180 | 300 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 300 | _finished = false; | 182 | 300 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 300 | }); | 184 | 300 | return Status::OK(); | 185 | 300 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 170 | 19.5k | Status reset() override { | 171 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 19.5k | size_t block_size = _options.data_page_size; | 173 | 19.5k | _count = 0; | 174 | 19.5k | _raw_data_size = 0; | 175 | 19.5k | _data.clear(); | 176 | 19.5k | _data.reserve(block_size); | 177 | 19.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 19.5k | << "buffer must be naturally-aligned"; | 179 | 19.5k | _buffer.clear(); | 180 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 19.5k | _finished = false; | 182 | 19.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 19.5k | }); | 184 | 19.5k | return Status::OK(); | 185 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 170 | 30.9k | Status reset() override { | 171 | 30.9k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 30.9k | size_t block_size = _options.data_page_size; | 173 | 30.9k | _count = 0; | 174 | 30.9k | _raw_data_size = 0; | 175 | 30.9k | _data.clear(); | 176 | 30.9k | _data.reserve(block_size); | 177 | 30.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 30.9k | << "buffer must be naturally-aligned"; | 179 | 30.9k | _buffer.clear(); | 180 | 30.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 30.9k | _finished = false; | 182 | 30.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 30.9k | }); | 184 | 30.9k | return Status::OK(); | 185 | 30.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 170 | 35.0k | Status reset() override { | 171 | 35.0k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 35.0k | size_t block_size = _options.data_page_size; | 173 | 35.0k | _count = 0; | 174 | 35.0k | _raw_data_size = 0; | 175 | 35.0k | _data.clear(); | 176 | 35.0k | _data.reserve(block_size); | 177 | 35.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 35.0k | << "buffer must be naturally-aligned"; | 179 | 35.0k | _buffer.clear(); | 180 | 35.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 35.0k | _finished = false; | 182 | 35.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 35.0k | }); | 184 | 35.0k | return Status::OK(); | 185 | 35.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 170 | 2.21k | Status reset() override { | 171 | 2.21k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 2.21k | size_t block_size = _options.data_page_size; | 173 | 2.21k | _count = 0; | 174 | 2.21k | _raw_data_size = 0; | 175 | 2.21k | _data.clear(); | 176 | 2.21k | _data.reserve(block_size); | 177 | 2.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 2.21k | << "buffer must be naturally-aligned"; | 179 | 2.21k | _buffer.clear(); | 180 | 2.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 2.21k | _finished = false; | 182 | 2.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 2.21k | }); | 184 | 2.21k | return Status::OK(); | 185 | 2.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 170 | 1.47k | Status reset() override { | 171 | 1.47k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 1.47k | size_t block_size = _options.data_page_size; | 173 | 1.47k | _count = 0; | 174 | 1.47k | _raw_data_size = 0; | 175 | 1.47k | _data.clear(); | 176 | 1.47k | _data.reserve(block_size); | 177 | 1.47k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 1.47k | << "buffer must be naturally-aligned"; | 179 | 1.47k | _buffer.clear(); | 180 | 1.47k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 1.47k | _finished = false; | 182 | 1.47k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 1.47k | }); | 184 | 1.47k | return Status::OK(); | 185 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 170 | 1.30k | Status reset() override { | 171 | 1.30k | RETURN_IF_CATCH_EXCEPTION({ | 172 | 1.30k | size_t block_size = _options.data_page_size; | 173 | 1.30k | _count = 0; | 174 | 1.30k | _raw_data_size = 0; | 175 | 1.30k | _data.clear(); | 176 | 1.30k | _data.reserve(block_size); | 177 | 1.30k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 178 | 1.30k | << "buffer must be naturally-aligned"; | 179 | 1.30k | _buffer.clear(); | 180 | 1.30k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 181 | 1.30k | _finished = false; | 182 | 1.30k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 183 | 1.30k | }); | 184 | 1.30k | return Status::OK(); | 185 | 1.30k | } |
|
186 | | |
187 | 1.75M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 187 | 1.75M | 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_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv 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_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 |
188 | | |
189 | 45.0k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 189 | 23.6k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 189 | 4.59k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 189 | 874 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 189 | 5.13k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 189 | 2.08k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 189 | 1.23k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 189 | 788 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 189 | 802 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 189 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 189 | 1.67k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 189 | 2.52k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 189 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 189 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 189 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 189 | 156 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 189 | 315 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 189 | 1.14k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 189 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 189 | 26 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 189 | 10 | uint64_t size() const override { return _buffer.size(); } |
|
190 | | |
191 | 545k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 191 | 73.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 191 | 54.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 191 | 7.43k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 191 | 153k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 191 | 76.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 191 | 9.85k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 191 | 12.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 191 | 20.2k | 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 | 191 | 197 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 191 | 38.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 191 | 44.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 191 | 438 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 191 | 7.12k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 191 | 107 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 191 | 9.78k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 191 | 18.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 191 | 17.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 191 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 191 | 692 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 191 | 610 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
192 | | |
193 | 0 | Status get_first_value(void* value) const override { |
194 | 0 | DCHECK(_finished); |
195 | 0 | if (_count == 0) { |
196 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
197 | 0 | } |
198 | 0 | memcpy(value, &_first_value, SIZE_OF_TYPE); |
199 | 0 | return Status::OK(); |
200 | 0 | } Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE15get_first_valueEPv |
201 | 3 | Status get_last_value(void* value) const override { |
202 | 3 | DCHECK(_finished); |
203 | 3 | if (_count == 0) { |
204 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
205 | 0 | } |
206 | 3 | memcpy(value, &_last_value, SIZE_OF_TYPE); |
207 | 3 | return Status::OK(); |
208 | 3 | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE14get_last_valueEPv Line | Count | Source | 201 | 3 | Status get_last_value(void* value) const override { | 202 | 3 | DCHECK(_finished); | 203 | 3 | if (_count == 0) { | 204 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 205 | 0 | } | 206 | 3 | memcpy(value, &_last_value, SIZE_OF_TYPE); | 207 | 3 | return Status::OK(); | 208 | 3 | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE14get_last_valueEPv |
209 | | |
210 | | private: |
211 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
212 | 861k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 396k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 54.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 7.56k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 149k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 76.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 9.62k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 12.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 20.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 185 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 37.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 45.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 284 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 7.07k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 193 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 9.79k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 12.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 17.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 1.15k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 780 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 212 | 694 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
213 | | |
214 | 851k | OwnedSlice _finish(int final_size_of_type) { |
215 | 851k | _data.resize(final_size_of_type * _count); |
216 | | |
217 | | // Do padding so that the input num of element is multiple of 8. |
218 | 851k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
219 | 851k | int padding_elems = num_elems_after_padding - _count; |
220 | 851k | int padding_bytes = padding_elems * final_size_of_type; |
221 | 25.3M | for (int i = 0; i < padding_bytes; i++) { |
222 | 24.5M | _data.push_back(0); |
223 | 24.5M | } |
224 | | |
225 | | // reserve enough place for compression |
226 | 851k | _buffer.resize( |
227 | 851k | BITSHUFFLE_PAGE_HEADER_SIZE + |
228 | 851k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
229 | | |
230 | 851k | int64_t bytes = |
231 | 851k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
232 | 851k | num_elems_after_padding, final_size_of_type, 0); |
233 | 851k | if (bytes < 0) [[unlikely]] { |
234 | | // This means the bitshuffle function fails. |
235 | | // Ideally, this should not happen. |
236 | 0 | warn_with_bitshuffle_error(bytes); |
237 | | // It does not matter what will be returned here, |
238 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
239 | 0 | return OwnedSlice(); |
240 | 0 | } |
241 | | // update header |
242 | 851k | encode_fixed32_le(&_buffer[0], _count); |
243 | 851k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
244 | 851k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
245 | 851k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
246 | 851k | _finished = true; |
247 | | // before build(), update buffer length to the actual compressed size |
248 | 851k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
249 | 851k | return _buffer.build(); |
250 | 851k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 214 | 378k | OwnedSlice _finish(int final_size_of_type) { | 215 | 378k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 378k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 378k | int padding_elems = num_elems_after_padding - _count; | 220 | 378k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 7.24M | for (int i = 0; i < padding_bytes; i++) { | 222 | 6.87M | _data.push_back(0); | 223 | 6.87M | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 378k | _buffer.resize( | 227 | 378k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 378k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 378k | int64_t bytes = | 231 | 378k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 378k | num_elems_after_padding, final_size_of_type, 0); | 233 | 378k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 378k | encode_fixed32_le(&_buffer[0], _count); | 243 | 378k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 378k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 378k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 378k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 378k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 378k | return _buffer.build(); | 250 | 378k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 214 | 54.0k | OwnedSlice _finish(int final_size_of_type) { | 215 | 54.0k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 54.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 54.0k | int padding_elems = num_elems_after_padding - _count; | 220 | 54.0k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 324k | for (int i = 0; i < padding_bytes; i++) { | 222 | 270k | _data.push_back(0); | 223 | 270k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 54.0k | _buffer.resize( | 227 | 54.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 54.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 54.0k | int64_t bytes = | 231 | 54.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 54.0k | num_elems_after_padding, final_size_of_type, 0); | 233 | 54.0k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 54.0k | encode_fixed32_le(&_buffer[0], _count); | 243 | 54.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 54.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 54.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 54.0k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 54.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 54.0k | return _buffer.build(); | 250 | 54.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 214 | 7.43k | OwnedSlice _finish(int final_size_of_type) { | 215 | 7.43k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 7.43k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 7.43k | int padding_elems = num_elems_after_padding - _count; | 220 | 7.43k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 74.3k | for (int i = 0; i < padding_bytes; i++) { | 222 | 66.9k | _data.push_back(0); | 223 | 66.9k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 7.43k | _buffer.resize( | 227 | 7.43k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 7.43k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 7.43k | int64_t bytes = | 231 | 7.43k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 7.43k | num_elems_after_padding, final_size_of_type, 0); | 233 | 7.43k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 7.43k | encode_fixed32_le(&_buffer[0], _count); | 243 | 7.43k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 7.43k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 7.43k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 7.43k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 7.43k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 7.43k | return _buffer.build(); | 250 | 7.43k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 214 | 153k | OwnedSlice _finish(int final_size_of_type) { | 215 | 153k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 153k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 153k | int padding_elems = num_elems_after_padding - _count; | 220 | 153k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 7.16M | for (int i = 0; i < padding_bytes; i++) { | 222 | 7.01M | _data.push_back(0); | 223 | 7.01M | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 153k | _buffer.resize( | 227 | 153k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 153k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 153k | int64_t bytes = | 231 | 153k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 153k | num_elems_after_padding, final_size_of_type, 0); | 233 | 153k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 153k | encode_fixed32_le(&_buffer[0], _count); | 243 | 153k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 153k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 153k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 153k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 153k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 153k | return _buffer.build(); | 250 | 153k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 214 | 76.2k | OwnedSlice _finish(int final_size_of_type) { | 215 | 76.2k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 76.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 76.2k | int padding_elems = num_elems_after_padding - _count; | 220 | 76.2k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 3.63M | for (int i = 0; i < padding_bytes; i++) { | 222 | 3.56M | _data.push_back(0); | 223 | 3.56M | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 76.2k | _buffer.resize( | 227 | 76.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 76.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 76.2k | int64_t bytes = | 231 | 76.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 76.2k | num_elems_after_padding, final_size_of_type, 0); | 233 | 76.2k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 76.2k | encode_fixed32_le(&_buffer[0], _count); | 243 | 76.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 76.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 76.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 76.2k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 76.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 76.2k | return _buffer.build(); | 250 | 76.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 214 | 9.85k | OwnedSlice _finish(int final_size_of_type) { | 215 | 9.85k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 9.85k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 9.85k | int padding_elems = num_elems_after_padding - _count; | 220 | 9.85k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 623k | for (int i = 0; i < padding_bytes; i++) { | 222 | 613k | _data.push_back(0); | 223 | 613k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 9.85k | _buffer.resize( | 227 | 9.85k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 9.85k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 9.85k | int64_t bytes = | 231 | 9.85k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 9.85k | num_elems_after_padding, final_size_of_type, 0); | 233 | 9.85k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 9.85k | encode_fixed32_le(&_buffer[0], _count); | 243 | 9.85k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 9.85k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 9.85k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 9.85k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 9.85k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 9.85k | return _buffer.build(); | 250 | 9.85k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 214 | 12.1k | OwnedSlice _finish(int final_size_of_type) { | 215 | 12.1k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 12.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 12.1k | int padding_elems = num_elems_after_padding - _count; | 220 | 12.1k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 259k | for (int i = 0; i < padding_bytes; i++) { | 222 | 247k | _data.push_back(0); | 223 | 247k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 12.1k | _buffer.resize( | 227 | 12.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 12.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 12.1k | int64_t bytes = | 231 | 12.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 12.1k | num_elems_after_padding, final_size_of_type, 0); | 233 | 12.1k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 12.1k | encode_fixed32_le(&_buffer[0], _count); | 243 | 12.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 12.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 12.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 12.1k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 12.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 12.1k | return _buffer.build(); | 250 | 12.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 214 | 20.2k | OwnedSlice _finish(int final_size_of_type) { | 215 | 20.2k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 20.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 20.2k | int padding_elems = num_elems_after_padding - _count; | 220 | 20.2k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 901k | for (int i = 0; i < padding_bytes; i++) { | 222 | 881k | _data.push_back(0); | 223 | 881k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 20.2k | _buffer.resize( | 227 | 20.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 20.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 20.2k | int64_t bytes = | 231 | 20.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 20.2k | num_elems_after_padding, final_size_of_type, 0); | 233 | 20.2k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 20.2k | encode_fixed32_le(&_buffer[0], _count); | 243 | 20.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 20.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 20.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 20.2k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 20.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 20.2k | return _buffer.build(); | 250 | 20.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 214 | 197 | OwnedSlice _finish(int final_size_of_type) { | 215 | 197 | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 197 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 197 | int padding_elems = num_elems_after_padding - _count; | 220 | 197 | int padding_bytes = padding_elems * final_size_of_type; | 221 | 2.70k | for (int i = 0; i < padding_bytes; i++) { | 222 | 2.50k | _data.push_back(0); | 223 | 2.50k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 197 | _buffer.resize( | 227 | 197 | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 197 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 197 | int64_t bytes = | 231 | 197 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 197 | num_elems_after_padding, final_size_of_type, 0); | 233 | 197 | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 197 | encode_fixed32_le(&_buffer[0], _count); | 243 | 197 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 197 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 197 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 197 | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 197 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 197 | return _buffer.build(); | 250 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 214 | 38.5k | OwnedSlice _finish(int final_size_of_type) { | 215 | 38.5k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 38.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 38.5k | int padding_elems = num_elems_after_padding - _count; | 220 | 38.5k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 819k | for (int i = 0; i < padding_bytes; i++) { | 222 | 781k | _data.push_back(0); | 223 | 781k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 38.5k | _buffer.resize( | 227 | 38.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 38.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 38.5k | int64_t bytes = | 231 | 38.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 38.5k | num_elems_after_padding, final_size_of_type, 0); | 233 | 38.5k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 38.5k | encode_fixed32_le(&_buffer[0], _count); | 243 | 38.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 38.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 38.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 38.5k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 38.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 38.5k | return _buffer.build(); | 250 | 38.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 214 | 44.8k | OwnedSlice _finish(int final_size_of_type) { | 215 | 44.8k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 44.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 44.8k | int padding_elems = num_elems_after_padding - _count; | 220 | 44.8k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 1.87M | for (int i = 0; i < padding_bytes; i++) { | 222 | 1.83M | _data.push_back(0); | 223 | 1.83M | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 44.8k | _buffer.resize( | 227 | 44.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 44.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 44.8k | int64_t bytes = | 231 | 44.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 44.8k | num_elems_after_padding, final_size_of_type, 0); | 233 | 44.8k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 44.8k | encode_fixed32_le(&_buffer[0], _count); | 243 | 44.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 44.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 44.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 44.8k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 44.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 44.8k | return _buffer.build(); | 250 | 44.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 214 | 438 | OwnedSlice _finish(int final_size_of_type) { | 215 | 438 | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 438 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 438 | int padding_elems = num_elems_after_padding - _count; | 220 | 438 | int padding_bytes = padding_elems * final_size_of_type; | 221 | 6.99k | for (int i = 0; i < padding_bytes; i++) { | 222 | 6.56k | _data.push_back(0); | 223 | 6.56k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 438 | _buffer.resize( | 227 | 438 | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 438 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 438 | int64_t bytes = | 231 | 438 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 438 | num_elems_after_padding, final_size_of_type, 0); | 233 | 438 | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 438 | encode_fixed32_le(&_buffer[0], _count); | 243 | 438 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 438 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 438 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 438 | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 438 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 438 | return _buffer.build(); | 250 | 438 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 214 | 7.12k | OwnedSlice _finish(int final_size_of_type) { | 215 | 7.12k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 7.12k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 7.12k | int padding_elems = num_elems_after_padding - _count; | 220 | 7.12k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 373k | for (int i = 0; i < padding_bytes; i++) { | 222 | 366k | _data.push_back(0); | 223 | 366k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 7.12k | _buffer.resize( | 227 | 7.12k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 7.12k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 7.12k | int64_t bytes = | 231 | 7.12k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 7.12k | num_elems_after_padding, final_size_of_type, 0); | 233 | 7.12k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 7.12k | encode_fixed32_le(&_buffer[0], _count); | 243 | 7.12k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 7.12k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 7.12k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 7.12k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 7.12k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 7.12k | return _buffer.build(); | 250 | 7.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 214 | 107 | OwnedSlice _finish(int final_size_of_type) { | 215 | 107 | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 107 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 107 | int padding_elems = num_elems_after_padding - _count; | 220 | 107 | int padding_bytes = padding_elems * final_size_of_type; | 221 | 6.50k | for (int i = 0; i < padding_bytes; i++) { | 222 | 6.39k | _data.push_back(0); | 223 | 6.39k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 107 | _buffer.resize( | 227 | 107 | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 107 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 107 | int64_t bytes = | 231 | 107 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 107 | num_elems_after_padding, final_size_of_type, 0); | 233 | 107 | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 107 | encode_fixed32_le(&_buffer[0], _count); | 243 | 107 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 107 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 107 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 107 | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 107 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 107 | return _buffer.build(); | 250 | 107 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 214 | 9.78k | OwnedSlice _finish(int final_size_of_type) { | 215 | 9.78k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 9.78k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 9.78k | int padding_elems = num_elems_after_padding - _count; | 220 | 9.78k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 119k | for (int i = 0; i < padding_bytes; i++) { | 222 | 110k | _data.push_back(0); | 223 | 110k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 9.78k | _buffer.resize( | 227 | 9.78k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 9.78k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 9.78k | int64_t bytes = | 231 | 9.78k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 9.78k | num_elems_after_padding, final_size_of_type, 0); | 233 | 9.78k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 9.78k | encode_fixed32_le(&_buffer[0], _count); | 243 | 9.78k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 9.78k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 9.78k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 9.78k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 9.78k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 9.78k | return _buffer.build(); | 250 | 9.78k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 214 | 18.6k | OwnedSlice _finish(int final_size_of_type) { | 215 | 18.6k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 18.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 18.6k | int padding_elems = num_elems_after_padding - _count; | 220 | 18.6k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 496k | for (int i = 0; i < padding_bytes; i++) { | 222 | 477k | _data.push_back(0); | 223 | 477k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 18.6k | _buffer.resize( | 227 | 18.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 18.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 18.6k | int64_t bytes = | 231 | 18.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 18.6k | num_elems_after_padding, final_size_of_type, 0); | 233 | 18.6k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 18.6k | encode_fixed32_le(&_buffer[0], _count); | 243 | 18.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 18.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 18.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 18.6k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 18.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 18.6k | return _buffer.build(); | 250 | 18.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 214 | 17.5k | OwnedSlice _finish(int final_size_of_type) { | 215 | 17.5k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 17.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 17.5k | int padding_elems = num_elems_after_padding - _count; | 220 | 17.5k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 1.19M | for (int i = 0; i < padding_bytes; i++) { | 222 | 1.18M | _data.push_back(0); | 223 | 1.18M | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 17.5k | _buffer.resize( | 227 | 17.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 17.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 17.5k | int64_t bytes = | 231 | 17.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 17.5k | num_elems_after_padding, final_size_of_type, 0); | 233 | 17.5k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 17.5k | encode_fixed32_le(&_buffer[0], _count); | 243 | 17.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 17.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 17.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 17.5k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 17.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 17.5k | return _buffer.build(); | 250 | 17.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 214 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 215 | 1.06k | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 220 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 221 | 161k | for (int i = 0; i < padding_bytes; i++) { | 222 | 160k | _data.push_back(0); | 223 | 160k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 1.06k | _buffer.resize( | 227 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 1.06k | int64_t bytes = | 231 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 233 | 1.06k | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 1.06k | encode_fixed32_le(&_buffer[0], _count); | 243 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 1.06k | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 1.06k | return _buffer.build(); | 250 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 214 | 692 | OwnedSlice _finish(int final_size_of_type) { | 215 | 692 | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 692 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 692 | int padding_elems = num_elems_after_padding - _count; | 220 | 692 | int padding_bytes = padding_elems * final_size_of_type; | 221 | 14.6k | for (int i = 0; i < padding_bytes; i++) { | 222 | 13.9k | _data.push_back(0); | 223 | 13.9k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 692 | _buffer.resize( | 227 | 692 | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 692 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 692 | int64_t bytes = | 231 | 692 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 692 | num_elems_after_padding, final_size_of_type, 0); | 233 | 692 | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 692 | encode_fixed32_le(&_buffer[0], _count); | 243 | 692 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 692 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 692 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 692 | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 692 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 692 | return _buffer.build(); | 250 | 692 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 214 | 611 | OwnedSlice _finish(int final_size_of_type) { | 215 | 611 | _data.resize(final_size_of_type * _count); | 216 | | | 217 | | // Do padding so that the input num of element is multiple of 8. | 218 | 611 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 219 | 611 | int padding_elems = num_elems_after_padding - _count; | 220 | 611 | int padding_bytes = padding_elems * final_size_of_type; | 221 | 49.2k | for (int i = 0; i < padding_bytes; i++) { | 222 | 48.6k | _data.push_back(0); | 223 | 48.6k | } | 224 | | | 225 | | // reserve enough place for compression | 226 | 611 | _buffer.resize( | 227 | 611 | BITSHUFFLE_PAGE_HEADER_SIZE + | 228 | 611 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 229 | | | 230 | 611 | int64_t bytes = | 231 | 611 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 232 | 611 | num_elems_after_padding, final_size_of_type, 0); | 233 | 611 | if (bytes < 0) [[unlikely]] { | 234 | | // This means the bitshuffle function fails. | 235 | | // Ideally, this should not happen. | 236 | 0 | warn_with_bitshuffle_error(bytes); | 237 | | // It does not matter what will be returned here, | 238 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 239 | 0 | return OwnedSlice(); | 240 | 0 | } | 241 | | // update header | 242 | 611 | encode_fixed32_le(&_buffer[0], _count); | 243 | 611 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 244 | 611 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 245 | 611 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 246 | 611 | _finished = true; | 247 | | // before build(), update buffer length to the actual compressed size | 248 | 611 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 249 | 611 | return _buffer.build(); | 250 | 611 | } |
|
251 | | |
252 | | using CppType = typename TypeTraits<Type>::CppType; |
253 | | |
254 | 1.60M | CppType cell(int idx) const { |
255 | 1.60M | DCHECK_GE(idx, 0); |
256 | 1.60M | CppType ret; |
257 | 1.60M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
258 | 1.60M | return ret; |
259 | 1.60M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 254 | 690k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 690k | CppType ret; | 257 | 690k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 690k | return ret; | 259 | 690k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 254 | 106k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 106k | CppType ret; | 257 | 106k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 106k | return ret; | 259 | 106k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 254 | 14.5k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 14.5k | CppType ret; | 257 | 14.5k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 14.5k | return ret; | 259 | 14.5k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 254 | 300k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 300k | CppType ret; | 257 | 300k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 300k | return ret; | 259 | 300k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 254 | 152k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 152k | CppType ret; | 257 | 152k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 152k | return ret; | 259 | 152k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 254 | 19.1k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 19.1k | CppType ret; | 257 | 19.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 19.1k | return ret; | 259 | 19.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 254 | 23.4k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 23.4k | CppType ret; | 257 | 23.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 23.4k | return ret; | 259 | 23.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 254 | 39.5k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 39.5k | CppType ret; | 257 | 39.5k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 39.5k | return ret; | 259 | 39.5k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 254 | 384 | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 384 | CppType ret; | 257 | 384 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 384 | return ret; | 259 | 384 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 254 | 74.9k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 74.9k | CppType ret; | 257 | 74.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 74.9k | return ret; | 259 | 74.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 254 | 86.5k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 86.5k | CppType ret; | 257 | 86.5k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 86.5k | return ret; | 259 | 86.5k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 254 | 676 | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 676 | CppType ret; | 257 | 676 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 676 | return ret; | 259 | 676 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 254 | 13.8k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 13.8k | CppType ret; | 257 | 13.8k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 13.8k | return ret; | 259 | 13.8k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi Line | Count | Source | 254 | 198 | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 198 | CppType ret; | 257 | 198 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 198 | return ret; | 259 | 198 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 254 | 9.66k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 9.66k | CppType ret; | 257 | 9.66k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 9.66k | return ret; | 259 | 9.66k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 254 | 35.4k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 35.4k | CppType ret; | 257 | 35.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 35.4k | return ret; | 259 | 35.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 254 | 34.1k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 34.1k | CppType ret; | 257 | 34.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 34.1k | return ret; | 259 | 34.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 254 | 2.01k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 2.01k | CppType ret; | 257 | 2.01k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 2.01k | return ret; | 259 | 2.01k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 254 | 1.28k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 1.28k | CppType ret; | 257 | 1.28k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 1.28k | return ret; | 259 | 1.28k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 254 | 1.15k | CppType cell(int idx) const { | 255 | | DCHECK_GE(idx, 0); | 256 | 1.15k | CppType ret; | 257 | 1.15k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 258 | 1.15k | return ret; | 259 | 1.15k | } |
|
260 | | |
261 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
262 | | PageBuilderOptions _options; |
263 | | uint32_t _count; |
264 | | uint32_t _remain_element_capacity; |
265 | | bool _finished; |
266 | | faststring _data; |
267 | | faststring _buffer; |
268 | | CppType _first_value; |
269 | | CppType _last_value; |
270 | | uint64_t _raw_data_size = 0; |
271 | | }; |
272 | | |
273 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
274 | | size_t& compressed_size, size_t& num_element_after_padding, |
275 | 2.15M | int& size_of_element) { |
276 | 2.15M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
277 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
278 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
279 | 0 | } |
280 | | |
281 | 2.15M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
282 | 2.15M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
283 | 2.15M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
284 | 2.15M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
285 | 2.15M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
286 | 0 | return Status::InternalError( |
287 | 0 | "num of element information corrupted," |
288 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
289 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
290 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
291 | 0 | size_of_element, data.size); |
292 | 0 | } |
293 | 2.15M | switch (size_of_element) { |
294 | 174k | case 1: |
295 | 194k | case 2: |
296 | 195k | case 3: |
297 | 1.33M | case 4: |
298 | 2.07M | case 8: |
299 | 2.07M | case 12: |
300 | 2.15M | case 16: |
301 | 2.15M | case 32: |
302 | 2.15M | break; |
303 | 0 | default: |
304 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
305 | 2.15M | } |
306 | 2.15M | return Status::OK(); |
307 | 2.15M | } |
308 | | |
309 | | template <FieldType Type> |
310 | | class BitShufflePageDecoder : public PageDecoder { |
311 | | public: |
312 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
313 | 1.36M | : _data(data), |
314 | 1.36M | _options(options), |
315 | 1.36M | _parsed(false), |
316 | 1.36M | _num_elements(0), |
317 | 1.36M | _num_element_after_padding(0), |
318 | 1.36M | _size_of_element(0), |
319 | 1.36M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 626k | : _data(data), | 314 | 626k | _options(options), | 315 | 626k | _parsed(false), | 316 | 626k | _num_elements(0), | 317 | 626k | _num_element_after_padding(0), | 318 | 626k | _size_of_element(0), | 319 | 626k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 107k | : _data(data), | 314 | 107k | _options(options), | 315 | 107k | _parsed(false), | 316 | 107k | _num_elements(0), | 317 | 107k | _num_element_after_padding(0), | 318 | 107k | _size_of_element(0), | 319 | 107k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 11.8k | : _data(data), | 314 | 11.8k | _options(options), | 315 | 11.8k | _parsed(false), | 316 | 11.8k | _num_elements(0), | 317 | 11.8k | _num_element_after_padding(0), | 318 | 11.8k | _size_of_element(0), | 319 | 11.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 214k | : _data(data), | 314 | 214k | _options(options), | 315 | 214k | _parsed(false), | 316 | 214k | _num_elements(0), | 317 | 214k | _num_element_after_padding(0), | 318 | 214k | _size_of_element(0), | 319 | 214k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 98.7k | : _data(data), | 314 | 98.7k | _options(options), | 315 | 98.7k | _parsed(false), | 316 | 98.7k | _num_elements(0), | 317 | 98.7k | _num_element_after_padding(0), | 318 | 98.7k | _size_of_element(0), | 319 | 98.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 16.4k | : _data(data), | 314 | 16.4k | _options(options), | 315 | 16.4k | _parsed(false), | 316 | 16.4k | _num_elements(0), | 317 | 16.4k | _num_element_after_padding(0), | 318 | 16.4k | _size_of_element(0), | 319 | 16.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 20.2k | : _data(data), | 314 | 20.2k | _options(options), | 315 | 20.2k | _parsed(false), | 316 | 20.2k | _num_elements(0), | 317 | 20.2k | _num_element_after_padding(0), | 318 | 20.2k | _size_of_element(0), | 319 | 20.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 31.2k | : _data(data), | 314 | 31.2k | _options(options), | 315 | 31.2k | _parsed(false), | 316 | 31.2k | _num_elements(0), | 317 | 31.2k | _num_element_after_padding(0), | 318 | 31.2k | _size_of_element(0), | 319 | 31.2k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 1.51k | : _data(data), | 314 | 1.51k | _options(options), | 315 | 1.51k | _parsed(false), | 316 | 1.51k | _num_elements(0), | 317 | 1.51k | _num_element_after_padding(0), | 318 | 1.51k | _size_of_element(0), | 319 | 1.51k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 58.9k | : _data(data), | 314 | 58.9k | _options(options), | 315 | 58.9k | _parsed(false), | 316 | 58.9k | _num_elements(0), | 317 | 58.9k | _num_element_after_padding(0), | 318 | 58.9k | _size_of_element(0), | 319 | 58.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 69.0k | : _data(data), | 314 | 69.0k | _options(options), | 315 | 69.0k | _parsed(false), | 316 | 69.0k | _num_elements(0), | 317 | 69.0k | _num_element_after_padding(0), | 318 | 69.0k | _size_of_element(0), | 319 | 69.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 2.38k | : _data(data), | 314 | 2.38k | _options(options), | 315 | 2.38k | _parsed(false), | 316 | 2.38k | _num_elements(0), | 317 | 2.38k | _num_element_after_padding(0), | 318 | 2.38k | _size_of_element(0), | 319 | 2.38k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 14.7k | : _data(data), | 314 | 14.7k | _options(options), | 315 | 14.7k | _parsed(false), | 316 | 14.7k | _num_elements(0), | 317 | 14.7k | _num_element_after_padding(0), | 318 | 14.7k | _size_of_element(0), | 319 | 14.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 1.38k | : _data(data), | 314 | 1.38k | _options(options), | 315 | 1.38k | _parsed(false), | 316 | 1.38k | _num_elements(0), | 317 | 1.38k | _num_element_after_padding(0), | 318 | 1.38k | _size_of_element(0), | 319 | 1.38k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 15.0k | : _data(data), | 314 | 15.0k | _options(options), | 315 | 15.0k | _parsed(false), | 316 | 15.0k | _num_elements(0), | 317 | 15.0k | _num_element_after_padding(0), | 318 | 15.0k | _size_of_element(0), | 319 | 15.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 38.3k | : _data(data), | 314 | 38.3k | _options(options), | 315 | 38.3k | _parsed(false), | 316 | 38.3k | _num_elements(0), | 317 | 38.3k | _num_element_after_padding(0), | 318 | 38.3k | _size_of_element(0), | 319 | 38.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 30.7k | : _data(data), | 314 | 30.7k | _options(options), | 315 | 30.7k | _parsed(false), | 316 | 30.7k | _num_elements(0), | 317 | 30.7k | _num_element_after_padding(0), | 318 | 30.7k | _size_of_element(0), | 319 | 30.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 1.74k | : _data(data), | 314 | 1.74k | _options(options), | 315 | 1.74k | _parsed(false), | 316 | 1.74k | _num_elements(0), | 317 | 1.74k | _num_element_after_padding(0), | 318 | 1.74k | _size_of_element(0), | 319 | 1.74k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 1.18k | : _data(data), | 314 | 1.18k | _options(options), | 315 | 1.18k | _parsed(false), | 316 | 1.18k | _num_elements(0), | 317 | 1.18k | _num_element_after_padding(0), | 318 | 1.18k | _size_of_element(0), | 319 | 1.18k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 313 | 1.14k | : _data(data), | 314 | 1.14k | _options(options), | 315 | 1.14k | _parsed(false), | 316 | 1.14k | _num_elements(0), | 317 | 1.14k | _num_element_after_padding(0), | 318 | 1.14k | _size_of_element(0), | 319 | 1.14k | _cur_index(0) {} |
|
320 | | |
321 | 1.36M | Status init() override { |
322 | 1.36M | CHECK(!_parsed); |
323 | 1.36M | size_t unused; |
324 | 1.36M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
325 | 1.36M | _num_element_after_padding, _size_of_element)); |
326 | | |
327 | 1.36M | if (_data.size != |
328 | 1.36M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
329 | 0 | std::stringstream ss; |
330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
333 | 0 | return Status::InternalError(ss.str()); |
334 | 0 | } |
335 | | |
336 | | // Currently, only the UINT32 block encoder supports expanding size: |
337 | 1.36M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
338 | 1.36M | _size_of_element != SIZE_OF_TYPE)) { |
339 | 0 | return Status::InternalError( |
340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
342 | 0 | } |
343 | 1.36M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
345 | 0 | _size_of_element, SIZE_OF_TYPE); |
346 | 0 | } |
347 | 1.36M | _parsed = true; |
348 | 1.36M | return Status::OK(); |
349 | 1.36M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 321 | 626k | Status init() override { | 322 | 626k | CHECK(!_parsed); | 323 | 626k | size_t unused; | 324 | 626k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 626k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 626k | if (_data.size != | 328 | 626k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 626k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 626k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 626k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 626k | _parsed = true; | 348 | 626k | return Status::OK(); | 349 | 626k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 321 | 107k | Status init() override { | 322 | 107k | CHECK(!_parsed); | 323 | 107k | size_t unused; | 324 | 107k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 107k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 107k | if (_data.size != | 328 | 107k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 107k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 107k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 107k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 107k | _parsed = true; | 348 | 107k | return Status::OK(); | 349 | 107k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 321 | 11.8k | Status init() override { | 322 | 11.8k | CHECK(!_parsed); | 323 | 11.8k | size_t unused; | 324 | 11.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 11.8k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 11.8k | if (_data.size != | 328 | 11.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 11.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 11.8k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 11.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 11.8k | _parsed = true; | 348 | 11.8k | return Status::OK(); | 349 | 11.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 321 | 214k | Status init() override { | 322 | 214k | CHECK(!_parsed); | 323 | 214k | size_t unused; | 324 | 214k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 214k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 214k | if (_data.size != | 328 | 214k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 214k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 214k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 214k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 214k | _parsed = true; | 348 | 214k | return Status::OK(); | 349 | 214k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 321 | 98.7k | Status init() override { | 322 | 98.7k | CHECK(!_parsed); | 323 | 98.7k | size_t unused; | 324 | 98.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 98.7k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 98.7k | if (_data.size != | 328 | 98.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 98.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 98.7k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 98.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 98.7k | _parsed = true; | 348 | 98.7k | return Status::OK(); | 349 | 98.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 321 | 16.4k | Status init() override { | 322 | 16.4k | CHECK(!_parsed); | 323 | 16.4k | size_t unused; | 324 | 16.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 16.4k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 16.4k | if (_data.size != | 328 | 16.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 16.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 16.4k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 16.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 16.4k | _parsed = true; | 348 | 16.4k | return Status::OK(); | 349 | 16.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 321 | 20.2k | Status init() override { | 322 | 20.2k | CHECK(!_parsed); | 323 | 20.2k | size_t unused; | 324 | 20.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 20.2k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 20.2k | if (_data.size != | 328 | 20.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 20.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 20.2k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 20.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 20.2k | _parsed = true; | 348 | 20.2k | return Status::OK(); | 349 | 20.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 321 | 31.2k | Status init() override { | 322 | 31.2k | CHECK(!_parsed); | 323 | 31.2k | size_t unused; | 324 | 31.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 31.2k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 31.2k | if (_data.size != | 328 | 31.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 31.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 31.2k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 31.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 31.2k | _parsed = true; | 348 | 31.2k | return Status::OK(); | 349 | 31.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 321 | 1.51k | Status init() override { | 322 | 1.51k | CHECK(!_parsed); | 323 | 1.51k | size_t unused; | 324 | 1.51k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 1.51k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 1.51k | if (_data.size != | 328 | 1.51k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 1.51k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 1.51k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 1.51k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 1.51k | _parsed = true; | 348 | 1.51k | return Status::OK(); | 349 | 1.51k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 321 | 58.9k | Status init() override { | 322 | 58.9k | CHECK(!_parsed); | 323 | 58.9k | size_t unused; | 324 | 58.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 58.9k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 58.9k | if (_data.size != | 328 | 58.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 58.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 58.9k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 58.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 58.9k | _parsed = true; | 348 | 58.9k | return Status::OK(); | 349 | 58.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 321 | 69.0k | Status init() override { | 322 | 69.0k | CHECK(!_parsed); | 323 | 69.0k | size_t unused; | 324 | 69.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 69.0k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 69.0k | if (_data.size != | 328 | 69.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 69.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 69.0k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 69.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 69.0k | _parsed = true; | 348 | 69.0k | return Status::OK(); | 349 | 69.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 321 | 2.38k | Status init() override { | 322 | 2.38k | CHECK(!_parsed); | 323 | 2.38k | size_t unused; | 324 | 2.38k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 2.38k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 2.38k | if (_data.size != | 328 | 2.38k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 2.38k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 2.38k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 2.38k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 2.38k | _parsed = true; | 348 | 2.38k | return Status::OK(); | 349 | 2.38k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 321 | 14.7k | Status init() override { | 322 | 14.7k | CHECK(!_parsed); | 323 | 14.7k | size_t unused; | 324 | 14.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 14.7k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 14.7k | if (_data.size != | 328 | 14.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 14.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 14.7k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 14.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 14.7k | _parsed = true; | 348 | 14.7k | return Status::OK(); | 349 | 14.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 321 | 1.38k | Status init() override { | 322 | 1.38k | CHECK(!_parsed); | 323 | 1.38k | size_t unused; | 324 | 1.38k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 1.38k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 1.38k | if (_data.size != | 328 | 1.38k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 1.38k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 1.38k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 1.38k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 1.38k | _parsed = true; | 348 | 1.38k | return Status::OK(); | 349 | 1.38k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 321 | 15.0k | Status init() override { | 322 | 15.0k | CHECK(!_parsed); | 323 | 15.0k | size_t unused; | 324 | 15.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 15.0k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 15.0k | if (_data.size != | 328 | 15.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 15.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 15.0k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 15.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 15.0k | _parsed = true; | 348 | 15.0k | return Status::OK(); | 349 | 15.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 321 | 38.3k | Status init() override { | 322 | 38.3k | CHECK(!_parsed); | 323 | 38.3k | size_t unused; | 324 | 38.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 38.3k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 38.3k | if (_data.size != | 328 | 38.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 38.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 38.3k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 38.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 38.3k | _parsed = true; | 348 | 38.3k | return Status::OK(); | 349 | 38.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 321 | 30.7k | Status init() override { | 322 | 30.7k | CHECK(!_parsed); | 323 | 30.7k | size_t unused; | 324 | 30.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 30.7k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 30.7k | if (_data.size != | 328 | 30.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 30.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 30.7k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 30.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 30.7k | _parsed = true; | 348 | 30.7k | return Status::OK(); | 349 | 30.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 321 | 1.74k | Status init() override { | 322 | 1.74k | CHECK(!_parsed); | 323 | 1.74k | size_t unused; | 324 | 1.74k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 1.74k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 1.74k | if (_data.size != | 328 | 1.74k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 1.74k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 1.74k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 1.74k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 1.74k | _parsed = true; | 348 | 1.74k | return Status::OK(); | 349 | 1.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 321 | 1.18k | Status init() override { | 322 | 1.18k | CHECK(!_parsed); | 323 | 1.18k | size_t unused; | 324 | 1.18k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 1.18k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 1.18k | if (_data.size != | 328 | 1.18k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 1.18k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 1.18k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 1.18k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 1.18k | _parsed = true; | 348 | 1.18k | return Status::OK(); | 349 | 1.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 321 | 1.14k | Status init() override { | 322 | 1.14k | CHECK(!_parsed); | 323 | 1.14k | size_t unused; | 324 | 1.14k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 325 | 1.14k | _num_element_after_padding, _size_of_element)); | 326 | | | 327 | 1.14k | if (_data.size != | 328 | 1.14k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 329 | 0 | std::stringstream ss; | 330 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 331 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 332 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 333 | 0 | return Status::InternalError(ss.str()); | 334 | 0 | } | 335 | | | 336 | | // Currently, only the UINT32 block encoder supports expanding size: | 337 | 1.14k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 338 | 1.14k | _size_of_element != SIZE_OF_TYPE)) { | 339 | 0 | return Status::InternalError( | 340 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 341 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 342 | 0 | } | 343 | 1.14k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 344 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 345 | 0 | _size_of_element, SIZE_OF_TYPE); | 346 | 0 | } | 347 | 1.14k | _parsed = true; | 348 | 1.14k | return Status::OK(); | 349 | 1.14k | } |
|
350 | | |
351 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
352 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
353 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
354 | | // code such as check if the count == 0, then skip seek, but there are other method such |
355 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
356 | | // == 0, because next batch will return empty in this method. |
357 | 2.03M | Status seek_to_position_in_page(size_t pos) override { |
358 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
359 | 2.03M | if (_num_elements == 0) [[unlikely]] { |
360 | 5.41k | if (pos != 0) { |
361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
363 | 0 | } |
364 | 5.41k | } |
365 | | |
366 | 2.03M | DCHECK_LE(pos, _num_elements); |
367 | 2.03M | _cur_index = pos; |
368 | 2.03M | return Status::OK(); |
369 | 2.03M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 1.23M | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 1.23M | if (_num_elements == 0) [[unlikely]] { | 360 | 1.57k | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 1.57k | } | 365 | | | 366 | 1.23M | DCHECK_LE(pos, _num_elements); | 367 | 1.23M | _cur_index = pos; | 368 | 1.23M | return Status::OK(); | 369 | 1.23M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 95.7k | Status seek_to_position_in_page(size_t pos) override { | 358 | 95.7k | DCHECK(_parsed) << "Must call init()"; | 359 | 95.7k | if (_num_elements == 0) [[unlikely]] { | 360 | 528 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 528 | } | 365 | | | 366 | 95.7k | DCHECK_LE(pos, _num_elements); | 367 | 95.7k | _cur_index = pos; | 368 | 95.7k | return Status::OK(); | 369 | 95.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 20.1k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 20.1k | if (_num_elements == 0) [[unlikely]] { | 360 | 1.35k | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 1.35k | } | 365 | | | 366 | 20.1k | DCHECK_LE(pos, _num_elements); | 367 | 20.1k | _cur_index = pos; | 368 | 20.1k | return Status::OK(); | 369 | 20.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 192k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 192k | if (_num_elements == 0) [[unlikely]] { | 360 | 720 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 720 | } | 365 | | | 366 | 192k | DCHECK_LE(pos, _num_elements); | 367 | 192k | _cur_index = pos; | 368 | 192k | return Status::OK(); | 369 | 192k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 14.4k | Status seek_to_position_in_page(size_t pos) override { | 358 | 14.4k | DCHECK(_parsed) << "Must call init()"; | 359 | 14.4k | if (_num_elements == 0) [[unlikely]] { | 360 | 0 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 0 | } | 365 | | | 366 | 14.4k | DCHECK_LE(pos, _num_elements); | 367 | 14.4k | _cur_index = pos; | 368 | 14.4k | return Status::OK(); | 369 | 14.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 11.0k | Status seek_to_position_in_page(size_t pos) override { | 358 | 11.0k | DCHECK(_parsed) << "Must call init()"; | 359 | 11.0k | if (_num_elements == 0) [[unlikely]] { | 360 | 0 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 0 | } | 365 | | | 366 | 11.0k | DCHECK_LE(pos, _num_elements); | 367 | 11.0k | _cur_index = pos; | 368 | 11.0k | return Status::OK(); | 369 | 11.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 17.2k | Status seek_to_position_in_page(size_t pos) override { | 358 | 17.2k | DCHECK(_parsed) << "Must call init()"; | 359 | 17.2k | if (_num_elements == 0) [[unlikely]] { | 360 | 0 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 0 | } | 365 | | | 366 | 17.2k | DCHECK_LE(pos, _num_elements); | 367 | 17.2k | _cur_index = pos; | 368 | 17.2k | return Status::OK(); | 369 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 13.2k | Status seek_to_position_in_page(size_t pos) override { | 358 | 13.2k | DCHECK(_parsed) << "Must call init()"; | 359 | 13.2k | if (_num_elements == 0) [[unlikely]] { | 360 | 5 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 5 | } | 365 | | | 366 | 13.2k | DCHECK_LE(pos, _num_elements); | 367 | 13.2k | _cur_index = pos; | 368 | 13.2k | return Status::OK(); | 369 | 13.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 11.1k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 11.1k | if (_num_elements == 0) [[unlikely]] { | 360 | 0 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 0 | } | 365 | | | 366 | 11.1k | DCHECK_LE(pos, _num_elements); | 367 | 11.1k | _cur_index = pos; | 368 | 11.1k | return Status::OK(); | 369 | 11.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 323k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 323k | if (_num_elements == 0) [[unlikely]] { | 360 | 778 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 778 | } | 365 | | | 366 | 323k | DCHECK_LE(pos, _num_elements); | 367 | 323k | _cur_index = pos; | 368 | 323k | return Status::OK(); | 369 | 323k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 61.9k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 61.9k | if (_num_elements == 0) [[unlikely]] { | 360 | 17 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 17 | } | 365 | | | 366 | 61.9k | DCHECK_LE(pos, _num_elements); | 367 | 61.9k | _cur_index = pos; | 368 | 61.9k | return Status::OK(); | 369 | 61.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 6.73k | Status seek_to_position_in_page(size_t pos) override { | 358 | 6.73k | DCHECK(_parsed) << "Must call init()"; | 359 | 6.73k | if (_num_elements == 0) [[unlikely]] { | 360 | 16 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 16 | } | 365 | | | 366 | 6.73k | DCHECK_LE(pos, _num_elements); | 367 | 6.73k | _cur_index = pos; | 368 | 6.73k | return Status::OK(); | 369 | 6.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 6.53k | Status seek_to_position_in_page(size_t pos) override { | 358 | 6.53k | DCHECK(_parsed) << "Must call init()"; | 359 | 6.53k | if (_num_elements == 0) [[unlikely]] { | 360 | 361 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 361 | } | 365 | | | 366 | 6.53k | DCHECK_LE(pos, _num_elements); | 367 | 6.53k | _cur_index = pos; | 368 | 6.53k | return Status::OK(); | 369 | 6.53k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 82 | Status seek_to_position_in_page(size_t pos) override { | 358 | 82 | DCHECK(_parsed) << "Must call init()"; | 359 | 82 | if (_num_elements == 0) [[unlikely]] { | 360 | 8 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 8 | } | 365 | | | 366 | 82 | DCHECK_LE(pos, _num_elements); | 367 | 82 | _cur_index = pos; | 368 | 82 | return Status::OK(); | 369 | 82 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 834 | Status seek_to_position_in_page(size_t pos) override { | 358 | 834 | DCHECK(_parsed) << "Must call init()"; | 359 | 834 | if (_num_elements == 0) [[unlikely]] { | 360 | 29 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 29 | } | 365 | | | 366 | 834 | DCHECK_LE(pos, _num_elements); | 367 | 834 | _cur_index = pos; | 368 | 834 | return Status::OK(); | 369 | 834 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 15.1k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 15.1k | if (_num_elements == 0) [[unlikely]] { | 360 | 12 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 12 | } | 365 | | | 366 | 15.1k | DCHECK_LE(pos, _num_elements); | 367 | 15.1k | _cur_index = pos; | 368 | 15.1k | return Status::OK(); | 369 | 15.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 11.5k | Status seek_to_position_in_page(size_t pos) override { | 358 | 11.5k | DCHECK(_parsed) << "Must call init()"; | 359 | 11.5k | if (_num_elements == 0) [[unlikely]] { | 360 | 10 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 10 | } | 365 | | | 366 | 11.5k | DCHECK_LE(pos, _num_elements); | 367 | 11.5k | _cur_index = pos; | 368 | 11.5k | return Status::OK(); | 369 | 11.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 1.94k | Status seek_to_position_in_page(size_t pos) override { | 358 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 359 | 1.94k | if (_num_elements == 0) [[unlikely]] { | 360 | 0 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 0 | } | 365 | | | 366 | 1.94k | DCHECK_LE(pos, _num_elements); | 367 | 1.94k | _cur_index = pos; | 368 | 1.94k | return Status::OK(); | 369 | 1.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 71 | Status seek_to_position_in_page(size_t pos) override { | 358 | 71 | DCHECK(_parsed) << "Must call init()"; | 359 | 71 | if (_num_elements == 0) [[unlikely]] { | 360 | 0 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 0 | } | 365 | | | 366 | 71 | DCHECK_LE(pos, _num_elements); | 367 | 71 | _cur_index = pos; | 368 | 71 | return Status::OK(); | 369 | 71 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 357 | 89 | Status seek_to_position_in_page(size_t pos) override { | 358 | 89 | DCHECK(_parsed) << "Must call init()"; | 359 | 89 | if (_num_elements == 0) [[unlikely]] { | 360 | 1 | if (pos != 0) { | 361 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 362 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 363 | 0 | } | 364 | 1 | } | 365 | | | 366 | 89 | DCHECK_LE(pos, _num_elements); | 367 | 89 | _cur_index = pos; | 368 | 89 | return Status::OK(); | 369 | 89 | } |
|
370 | | |
371 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
372 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
373 | |
|
374 | 0 | if (_num_elements == 0) { |
375 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
376 | 0 | } |
377 | | |
378 | 0 | size_t left = 0; |
379 | 0 | size_t right = _num_elements; |
380 | |
|
381 | 0 | void* mid_value = nullptr; |
382 | | |
383 | | // find the first value >= target. after loop, |
384 | | // - left == index of first value >= target when found |
385 | | // - left == _num_elements when not found (all values < target) |
386 | 0 | while (left < right) { |
387 | 0 | size_t mid = left + (right - left) / 2; |
388 | 0 | mid_value = get_data(mid); |
389 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
390 | 0 | left = mid + 1; |
391 | 0 | } else { |
392 | 0 | right = mid; |
393 | 0 | } |
394 | 0 | } |
395 | 0 | if (left >= _num_elements) { |
396 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
397 | 0 | } |
398 | 0 | void* find_value = get_data(left); |
399 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
400 | 0 | *exact_match = true; |
401 | 0 | } else { |
402 | 0 | *exact_match = false; |
403 | 0 | } |
404 | |
|
405 | 0 | _cur_index = left; |
406 | 0 | return Status::OK(); |
407 | 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_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_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_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 |
408 | | |
409 | | template <bool forward_index = true> |
410 | 2.31M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
411 | 2.31M | DCHECK(_parsed); |
412 | 2.31M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
413 | 0 | *n = 0; |
414 | 0 | return Status::OK(); |
415 | 0 | } |
416 | | |
417 | 2.31M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
418 | | |
419 | 2.31M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
420 | 2.31M | *n = max_fetch; |
421 | 2.31M | if constexpr (forward_index) { |
422 | 1.75M | _cur_index += max_fetch; |
423 | 1.75M | } |
424 | | |
425 | 2.31M | return Status::OK(); |
426 | 2.31M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 244k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 244k | DCHECK(_parsed); | 412 | 244k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 244k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 244k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 244k | *n = max_fetch; | 421 | 244k | if constexpr (forward_index) { | 422 | 244k | _cur_index += max_fetch; | 423 | 244k | } | 424 | | | 425 | 244k | return Status::OK(); | 426 | 244k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 388k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 388k | DCHECK(_parsed); | 412 | 388k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 388k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 388k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 388k | *n = max_fetch; | 421 | 388k | if constexpr (forward_index) { | 422 | 388k | _cur_index += max_fetch; | 423 | 388k | } | 424 | | | 425 | 388k | return Status::OK(); | 426 | 388k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 16.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 16.1k | DCHECK(_parsed); | 412 | 16.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 16.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 16.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 16.1k | *n = max_fetch; | 421 | 16.1k | if constexpr (forward_index) { | 422 | 16.1k | _cur_index += max_fetch; | 423 | 16.1k | } | 424 | | | 425 | 16.1k | return Status::OK(); | 426 | 16.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 141k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 141k | DCHECK(_parsed); | 412 | 141k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 141k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 141k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 141k | *n = max_fetch; | 421 | 141k | if constexpr (forward_index) { | 422 | 141k | _cur_index += max_fetch; | 423 | 141k | } | 424 | | | 425 | 141k | return Status::OK(); | 426 | 141k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 331k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 331k | DCHECK(_parsed); | 412 | 331k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 331k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 331k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 331k | *n = max_fetch; | 421 | 331k | if constexpr (forward_index) { | 422 | 331k | _cur_index += max_fetch; | 423 | 331k | } | 424 | | | 425 | 331k | return Status::OK(); | 426 | 331k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 551k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 551k | DCHECK(_parsed); | 412 | 551k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 551k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 551k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 551k | *n = max_fetch; | 421 | | if constexpr (forward_index) { | 422 | | _cur_index += max_fetch; | 423 | | } | 424 | | | 425 | 551k | return Status::OK(); | 426 | 551k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 19.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 19.4k | DCHECK(_parsed); | 412 | 19.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 19.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 19.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 19.4k | *n = max_fetch; | 421 | 19.4k | if constexpr (forward_index) { | 422 | 19.4k | _cur_index += max_fetch; | 423 | 19.4k | } | 424 | | | 425 | 19.4k | return Status::OK(); | 426 | 19.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 14.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 14.9k | DCHECK(_parsed); | 412 | 14.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 14.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 14.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 14.9k | *n = max_fetch; | 421 | 14.9k | if constexpr (forward_index) { | 422 | 14.9k | _cur_index += max_fetch; | 423 | 14.9k | } | 424 | | | 425 | 14.9k | return Status::OK(); | 426 | 14.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 23.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 23.3k | DCHECK(_parsed); | 412 | 23.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 23.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 23.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 23.3k | *n = max_fetch; | 421 | 23.3k | if constexpr (forward_index) { | 422 | 23.3k | _cur_index += max_fetch; | 423 | 23.3k | } | 424 | | | 425 | 23.3k | return Status::OK(); | 426 | 23.3k | } |
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 | 410 | 4.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 4.27k | DCHECK(_parsed); | 412 | 4.27k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 4.27k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 4.27k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 4.27k | *n = max_fetch; | 421 | 4.27k | if constexpr (forward_index) { | 422 | 4.27k | _cur_index += max_fetch; | 423 | 4.27k | } | 424 | | | 425 | 4.27k | return Status::OK(); | 426 | 4.27k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 415k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 415k | DCHECK(_parsed); | 412 | 415k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 415k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 415k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 415k | *n = max_fetch; | 421 | 415k | if constexpr (forward_index) { | 422 | 415k | _cur_index += max_fetch; | 423 | 415k | } | 424 | | | 425 | 415k | return Status::OK(); | 426 | 415k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 68.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 68.7k | DCHECK(_parsed); | 412 | 68.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 68.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 68.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 68.7k | *n = max_fetch; | 421 | 68.7k | if constexpr (forward_index) { | 422 | 68.7k | _cur_index += max_fetch; | 423 | 68.7k | } | 424 | | | 425 | 68.7k | return Status::OK(); | 426 | 68.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.31k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 1.31k | DCHECK(_parsed); | 412 | 1.31k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.31k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 1.31k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 1.31k | *n = max_fetch; | 421 | 1.31k | if constexpr (forward_index) { | 422 | 1.31k | _cur_index += max_fetch; | 423 | 1.31k | } | 424 | | | 425 | 1.31k | return Status::OK(); | 426 | 1.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 6.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 6.81k | DCHECK(_parsed); | 412 | 6.81k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 6.81k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 6.81k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 6.81k | *n = max_fetch; | 421 | 6.81k | if constexpr (forward_index) { | 422 | 6.81k | _cur_index += max_fetch; | 423 | 6.81k | } | 424 | | | 425 | 6.81k | return Status::OK(); | 426 | 6.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 1.27k | DCHECK(_parsed); | 412 | 1.27k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.27k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 1.27k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 1.27k | *n = max_fetch; | 421 | 1.27k | if constexpr (forward_index) { | 422 | 1.27k | _cur_index += max_fetch; | 423 | 1.27k | } | 424 | | | 425 | 1.27k | return Status::OK(); | 426 | 1.27k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 8.97k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 8.97k | DCHECK(_parsed); | 412 | 8.97k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 8.97k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 8.97k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 8.97k | *n = max_fetch; | 421 | 8.97k | if constexpr (forward_index) { | 422 | 8.97k | _cur_index += max_fetch; | 423 | 8.97k | } | 424 | | | 425 | 8.97k | return Status::OK(); | 426 | 8.97k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 41.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 41.2k | DCHECK(_parsed); | 412 | 41.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 41.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 41.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 41.2k | *n = max_fetch; | 421 | 41.2k | if constexpr (forward_index) { | 422 | 41.2k | _cur_index += max_fetch; | 423 | 41.2k | } | 424 | | | 425 | 41.2k | return Status::OK(); | 426 | 41.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 23.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 23.1k | DCHECK(_parsed); | 412 | 23.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 23.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 23.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 23.1k | *n = max_fetch; | 421 | 23.1k | if constexpr (forward_index) { | 422 | 23.1k | _cur_index += max_fetch; | 423 | 23.1k | } | 424 | | | 425 | 23.1k | return Status::OK(); | 426 | 23.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 3.15k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 3.15k | DCHECK(_parsed); | 412 | 3.15k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 3.15k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 3.15k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 3.15k | *n = max_fetch; | 421 | 3.15k | if constexpr (forward_index) { | 422 | 3.15k | _cur_index += max_fetch; | 423 | 3.15k | } | 424 | | | 425 | 3.15k | return Status::OK(); | 426 | 3.15k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 740 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 740 | DCHECK(_parsed); | 412 | 740 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 740 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 740 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 740 | *n = max_fetch; | 421 | 740 | if constexpr (forward_index) { | 422 | 740 | _cur_index += max_fetch; | 423 | 740 | } | 424 | | | 425 | 740 | return Status::OK(); | 426 | 740 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 3.24k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 411 | 3.24k | DCHECK(_parsed); | 412 | 3.24k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 3.24k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 418 | | | 419 | 3.24k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 420 | 3.24k | *n = max_fetch; | 421 | 3.24k | if constexpr (forward_index) { | 422 | 3.24k | _cur_index += max_fetch; | 423 | 3.24k | } | 424 | | | 425 | 3.24k | return Status::OK(); | 426 | 3.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
427 | | |
428 | 1.75M | 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 | 428 | 244k | 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 | 428 | 388k | 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 | 428 | 16.1k | 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 | 428 | 141k | 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 | 428 | 331k | 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_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 428 | 19.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 428 | 14.9k | 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 | 428 | 23.3k | 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 | 428 | 4.27k | 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 | 428 | 415k | 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 | 428 | 68.7k | 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 | 428 | 1.31k | 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 | 428 | 6.81k | 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 | 428 | 1.27k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 428 | 8.97k | 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 | 428 | 41.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 | 428 | 23.1k | 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 | 428 | 3.15k | 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 | 428 | 740 | 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 | 428 | 3.24k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
429 | | |
430 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
431 | 369k | MutableColumnPtr& dst) override { |
432 | 369k | DCHECK(_parsed); |
433 | 369k | if (*n == 0) [[unlikely]] { |
434 | 0 | *n = 0; |
435 | 0 | return Status::OK(); |
436 | 0 | } |
437 | | |
438 | 369k | auto total = *n; |
439 | 369k | auto read_count = 0; |
440 | 369k | _buffer.resize(total); |
441 | 85.2M | for (size_t i = 0; i < total; ++i) { |
442 | 84.8M | ordinal_t ord = rowids[i] - page_first_ordinal; |
443 | 84.8M | if (UNLIKELY(ord >= _num_elements)) { |
444 | 8.02k | break; |
445 | 8.02k | } |
446 | | |
447 | 84.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
448 | 84.8M | } |
449 | | |
450 | 369k | if (LIKELY(read_count > 0)) { |
451 | 369k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
452 | 369k | } |
453 | | |
454 | 369k | *n = read_count; |
455 | 369k | return Status::OK(); |
456 | 369k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 69.7k | MutableColumnPtr& dst) override { | 432 | 69.7k | DCHECK(_parsed); | 433 | 69.7k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 69.7k | auto total = *n; | 439 | 69.7k | auto read_count = 0; | 440 | 69.7k | _buffer.resize(total); | 441 | 11.3M | for (size_t i = 0; i < total; ++i) { | 442 | 11.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 11.3M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 39 | break; | 445 | 39 | } | 446 | | | 447 | 11.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 11.3M | } | 449 | | | 450 | 69.7k | if (LIKELY(read_count > 0)) { | 451 | 69.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 69.7k | } | 453 | | | 454 | 69.7k | *n = read_count; | 455 | 69.7k | return Status::OK(); | 456 | 69.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 31.7k | MutableColumnPtr& dst) override { | 432 | 31.7k | DCHECK(_parsed); | 433 | 31.7k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 31.7k | auto total = *n; | 439 | 31.7k | auto read_count = 0; | 440 | 31.7k | _buffer.resize(total); | 441 | 1.87M | for (size_t i = 0; i < total; ++i) { | 442 | 1.84M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 1.84M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 1.84M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 1.84M | } | 449 | | | 450 | 31.7k | if (LIKELY(read_count > 0)) { | 451 | 31.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 31.7k | } | 453 | | | 454 | 31.7k | *n = read_count; | 455 | 31.7k | return Status::OK(); | 456 | 31.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 5.92k | MutableColumnPtr& dst) override { | 432 | 5.92k | DCHECK(_parsed); | 433 | 5.92k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 5.92k | auto total = *n; | 439 | 5.92k | auto read_count = 0; | 440 | 5.92k | _buffer.resize(total); | 441 | 679k | for (size_t i = 0; i < total; ++i) { | 442 | 673k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 673k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 14 | break; | 445 | 14 | } | 446 | | | 447 | 673k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 673k | } | 449 | | | 450 | 5.92k | if (LIKELY(read_count > 0)) { | 451 | 5.92k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 5.92k | } | 453 | | | 454 | 5.92k | *n = read_count; | 455 | 5.92k | return Status::OK(); | 456 | 5.92k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 64.5k | MutableColumnPtr& dst) override { | 432 | 64.5k | DCHECK(_parsed); | 433 | 64.5k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 64.5k | auto total = *n; | 439 | 64.5k | auto read_count = 0; | 440 | 64.5k | _buffer.resize(total); | 441 | 17.2M | for (size_t i = 0; i < total; ++i) { | 442 | 17.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 17.1M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 975 | break; | 445 | 975 | } | 446 | | | 447 | 17.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 17.1M | } | 449 | | | 450 | 64.5k | if (LIKELY(read_count > 0)) { | 451 | 64.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 64.5k | } | 453 | | | 454 | 64.5k | *n = read_count; | 455 | 64.5k | return Status::OK(); | 456 | 64.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 36.5k | MutableColumnPtr& dst) override { | 432 | 36.5k | DCHECK(_parsed); | 433 | 36.5k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 36.5k | auto total = *n; | 439 | 36.5k | auto read_count = 0; | 440 | 36.5k | _buffer.resize(total); | 441 | 634k | for (size_t i = 0; i < total; ++i) { | 442 | 598k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 598k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 598k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 598k | } | 449 | | | 450 | 36.5k | if (LIKELY(read_count > 0)) { | 451 | 36.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 36.5k | } | 453 | | | 454 | 36.5k | *n = read_count; | 455 | 36.5k | return Status::OK(); | 456 | 36.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 8.15k | MutableColumnPtr& dst) override { | 432 | 8.15k | DCHECK(_parsed); | 433 | 8.15k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 8.15k | auto total = *n; | 439 | 8.15k | auto read_count = 0; | 440 | 8.15k | _buffer.resize(total); | 441 | 1.44M | for (size_t i = 0; i < total; ++i) { | 442 | 1.43M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 1.43M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 303 | break; | 445 | 303 | } | 446 | | | 447 | 1.43M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 1.43M | } | 449 | | | 450 | 8.15k | if (LIKELY(read_count > 0)) { | 451 | 8.15k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 8.15k | } | 453 | | | 454 | 8.15k | *n = read_count; | 455 | 8.15k | return Status::OK(); | 456 | 8.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 10.7k | MutableColumnPtr& dst) override { | 432 | 10.7k | DCHECK(_parsed); | 433 | 10.7k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 10.7k | auto total = *n; | 439 | 10.7k | auto read_count = 0; | 440 | 10.7k | _buffer.resize(total); | 441 | 1.16M | for (size_t i = 0; i < total; ++i) { | 442 | 1.15M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 1.15M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 30 | break; | 445 | 30 | } | 446 | | | 447 | 1.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 1.15M | } | 449 | | | 450 | 10.7k | if (LIKELY(read_count > 0)) { | 451 | 10.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 10.7k | } | 453 | | | 454 | 10.7k | *n = read_count; | 455 | 10.7k | return Status::OK(); | 456 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 16.0k | MutableColumnPtr& dst) override { | 432 | 16.0k | DCHECK(_parsed); | 433 | 16.0k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 16.0k | auto total = *n; | 439 | 16.0k | auto read_count = 0; | 440 | 16.0k | _buffer.resize(total); | 441 | 4.36M | for (size_t i = 0; i < total; ++i) { | 442 | 4.34M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 4.34M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 870 | break; | 445 | 870 | } | 446 | | | 447 | 4.34M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 4.34M | } | 449 | | | 450 | 16.0k | if (LIKELY(read_count > 0)) { | 451 | 16.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 16.0k | } | 453 | | | 454 | 16.0k | *n = read_count; | 455 | 16.0k | return Status::OK(); | 456 | 16.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 2.03k | MutableColumnPtr& dst) override { | 432 | 2.03k | DCHECK(_parsed); | 433 | 2.03k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 2.03k | auto total = *n; | 439 | 2.03k | auto read_count = 0; | 440 | 2.03k | _buffer.resize(total); | 441 | 516k | for (size_t i = 0; i < total; ++i) { | 442 | 514k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 514k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 13 | break; | 445 | 13 | } | 446 | | | 447 | 514k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 514k | } | 449 | | | 450 | 2.03k | if (LIKELY(read_count > 0)) { | 451 | 2.03k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 2.03k | } | 453 | | | 454 | 2.03k | *n = read_count; | 455 | 2.03k | return Status::OK(); | 456 | 2.03k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 30.2k | MutableColumnPtr& dst) override { | 432 | 30.2k | DCHECK(_parsed); | 433 | 30.2k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 30.2k | auto total = *n; | 439 | 30.2k | auto read_count = 0; | 440 | 30.2k | _buffer.resize(total); | 441 | 7.39M | for (size_t i = 0; i < total; ++i) { | 442 | 7.36M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 7.36M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 688 | break; | 445 | 688 | } | 446 | | | 447 | 7.36M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 7.36M | } | 449 | | | 450 | 30.2k | if (LIKELY(read_count > 0)) { | 451 | 30.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 30.2k | } | 453 | | | 454 | 30.2k | *n = read_count; | 455 | 30.2k | return Status::OK(); | 456 | 30.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 33.0k | MutableColumnPtr& dst) override { | 432 | 33.0k | DCHECK(_parsed); | 433 | 33.0k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 33.0k | auto total = *n; | 439 | 33.0k | auto read_count = 0; | 440 | 33.0k | _buffer.resize(total); | 441 | 9.73M | for (size_t i = 0; i < total; ++i) { | 442 | 9.70M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 9.70M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 100 | break; | 445 | 100 | } | 446 | | | 447 | 9.70M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 9.70M | } | 449 | | | 450 | 33.0k | if (LIKELY(read_count > 0)) { | 451 | 33.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 33.0k | } | 453 | | | 454 | 33.0k | *n = read_count; | 455 | 33.0k | return Status::OK(); | 456 | 33.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 2.33k | MutableColumnPtr& dst) override { | 432 | 2.33k | DCHECK(_parsed); | 433 | 2.33k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 2.33k | auto total = *n; | 439 | 2.33k | auto read_count = 0; | 440 | 2.33k | _buffer.resize(total); | 441 | 537k | for (size_t i = 0; i < total; ++i) { | 442 | 535k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 535k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 85 | break; | 445 | 85 | } | 446 | | | 447 | 535k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 535k | } | 449 | | | 450 | 2.33k | if (LIKELY(read_count > 0)) { | 451 | 2.33k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 2.33k | } | 453 | | | 454 | 2.33k | *n = read_count; | 455 | 2.33k | return Status::OK(); | 456 | 2.33k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 11.7k | MutableColumnPtr& dst) override { | 432 | 11.7k | DCHECK(_parsed); | 433 | 11.7k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 11.7k | auto total = *n; | 439 | 11.7k | auto read_count = 0; | 440 | 11.7k | _buffer.resize(total); | 441 | 24.9k | for (size_t i = 0; i < total; ++i) { | 442 | 13.2k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 13.2k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 13.2k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 13.2k | } | 449 | | | 450 | 11.7k | if (LIKELY(read_count > 0)) { | 451 | 11.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 11.7k | } | 453 | | | 454 | 11.7k | *n = read_count; | 455 | 11.7k | return Status::OK(); | 456 | 11.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 159 | MutableColumnPtr& dst) override { | 432 | 159 | DCHECK(_parsed); | 433 | 159 | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 159 | auto total = *n; | 439 | 159 | auto read_count = 0; | 440 | 159 | _buffer.resize(total); | 441 | 326 | for (size_t i = 0; i < total; ++i) { | 442 | 167 | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 167 | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 167 | } | 449 | | | 450 | 159 | if (LIKELY(read_count > 0)) { | 451 | 159 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 159 | } | 453 | | | 454 | 159 | *n = read_count; | 455 | 159 | return Status::OK(); | 456 | 159 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 4.64k | MutableColumnPtr& dst) override { | 432 | 4.64k | DCHECK(_parsed); | 433 | 4.64k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 4.64k | auto total = *n; | 439 | 4.64k | auto read_count = 0; | 440 | 4.64k | _buffer.resize(total); | 441 | 19.2k | for (size_t i = 0; i < total; ++i) { | 442 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 14.6k | } | 449 | | | 450 | 4.64k | if (LIKELY(read_count > 0)) { | 451 | 4.64k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 4.64k | } | 453 | | | 454 | 4.64k | *n = read_count; | 455 | 4.64k | return Status::OK(); | 456 | 4.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 25.1k | MutableColumnPtr& dst) override { | 432 | 25.1k | DCHECK(_parsed); | 433 | 25.1k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 25.1k | auto total = *n; | 439 | 25.1k | auto read_count = 0; | 440 | 25.1k | _buffer.resize(total); | 441 | 19.1M | for (size_t i = 0; i < total; ++i) { | 442 | 19.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 19.1M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 4.46k | break; | 445 | 4.46k | } | 446 | | | 447 | 19.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 19.1M | } | 449 | | | 450 | 25.1k | if (LIKELY(read_count > 0)) { | 451 | 25.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 25.1k | } | 453 | | | 454 | 25.1k | *n = read_count; | 455 | 25.1k | return Status::OK(); | 456 | 25.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 15.2k | MutableColumnPtr& dst) override { | 432 | 15.2k | DCHECK(_parsed); | 433 | 15.2k | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 15.2k | auto total = *n; | 439 | 15.2k | auto read_count = 0; | 440 | 15.2k | _buffer.resize(total); | 441 | 9.07M | for (size_t i = 0; i < total; ++i) { | 442 | 9.05M | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 9.05M | if (UNLIKELY(ord >= _num_elements)) { | 444 | 452 | break; | 445 | 452 | } | 446 | | | 447 | 9.05M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 9.05M | } | 449 | | | 450 | 15.2k | if (LIKELY(read_count > 0)) { | 451 | 15.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 15.2k | } | 453 | | | 454 | 15.2k | *n = read_count; | 455 | 15.2k | return Status::OK(); | 456 | 15.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 964 | MutableColumnPtr& dst) override { | 432 | 964 | DCHECK(_parsed); | 433 | 964 | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 964 | auto total = *n; | 439 | 964 | auto read_count = 0; | 440 | 964 | _buffer.resize(total); | 441 | 2.78k | for (size_t i = 0; i < total; ++i) { | 442 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 1.81k | } | 449 | | | 450 | 964 | if (LIKELY(read_count > 0)) { | 451 | 964 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 964 | } | 453 | | | 454 | 964 | *n = read_count; | 455 | 964 | return Status::OK(); | 456 | 964 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 472 | MutableColumnPtr& dst) override { | 432 | 472 | DCHECK(_parsed); | 433 | 472 | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 472 | auto total = *n; | 439 | 472 | auto read_count = 0; | 440 | 472 | _buffer.resize(total); | 441 | 1.18k | for (size_t i = 0; i < total; ++i) { | 442 | 716 | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 716 | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 716 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 716 | } | 449 | | | 450 | 472 | if (LIKELY(read_count > 0)) { | 451 | 471 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 471 | } | 453 | | | 454 | 472 | *n = read_count; | 455 | 472 | return Status::OK(); | 456 | 472 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 431 | 407 | MutableColumnPtr& dst) override { | 432 | 407 | DCHECK(_parsed); | 433 | 407 | if (*n == 0) [[unlikely]] { | 434 | 0 | *n = 0; | 435 | 0 | return Status::OK(); | 436 | 0 | } | 437 | | | 438 | 407 | auto total = *n; | 439 | 407 | auto read_count = 0; | 440 | 407 | _buffer.resize(total); | 441 | 1.32k | for (size_t i = 0; i < total; ++i) { | 442 | 922 | ordinal_t ord = rowids[i] - page_first_ordinal; | 443 | 922 | if (UNLIKELY(ord >= _num_elements)) { | 444 | 0 | break; | 445 | 0 | } | 446 | | | 447 | 922 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 448 | 922 | } | 449 | | | 450 | 408 | if (LIKELY(read_count > 0)) { | 451 | 408 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 452 | 408 | } | 453 | | | 454 | 407 | *n = read_count; | 455 | 407 | return Status::OK(); | 456 | 407 | } |
|
457 | | |
458 | 551k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
459 | 551k | return next_batch<false>(n, dst); |
460 | 551k | } 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 _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 458 | 551k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 459 | 551k | return next_batch<false>(n, dst); | 460 | 551k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_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_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 |
461 | | |
462 | 3 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 462 | 3 | 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_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv 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_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 |
463 | | |
464 | 3.08M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 464 | 2.78M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 464 | 15.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 464 | 14.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 464 | 160k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 464 | 5.03k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 464 | 14.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 464 | 9.98k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 464 | 6.89k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 464 | 20.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 464 | 33.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 464 | 4.94k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 464 | 992 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 464 | 13 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 464 | 3.31k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 464 | 782 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 464 | 5.85k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 464 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 464 | 47 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 464 | 104 | size_t current_index() const override { return _cur_index; } |
|
465 | | |
466 | 88.4M | char* get_data(size_t index) const { |
467 | 88.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
468 | 88.4M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 466 | 12.8M | char* get_data(size_t index) const { | 467 | 12.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 12.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 466 | 2.23M | char* get_data(size_t index) const { | 467 | 2.23M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 2.23M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 466 | 689k | char* get_data(size_t index) const { | 467 | 689k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 689k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 466 | 17.3M | char* get_data(size_t index) const { | 467 | 17.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 17.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 466 | 1.48M | char* get_data(size_t index) const { | 467 | 1.48M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 1.48M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 466 | 1.45M | char* get_data(size_t index) const { | 467 | 1.45M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 1.45M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 466 | 1.16M | char* get_data(size_t index) const { | 467 | 1.16M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 1.16M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 466 | 4.37M | char* get_data(size_t index) const { | 467 | 4.37M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 4.37M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 466 | 518k | char* get_data(size_t index) const { | 467 | 518k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 518k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 466 | 7.77M | char* get_data(size_t index) const { | 467 | 7.77M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 7.77M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 466 | 9.77M | char* get_data(size_t index) const { | 467 | 9.77M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 9.77M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 466 | 536k | char* get_data(size_t index) const { | 467 | 536k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 536k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 466 | 20.0k | char* get_data(size_t index) const { | 467 | 20.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 20.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 466 | 1.44k | char* get_data(size_t index) const { | 467 | 1.44k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 1.44k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 466 | 23.5k | char* get_data(size_t index) const { | 467 | 23.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 23.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 466 | 19.1M | char* get_data(size_t index) const { | 467 | 19.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 19.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 466 | 9.07M | char* get_data(size_t index) const { | 467 | 9.07M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 9.07M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 466 | 4.97k | char* get_data(size_t index) const { | 467 | 4.97k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 4.97k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 466 | 1.45k | char* get_data(size_t index) const { | 467 | 1.45k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 1.45k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 466 | 4.17k | char* get_data(size_t index) const { | 467 | 4.17k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 468 | 4.17k | } |
|
469 | | |
470 | | private: |
471 | | void _copy_next_values(size_t n, void* data) { |
472 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
473 | | } |
474 | | |
475 | | using CppType = typename TypeTraits<Type>::CppType; |
476 | | |
477 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
478 | | |
479 | | Slice _data; |
480 | | PageDecoderOptions _options; |
481 | | bool _parsed; |
482 | | size_t _num_elements; |
483 | | size_t _num_element_after_padding; |
484 | | |
485 | | int _size_of_element; |
486 | | size_t _cur_index; |
487 | | |
488 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
489 | | |
490 | | friend class BinaryDictPageDecoder; |
491 | | }; |
492 | | |
493 | | } // namespace segment_v2 |
494 | | } // namespace doris |