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 | | #include "common/compile_check_begin.h" |
50 | | |
51 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
52 | | |
53 | | void warn_with_bitshuffle_error(int64_t val); |
54 | | |
55 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
56 | | // size type blocks with lz4. |
57 | | // |
58 | | // The page format is as follows: |
59 | | // |
60 | | // 1. Header: (16 bytes total) |
61 | | // |
62 | | // <num_elements> [32-bit] |
63 | | // The number of elements encoded in the page. |
64 | | // |
65 | | // <compressed_size> [32-bit] |
66 | | // The post-compression size of the page, including this header. |
67 | | // |
68 | | // <padded_num_elements> [32-bit] |
69 | | // Padding is needed to meet the requirements of the bitshuffle |
70 | | // library such that the input/output is a multiple of 8. Some |
71 | | // ignored elements are appended to the end of the page if necessary |
72 | | // to meet this requirement. |
73 | | // |
74 | | // This header field is the post-padding element count. |
75 | | // |
76 | | // <elem_size_bytes> [32-bit] |
77 | | // The size of the elements, in bytes, as actually encoded. In the |
78 | | // case that all of the data in a page can fit into a smaller |
79 | | // integer type, then we may choose to encode that smaller type |
80 | | // to save CPU costs. |
81 | | // |
82 | | // This is currently only implemented in the UINT32 page type. |
83 | | // |
84 | | // NOTE: all on-disk ints are encoded little-endian |
85 | | // |
86 | | // 2. Element data |
87 | | // |
88 | | // The header is followed by the bitshuffle-compressed element data. |
89 | | // |
90 | | template <FieldType Type> |
91 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
92 | | public: |
93 | | using Self = BitshufflePageBuilder<Type>; |
94 | | friend class PageBuilderHelper<Self>; |
95 | | |
96 | 701k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 367k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 40.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 7.64k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 48.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 71.8k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 9.50k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 12.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 14.6k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 187 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 36.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 44.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 285 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.07k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 190 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.66k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 16.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.15k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 781 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 694 | Status init() override { return reset(); } |
|
97 | | |
98 | 166M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 165M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 41.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 10.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 361k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 72.3k | 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 | 98 | 9.41k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 12.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 16.8k | 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 | 98 | 195 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 111k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 86.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 339 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 6.91k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 98 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.25k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 32.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 24.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 28.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 5.63k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.55M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.55M | return add_internal<false>(vals, count); |
102 | 1.55M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 728k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 728k | return add_internal<false>(vals, count); | 102 | 728k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 41.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 41.4k | return add_internal<false>(vals, count); | 102 | 41.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 10.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 10.3k | return add_internal<false>(vals, count); | 102 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 361k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 361k | return add_internal<false>(vals, count); | 102 | 361k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 72.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 72.3k | return add_internal<false>(vals, count); | 102 | 72.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 9.41k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 9.41k | return add_internal<false>(vals, count); | 102 | 9.41k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 12.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 12.0k | return add_internal<false>(vals, count); | 102 | 12.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 16.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.8k | return add_internal<false>(vals, count); | 102 | 16.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 195 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 195 | return add_internal<false>(vals, count); | 102 | 195 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 111k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 111k | return add_internal<false>(vals, count); | 102 | 111k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 86.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 86.3k | return add_internal<false>(vals, count); | 102 | 86.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 339 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 339 | return add_internal<false>(vals, count); | 102 | 339 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 6.91k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 6.91k | return add_internal<false>(vals, count); | 102 | 6.91k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 98 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 98 | return add_internal<false>(vals, count); | 102 | 98 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.25k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.25k | return add_internal<false>(vals, count); | 102 | 5.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 32.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 32.0k | return add_internal<false>(vals, count); | 102 | 32.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 24.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 24.8k | return add_internal<false>(vals, count); | 102 | 24.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.37k | return add_internal<false>(vals, count); | 102 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 28.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 28.2k | return add_internal<false>(vals, count); | 102 | 28.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 5.63k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.63k | return add_internal<false>(vals, count); | 102 | 5.63k | } |
|
103 | | |
104 | 165M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 165M | return add_internal<true>(vals, count); |
106 | 165M | } |
107 | | |
108 | | template <bool single> |
109 | 165M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 165M | DCHECK(!_finished); |
111 | 165M | if (_remain_element_capacity == 0) { |
112 | 0 | *num_written = 0; |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | | |
116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
117 | | // the row count of a single men tbl could be very large. |
118 | | // a real log: |
119 | | /* |
120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
121 | | */ |
122 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
126 | 165M | uint32_t to_add = cast_set<UInt32>( |
127 | 165M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
129 | 165M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 165M | size_t orig_size = _data.size(); |
131 | | // This may need a large memory, should return error if could not allocated |
132 | | // successfully, to avoid BE OOM. |
133 | 165M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 166M | _count += to_add; |
135 | 166M | _remain_element_capacity -= to_add; |
136 | 166M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 166M | *num_written = to_add; |
139 | 166M | if constexpr (single) { |
140 | | if constexpr (SIZE_OF_TYPE == 1) { |
141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; |
142 | | return Status::OK(); |
143 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
145 | | *reinterpret_cast<const uint16_t*>(vals); |
146 | | return Status::OK(); |
147 | 164M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 164M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 164M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 164M | return Status::OK(); |
151 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
153 | | *reinterpret_cast<const uint64_t*>(vals); |
154 | | return Status::OK(); |
155 | | } |
156 | 164M | } |
157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
159 | 166M | return Status::OK(); |
160 | 165M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 728k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 728k | DCHECK(!_finished); | 111 | 728k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 728k | uint32_t to_add = cast_set<UInt32>( | 127 | 728k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 728k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 728k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 728k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 728k | _count += to_add; | 135 | 728k | _remain_element_capacity -= to_add; | 136 | 728k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 728k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 728k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 728k | return Status::OK(); | 160 | 728k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 164M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 164M | DCHECK(!_finished); | 111 | 164M | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 164M | uint32_t to_add = cast_set<UInt32>( | 127 | 164M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 164M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 164M | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 164M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 164M | _count += to_add; | 135 | 164M | _remain_element_capacity -= to_add; | 136 | 164M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 164M | *num_written = to_add; | 139 | 164M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | 164M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 164M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 164M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 164M | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | 164M | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 164M | return Status::OK(); | 160 | 164M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 41.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 41.4k | DCHECK(!_finished); | 111 | 41.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 41.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 41.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 41.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 41.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 41.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 41.4k | _count += to_add; | 135 | 41.4k | _remain_element_capacity -= to_add; | 136 | 41.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 41.4k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 41.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 41.4k | return Status::OK(); | 160 | 41.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 10.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 10.3k | DCHECK(!_finished); | 111 | 10.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 10.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 10.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 10.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 10.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 10.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 10.3k | _count += to_add; | 135 | 10.3k | _remain_element_capacity -= to_add; | 136 | 10.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 10.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 10.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 10.3k | return Status::OK(); | 160 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 361k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 361k | DCHECK(!_finished); | 111 | 361k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 361k | uint32_t to_add = cast_set<UInt32>( | 127 | 361k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 361k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 361k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 361k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 361k | _count += to_add; | 135 | 361k | _remain_element_capacity -= to_add; | 136 | 361k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 361k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 361k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 361k | return Status::OK(); | 160 | 361k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 72.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 72.3k | DCHECK(!_finished); | 111 | 72.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 72.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 72.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 72.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 72.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 72.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 72.3k | _count += to_add; | 135 | 72.3k | _remain_element_capacity -= to_add; | 136 | 72.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 72.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 72.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 72.3k | return Status::OK(); | 160 | 72.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 9.41k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 9.41k | DCHECK(!_finished); | 111 | 9.41k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 9.41k | uint32_t to_add = cast_set<UInt32>( | 127 | 9.41k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 9.41k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 9.41k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 9.41k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 9.41k | _count += to_add; | 135 | 9.41k | _remain_element_capacity -= to_add; | 136 | 9.41k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 9.41k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 9.41k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 9.41k | return Status::OK(); | 160 | 9.41k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 12.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 12.0k | DCHECK(!_finished); | 111 | 12.0k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 12.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 12.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 12.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 12.0k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 12.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 12.0k | _count += to_add; | 135 | 12.0k | _remain_element_capacity -= to_add; | 136 | 12.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 12.0k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 12.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 12.0k | return Status::OK(); | 160 | 12.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.8k | DCHECK(!_finished); | 111 | 16.8k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 16.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 16.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.8k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 16.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.8k | _count += to_add; | 135 | 16.8k | _remain_element_capacity -= to_add; | 136 | 16.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.8k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 16.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.8k | return Status::OK(); | 160 | 16.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 195 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 195 | DCHECK(!_finished); | 111 | 195 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 195 | uint32_t to_add = cast_set<UInt32>( | 127 | 195 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 195 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 195 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 195 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 195 | _count += to_add; | 135 | 195 | _remain_element_capacity -= to_add; | 136 | 195 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 195 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 195 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 195 | return Status::OK(); | 160 | 195 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 111k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 111k | DCHECK(!_finished); | 111 | 111k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 111k | uint32_t to_add = cast_set<UInt32>( | 127 | 111k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 111k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 111k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 111k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 111k | _count += to_add; | 135 | 111k | _remain_element_capacity -= to_add; | 136 | 111k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 111k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 111k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 111k | return Status::OK(); | 160 | 111k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 86.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 86.3k | DCHECK(!_finished); | 111 | 86.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 86.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 86.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 86.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 86.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 86.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 86.3k | _count += to_add; | 135 | 86.3k | _remain_element_capacity -= to_add; | 136 | 86.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 86.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 86.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 86.3k | return Status::OK(); | 160 | 86.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 339 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 339 | DCHECK(!_finished); | 111 | 339 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 339 | uint32_t to_add = cast_set<UInt32>( | 127 | 339 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 339 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 339 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 339 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 339 | _count += to_add; | 135 | 339 | _remain_element_capacity -= to_add; | 136 | 339 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 339 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 339 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 339 | return Status::OK(); | 160 | 339 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 6.91k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 6.91k | DCHECK(!_finished); | 111 | 6.91k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 6.91k | uint32_t to_add = cast_set<UInt32>( | 127 | 6.91k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 6.91k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 6.91k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 6.91k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 6.91k | _count += to_add; | 135 | 6.91k | _remain_element_capacity -= to_add; | 136 | 6.91k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 6.91k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 6.91k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 6.91k | return Status::OK(); | 160 | 6.91k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 98 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 98 | DCHECK(!_finished); | 111 | 98 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 98 | uint32_t to_add = cast_set<UInt32>( | 127 | 98 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 98 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 98 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 98 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 98 | _count += to_add; | 135 | 98 | _remain_element_capacity -= to_add; | 136 | 98 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 98 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 98 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 98 | return Status::OK(); | 160 | 98 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.25k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.25k | DCHECK(!_finished); | 111 | 5.25k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 5.25k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.25k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 5.25k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.25k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 5.25k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.25k | _count += to_add; | 135 | 5.25k | _remain_element_capacity -= to_add; | 136 | 5.25k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.25k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 5.25k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.25k | return Status::OK(); | 160 | 5.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 32.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 32.0k | DCHECK(!_finished); | 111 | 32.0k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 32.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 32.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 32.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 32.0k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 32.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 32.0k | _count += to_add; | 135 | 32.0k | _remain_element_capacity -= to_add; | 136 | 32.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 32.0k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 32.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 32.0k | return Status::OK(); | 160 | 32.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 24.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 24.8k | DCHECK(!_finished); | 111 | 24.8k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 24.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 24.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 24.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 24.8k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 24.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 24.8k | _count += to_add; | 135 | 24.8k | _remain_element_capacity -= to_add; | 136 | 24.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 24.8k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 24.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 24.8k | return Status::OK(); | 160 | 24.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.37k | DCHECK(!_finished); | 111 | 1.37k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.37k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.37k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.37k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.37k | _count += to_add; | 135 | 1.37k | _remain_element_capacity -= to_add; | 136 | 1.37k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.37k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.37k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.37k | return Status::OK(); | 160 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 28.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 28.2k | DCHECK(!_finished); | 111 | 28.2k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 28.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 28.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 28.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 28.2k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 28.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 28.2k | _count += to_add; | 135 | 28.2k | _remain_element_capacity -= to_add; | 136 | 28.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 28.2k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 28.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 28.2k | return Status::OK(); | 160 | 28.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.63k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.63k | DCHECK(!_finished); | 111 | 5.63k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 5.63k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.63k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 5.63k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.63k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 5.63k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.63k | _count += to_add; | 135 | 5.63k | _remain_element_capacity -= to_add; | 136 | 5.63k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.63k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 5.63k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.63k | return Status::OK(); | 160 | 5.63k | } |
|
161 | | |
162 | 692k | Status finish(OwnedSlice* slice) override { |
163 | 692k | if (_count > 0) { |
164 | 646k | _first_value = cell(0); |
165 | 646k | _last_value = cell(_count - 1); |
166 | 646k | } |
167 | 692k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 692k | return Status::OK(); |
169 | 692k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 351k | Status finish(OwnedSlice* slice) override { | 163 | 351k | if (_count > 0) { | 164 | 319k | _first_value = cell(0); | 165 | 319k | _last_value = cell(_count - 1); | 166 | 319k | } | 167 | 351k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 351k | return Status::OK(); | 169 | 351k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 39.6k | Status finish(OwnedSlice* slice) override { | 163 | 39.6k | if (_count > 0) { | 164 | 39.1k | _first_value = cell(0); | 165 | 39.1k | _last_value = cell(_count - 1); | 166 | 39.1k | } | 167 | 39.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 39.6k | return Status::OK(); | 169 | 39.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.29k | Status finish(OwnedSlice* slice) override { | 163 | 7.29k | if (_count > 0) { | 164 | 7.07k | _first_value = cell(0); | 165 | 7.07k | _last_value = cell(_count - 1); | 166 | 7.07k | } | 167 | 7.29k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.29k | return Status::OK(); | 169 | 7.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 50.0k | Status finish(OwnedSlice* slice) override { | 163 | 50.0k | if (_count > 0) { | 164 | 48.8k | _first_value = cell(0); | 165 | 48.8k | _last_value = cell(_count - 1); | 166 | 48.8k | } | 167 | 50.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 50.1k | return Status::OK(); | 169 | 50.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 71.7k | Status finish(OwnedSlice* slice) override { | 163 | 71.7k | if (_count > 0) { | 164 | 71.7k | _first_value = cell(0); | 165 | 71.7k | _last_value = cell(_count - 1); | 166 | 71.7k | } | 167 | 71.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 71.7k | return Status::OK(); | 169 | 71.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.36k | Status finish(OwnedSlice* slice) override { | 163 | 9.36k | if (_count > 0) { | 164 | 8.97k | _first_value = cell(0); | 165 | 8.97k | _last_value = cell(_count - 1); | 166 | 8.97k | } | 167 | 9.36k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.36k | return Status::OK(); | 169 | 9.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.4k | Status finish(OwnedSlice* slice) override { | 163 | 11.4k | if (_count > 0) { | 164 | 11.0k | _first_value = cell(0); | 165 | 11.0k | _last_value = cell(_count - 1); | 166 | 11.0k | } | 167 | 11.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 11.4k | return Status::OK(); | 169 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.5k | Status finish(OwnedSlice* slice) override { | 163 | 14.5k | if (_count > 0) { | 164 | 14.1k | _first_value = cell(0); | 165 | 14.1k | _last_value = cell(_count - 1); | 166 | 14.1k | } | 167 | 14.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 14.5k | return Status::OK(); | 169 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 199 | Status finish(OwnedSlice* slice) override { | 163 | 199 | if (_count > 0) { | 164 | 194 | _first_value = cell(0); | 165 | 194 | _last_value = cell(_count - 1); | 166 | 194 | } | 167 | 199 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 199 | return Status::OK(); | 169 | 199 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.4k | Status finish(OwnedSlice* slice) override { | 163 | 37.4k | if (_count > 0) { | 164 | 36.3k | _first_value = cell(0); | 165 | 36.3k | _last_value = cell(_count - 1); | 166 | 36.3k | } | 167 | 37.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 37.4k | return Status::OK(); | 169 | 37.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.2k | Status finish(OwnedSlice* slice) override { | 163 | 43.2k | if (_count > 0) { | 164 | 41.7k | _first_value = cell(0); | 165 | 41.7k | _last_value = cell(_count - 1); | 166 | 41.7k | } | 167 | 43.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 43.2k | return Status::OK(); | 169 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 439 | Status finish(OwnedSlice* slice) override { | 163 | 439 | if (_count > 0) { | 164 | 339 | _first_value = cell(0); | 165 | 339 | _last_value = cell(_count - 1); | 166 | 339 | } | 167 | 439 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 439 | return Status::OK(); | 169 | 439 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.10k | Status finish(OwnedSlice* slice) override { | 163 | 7.10k | if (_count > 0) { | 164 | 6.91k | _first_value = cell(0); | 165 | 6.91k | _last_value = cell(_count - 1); | 166 | 6.91k | } | 167 | 7.10k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.10k | return Status::OK(); | 169 | 7.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 106 | Status finish(OwnedSlice* slice) override { | 163 | 106 | if (_count > 0) { | 164 | 98 | _first_value = cell(0); | 165 | 98 | _last_value = cell(_count - 1); | 166 | 98 | } | 167 | 106 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 106 | return Status::OK(); | 169 | 106 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.66k | Status finish(OwnedSlice* slice) override { | 163 | 9.66k | if (_count > 0) { | 164 | 4.73k | _first_value = cell(0); | 165 | 4.73k | _last_value = cell(_count - 1); | 166 | 4.73k | } | 167 | 9.66k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.66k | return Status::OK(); | 169 | 9.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.2k | Status finish(OwnedSlice* slice) override { | 163 | 19.2k | if (_count > 0) { | 164 | 18.2k | _first_value = cell(0); | 165 | 18.2k | _last_value = cell(_count - 1); | 166 | 18.2k | } | 167 | 19.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 19.2k | return Status::OK(); | 169 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 16.4k | Status finish(OwnedSlice* slice) override { | 163 | 16.4k | if (_count > 0) { | 164 | 15.8k | _first_value = cell(0); | 165 | 15.8k | _last_value = cell(_count - 1); | 166 | 15.8k | } | 167 | 16.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 16.4k | return Status::OK(); | 169 | 16.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.06k | Status finish(OwnedSlice* slice) override { | 163 | 1.06k | if (_count > 0) { | 164 | 1.00k | _first_value = cell(0); | 165 | 1.00k | _last_value = cell(_count - 1); | 166 | 1.00k | } | 167 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 1.06k | return Status::OK(); | 169 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 698 | Status finish(OwnedSlice* slice) override { | 163 | 698 | if (_count > 0) { | 164 | 648 | _first_value = cell(0); | 165 | 648 | _last_value = cell(_count - 1); | 166 | 648 | } | 167 | 698 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 698 | return Status::OK(); | 169 | 698 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 619 | Status finish(OwnedSlice* slice) override { | 163 | 619 | if (_count > 0) { | 164 | 584 | _first_value = cell(0); | 165 | 584 | _last_value = cell(_count - 1); | 166 | 584 | } | 167 | 619 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 619 | return Status::OK(); | 169 | 619 | } |
|
170 | | |
171 | 1.69M | Status reset() override { |
172 | 1.69M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 1.69M | size_t block_size = _options.data_page_size; |
174 | 1.69M | _count = 0; |
175 | 1.69M | _raw_data_size = 0; |
176 | 1.69M | _data.clear(); |
177 | 1.69M | _data.reserve(block_size); |
178 | 1.69M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 1.69M | << "buffer must be naturally-aligned"; |
180 | 1.69M | _buffer.clear(); |
181 | 1.69M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 1.69M | _finished = false; |
183 | 1.69M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 1.69M | }); |
185 | 1.69M | return Status::OK(); |
186 | 1.69M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.02M | Status reset() override { | 172 | 1.02M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.02M | size_t block_size = _options.data_page_size; | 174 | 1.02M | _count = 0; | 175 | 1.02M | _raw_data_size = 0; | 176 | 1.02M | _data.clear(); | 177 | 1.02M | _data.reserve(block_size); | 178 | 1.02M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.02M | << "buffer must be naturally-aligned"; | 180 | 1.02M | _buffer.clear(); | 181 | 1.02M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.02M | _finished = false; | 183 | 1.02M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.02M | }); | 185 | 1.02M | return Status::OK(); | 186 | 1.02M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 79.7k | Status reset() override { | 172 | 79.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 79.7k | size_t block_size = _options.data_page_size; | 174 | 79.7k | _count = 0; | 175 | 79.7k | _raw_data_size = 0; | 176 | 79.7k | _data.clear(); | 177 | 79.7k | _data.reserve(block_size); | 178 | 79.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 79.7k | << "buffer must be naturally-aligned"; | 180 | 79.7k | _buffer.clear(); | 181 | 79.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 79.7k | _finished = false; | 183 | 79.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 79.7k | }); | 185 | 79.7k | return Status::OK(); | 186 | 79.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 14.9k | Status reset() override { | 172 | 14.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.9k | size_t block_size = _options.data_page_size; | 174 | 14.9k | _count = 0; | 175 | 14.9k | _raw_data_size = 0; | 176 | 14.9k | _data.clear(); | 177 | 14.9k | _data.reserve(block_size); | 178 | 14.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.9k | << "buffer must be naturally-aligned"; | 180 | 14.9k | _buffer.clear(); | 181 | 14.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.9k | _finished = false; | 183 | 14.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.9k | }); | 185 | 14.9k | return Status::OK(); | 186 | 14.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 98.5k | Status reset() override { | 172 | 98.5k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 98.5k | size_t block_size = _options.data_page_size; | 174 | 98.5k | _count = 0; | 175 | 98.5k | _raw_data_size = 0; | 176 | 98.5k | _data.clear(); | 177 | 98.5k | _data.reserve(block_size); | 178 | 98.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 98.5k | << "buffer must be naturally-aligned"; | 180 | 98.5k | _buffer.clear(); | 181 | 98.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 98.5k | _finished = false; | 183 | 98.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 98.5k | }); | 185 | 98.6k | return Status::OK(); | 186 | 98.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 143k | Status reset() override { | 172 | 143k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 143k | size_t block_size = _options.data_page_size; | 174 | 143k | _count = 0; | 175 | 143k | _raw_data_size = 0; | 176 | 143k | _data.clear(); | 177 | 143k | _data.reserve(block_size); | 178 | 143k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 143k | << "buffer must be naturally-aligned"; | 180 | 143k | _buffer.clear(); | 181 | 143k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 143k | _finished = false; | 183 | 143k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 143k | }); | 185 | 143k | return Status::OK(); | 186 | 143k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 18.8k | Status reset() override { | 172 | 18.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 18.8k | size_t block_size = _options.data_page_size; | 174 | 18.8k | _count = 0; | 175 | 18.8k | _raw_data_size = 0; | 176 | 18.8k | _data.clear(); | 177 | 18.8k | _data.reserve(block_size); | 178 | 18.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 18.8k | << "buffer must be naturally-aligned"; | 180 | 18.8k | _buffer.clear(); | 181 | 18.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 18.8k | _finished = false; | 183 | 18.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 18.8k | }); | 185 | 18.8k | return Status::OK(); | 186 | 18.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 23.6k | Status reset() override { | 172 | 23.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 23.6k | size_t block_size = _options.data_page_size; | 174 | 23.6k | _count = 0; | 175 | 23.6k | _raw_data_size = 0; | 176 | 23.6k | _data.clear(); | 177 | 23.6k | _data.reserve(block_size); | 178 | 23.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 23.6k | << "buffer must be naturally-aligned"; | 180 | 23.6k | _buffer.clear(); | 181 | 23.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 23.6k | _finished = false; | 183 | 23.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 23.6k | }); | 185 | 23.6k | return Status::OK(); | 186 | 23.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 29.1k | Status reset() override { | 172 | 29.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 29.1k | size_t block_size = _options.data_page_size; | 174 | 29.1k | _count = 0; | 175 | 29.1k | _raw_data_size = 0; | 176 | 29.1k | _data.clear(); | 177 | 29.1k | _data.reserve(block_size); | 178 | 29.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 29.1k | << "buffer must be naturally-aligned"; | 180 | 29.1k | _buffer.clear(); | 181 | 29.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 29.1k | _finished = false; | 183 | 29.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 29.1k | }); | 185 | 29.2k | return Status::OK(); | 186 | 29.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 386 | Status reset() override { | 172 | 386 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 386 | size_t block_size = _options.data_page_size; | 174 | 386 | _count = 0; | 175 | 386 | _raw_data_size = 0; | 176 | 386 | _data.clear(); | 177 | 386 | _data.reserve(block_size); | 178 | 386 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 386 | << "buffer must be naturally-aligned"; | 180 | 386 | _buffer.clear(); | 181 | 386 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 386 | _finished = false; | 183 | 386 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 386 | }); | 185 | 386 | return Status::OK(); | 186 | 386 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 171 | 74.0k | Status reset() override { | 172 | 74.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 74.0k | size_t block_size = _options.data_page_size; | 174 | 74.0k | _count = 0; | 175 | 74.0k | _raw_data_size = 0; | 176 | 74.0k | _data.clear(); | 177 | 74.0k | _data.reserve(block_size); | 178 | 74.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 74.0k | << "buffer must be naturally-aligned"; | 180 | 74.0k | _buffer.clear(); | 181 | 74.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 74.0k | _finished = false; | 183 | 74.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 74.0k | }); | 185 | 74.1k | return Status::OK(); | 186 | 74.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 87.4k | Status reset() override { | 172 | 87.4k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 87.4k | size_t block_size = _options.data_page_size; | 174 | 87.4k | _count = 0; | 175 | 87.4k | _raw_data_size = 0; | 176 | 87.4k | _data.clear(); | 177 | 87.4k | _data.reserve(block_size); | 178 | 87.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 87.4k | << "buffer must be naturally-aligned"; | 180 | 87.4k | _buffer.clear(); | 181 | 87.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 87.4k | _finished = false; | 183 | 87.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 87.4k | }); | 185 | 87.4k | return Status::OK(); | 186 | 87.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 724 | Status reset() override { | 172 | 724 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 724 | size_t block_size = _options.data_page_size; | 174 | 724 | _count = 0; | 175 | 724 | _raw_data_size = 0; | 176 | 724 | _data.clear(); | 177 | 724 | _data.reserve(block_size); | 178 | 724 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 724 | << "buffer must be naturally-aligned"; | 180 | 724 | _buffer.clear(); | 181 | 724 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 724 | _finished = false; | 183 | 724 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 724 | }); | 185 | 724 | return Status::OK(); | 186 | 724 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 14.1k | Status reset() override { | 172 | 14.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.1k | size_t block_size = _options.data_page_size; | 174 | 14.1k | _count = 0; | 175 | 14.1k | _raw_data_size = 0; | 176 | 14.1k | _data.clear(); | 177 | 14.1k | _data.reserve(block_size); | 178 | 14.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.1k | << "buffer must be naturally-aligned"; | 180 | 14.1k | _buffer.clear(); | 181 | 14.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.1k | _finished = false; | 183 | 14.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.1k | }); | 185 | 14.2k | return Status::OK(); | 186 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 296 | Status reset() override { | 172 | 296 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 296 | size_t block_size = _options.data_page_size; | 174 | 296 | _count = 0; | 175 | 296 | _raw_data_size = 0; | 176 | 296 | _data.clear(); | 177 | 296 | _data.reserve(block_size); | 178 | 296 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 296 | << "buffer must be naturally-aligned"; | 180 | 296 | _buffer.clear(); | 181 | 296 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 296 | _finished = false; | 183 | 296 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 296 | }); | 185 | 296 | return Status::OK(); | 186 | 296 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.3k | Status reset() override { | 172 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.3k | size_t block_size = _options.data_page_size; | 174 | 19.3k | _count = 0; | 175 | 19.3k | _raw_data_size = 0; | 176 | 19.3k | _data.clear(); | 177 | 19.3k | _data.reserve(block_size); | 178 | 19.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.3k | << "buffer must be naturally-aligned"; | 180 | 19.3k | _buffer.clear(); | 181 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.3k | _finished = false; | 183 | 19.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.3k | }); | 185 | 19.3k | return Status::OK(); | 186 | 19.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 31.4k | Status reset() override { | 172 | 31.4k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.4k | size_t block_size = _options.data_page_size; | 174 | 31.4k | _count = 0; | 175 | 31.4k | _raw_data_size = 0; | 176 | 31.4k | _data.clear(); | 177 | 31.4k | _data.reserve(block_size); | 178 | 31.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.4k | << "buffer must be naturally-aligned"; | 180 | 31.4k | _buffer.clear(); | 181 | 31.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.4k | _finished = false; | 183 | 31.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.4k | }); | 185 | 31.4k | return Status::OK(); | 186 | 31.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 32.6k | Status reset() override { | 172 | 32.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.6k | size_t block_size = _options.data_page_size; | 174 | 32.6k | _count = 0; | 175 | 32.6k | _raw_data_size = 0; | 176 | 32.6k | _data.clear(); | 177 | 32.6k | _data.reserve(block_size); | 178 | 32.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.6k | << "buffer must be naturally-aligned"; | 180 | 32.6k | _buffer.clear(); | 181 | 32.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.6k | _finished = false; | 183 | 32.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.6k | }); | 185 | 32.6k | return Status::OK(); | 186 | 32.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.21k | Status reset() override { | 172 | 2.21k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.21k | size_t block_size = _options.data_page_size; | 174 | 2.21k | _count = 0; | 175 | 2.21k | _raw_data_size = 0; | 176 | 2.21k | _data.clear(); | 177 | 2.21k | _data.reserve(block_size); | 178 | 2.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.21k | << "buffer must be naturally-aligned"; | 180 | 2.21k | _buffer.clear(); | 181 | 2.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.21k | _finished = false; | 183 | 2.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.21k | }); | 185 | 2.21k | return Status::OK(); | 186 | 2.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.47k | Status reset() override { | 172 | 1.47k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.47k | size_t block_size = _options.data_page_size; | 174 | 1.47k | _count = 0; | 175 | 1.47k | _raw_data_size = 0; | 176 | 1.47k | _data.clear(); | 177 | 1.47k | _data.reserve(block_size); | 178 | 1.47k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.47k | << "buffer must be naturally-aligned"; | 180 | 1.47k | _buffer.clear(); | 181 | 1.47k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.47k | _finished = false; | 183 | 1.47k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.47k | }); | 185 | 1.48k | return Status::OK(); | 186 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.31k | Status reset() override { | 172 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.31k | size_t block_size = _options.data_page_size; | 174 | 1.31k | _count = 0; | 175 | 1.31k | _raw_data_size = 0; | 176 | 1.31k | _data.clear(); | 177 | 1.31k | _data.reserve(block_size); | 178 | 1.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.31k | << "buffer must be naturally-aligned"; | 180 | 1.31k | _buffer.clear(); | 181 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.31k | _finished = false; | 183 | 1.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.31k | }); | 185 | 1.31k | return Status::OK(); | 186 | 1.31k | } |
|
187 | | |
188 | 2.12M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 2.12M | 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 |
189 | | |
190 | 42.2k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 21.7k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 4.33k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 886 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 4.90k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 1.94k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.06k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 717 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 747 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 190 | 1.65k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.46k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 190 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 190 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 190 | 156 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 190 | 315 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 190 | 1.17k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 190 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 190 | 26 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 190 | 10 | uint64_t size() const override { return _buffer.size(); } |
|
191 | | |
192 | 405k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 65.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 39.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.29k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 50.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 71.7k | 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 | 192 | 9.36k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 11.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 14.5k | 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 | 192 | 199 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 37.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 43.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 439 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.10k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 192 | 106 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.66k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 19.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 16.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 192 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 192 | 698 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 619 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
193 | | |
194 | 0 | Status get_first_value(void* value) const override { |
195 | 0 | DCHECK(_finished); |
196 | 0 | if (_count == 0) { |
197 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
198 | 0 | } |
199 | 0 | memcpy(value, &_first_value, SIZE_OF_TYPE); |
200 | 0 | return Status::OK(); |
201 | 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 |
202 | 3 | Status get_last_value(void* value) const override { |
203 | 3 | DCHECK(_finished); |
204 | 3 | if (_count == 0) { |
205 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
206 | 0 | } |
207 | 3 | memcpy(value, &_last_value, SIZE_OF_TYPE); |
208 | 3 | return Status::OK(); |
209 | 3 | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE14get_last_valueEPv Line | Count | Source | 202 | 3 | Status get_last_value(void* value) const override { | 203 | 3 | DCHECK(_finished); | 204 | 3 | if (_count == 0) { | 205 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 206 | 0 | } | 207 | 3 | memcpy(value, &_last_value, SIZE_OF_TYPE); | 208 | 3 | return Status::OK(); | 209 | 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 |
210 | | |
211 | | private: |
212 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
213 | 701k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 367k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 40.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.64k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 48.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 71.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.51k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 187 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 36.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 44.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 285 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.06k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 190 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.66k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 16.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 1.15k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 781 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 695 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 692k | OwnedSlice _finish(int final_size_of_type) { |
216 | 692k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 692k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 692k | int padding_elems = num_elems_after_padding - _count; |
221 | 692k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 18.8M | for (int i = 0; i < padding_bytes; i++) { |
223 | 18.1M | _data.push_back(0); |
224 | 18.1M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 692k | _buffer.resize( |
228 | 692k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 692k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 692k | int64_t bytes = |
232 | 692k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 692k | num_elems_after_padding, final_size_of_type, 0); |
234 | 692k | if (bytes < 0) [[unlikely]] { |
235 | | // This means the bitshuffle function fails. |
236 | | // Ideally, this should not happen. |
237 | 0 | warn_with_bitshuffle_error(bytes); |
238 | | // It does not matter what will be returned here, |
239 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
240 | 0 | return OwnedSlice(); |
241 | 0 | } |
242 | | // update header |
243 | 692k | encode_fixed32_le(&_buffer[0], _count); |
244 | 692k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 692k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 692k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 692k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 692k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 692k | return _buffer.build(); |
251 | 692k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 351k | OwnedSlice _finish(int final_size_of_type) { | 216 | 351k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 351k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 351k | int padding_elems = num_elems_after_padding - _count; | 221 | 351k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.59M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.24M | _data.push_back(0); | 224 | 6.24M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 351k | _buffer.resize( | 228 | 351k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 351k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 351k | int64_t bytes = | 232 | 351k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 351k | num_elems_after_padding, final_size_of_type, 0); | 234 | 351k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 351k | encode_fixed32_le(&_buffer[0], _count); | 244 | 351k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 351k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 351k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 351k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 351k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 351k | return _buffer.build(); | 251 | 351k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 39.6k | OwnedSlice _finish(int final_size_of_type) { | 216 | 39.6k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 39.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 39.6k | int padding_elems = num_elems_after_padding - _count; | 221 | 39.6k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 243k | for (int i = 0; i < padding_bytes; i++) { | 223 | 203k | _data.push_back(0); | 224 | 203k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 39.6k | _buffer.resize( | 228 | 39.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 39.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 39.6k | int64_t bytes = | 232 | 39.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 39.6k | num_elems_after_padding, final_size_of_type, 0); | 234 | 39.6k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 39.6k | encode_fixed32_le(&_buffer[0], _count); | 244 | 39.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 39.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 39.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 39.6k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 39.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 39.6k | return _buffer.build(); | 251 | 39.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 7.29k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.29k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.29k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.29k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.29k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 77.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 70.5k | _data.push_back(0); | 224 | 70.5k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.29k | _buffer.resize( | 228 | 7.29k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.29k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.29k | int64_t bytes = | 232 | 7.29k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.29k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.29k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 7.29k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.29k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.29k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.29k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.29k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.29k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.29k | return _buffer.build(); | 251 | 7.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 50.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 50.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 50.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 50.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 50.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.02M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.97M | _data.push_back(0); | 224 | 1.97M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 50.1k | _buffer.resize( | 228 | 50.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 50.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 50.1k | int64_t bytes = | 232 | 50.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 50.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 50.1k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 50.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 50.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 50.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 50.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 50.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 50.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 50.1k | return _buffer.build(); | 251 | 50.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 71.7k | OwnedSlice _finish(int final_size_of_type) { | 216 | 71.7k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 71.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 71.7k | int padding_elems = num_elems_after_padding - _count; | 221 | 71.7k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.42M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.35M | _data.push_back(0); | 224 | 3.35M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 71.7k | _buffer.resize( | 228 | 71.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 71.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 71.7k | int64_t bytes = | 232 | 71.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 71.7k | num_elems_after_padding, final_size_of_type, 0); | 234 | 71.7k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 71.7k | encode_fixed32_le(&_buffer[0], _count); | 244 | 71.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 71.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 71.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 71.7k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 71.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 71.7k | return _buffer.build(); | 251 | 71.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 9.36k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.36k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.36k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.36k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.36k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 664k | for (int i = 0; i < padding_bytes; i++) { | 223 | 655k | _data.push_back(0); | 224 | 655k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.36k | _buffer.resize( | 228 | 9.36k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.36k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.36k | int64_t bytes = | 232 | 9.36k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.36k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.36k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 9.36k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.36k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.36k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.36k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.36k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.36k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.36k | return _buffer.build(); | 251 | 9.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 11.4k | OwnedSlice _finish(int final_size_of_type) { | 216 | 11.4k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 11.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 11.4k | int padding_elems = num_elems_after_padding - _count; | 221 | 11.4k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 250k | for (int i = 0; i < padding_bytes; i++) { | 223 | 238k | _data.push_back(0); | 224 | 238k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 11.4k | _buffer.resize( | 228 | 11.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 11.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 11.4k | int64_t bytes = | 232 | 11.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 11.4k | num_elems_after_padding, final_size_of_type, 0); | 234 | 11.4k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 11.4k | encode_fixed32_le(&_buffer[0], _count); | 244 | 11.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 11.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 11.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 11.4k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 11.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 11.4k | return _buffer.build(); | 251 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 14.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 14.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 14.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 14.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 14.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 600k | for (int i = 0; i < padding_bytes; i++) { | 223 | 585k | _data.push_back(0); | 224 | 585k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 14.5k | _buffer.resize( | 228 | 14.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 14.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 14.5k | int64_t bytes = | 232 | 14.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 14.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 14.5k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 14.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 14.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 14.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 14.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 14.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 14.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 14.5k | return _buffer.build(); | 251 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 199 | OwnedSlice _finish(int final_size_of_type) { | 216 | 199 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 199 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 199 | int padding_elems = num_elems_after_padding - _count; | 221 | 199 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.74k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.54k | _data.push_back(0); | 224 | 2.54k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 199 | _buffer.resize( | 228 | 199 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 199 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 199 | int64_t bytes = | 232 | 199 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 199 | num_elems_after_padding, final_size_of_type, 0); | 234 | 199 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 199 | encode_fixed32_le(&_buffer[0], _count); | 244 | 199 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 199 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 199 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 199 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 199 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 199 | return _buffer.build(); | 251 | 199 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 37.4k | OwnedSlice _finish(int final_size_of_type) { | 216 | 37.4k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 37.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 37.4k | int padding_elems = num_elems_after_padding - _count; | 221 | 37.4k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 800k | for (int i = 0; i < padding_bytes; i++) { | 223 | 763k | _data.push_back(0); | 224 | 763k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 37.4k | _buffer.resize( | 228 | 37.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 37.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 37.4k | int64_t bytes = | 232 | 37.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 37.4k | num_elems_after_padding, final_size_of_type, 0); | 234 | 37.4k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 37.4k | encode_fixed32_le(&_buffer[0], _count); | 244 | 37.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 37.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 37.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 37.4k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 37.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 37.4k | return _buffer.build(); | 251 | 37.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 43.2k | OwnedSlice _finish(int final_size_of_type) { | 216 | 43.2k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 43.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 43.2k | int padding_elems = num_elems_after_padding - _count; | 221 | 43.2k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.83M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.79M | _data.push_back(0); | 224 | 1.79M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 43.2k | _buffer.resize( | 228 | 43.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 43.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 43.2k | int64_t bytes = | 232 | 43.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 43.2k | num_elems_after_padding, final_size_of_type, 0); | 234 | 43.2k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 43.2k | encode_fixed32_le(&_buffer[0], _count); | 244 | 43.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 43.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 43.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 43.2k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 43.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 43.2k | return _buffer.build(); | 251 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 215 | 439 | OwnedSlice _finish(int final_size_of_type) { | 216 | 439 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 439 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 439 | int padding_elems = num_elems_after_padding - _count; | 221 | 439 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.03k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.60k | _data.push_back(0); | 224 | 6.60k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 439 | _buffer.resize( | 228 | 439 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 439 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 439 | int64_t bytes = | 232 | 439 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 439 | num_elems_after_padding, final_size_of_type, 0); | 234 | 439 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 439 | encode_fixed32_le(&_buffer[0], _count); | 244 | 439 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 439 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 439 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 439 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 439 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 439 | return _buffer.build(); | 251 | 439 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.10k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.10k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.10k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.10k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.10k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 372k | for (int i = 0; i < padding_bytes; i++) { | 223 | 365k | _data.push_back(0); | 224 | 365k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.10k | _buffer.resize( | 228 | 7.10k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.10k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.10k | int64_t bytes = | 232 | 7.10k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.10k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.10k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 7.10k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.10k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.10k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.10k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.10k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.10k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.10k | return _buffer.build(); | 251 | 7.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 215 | 106 | OwnedSlice _finish(int final_size_of_type) { | 216 | 106 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 106 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 106 | int padding_elems = num_elems_after_padding - _count; | 221 | 106 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.51k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.40k | _data.push_back(0); | 224 | 6.40k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 106 | _buffer.resize( | 228 | 106 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 106 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 106 | int64_t bytes = | 232 | 106 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 106 | num_elems_after_padding, final_size_of_type, 0); | 234 | 106 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 106 | encode_fixed32_le(&_buffer[0], _count); | 244 | 106 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 106 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 106 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 106 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 106 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 106 | return _buffer.build(); | 251 | 106 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 215 | 9.66k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.66k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.66k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.66k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.66k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 118k | for (int i = 0; i < padding_bytes; i++) { | 223 | 108k | _data.push_back(0); | 224 | 108k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.66k | _buffer.resize( | 228 | 9.66k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.66k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.66k | int64_t bytes = | 232 | 9.66k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.66k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.66k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 9.66k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.66k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.66k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.66k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.66k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.66k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.66k | return _buffer.build(); | 251 | 9.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 19.2k | OwnedSlice _finish(int final_size_of_type) { | 216 | 19.2k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 19.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 19.2k | int padding_elems = num_elems_after_padding - _count; | 221 | 19.2k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 494k | for (int i = 0; i < padding_bytes; i++) { | 223 | 475k | _data.push_back(0); | 224 | 475k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 19.2k | _buffer.resize( | 228 | 19.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 19.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 19.2k | int64_t bytes = | 232 | 19.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 19.2k | num_elems_after_padding, final_size_of_type, 0); | 234 | 19.2k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 19.2k | encode_fixed32_le(&_buffer[0], _count); | 244 | 19.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 19.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 19.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 19.2k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 19.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 19.2k | return _buffer.build(); | 251 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 16.4k | OwnedSlice _finish(int final_size_of_type) { | 216 | 16.4k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 16.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 16.4k | int padding_elems = num_elems_after_padding - _count; | 221 | 16.4k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.12M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.11M | _data.push_back(0); | 224 | 1.11M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 16.4k | _buffer.resize( | 228 | 16.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 16.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 16.4k | int64_t bytes = | 232 | 16.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 16.4k | num_elems_after_padding, final_size_of_type, 0); | 234 | 16.4k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 16.4k | encode_fixed32_le(&_buffer[0], _count); | 244 | 16.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 16.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 16.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 16.4k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 16.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 16.4k | return _buffer.build(); | 251 | 16.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 215 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 216 | 1.06k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 221 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 162k | for (int i = 0; i < padding_bytes; i++) { | 223 | 160k | _data.push_back(0); | 224 | 160k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 1.06k | _buffer.resize( | 228 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 1.06k | int64_t bytes = | 232 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 234 | 1.06k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 1.06k | encode_fixed32_le(&_buffer[0], _count); | 244 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 1.06k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 1.06k | return _buffer.build(); | 251 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 215 | 698 | OwnedSlice _finish(int final_size_of_type) { | 216 | 698 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 698 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 698 | int padding_elems = num_elems_after_padding - _count; | 221 | 698 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 14.6k | for (int i = 0; i < padding_bytes; i++) { | 223 | 13.9k | _data.push_back(0); | 224 | 13.9k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 698 | _buffer.resize( | 228 | 698 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 698 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 698 | int64_t bytes = | 232 | 698 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 698 | num_elems_after_padding, final_size_of_type, 0); | 234 | 698 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 698 | encode_fixed32_le(&_buffer[0], _count); | 244 | 698 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 698 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 698 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 698 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 698 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 698 | return _buffer.build(); | 251 | 698 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 619 | OwnedSlice _finish(int final_size_of_type) { | 216 | 619 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 619 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 619 | int padding_elems = num_elems_after_padding - _count; | 221 | 619 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 49.5k | for (int i = 0; i < padding_bytes; i++) { | 223 | 48.9k | _data.push_back(0); | 224 | 48.9k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 619 | _buffer.resize( | 228 | 619 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 619 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 619 | int64_t bytes = | 232 | 619 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 619 | num_elems_after_padding, final_size_of_type, 0); | 234 | 619 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 619 | encode_fixed32_le(&_buffer[0], _count); | 244 | 619 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 619 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 619 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 619 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 619 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 619 | return _buffer.build(); | 251 | 619 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.29M | CppType cell(int idx) const { |
256 | 1.29M | DCHECK_GE(idx, 0); |
257 | 1.29M | CppType ret; |
258 | 1.29M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.29M | return ret; |
260 | 1.29M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 637k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 637k | CppType ret; | 258 | 637k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 637k | return ret; | 260 | 637k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 78.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 78.2k | CppType ret; | 258 | 78.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 78.2k | return ret; | 260 | 78.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 14.1k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 14.1k | CppType ret; | 258 | 14.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 14.1k | return ret; | 260 | 14.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 97.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 97.7k | CppType ret; | 258 | 97.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 97.7k | return ret; | 260 | 97.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 143k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 143k | CppType ret; | 258 | 143k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 143k | return ret; | 260 | 143k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 17.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 17.9k | CppType ret; | 258 | 17.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 17.9k | return ret; | 260 | 17.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 22.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 22.0k | CppType ret; | 258 | 22.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 22.0k | return ret; | 260 | 22.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 28.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 28.3k | CppType ret; | 258 | 28.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 28.3k | return ret; | 260 | 28.3k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 388 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 388 | CppType ret; | 258 | 388 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 388 | return ret; | 260 | 388 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 72.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 72.7k | CppType ret; | 258 | 72.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 72.7k | return ret; | 260 | 72.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 83.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 83.4k | CppType ret; | 258 | 83.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 83.4k | return ret; | 260 | 83.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 678 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 678 | CppType ret; | 258 | 678 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 678 | return ret; | 260 | 678 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 13.8k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 13.8k | CppType ret; | 258 | 13.8k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 13.8k | return ret; | 260 | 13.8k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi Line | Count | Source | 255 | 196 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 196 | CppType ret; | 258 | 196 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 196 | return ret; | 260 | 196 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 255 | 9.46k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.46k | CppType ret; | 258 | 9.46k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.46k | return ret; | 260 | 9.46k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 36.5k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 36.5k | CppType ret; | 258 | 36.5k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 36.5k | return ret; | 260 | 36.5k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 31.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.7k | CppType ret; | 258 | 31.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.7k | return ret; | 260 | 31.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.01k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.01k | CppType ret; | 258 | 2.01k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.01k | return ret; | 260 | 2.01k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.29k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.29k | CppType ret; | 258 | 1.29k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.29k | return ret; | 260 | 1.29k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.16k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.16k | CppType ret; | 258 | 1.16k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.16k | return ret; | 260 | 1.16k | } |
|
261 | | |
262 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
263 | | PageBuilderOptions _options; |
264 | | uint32_t _count; |
265 | | uint32_t _remain_element_capacity; |
266 | | bool _finished; |
267 | | faststring _data; |
268 | | faststring _buffer; |
269 | | CppType _first_value; |
270 | | CppType _last_value; |
271 | | uint64_t _raw_data_size = 0; |
272 | | }; |
273 | | |
274 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
275 | | size_t& compressed_size, size_t& num_element_after_padding, |
276 | 2.71M | int& size_of_element) { |
277 | 2.71M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
278 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
279 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
280 | 0 | } |
281 | | |
282 | 2.71M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.71M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.71M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.71M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.71M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
287 | 0 | return Status::InternalError( |
288 | 0 | "num of element information corrupted," |
289 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
290 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
291 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
292 | 0 | size_of_element, data.size); |
293 | 0 | } |
294 | 2.71M | switch (size_of_element) { |
295 | 159k | case 1: |
296 | 181k | case 2: |
297 | 184k | case 3: |
298 | 1.73M | case 4: |
299 | 2.62M | case 8: |
300 | 2.62M | case 12: |
301 | 2.71M | case 16: |
302 | 2.71M | case 32: |
303 | 2.71M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.71M | } |
307 | 2.71M | return Status::OK(); |
308 | 2.71M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.36M | : _data(data), |
315 | 1.36M | _options(options), |
316 | 1.36M | _parsed(false), |
317 | 1.36M | _num_elements(0), |
318 | 1.36M | _num_element_after_padding(0), |
319 | 1.36M | _size_of_element(0), |
320 | 1.36M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 682k | : _data(data), | 315 | 682k | _options(options), | 316 | 682k | _parsed(false), | 317 | 682k | _num_elements(0), | 318 | 682k | _num_element_after_padding(0), | 319 | 682k | _size_of_element(0), | 320 | 682k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 80.1k | : _data(data), | 315 | 80.1k | _options(options), | 316 | 80.1k | _parsed(false), | 317 | 80.1k | _num_elements(0), | 318 | 80.1k | _num_element_after_padding(0), | 319 | 80.1k | _size_of_element(0), | 320 | 80.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 10.9k | : _data(data), | 315 | 10.9k | _options(options), | 316 | 10.9k | _parsed(false), | 317 | 10.9k | _num_elements(0), | 318 | 10.9k | _num_element_after_padding(0), | 319 | 10.9k | _size_of_element(0), | 320 | 10.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 191k | : _data(data), | 315 | 191k | _options(options), | 316 | 191k | _parsed(false), | 317 | 191k | _num_elements(0), | 318 | 191k | _num_element_after_padding(0), | 319 | 191k | _size_of_element(0), | 320 | 191k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 95.2k | : _data(data), | 315 | 95.2k | _options(options), | 316 | 95.2k | _parsed(false), | 317 | 95.2k | _num_elements(0), | 318 | 95.2k | _num_element_after_padding(0), | 319 | 95.2k | _size_of_element(0), | 320 | 95.2k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 13.8k | : _data(data), | 315 | 13.8k | _options(options), | 316 | 13.8k | _parsed(false), | 317 | 13.8k | _num_elements(0), | 318 | 13.8k | _num_element_after_padding(0), | 319 | 13.8k | _size_of_element(0), | 320 | 13.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 19.8k | : _data(data), | 315 | 19.8k | _options(options), | 316 | 19.8k | _parsed(false), | 317 | 19.8k | _num_elements(0), | 318 | 19.8k | _num_element_after_padding(0), | 319 | 19.8k | _size_of_element(0), | 320 | 19.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.3k | : _data(data), | 315 | 30.3k | _options(options), | 316 | 30.3k | _parsed(false), | 317 | 30.3k | _num_elements(0), | 318 | 30.3k | _num_element_after_padding(0), | 319 | 30.3k | _size_of_element(0), | 320 | 30.3k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.73k | : _data(data), | 315 | 1.73k | _options(options), | 316 | 1.73k | _parsed(false), | 317 | 1.73k | _num_elements(0), | 318 | 1.73k | _num_element_after_padding(0), | 319 | 1.73k | _size_of_element(0), | 320 | 1.73k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 59.8k | : _data(data), | 315 | 59.8k | _options(options), | 316 | 59.8k | _parsed(false), | 317 | 59.8k | _num_elements(0), | 318 | 59.8k | _num_element_after_padding(0), | 319 | 59.8k | _size_of_element(0), | 320 | 59.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 67.3k | : _data(data), | 315 | 67.3k | _options(options), | 316 | 67.3k | _parsed(false), | 317 | 67.3k | _num_elements(0), | 318 | 67.3k | _num_element_after_padding(0), | 319 | 67.3k | _size_of_element(0), | 320 | 67.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.43k | : _data(data), | 315 | 2.43k | _options(options), | 316 | 2.43k | _parsed(false), | 317 | 2.43k | _num_elements(0), | 318 | 2.43k | _num_element_after_padding(0), | 319 | 2.43k | _size_of_element(0), | 320 | 2.43k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 14.7k | : _data(data), | 315 | 14.7k | _options(options), | 316 | 14.7k | _parsed(false), | 317 | 14.7k | _num_elements(0), | 318 | 14.7k | _num_element_after_padding(0), | 319 | 14.7k | _size_of_element(0), | 320 | 14.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.43k | : _data(data), | 315 | 1.43k | _options(options), | 316 | 1.43k | _parsed(false), | 317 | 1.43k | _num_elements(0), | 318 | 1.43k | _num_element_after_padding(0), | 319 | 1.43k | _size_of_element(0), | 320 | 1.43k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.0k | : _data(data), | 315 | 15.0k | _options(options), | 316 | 15.0k | _parsed(false), | 317 | 15.0k | _num_elements(0), | 318 | 15.0k | _num_element_after_padding(0), | 319 | 15.0k | _size_of_element(0), | 320 | 15.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 40.2k | : _data(data), | 315 | 40.2k | _options(options), | 316 | 40.2k | _parsed(false), | 317 | 40.2k | _num_elements(0), | 318 | 40.2k | _num_element_after_padding(0), | 319 | 40.2k | _size_of_element(0), | 320 | 40.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.1k | : _data(data), | 315 | 30.1k | _options(options), | 316 | 30.1k | _parsed(false), | 317 | 30.1k | _num_elements(0), | 318 | 30.1k | _num_element_after_padding(0), | 319 | 30.1k | _size_of_element(0), | 320 | 30.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.76k | : _data(data), | 315 | 1.76k | _options(options), | 316 | 1.76k | _parsed(false), | 317 | 1.76k | _num_elements(0), | 318 | 1.76k | _num_element_after_padding(0), | 319 | 1.76k | _size_of_element(0), | 320 | 1.76k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.18k | : _data(data), | 315 | 1.18k | _options(options), | 316 | 1.18k | _parsed(false), | 317 | 1.18k | _num_elements(0), | 318 | 1.18k | _num_element_after_padding(0), | 319 | 1.18k | _size_of_element(0), | 320 | 1.18k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.15k | : _data(data), | 315 | 1.15k | _options(options), | 316 | 1.15k | _parsed(false), | 317 | 1.15k | _num_elements(0), | 318 | 1.15k | _num_element_after_padding(0), | 319 | 1.15k | _size_of_element(0), | 320 | 1.15k | _cur_index(0) {} |
|
321 | | |
322 | 1.36M | Status init() override { |
323 | 1.36M | CHECK(!_parsed); |
324 | 1.36M | size_t unused; |
325 | 1.36M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.36M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.36M | if (_data.size != |
329 | 1.36M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
330 | 0 | std::stringstream ss; |
331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
334 | 0 | return Status::InternalError(ss.str()); |
335 | 0 | } |
336 | | |
337 | | // Currently, only the UINT32 block encoder supports expanding size: |
338 | 1.36M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.36M | _size_of_element != SIZE_OF_TYPE)) { |
340 | 0 | return Status::InternalError( |
341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
343 | 0 | } |
344 | 1.36M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
346 | 0 | _size_of_element, SIZE_OF_TYPE); |
347 | 0 | } |
348 | 1.36M | _parsed = true; |
349 | 1.36M | return Status::OK(); |
350 | 1.36M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 682k | Status init() override { | 323 | 682k | CHECK(!_parsed); | 324 | 682k | size_t unused; | 325 | 682k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 682k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 682k | if (_data.size != | 329 | 682k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 682k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 682k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 682k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 682k | _parsed = true; | 349 | 682k | return Status::OK(); | 350 | 682k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 80.1k | Status init() override { | 323 | 80.1k | CHECK(!_parsed); | 324 | 80.1k | size_t unused; | 325 | 80.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 80.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 80.1k | if (_data.size != | 329 | 80.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 80.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 80.1k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 80.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 80.1k | _parsed = true; | 349 | 80.1k | return Status::OK(); | 350 | 80.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 10.9k | Status init() override { | 323 | 10.9k | CHECK(!_parsed); | 324 | 10.9k | size_t unused; | 325 | 10.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 10.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 10.9k | if (_data.size != | 329 | 10.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 10.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 10.9k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 10.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 10.9k | _parsed = true; | 349 | 10.9k | return Status::OK(); | 350 | 10.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 191k | Status init() override { | 323 | 191k | CHECK(!_parsed); | 324 | 191k | size_t unused; | 325 | 191k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 191k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 191k | if (_data.size != | 329 | 191k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 191k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 191k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 191k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 191k | _parsed = true; | 349 | 191k | return Status::OK(); | 350 | 191k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 95.1k | Status init() override { | 323 | 95.1k | CHECK(!_parsed); | 324 | 95.1k | size_t unused; | 325 | 95.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 95.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 95.1k | if (_data.size != | 329 | 95.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 95.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 95.1k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 95.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 95.1k | _parsed = true; | 349 | 95.1k | return Status::OK(); | 350 | 95.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 13.8k | Status init() override { | 323 | 13.8k | CHECK(!_parsed); | 324 | 13.8k | size_t unused; | 325 | 13.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 13.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 13.8k | if (_data.size != | 329 | 13.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 13.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 13.8k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 13.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 13.8k | _parsed = true; | 349 | 13.8k | return Status::OK(); | 350 | 13.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 19.8k | Status init() override { | 323 | 19.8k | CHECK(!_parsed); | 324 | 19.8k | size_t unused; | 325 | 19.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 19.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 19.8k | if (_data.size != | 329 | 19.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 19.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 19.8k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 19.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 19.8k | _parsed = true; | 349 | 19.8k | return Status::OK(); | 350 | 19.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 30.3k | Status init() override { | 323 | 30.3k | CHECK(!_parsed); | 324 | 30.3k | size_t unused; | 325 | 30.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.3k | if (_data.size != | 329 | 30.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 30.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.3k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 30.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 30.3k | _parsed = true; | 349 | 30.3k | return Status::OK(); | 350 | 30.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 1.73k | Status init() override { | 323 | 1.73k | CHECK(!_parsed); | 324 | 1.73k | size_t unused; | 325 | 1.73k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.73k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.73k | if (_data.size != | 329 | 1.73k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.73k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.73k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.73k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.73k | _parsed = true; | 349 | 1.73k | return Status::OK(); | 350 | 1.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 59.8k | Status init() override { | 323 | 59.8k | CHECK(!_parsed); | 324 | 59.8k | size_t unused; | 325 | 59.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 59.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 59.8k | if (_data.size != | 329 | 59.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 59.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 59.8k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 59.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 59.8k | _parsed = true; | 349 | 59.8k | return Status::OK(); | 350 | 59.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 67.3k | Status init() override { | 323 | 67.3k | CHECK(!_parsed); | 324 | 67.3k | size_t unused; | 325 | 67.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 67.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 67.3k | if (_data.size != | 329 | 67.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 67.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 67.3k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 67.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 67.3k | _parsed = true; | 349 | 67.3k | return Status::OK(); | 350 | 67.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 2.43k | Status init() override { | 323 | 2.43k | CHECK(!_parsed); | 324 | 2.43k | size_t unused; | 325 | 2.43k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.43k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.43k | if (_data.size != | 329 | 2.43k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 2.43k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.43k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 2.43k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 2.43k | _parsed = true; | 349 | 2.43k | return Status::OK(); | 350 | 2.43k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 14.7k | Status init() override { | 323 | 14.7k | CHECK(!_parsed); | 324 | 14.7k | size_t unused; | 325 | 14.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 14.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 14.7k | if (_data.size != | 329 | 14.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 14.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 14.7k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 14.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 14.7k | _parsed = true; | 349 | 14.7k | return Status::OK(); | 350 | 14.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 322 | 1.43k | Status init() override { | 323 | 1.43k | CHECK(!_parsed); | 324 | 1.43k | size_t unused; | 325 | 1.43k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.43k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.43k | if (_data.size != | 329 | 1.43k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.43k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.43k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.43k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.43k | _parsed = true; | 349 | 1.43k | return Status::OK(); | 350 | 1.43k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.0k | Status init() override { | 323 | 15.0k | CHECK(!_parsed); | 324 | 15.0k | size_t unused; | 325 | 15.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.0k | if (_data.size != | 329 | 15.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 15.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.0k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 15.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 15.0k | _parsed = true; | 349 | 15.0k | return Status::OK(); | 350 | 15.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 40.2k | Status init() override { | 323 | 40.2k | CHECK(!_parsed); | 324 | 40.2k | size_t unused; | 325 | 40.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 40.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 40.2k | if (_data.size != | 329 | 40.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 40.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 40.2k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 40.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 40.2k | _parsed = true; | 349 | 40.2k | return Status::OK(); | 350 | 40.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 30.1k | Status init() override { | 323 | 30.1k | CHECK(!_parsed); | 324 | 30.1k | size_t unused; | 325 | 30.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.1k | if (_data.size != | 329 | 30.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 30.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.1k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 30.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 30.1k | _parsed = true; | 349 | 30.1k | return Status::OK(); | 350 | 30.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.76k | Status init() override { | 323 | 1.76k | CHECK(!_parsed); | 324 | 1.76k | size_t unused; | 325 | 1.76k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.76k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.76k | if (_data.size != | 329 | 1.76k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.76k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.76k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.76k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.76k | _parsed = true; | 349 | 1.76k | return Status::OK(); | 350 | 1.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 322 | 1.18k | Status init() override { | 323 | 1.18k | CHECK(!_parsed); | 324 | 1.18k | size_t unused; | 325 | 1.18k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.18k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.18k | if (_data.size != | 329 | 1.18k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.18k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.18k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.18k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.18k | _parsed = true; | 349 | 1.18k | return Status::OK(); | 350 | 1.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 322 | 1.15k | Status init() override { | 323 | 1.15k | CHECK(!_parsed); | 324 | 1.15k | size_t unused; | 325 | 1.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.15k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.15k | if (_data.size != | 329 | 1.15k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.15k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.15k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.15k | _parsed = true; | 349 | 1.15k | return Status::OK(); | 350 | 1.15k | } |
|
351 | | |
352 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
353 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
354 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
355 | | // code such as check if the count == 0, then skip seek, but there are other method such |
356 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
357 | | // == 0, because next batch will return empty in this method. |
358 | 1.51M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 1.51M | if (_num_elements == 0) [[unlikely]] { |
361 | 5.30k | if (pos != 0) { |
362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
364 | 0 | } |
365 | 5.30k | } |
366 | | |
367 | 1.51M | DCHECK_LE(pos, _num_elements); |
368 | 1.51M | _cur_index = pos; |
369 | 1.51M | return Status::OK(); |
370 | 1.51M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 798k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 798k | if (_num_elements == 0) [[unlikely]] { | 361 | 2.12k | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 2.12k | } | 366 | | | 367 | 798k | DCHECK_LE(pos, _num_elements); | 368 | 798k | _cur_index = pos; | 369 | 798k | return Status::OK(); | 370 | 798k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 56.6k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 56.6k | if (_num_elements == 0) [[unlikely]] { | 361 | 440 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 440 | } | 366 | | | 367 | 56.6k | DCHECK_LE(pos, _num_elements); | 368 | 56.6k | _cur_index = pos; | 369 | 56.6k | return Status::OK(); | 370 | 56.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 4.37k | Status seek_to_position_in_page(size_t pos) override { | 359 | 4.37k | DCHECK(_parsed) << "Must call init()"; | 360 | 4.37k | if (_num_elements == 0) [[unlikely]] { | 361 | 1.35k | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 1.35k | } | 366 | | | 367 | 4.37k | DCHECK_LE(pos, _num_elements); | 368 | 4.37k | _cur_index = pos; | 369 | 4.37k | return Status::OK(); | 370 | 4.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 162k | Status seek_to_position_in_page(size_t pos) override { | 359 | 162k | DCHECK(_parsed) << "Must call init()"; | 360 | 162k | if (_num_elements == 0) [[unlikely]] { | 361 | 332 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 332 | } | 366 | | | 367 | 162k | DCHECK_LE(pos, _num_elements); | 368 | 162k | _cur_index = pos; | 369 | 162k | return Status::OK(); | 370 | 162k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 10.3k | Status seek_to_position_in_page(size_t pos) override { | 359 | 10.3k | DCHECK(_parsed) << "Must call init()"; | 360 | 10.3k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 10.3k | DCHECK_LE(pos, _num_elements); | 368 | 10.3k | _cur_index = pos; | 369 | 10.3k | return Status::OK(); | 370 | 10.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 4.13k | Status seek_to_position_in_page(size_t pos) override { | 359 | 4.13k | DCHECK(_parsed) << "Must call init()"; | 360 | 4.13k | if (_num_elements == 0) [[unlikely]] { | 361 | 6 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 6 | } | 366 | | | 367 | 4.13k | DCHECK_LE(pos, _num_elements); | 368 | 4.13k | _cur_index = pos; | 369 | 4.13k | return Status::OK(); | 370 | 4.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 16.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 16.5k | DCHECK(_parsed) << "Must call init()"; | 360 | 16.5k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 16.5k | DCHECK_LE(pos, _num_elements); | 368 | 16.5k | _cur_index = pos; | 369 | 16.5k | return Status::OK(); | 370 | 16.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.4k | Status seek_to_position_in_page(size_t pos) override { | 359 | 13.4k | DCHECK(_parsed) << "Must call init()"; | 360 | 13.4k | if (_num_elements == 0) [[unlikely]] { | 361 | 2 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 2 | } | 366 | | | 367 | 13.4k | DCHECK_LE(pos, _num_elements); | 368 | 13.4k | _cur_index = pos; | 369 | 13.4k | return Status::OK(); | 370 | 13.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 10.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 10.7k | DCHECK(_parsed) << "Must call init()"; | 360 | 10.7k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 10.7k | DCHECK_LE(pos, _num_elements); | 368 | 10.7k | _cur_index = pos; | 369 | 10.7k | return Status::OK(); | 370 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 333k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 333k | if (_num_elements == 0) [[unlikely]] { | 361 | 583 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 583 | } | 366 | | | 367 | 333k | DCHECK_LE(pos, _num_elements); | 368 | 333k | _cur_index = pos; | 369 | 333k | return Status::OK(); | 370 | 333k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 60.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 60.5k | if (_num_elements == 0) [[unlikely]] { | 361 | 17 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 17 | } | 366 | | | 367 | 60.5k | DCHECK_LE(pos, _num_elements); | 368 | 60.5k | _cur_index = pos; | 369 | 60.5k | return Status::OK(); | 370 | 60.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.54k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.54k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.54k | if (_num_elements == 0) [[unlikely]] { | 361 | 16 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 16 | } | 366 | | | 367 | 7.54k | DCHECK_LE(pos, _num_elements); | 368 | 7.54k | _cur_index = pos; | 369 | 7.54k | return Status::OK(); | 370 | 7.54k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 6.52k | Status seek_to_position_in_page(size_t pos) override { | 359 | 6.52k | DCHECK(_parsed) << "Must call init()"; | 360 | 6.52k | if (_num_elements == 0) [[unlikely]] { | 361 | 361 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 361 | } | 366 | | | 367 | 6.52k | DCHECK_LE(pos, _num_elements); | 368 | 6.52k | _cur_index = pos; | 369 | 6.52k | return Status::OK(); | 370 | 6.52k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 124 | Status seek_to_position_in_page(size_t pos) override { | 359 | 124 | DCHECK(_parsed) << "Must call init()"; | 360 | 124 | if (_num_elements == 0) [[unlikely]] { | 361 | 12 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 12 | } | 366 | | | 367 | 124 | DCHECK_LE(pos, _num_elements); | 368 | 124 | _cur_index = pos; | 369 | 124 | return Status::OK(); | 370 | 124 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 795 | Status seek_to_position_in_page(size_t pos) override { | 359 | 795 | DCHECK(_parsed) << "Must call init()"; | 360 | 795 | if (_num_elements == 0) [[unlikely]] { | 361 | 26 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 26 | } | 366 | | | 367 | 795 | DCHECK_LE(pos, _num_elements); | 368 | 795 | _cur_index = pos; | 369 | 795 | return Status::OK(); | 370 | 795 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 14.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 14.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 12 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 12 | } | 366 | | | 367 | 14.9k | DCHECK_LE(pos, _num_elements); | 368 | 14.9k | _cur_index = pos; | 369 | 14.9k | return Status::OK(); | 370 | 14.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 13.5k | DCHECK(_parsed) << "Must call init()"; | 360 | 13.5k | if (_num_elements == 0) [[unlikely]] { | 361 | 10 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 10 | } | 366 | | | 367 | 13.5k | DCHECK_LE(pos, _num_elements); | 368 | 13.5k | _cur_index = pos; | 369 | 13.5k | return Status::OK(); | 370 | 13.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.98k | Status seek_to_position_in_page(size_t pos) override { | 359 | 1.98k | DCHECK(_parsed) << "Must call init()"; | 360 | 1.98k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 1.98k | DCHECK_LE(pos, _num_elements); | 368 | 1.98k | _cur_index = pos; | 369 | 1.98k | return Status::OK(); | 370 | 1.98k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 72 | Status seek_to_position_in_page(size_t pos) override { | 359 | 72 | DCHECK(_parsed) << "Must call init()"; | 360 | 72 | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 72 | DCHECK_LE(pos, _num_elements); | 368 | 72 | _cur_index = pos; | 369 | 72 | return Status::OK(); | 370 | 72 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 89 | Status seek_to_position_in_page(size_t pos) override { | 359 | 89 | DCHECK(_parsed) << "Must call init()"; | 360 | 89 | if (_num_elements == 0) [[unlikely]] { | 361 | 1 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 1 | } | 366 | | | 367 | 89 | DCHECK_LE(pos, _num_elements); | 368 | 89 | _cur_index = pos; | 369 | 89 | return Status::OK(); | 370 | 89 | } |
|
371 | | |
372 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
373 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
374 | |
|
375 | 0 | if (_num_elements == 0) { |
376 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
377 | 0 | } |
378 | | |
379 | 0 | size_t left = 0; |
380 | 0 | size_t right = _num_elements; |
381 | |
|
382 | 0 | void* mid_value = nullptr; |
383 | | |
384 | | // find the first value >= target. after loop, |
385 | | // - left == index of first value >= target when found |
386 | | // - left == _num_elements when not found (all values < target) |
387 | 0 | while (left < right) { |
388 | 0 | size_t mid = left + (right - left) / 2; |
389 | 0 | mid_value = get_data(mid); |
390 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
391 | 0 | left = mid + 1; |
392 | 0 | } else { |
393 | 0 | right = mid; |
394 | 0 | } |
395 | 0 | } |
396 | 0 | if (left >= _num_elements) { |
397 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
398 | 0 | } |
399 | 0 | void* find_value = get_data(left); |
400 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
401 | 0 | *exact_match = true; |
402 | 0 | } else { |
403 | 0 | *exact_match = false; |
404 | 0 | } |
405 | |
|
406 | 0 | _cur_index = left; |
407 | 0 | return Status::OK(); |
408 | 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 |
409 | | |
410 | | template <bool forward_index = true> |
411 | 3.14M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 3.14M | DCHECK(_parsed); |
413 | 3.14M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 3.14M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 3.14M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 3.14M | *n = max_fetch; |
422 | 3.14M | if constexpr (forward_index) { |
423 | 2.33M | _cur_index += max_fetch; |
424 | 2.33M | } |
425 | | |
426 | 3.14M | return Status::OK(); |
427 | 3.14M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 644k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 644k | DCHECK(_parsed); | 413 | 644k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 644k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 644k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 644k | *n = max_fetch; | 422 | 644k | if constexpr (forward_index) { | 423 | 644k | _cur_index += max_fetch; | 424 | 644k | } | 425 | | | 426 | 644k | return Status::OK(); | 427 | 644k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 454k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 454k | DCHECK(_parsed); | 413 | 454k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 454k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 454k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 454k | *n = max_fetch; | 422 | 454k | if constexpr (forward_index) { | 423 | 454k | _cur_index += max_fetch; | 424 | 454k | } | 425 | | | 426 | 454k | return Status::OK(); | 427 | 454k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 14.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 14.2k | DCHECK(_parsed); | 413 | 14.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 14.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 14.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 14.2k | *n = max_fetch; | 422 | 14.2k | if constexpr (forward_index) { | 423 | 14.2k | _cur_index += max_fetch; | 424 | 14.2k | } | 425 | | | 426 | 14.2k | return Status::OK(); | 427 | 14.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 72.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 72.9k | DCHECK(_parsed); | 413 | 72.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 72.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 72.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 72.9k | *n = max_fetch; | 422 | 72.9k | if constexpr (forward_index) { | 423 | 72.9k | _cur_index += max_fetch; | 424 | 72.9k | } | 425 | | | 426 | 72.9k | return Status::OK(); | 427 | 72.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 458k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 458k | DCHECK(_parsed); | 413 | 458k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 458k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 458k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 458k | *n = max_fetch; | 422 | 458k | if constexpr (forward_index) { | 423 | 458k | _cur_index += max_fetch; | 424 | 458k | } | 425 | | | 426 | 458k | return Status::OK(); | 427 | 458k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 809k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 809k | DCHECK(_parsed); | 413 | 809k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 809k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 809k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 809k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 809k | return Status::OK(); | 427 | 809k | } |
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 | 411 | 14.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 14.8k | DCHECK(_parsed); | 413 | 14.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 14.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 14.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 14.8k | *n = max_fetch; | 422 | 14.8k | if constexpr (forward_index) { | 423 | 14.8k | _cur_index += max_fetch; | 424 | 14.8k | } | 425 | | | 426 | 14.8k | return Status::OK(); | 427 | 14.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 14.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 14.4k | DCHECK(_parsed); | 413 | 14.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 14.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 14.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 14.4k | *n = max_fetch; | 422 | 14.4k | if constexpr (forward_index) { | 423 | 14.4k | _cur_index += max_fetch; | 424 | 14.4k | } | 425 | | | 426 | 14.4k | return Status::OK(); | 427 | 14.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 31.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 31.1k | DCHECK(_parsed); | 413 | 31.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 31.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 31.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 31.1k | *n = max_fetch; | 422 | 31.1k | if constexpr (forward_index) { | 423 | 31.1k | _cur_index += max_fetch; | 424 | 31.1k | } | 425 | | | 426 | 31.1k | return Status::OK(); | 427 | 31.1k | } |
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 | 411 | 4.02k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 4.02k | DCHECK(_parsed); | 413 | 4.02k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 4.02k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 4.02k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 4.02k | *n = max_fetch; | 422 | 4.02k | if constexpr (forward_index) { | 423 | 4.02k | _cur_index += max_fetch; | 424 | 4.02k | } | 425 | | | 426 | 4.02k | return Status::OK(); | 427 | 4.02k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 438k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 438k | DCHECK(_parsed); | 413 | 439k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 438k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 438k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 438k | *n = max_fetch; | 422 | 438k | if constexpr (forward_index) { | 423 | 438k | _cur_index += max_fetch; | 424 | 438k | } | 425 | | | 426 | 438k | return Status::OK(); | 427 | 438k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 82.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 82.7k | DCHECK(_parsed); | 413 | 82.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 82.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 82.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 82.7k | *n = max_fetch; | 422 | 82.7k | if constexpr (forward_index) { | 423 | 82.7k | _cur_index += max_fetch; | 424 | 82.7k | } | 425 | | | 426 | 82.7k | return Status::OK(); | 427 | 82.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 1.19k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.19k | DCHECK(_parsed); | 413 | 1.19k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.19k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.19k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.19k | *n = max_fetch; | 422 | 1.19k | if constexpr (forward_index) { | 423 | 1.19k | _cur_index += max_fetch; | 424 | 1.19k | } | 425 | | | 426 | 1.19k | return Status::OK(); | 427 | 1.19k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 6.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 6.81k | DCHECK(_parsed); | 413 | 6.81k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 6.81k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 6.81k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 6.81k | *n = max_fetch; | 422 | 6.81k | if constexpr (forward_index) { | 423 | 6.81k | _cur_index += max_fetch; | 424 | 6.81k | } | 425 | | | 426 | 6.81k | return Status::OK(); | 427 | 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 | 411 | 1.33k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.33k | DCHECK(_parsed); | 413 | 1.33k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.33k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.33k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.33k | *n = max_fetch; | 422 | 1.33k | if constexpr (forward_index) { | 423 | 1.33k | _cur_index += max_fetch; | 424 | 1.33k | } | 425 | | | 426 | 1.33k | return Status::OK(); | 427 | 1.33k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 8.17k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.17k | DCHECK(_parsed); | 413 | 8.17k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.17k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.17k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.17k | *n = max_fetch; | 422 | 8.17k | if constexpr (forward_index) { | 423 | 8.17k | _cur_index += max_fetch; | 424 | 8.17k | } | 425 | | | 426 | 8.17k | return Status::OK(); | 427 | 8.17k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 41.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 41.1k | DCHECK(_parsed); | 413 | 41.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 41.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 41.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 41.1k | *n = max_fetch; | 422 | 41.1k | if constexpr (forward_index) { | 423 | 41.1k | _cur_index += max_fetch; | 424 | 41.1k | } | 425 | | | 426 | 41.1k | return Status::OK(); | 427 | 41.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 29.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 29.3k | DCHECK(_parsed); | 413 | 29.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 29.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 29.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 29.3k | *n = max_fetch; | 422 | 29.3k | if constexpr (forward_index) { | 423 | 29.3k | _cur_index += max_fetch; | 424 | 29.3k | } | 425 | | | 426 | 29.3k | return Status::OK(); | 427 | 29.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 3.20k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.20k | DCHECK(_parsed); | 413 | 3.20k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.20k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.20k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.20k | *n = max_fetch; | 422 | 3.20k | if constexpr (forward_index) { | 423 | 3.20k | _cur_index += max_fetch; | 424 | 3.20k | } | 425 | | | 426 | 3.20k | return Status::OK(); | 427 | 3.20k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 5.76k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 5.76k | DCHECK(_parsed); | 413 | 5.76k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 5.76k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 5.76k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 5.76k | *n = max_fetch; | 422 | 5.76k | if constexpr (forward_index) { | 423 | 5.76k | _cur_index += max_fetch; | 424 | 5.76k | } | 425 | | | 426 | 5.76k | return Status::OK(); | 427 | 5.76k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 5.78k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 5.78k | DCHECK(_parsed); | 413 | 5.78k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 5.78k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 5.78k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 5.78k | *n = max_fetch; | 422 | 5.78k | if constexpr (forward_index) { | 423 | 5.78k | _cur_index += max_fetch; | 424 | 5.78k | } | 425 | | | 426 | 5.78k | return Status::OK(); | 427 | 5.78k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 2.33M | 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 | 429 | 644k | 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 | 429 | 454k | 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 | 429 | 14.3k | 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 | 429 | 72.9k | 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 | 429 | 459k | 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 | 429 | 14.8k | 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 | 429 | 14.4k | 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 | 429 | 31.1k | 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 | 429 | 4.03k | 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 | 429 | 438k | 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 | 429 | 82.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 | 429 | 1.19k | 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 | 429 | 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 | 429 | 1.33k | 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 | 429 | 8.17k | 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 | 429 | 41.1k | 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 | 429 | 29.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 3.20k | 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 | 429 | 5.76k | 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 | 429 | 5.78k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
430 | | |
431 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
432 | 318k | MutableColumnPtr& dst) override { |
433 | 318k | DCHECK(_parsed); |
434 | 318k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 318k | auto total = *n; |
440 | 318k | auto read_count = 0; |
441 | 318k | _buffer.resize(total); |
442 | 71.9M | for (size_t i = 0; i < total; ++i) { |
443 | 71.6M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 71.6M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 8.47k | break; |
446 | 8.47k | } |
447 | | |
448 | 71.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 71.6M | } |
450 | | |
451 | 318k | if (LIKELY(read_count > 0)) { |
452 | 318k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 318k | } |
454 | | |
455 | 318k | *n = read_count; |
456 | 318k | return Status::OK(); |
457 | 318k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 72.6k | MutableColumnPtr& dst) override { | 433 | 72.6k | DCHECK(_parsed); | 434 | 72.6k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 72.6k | auto total = *n; | 440 | 72.6k | auto read_count = 0; | 441 | 72.6k | _buffer.resize(total); | 442 | 15.0M | for (size_t i = 0; i < total; ++i) { | 443 | 14.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.9M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.46k | break; | 446 | 1.46k | } | 447 | | | 448 | 14.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.9M | } | 450 | | | 451 | 72.6k | if (LIKELY(read_count > 0)) { | 452 | 72.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 72.6k | } | 454 | | | 455 | 72.6k | *n = read_count; | 456 | 72.6k | return Status::OK(); | 457 | 72.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 19.8k | MutableColumnPtr& dst) override { | 433 | 19.8k | DCHECK(_parsed); | 434 | 19.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 19.8k | auto total = *n; | 440 | 19.8k | auto read_count = 0; | 441 | 19.8k | _buffer.resize(total); | 442 | 756k | for (size_t i = 0; i < total; ++i) { | 443 | 736k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 736k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 736k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 736k | } | 450 | | | 451 | 19.8k | if (LIKELY(read_count > 0)) { | 452 | 19.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 19.8k | } | 454 | | | 455 | 19.8k | *n = read_count; | 456 | 19.8k | return Status::OK(); | 457 | 19.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.10k | MutableColumnPtr& dst) override { | 433 | 4.10k | DCHECK(_parsed); | 434 | 4.10k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.10k | auto total = *n; | 440 | 4.10k | auto read_count = 0; | 441 | 4.10k | _buffer.resize(total); | 442 | 45.9k | for (size_t i = 0; i < total; ++i) { | 443 | 41.8k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 41.8k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 41.8k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 41.8k | } | 450 | | | 451 | 4.11k | if (LIKELY(read_count > 0)) { | 452 | 4.11k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.11k | } | 454 | | | 455 | 4.10k | *n = read_count; | 456 | 4.10k | return Status::OK(); | 457 | 4.10k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 29.2k | MutableColumnPtr& dst) override { | 433 | 29.2k | DCHECK(_parsed); | 434 | 29.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 29.2k | auto total = *n; | 440 | 29.2k | auto read_count = 0; | 441 | 29.2k | _buffer.resize(total); | 442 | 3.58M | for (size_t i = 0; i < total; ++i) { | 443 | 3.55M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.55M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 390 | break; | 446 | 390 | } | 447 | | | 448 | 3.55M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.55M | } | 450 | | | 451 | 29.2k | if (LIKELY(read_count > 0)) { | 452 | 29.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 29.2k | } | 454 | | | 455 | 29.2k | *n = read_count; | 456 | 29.2k | return Status::OK(); | 457 | 29.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 34.2k | MutableColumnPtr& dst) override { | 433 | 34.2k | DCHECK(_parsed); | 434 | 34.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 34.2k | auto total = *n; | 440 | 34.2k | auto read_count = 0; | 441 | 34.2k | _buffer.resize(total); | 442 | 434k | for (size_t i = 0; i < total; ++i) { | 443 | 400k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 400k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 400k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 400k | } | 450 | | | 451 | 34.2k | if (LIKELY(read_count > 0)) { | 452 | 34.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 34.2k | } | 454 | | | 455 | 34.2k | *n = read_count; | 456 | 34.2k | return Status::OK(); | 457 | 34.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 5.97k | MutableColumnPtr& dst) override { | 433 | 5.97k | DCHECK(_parsed); | 434 | 5.97k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 5.97k | auto total = *n; | 440 | 5.97k | auto read_count = 0; | 441 | 5.97k | _buffer.resize(total); | 442 | 14.2k | for (size_t i = 0; i < total; ++i) { | 443 | 8.23k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 8.23k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 8.23k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 8.23k | } | 450 | | | 451 | 5.97k | if (LIKELY(read_count > 0)) { | 452 | 5.97k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 5.97k | } | 454 | | | 455 | 5.97k | *n = read_count; | 456 | 5.97k | return Status::OK(); | 457 | 5.97k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.8k | MutableColumnPtr& dst) override { | 433 | 10.8k | DCHECK(_parsed); | 434 | 10.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.8k | auto total = *n; | 440 | 10.8k | auto read_count = 0; | 441 | 10.8k | _buffer.resize(total); | 442 | 1.19M | for (size_t i = 0; i < total; ++i) { | 443 | 1.18M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.18M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 28 | break; | 446 | 28 | } | 447 | | | 448 | 1.18M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.18M | } | 450 | | | 451 | 10.8k | if (LIKELY(read_count > 0)) { | 452 | 10.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.8k | } | 454 | | | 455 | 10.8k | *n = read_count; | 456 | 10.8k | return Status::OK(); | 457 | 10.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 14.7k | MutableColumnPtr& dst) override { | 433 | 14.7k | DCHECK(_parsed); | 434 | 14.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 14.7k | auto total = *n; | 440 | 14.7k | auto read_count = 0; | 441 | 14.7k | _buffer.resize(total); | 442 | 2.35M | for (size_t i = 0; i < total; ++i) { | 443 | 2.33M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 2.33M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 574 | break; | 446 | 574 | } | 447 | | | 448 | 2.33M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 2.33M | } | 450 | | | 451 | 14.7k | if (LIKELY(read_count > 0)) { | 452 | 14.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 14.7k | } | 454 | | | 455 | 14.7k | *n = read_count; | 456 | 14.7k | return Status::OK(); | 457 | 14.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.19k | MutableColumnPtr& dst) override { | 433 | 2.19k | DCHECK(_parsed); | 434 | 2.19k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.19k | auto total = *n; | 440 | 2.19k | auto read_count = 0; | 441 | 2.19k | _buffer.resize(total); | 442 | 566k | for (size_t i = 0; i < total; ++i) { | 443 | 564k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 564k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 14 | break; | 446 | 14 | } | 447 | | | 448 | 564k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 564k | } | 450 | | | 451 | 2.19k | if (LIKELY(read_count > 0)) { | 452 | 2.19k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.19k | } | 454 | | | 455 | 2.19k | *n = read_count; | 456 | 2.19k | return Status::OK(); | 457 | 2.19k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 30.8k | MutableColumnPtr& dst) override { | 433 | 30.8k | DCHECK(_parsed); | 434 | 30.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 30.8k | auto total = *n; | 440 | 30.8k | auto read_count = 0; | 441 | 30.8k | _buffer.resize(total); | 442 | 6.49M | for (size_t i = 0; i < total; ++i) { | 443 | 6.46M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.46M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 823 | break; | 446 | 823 | } | 447 | | | 448 | 6.46M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.46M | } | 450 | | | 451 | 30.8k | if (LIKELY(read_count > 0)) { | 452 | 30.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 30.8k | } | 454 | | | 455 | 30.8k | *n = read_count; | 456 | 30.8k | return Status::OK(); | 457 | 30.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 33.1k | MutableColumnPtr& dst) override { | 433 | 33.1k | DCHECK(_parsed); | 434 | 33.1k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 33.1k | auto total = *n; | 440 | 33.1k | auto read_count = 0; | 441 | 33.1k | _buffer.resize(total); | 442 | 9.87M | for (size_t i = 0; i < total; ++i) { | 443 | 9.83M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 9.83M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 99 | break; | 446 | 99 | } | 447 | | | 448 | 9.83M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 9.83M | } | 450 | | | 451 | 33.1k | if (LIKELY(read_count > 0)) { | 452 | 33.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 33.1k | } | 454 | | | 455 | 33.1k | *n = read_count; | 456 | 33.1k | return Status::OK(); | 457 | 33.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.41k | MutableColumnPtr& dst) override { | 433 | 2.41k | DCHECK(_parsed); | 434 | 2.41k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.41k | auto total = *n; | 440 | 2.41k | auto read_count = 0; | 441 | 2.41k | _buffer.resize(total); | 442 | 575k | for (size_t i = 0; i < total; ++i) { | 443 | 572k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 572k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 82 | break; | 446 | 82 | } | 447 | | | 448 | 572k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 572k | } | 450 | | | 451 | 2.41k | if (LIKELY(read_count > 0)) { | 452 | 2.41k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.41k | } | 454 | | | 455 | 2.41k | *n = read_count; | 456 | 2.41k | return Status::OK(); | 457 | 2.41k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 11.7k | MutableColumnPtr& dst) override { | 433 | 11.7k | DCHECK(_parsed); | 434 | 11.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 11.7k | auto total = *n; | 440 | 11.7k | auto read_count = 0; | 441 | 11.7k | _buffer.resize(total); | 442 | 25.0k | for (size_t i = 0; i < total; ++i) { | 443 | 13.2k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 13.2k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 13.2k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 13.2k | } | 450 | | | 451 | 11.8k | if (LIKELY(read_count > 0)) { | 452 | 11.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 11.8k | } | 454 | | | 455 | 11.7k | *n = read_count; | 456 | 11.7k | return Status::OK(); | 457 | 11.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 177 | MutableColumnPtr& dst) override { | 433 | 177 | DCHECK(_parsed); | 434 | 177 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 177 | auto total = *n; | 440 | 177 | auto read_count = 0; | 441 | 177 | _buffer.resize(total); | 442 | 362 | for (size_t i = 0; i < total; ++i) { | 443 | 185 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 185 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 185 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 185 | } | 450 | | | 451 | 177 | if (LIKELY(read_count > 0)) { | 452 | 177 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 177 | } | 454 | | | 455 | 177 | *n = read_count; | 456 | 177 | return Status::OK(); | 457 | 177 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.67k | MutableColumnPtr& dst) override { | 433 | 4.67k | DCHECK(_parsed); | 434 | 4.67k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.67k | auto total = *n; | 440 | 4.67k | auto read_count = 0; | 441 | 4.67k | _buffer.resize(total); | 442 | 19.2k | for (size_t i = 0; i < total; ++i) { | 443 | 14.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.5k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.5k | } | 450 | | | 451 | 4.67k | if (LIKELY(read_count > 0)) { | 452 | 4.67k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.67k | } | 454 | | | 455 | 4.67k | *n = read_count; | 456 | 4.67k | return Status::OK(); | 457 | 4.67k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 24.7k | MutableColumnPtr& dst) override { | 433 | 24.7k | DCHECK(_parsed); | 434 | 24.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 24.7k | auto total = *n; | 440 | 24.7k | auto read_count = 0; | 441 | 24.7k | _buffer.resize(total); | 442 | 21.7M | for (size_t i = 0; i < total; ++i) { | 443 | 21.7M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 21.7M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 4.58k | break; | 446 | 4.58k | } | 447 | | | 448 | 21.7M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 21.7M | } | 450 | | | 451 | 24.7k | if (LIKELY(read_count > 0)) { | 452 | 24.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 24.7k | } | 454 | | | 455 | 24.7k | *n = read_count; | 456 | 24.7k | return Status::OK(); | 457 | 24.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.4k | MutableColumnPtr& dst) override { | 433 | 15.4k | DCHECK(_parsed); | 434 | 15.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.4k | auto total = *n; | 440 | 15.4k | auto read_count = 0; | 441 | 15.4k | _buffer.resize(total); | 442 | 9.28M | for (size_t i = 0; i < total; ++i) { | 443 | 9.26M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 9.26M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 412 | break; | 446 | 412 | } | 447 | | | 448 | 9.26M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 9.26M | } | 450 | | | 451 | 15.4k | if (LIKELY(read_count > 0)) { | 452 | 15.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.4k | } | 454 | | | 455 | 15.4k | *n = read_count; | 456 | 15.4k | return Status::OK(); | 457 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 966 | MutableColumnPtr& dst) override { | 433 | 966 | DCHECK(_parsed); | 434 | 966 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 966 | auto total = *n; | 440 | 966 | auto read_count = 0; | 441 | 966 | _buffer.resize(total); | 442 | 2.78k | for (size_t i = 0; i < total; ++i) { | 443 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.81k | } | 450 | | | 451 | 966 | if (LIKELY(read_count > 0)) { | 452 | 966 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 966 | } | 454 | | | 455 | 966 | *n = read_count; | 456 | 966 | return Status::OK(); | 457 | 966 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 481 | MutableColumnPtr& dst) override { | 433 | 481 | DCHECK(_parsed); | 434 | 481 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 481 | auto total = *n; | 440 | 481 | auto read_count = 0; | 441 | 481 | _buffer.resize(total); | 442 | 1.20k | for (size_t i = 0; i < total; ++i) { | 443 | 725 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 725 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 725 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 725 | } | 450 | | | 451 | 481 | if (LIKELY(read_count > 0)) { | 452 | 481 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 481 | } | 454 | | | 455 | 481 | *n = read_count; | 456 | 481 | return Status::OK(); | 457 | 481 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 410 | MutableColumnPtr& dst) override { | 433 | 410 | DCHECK(_parsed); | 434 | 410 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 410 | auto total = *n; | 440 | 410 | auto read_count = 0; | 441 | 410 | _buffer.resize(total); | 442 | 1.33k | for (size_t i = 0; i < total; ++i) { | 443 | 925 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 925 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 925 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 925 | } | 450 | | | 451 | 410 | if (LIKELY(read_count > 0)) { | 452 | 410 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 410 | } | 454 | | | 455 | 410 | *n = read_count; | 456 | 410 | return Status::OK(); | 457 | 410 | } |
|
458 | | |
459 | 810k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 810k | return next_batch<false>(n, dst); |
461 | 810k | } 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 | 459 | 810k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 810k | return next_batch<false>(n, dst); | 461 | 810k | } |
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 |
462 | | |
463 | 3 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 463 | 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 |
464 | | |
465 | 525k | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 280k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 623 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 386 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 137k | 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 | 465 | 326 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 14.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 10.7k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 6.03k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 20.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 35.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 5.58k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 986 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 465 | 17 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 465 | 3.40k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 804 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 7.99k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 56 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 105 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 75.5M | char* get_data(size_t index) const { |
468 | 75.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 75.5M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 16.2M | char* get_data(size_t index) const { | 468 | 16.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 16.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 1.19M | char* get_data(size_t index) const { | 468 | 1.19M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.19M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 56.1k | char* get_data(size_t index) const { | 468 | 56.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 56.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 3.62M | char* get_data(size_t index) const { | 468 | 3.62M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 3.62M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 467 | 1.66M | char* get_data(size_t index) const { | 468 | 1.66M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.66M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 467 | 23.1k | char* get_data(size_t index) const { | 468 | 23.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 23.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.20M | char* get_data(size_t index) const { | 468 | 1.20M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.20M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 2.37M | char* get_data(size_t index) const { | 468 | 2.37M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 2.37M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 568k | char* get_data(size_t index) const { | 468 | 568k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 568k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 6.90M | char* get_data(size_t index) const { | 468 | 6.90M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.90M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 9.92M | char* get_data(size_t index) const { | 468 | 9.92M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 9.92M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 573k | char* get_data(size_t index) const { | 468 | 573k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 573k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 20.0k | char* get_data(size_t index) const { | 468 | 20.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 20.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.51k | char* get_data(size_t index) const { | 468 | 1.51k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.51k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 467 | 22.7k | char* get_data(size_t index) const { | 468 | 22.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.7k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 21.7M | char* get_data(size_t index) const { | 468 | 21.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 21.7M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 9.29M | char* get_data(size_t index) const { | 468 | 9.29M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 9.29M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 467 | 5.02k | char* get_data(size_t index) const { | 468 | 5.02k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.02k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 467 | 6.49k | char* get_data(size_t index) const { | 468 | 6.49k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.49k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 6.70k | char* get_data(size_t index) const { | 468 | 6.70k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.70k | } |
|
470 | | |
471 | | private: |
472 | | void _copy_next_values(size_t n, void* data) { |
473 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
474 | | } |
475 | | |
476 | | using CppType = typename TypeTraits<Type>::CppType; |
477 | | |
478 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
479 | | |
480 | | Slice _data; |
481 | | PageDecoderOptions _options; |
482 | | bool _parsed; |
483 | | size_t _num_elements; |
484 | | size_t _num_element_after_padding; |
485 | | |
486 | | int _size_of_element; |
487 | | size_t _cur_index; |
488 | | |
489 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
490 | | |
491 | | friend class BinaryDictPageDecoder; |
492 | | }; |
493 | | |
494 | | #include "common/compile_check_end.h" |
495 | | } // namespace segment_v2 |
496 | | } // namespace doris |