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 | 833k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 360k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 55.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 9.21k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 177k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 65.2k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 11.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 11.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 14.2k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 185 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 36.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 44.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 314 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 6.95k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 195 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.55k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 15.9k | 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 | 785 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 700 | Status init() override { return reset(); } |
|
97 | | |
98 | 140M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 140M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 64.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 14.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 400k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 65.4k | 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 | 11.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 11.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 16.3k | 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 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 79.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 46.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 379 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 6.87k | 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.16k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 35.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 16.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.36k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 711 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 3.12k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.50M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.50M | return add_internal<false>(vals, count); |
102 | 1.50M | } _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 | 64.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 64.9k | return add_internal<false>(vals, count); | 102 | 64.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 14.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 14.4k | return add_internal<false>(vals, count); | 102 | 14.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 400k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 400k | return add_internal<false>(vals, count); | 102 | 400k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 65.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 65.4k | return add_internal<false>(vals, count); | 102 | 65.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 11.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.0k | return add_internal<false>(vals, count); | 102 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 11.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.5k | return add_internal<false>(vals, count); | 102 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 16.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.3k | return add_internal<false>(vals, count); | 102 | 16.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 192 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 192 | return add_internal<false>(vals, count); | 102 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 79.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 79.2k | return add_internal<false>(vals, count); | 102 | 79.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 46.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 46.2k | return add_internal<false>(vals, count); | 102 | 46.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 377 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 377 | return add_internal<false>(vals, count); | 102 | 377 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 6.87k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 6.87k | return add_internal<false>(vals, count); | 102 | 6.87k | } |
_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.16k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.16k | return add_internal<false>(vals, count); | 102 | 5.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 35.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 35.8k | return add_internal<false>(vals, count); | 102 | 35.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 16.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.9k | return add_internal<false>(vals, count); | 102 | 16.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.36k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.36k | return add_internal<false>(vals, count); | 102 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 711 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 711 | return add_internal<false>(vals, count); | 102 | 711 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 3.12k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 3.12k | return add_internal<false>(vals, count); | 102 | 3.12k | } |
|
103 | | |
104 | 141M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 141M | return add_internal<true>(vals, count); |
106 | 141M | } |
107 | | |
108 | | template <bool single> |
109 | 141M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 141M | DCHECK(!_finished); |
111 | 141M | 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 | 141M | uint32_t to_add = cast_set<UInt32>( |
127 | 141M | 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 | 141M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 141M | 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 | 141M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 141M | _count += to_add; |
135 | 141M | _remain_element_capacity -= to_add; |
136 | 141M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 141M | *num_written = to_add; |
139 | 141M | 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 | 140M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 140M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 140M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 140M | 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 | 140M | } |
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 | 141M | return Status::OK(); |
160 | 141M | } _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 | 140M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 140M | DCHECK(!_finished); | 111 | 140M | 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 | 140M | uint32_t to_add = cast_set<UInt32>( | 127 | 140M | 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 | 140M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 140M | 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 | 140M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 140M | _count += to_add; | 135 | 140M | _remain_element_capacity -= to_add; | 136 | 140M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 140M | *num_written = to_add; | 139 | 140M | 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 | 140M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 140M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 140M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 140M | 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 | 140M | } | 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 | 140M | return Status::OK(); | 160 | 140M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 64.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 64.9k | DCHECK(!_finished); | 111 | 64.9k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 64.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 64.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 64.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 64.9k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 64.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 64.9k | _count += to_add; | 135 | 64.9k | _remain_element_capacity -= to_add; | 136 | 64.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 64.9k | *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 | 64.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 64.9k | return Status::OK(); | 160 | 64.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 14.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 14.4k | DCHECK(!_finished); | 111 | 14.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 | 14.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 14.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 | 14.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 14.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 | 14.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 14.4k | _count += to_add; | 135 | 14.4k | _remain_element_capacity -= to_add; | 136 | 14.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 14.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 | 14.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 14.4k | return Status::OK(); | 160 | 14.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 400k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 400k | DCHECK(!_finished); | 111 | 400k | 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 | 400k | uint32_t to_add = cast_set<UInt32>( | 127 | 400k | 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 | 400k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 400k | 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 | 400k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 400k | _count += to_add; | 135 | 400k | _remain_element_capacity -= to_add; | 136 | 400k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 400k | *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 | 400k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 400k | return Status::OK(); | 160 | 400k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 65.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 65.4k | DCHECK(!_finished); | 111 | 65.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 | 65.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 65.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 | 65.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 65.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 | 65.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 65.4k | _count += to_add; | 135 | 65.4k | _remain_element_capacity -= to_add; | 136 | 65.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 65.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 | 65.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 65.4k | return Status::OK(); | 160 | 65.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.0k | DCHECK(!_finished); | 111 | 11.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 | 11.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.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 | 11.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.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 | 11.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.0k | _count += to_add; | 135 | 11.0k | _remain_element_capacity -= to_add; | 136 | 11.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.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 | 11.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.0k | return Status::OK(); | 160 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.5k | DCHECK(!_finished); | 111 | 11.5k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 11.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.5k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 11.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.5k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 11.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.5k | _count += to_add; | 135 | 11.5k | _remain_element_capacity -= to_add; | 136 | 11.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.5k | *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 | 11.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.5k | return Status::OK(); | 160 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.3k | DCHECK(!_finished); | 111 | 16.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 | 16.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.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 | 16.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.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 | 16.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.3k | _count += to_add; | 135 | 16.3k | _remain_element_capacity -= to_add; | 136 | 16.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.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 | 16.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.3k | return Status::OK(); | 160 | 16.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 192 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 192 | DCHECK(!_finished); | 111 | 192 | 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 | 192 | uint32_t to_add = cast_set<UInt32>( | 127 | 192 | 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 | 192 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 192 | 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 | 192 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 192 | _count += to_add; | 135 | 192 | _remain_element_capacity -= to_add; | 136 | 192 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 192 | *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 | 192 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 192 | return Status::OK(); | 160 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 79.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 79.2k | DCHECK(!_finished); | 111 | 79.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 | 79.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 79.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 | 79.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 79.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 | 79.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 79.2k | _count += to_add; | 135 | 79.2k | _remain_element_capacity -= to_add; | 136 | 79.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 79.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 | 79.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 79.2k | return Status::OK(); | 160 | 79.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 46.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 46.2k | DCHECK(!_finished); | 111 | 46.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 | 46.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 46.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 | 46.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 46.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 | 46.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 46.2k | _count += to_add; | 135 | 46.2k | _remain_element_capacity -= to_add; | 136 | 46.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 46.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 | 46.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 46.2k | return Status::OK(); | 160 | 46.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 379 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 379 | DCHECK(!_finished); | 111 | 379 | 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 | 379 | uint32_t to_add = cast_set<UInt32>( | 127 | 379 | 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 | 379 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 379 | 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 | 379 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 379 | _count += to_add; | 135 | 379 | _remain_element_capacity -= to_add; | 136 | 379 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 379 | *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 | 379 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 379 | return Status::OK(); | 160 | 379 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 6.87k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 6.87k | DCHECK(!_finished); | 111 | 6.87k | 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.87k | uint32_t to_add = cast_set<UInt32>( | 127 | 6.87k | 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.87k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 6.87k | 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.87k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 6.87k | _count += to_add; | 135 | 6.87k | _remain_element_capacity -= to_add; | 136 | 6.87k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 6.87k | *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.87k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 6.87k | return Status::OK(); | 160 | 6.87k | } |
_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.16k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.16k | DCHECK(!_finished); | 111 | 5.16k | 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.16k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.16k | 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.16k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.16k | 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.16k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.16k | _count += to_add; | 135 | 5.16k | _remain_element_capacity -= to_add; | 136 | 5.16k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.16k | *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.16k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.16k | return Status::OK(); | 160 | 5.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 35.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 35.8k | DCHECK(!_finished); | 111 | 35.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 | 35.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 35.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 | 35.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 35.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 | 35.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 35.8k | _count += to_add; | 135 | 35.8k | _remain_element_capacity -= to_add; | 136 | 35.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 35.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 | 35.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 35.8k | return Status::OK(); | 160 | 35.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.9k | DCHECK(!_finished); | 111 | 16.9k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 16.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 16.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.9k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 16.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.9k | _count += to_add; | 135 | 16.9k | _remain_element_capacity -= to_add; | 136 | 16.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.9k | *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.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.9k | return Status::OK(); | 160 | 16.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.36k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.36k | DCHECK(!_finished); | 111 | 1.36k | 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.36k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.36k | 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.36k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.36k | 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.36k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.36k | _count += to_add; | 135 | 1.36k | _remain_element_capacity -= to_add; | 136 | 1.36k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.36k | *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.36k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.36k | return Status::OK(); | 160 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 711 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 711 | DCHECK(!_finished); | 111 | 711 | 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 | 711 | uint32_t to_add = cast_set<UInt32>( | 127 | 711 | 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 | 711 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 711 | 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 | 711 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 711 | _count += to_add; | 135 | 711 | _remain_element_capacity -= to_add; | 136 | 711 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 711 | *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 | 711 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 711 | return Status::OK(); | 160 | 711 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 3.12k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 3.12k | DCHECK(!_finished); | 111 | 3.12k | 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 | 3.12k | uint32_t to_add = cast_set<UInt32>( | 127 | 3.12k | 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 | 3.12k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 3.12k | 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 | 3.12k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 3.12k | _count += to_add; | 135 | 3.12k | _remain_element_capacity -= to_add; | 136 | 3.12k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 3.12k | *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 | 3.12k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 3.12k | return Status::OK(); | 160 | 3.12k | } |
|
161 | | |
162 | 827k | Status finish(OwnedSlice* slice) override { |
163 | 827k | if (_count > 0) { |
164 | 779k | _first_value = cell(0); |
165 | 779k | _last_value = cell(_count - 1); |
166 | 779k | } |
167 | 827k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 827k | return Status::OK(); |
169 | 827k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 349k | Status finish(OwnedSlice* slice) override { | 163 | 349k | if (_count > 0) { | 164 | 315k | _first_value = cell(0); | 165 | 315k | _last_value = cell(_count - 1); | 166 | 315k | } | 167 | 349k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 349k | return Status::OK(); | 169 | 349k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 54.2k | Status finish(OwnedSlice* slice) override { | 163 | 54.2k | if (_count > 0) { | 164 | 53.4k | _first_value = cell(0); | 165 | 53.4k | _last_value = cell(_count - 1); | 166 | 53.4k | } | 167 | 54.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 54.2k | return Status::OK(); | 169 | 54.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.70k | Status finish(OwnedSlice* slice) override { | 163 | 8.70k | if (_count > 0) { | 164 | 8.54k | _first_value = cell(0); | 165 | 8.54k | _last_value = cell(_count - 1); | 166 | 8.54k | } | 167 | 8.70k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 8.70k | return Status::OK(); | 169 | 8.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 179k | Status finish(OwnedSlice* slice) override { | 163 | 179k | if (_count > 0) { | 164 | 176k | _first_value = cell(0); | 165 | 176k | _last_value = cell(_count - 1); | 166 | 176k | } | 167 | 179k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 179k | return Status::OK(); | 169 | 179k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 64.9k | Status finish(OwnedSlice* slice) override { | 163 | 64.9k | if (_count > 0) { | 164 | 64.9k | _first_value = cell(0); | 165 | 64.9k | _last_value = cell(_count - 1); | 166 | 64.9k | } | 167 | 64.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 64.9k | return Status::OK(); | 169 | 64.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 10.9k | Status finish(OwnedSlice* slice) override { | 163 | 10.9k | if (_count > 0) { | 164 | 10.5k | _first_value = cell(0); | 165 | 10.5k | _last_value = cell(_count - 1); | 166 | 10.5k | } | 167 | 10.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 10.9k | return Status::OK(); | 169 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 10.8k | Status finish(OwnedSlice* slice) override { | 163 | 10.8k | if (_count > 0) { | 164 | 10.5k | _first_value = cell(0); | 165 | 10.5k | _last_value = cell(_count - 1); | 166 | 10.5k | } | 167 | 10.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 10.8k | return Status::OK(); | 169 | 10.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.3k | Status finish(OwnedSlice* slice) override { | 163 | 14.3k | if (_count > 0) { | 164 | 13.9k | _first_value = cell(0); | 165 | 13.9k | _last_value = cell(_count - 1); | 166 | 13.9k | } | 167 | 14.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 14.3k | return Status::OK(); | 169 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 197 | Status finish(OwnedSlice* slice) override { | 163 | 197 | if (_count > 0) { | 164 | 192 | _first_value = cell(0); | 165 | 192 | _last_value = cell(_count - 1); | 166 | 192 | } | 167 | 197 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 197 | return Status::OK(); | 169 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 36.9k | Status finish(OwnedSlice* slice) override { | 163 | 36.9k | if (_count > 0) { | 164 | 36.0k | _first_value = cell(0); | 165 | 36.0k | _last_value = cell(_count - 1); | 166 | 36.0k | } | 167 | 36.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 36.9k | return Status::OK(); | 169 | 36.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 42.9k | Status finish(OwnedSlice* slice) override { | 163 | 42.9k | if (_count > 0) { | 164 | 41.6k | _first_value = cell(0); | 165 | 41.6k | _last_value = cell(_count - 1); | 166 | 41.6k | } | 167 | 42.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 42.9k | return Status::OK(); | 169 | 42.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 469 | Status finish(OwnedSlice* slice) override { | 163 | 469 | if (_count > 0) { | 164 | 369 | _first_value = cell(0); | 165 | 369 | _last_value = cell(_count - 1); | 166 | 369 | } | 167 | 469 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 469 | return Status::OK(); | 169 | 469 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.07k | Status finish(OwnedSlice* slice) override { | 163 | 7.07k | if (_count > 0) { | 164 | 6.87k | _first_value = cell(0); | 165 | 6.87k | _last_value = cell(_count - 1); | 166 | 6.87k | } | 167 | 7.07k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.07k | return Status::OK(); | 169 | 7.07k | } |
_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.54k | Status finish(OwnedSlice* slice) override { | 163 | 9.54k | if (_count > 0) { | 164 | 4.68k | _first_value = cell(0); | 165 | 4.68k | _last_value = cell(_count - 1); | 166 | 4.68k | } | 167 | 9.54k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.54k | return Status::OK(); | 169 | 9.54k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.0k | Status finish(OwnedSlice* slice) override { | 163 | 19.0k | if (_count > 0) { | 164 | 18.1k | _first_value = cell(0); | 165 | 18.1k | _last_value = cell(_count - 1); | 166 | 18.1k | } | 167 | 19.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 19.0k | return Status::OK(); | 169 | 19.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 16.0k | Status finish(OwnedSlice* slice) override { | 163 | 16.0k | if (_count > 0) { | 164 | 15.5k | _first_value = cell(0); | 165 | 15.5k | _last_value = cell(_count - 1); | 166 | 15.5k | } | 167 | 16.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 16.0k | return Status::OK(); | 169 | 16.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.05k | Status finish(OwnedSlice* slice) override { | 163 | 1.05k | if (_count > 0) { | 164 | 1.00k | _first_value = cell(0); | 165 | 1.00k | _last_value = cell(_count - 1); | 166 | 1.00k | } | 167 | 1.05k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 1.05k | return Status::OK(); | 169 | 1.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 696 | Status finish(OwnedSlice* slice) override { | 163 | 696 | if (_count > 0) { | 164 | 647 | _first_value = cell(0); | 165 | 647 | _last_value = cell(_count - 1); | 166 | 647 | } | 167 | 696 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 696 | return Status::OK(); | 169 | 696 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 614 | Status finish(OwnedSlice* slice) override { | 163 | 614 | if (_count > 0) { | 164 | 580 | _first_value = cell(0); | 165 | 580 | _last_value = cell(_count - 1); | 166 | 580 | } | 167 | 614 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 614 | return Status::OK(); | 169 | 614 | } |
|
170 | | |
171 | 1.95M | Status reset() override { |
172 | 1.95M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 1.95M | size_t block_size = _options.data_page_size; |
174 | 1.95M | _count = 0; |
175 | 1.95M | _raw_data_size = 0; |
176 | 1.95M | _data.clear(); |
177 | 1.95M | _data.reserve(block_size); |
178 | 1.95M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 1.95M | << "buffer must be naturally-aligned"; |
180 | 1.95M | _buffer.clear(); |
181 | 1.95M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 1.95M | _finished = false; |
183 | 1.95M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 1.95M | }); |
185 | 1.95M | return Status::OK(); |
186 | 1.95M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.00M | Status reset() override { | 172 | 1.00M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.00M | size_t block_size = _options.data_page_size; | 174 | 1.00M | _count = 0; | 175 | 1.00M | _raw_data_size = 0; | 176 | 1.00M | _data.clear(); | 177 | 1.00M | _data.reserve(block_size); | 178 | 1.00M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.00M | << "buffer must be naturally-aligned"; | 180 | 1.00M | _buffer.clear(); | 181 | 1.00M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.00M | _finished = false; | 183 | 1.00M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.00M | }); | 185 | 1.00M | return Status::OK(); | 186 | 1.00M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 109k | Status reset() override { | 172 | 109k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 109k | size_t block_size = _options.data_page_size; | 174 | 109k | _count = 0; | 175 | 109k | _raw_data_size = 0; | 176 | 109k | _data.clear(); | 177 | 109k | _data.reserve(block_size); | 178 | 109k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 109k | << "buffer must be naturally-aligned"; | 180 | 109k | _buffer.clear(); | 181 | 109k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 109k | _finished = false; | 183 | 109k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 109k | }); | 185 | 109k | return Status::OK(); | 186 | 109k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 17.9k | Status reset() override { | 172 | 17.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 17.9k | size_t block_size = _options.data_page_size; | 174 | 17.9k | _count = 0; | 175 | 17.9k | _raw_data_size = 0; | 176 | 17.9k | _data.clear(); | 177 | 17.9k | _data.reserve(block_size); | 178 | 17.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 17.9k | << "buffer must be naturally-aligned"; | 180 | 17.9k | _buffer.clear(); | 181 | 17.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 17.9k | _finished = false; | 183 | 17.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 17.9k | }); | 185 | 17.9k | return Status::OK(); | 186 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 356k | Status reset() override { | 172 | 356k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 356k | size_t block_size = _options.data_page_size; | 174 | 356k | _count = 0; | 175 | 356k | _raw_data_size = 0; | 176 | 356k | _data.clear(); | 177 | 356k | _data.reserve(block_size); | 178 | 356k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 356k | << "buffer must be naturally-aligned"; | 180 | 356k | _buffer.clear(); | 181 | 356k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 356k | _finished = false; | 183 | 356k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 356k | }); | 185 | 356k | return Status::OK(); | 186 | 356k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 130k | Status reset() override { | 172 | 130k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 130k | size_t block_size = _options.data_page_size; | 174 | 130k | _count = 0; | 175 | 130k | _raw_data_size = 0; | 176 | 130k | _data.clear(); | 177 | 130k | _data.reserve(block_size); | 178 | 130k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 130k | << "buffer must be naturally-aligned"; | 180 | 130k | _buffer.clear(); | 181 | 130k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 130k | _finished = false; | 183 | 130k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 130k | }); | 185 | 130k | return Status::OK(); | 186 | 130k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 22.5k | Status reset() override { | 172 | 22.5k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 22.5k | size_t block_size = _options.data_page_size; | 174 | 22.5k | _count = 0; | 175 | 22.5k | _raw_data_size = 0; | 176 | 22.5k | _data.clear(); | 177 | 22.5k | _data.reserve(block_size); | 178 | 22.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 22.5k | << "buffer must be naturally-aligned"; | 180 | 22.5k | _buffer.clear(); | 181 | 22.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 22.5k | _finished = false; | 183 | 22.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 22.5k | }); | 185 | 22.5k | return Status::OK(); | 186 | 22.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 22.6k | Status reset() override { | 172 | 22.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 22.6k | size_t block_size = _options.data_page_size; | 174 | 22.6k | _count = 0; | 175 | 22.6k | _raw_data_size = 0; | 176 | 22.6k | _data.clear(); | 177 | 22.6k | _data.reserve(block_size); | 178 | 22.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 22.6k | << "buffer must be naturally-aligned"; | 180 | 22.6k | _buffer.clear(); | 181 | 22.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 22.6k | _finished = false; | 183 | 22.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 22.6k | }); | 185 | 22.6k | return Status::OK(); | 186 | 22.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 28.5k | Status reset() override { | 172 | 28.5k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 28.5k | size_t block_size = _options.data_page_size; | 174 | 28.5k | _count = 0; | 175 | 28.5k | _raw_data_size = 0; | 176 | 28.5k | _data.clear(); | 177 | 28.5k | _data.reserve(block_size); | 178 | 28.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 28.5k | << "buffer must be naturally-aligned"; | 180 | 28.5k | _buffer.clear(); | 181 | 28.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 28.5k | _finished = false; | 183 | 28.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 28.5k | }); | 185 | 28.5k | return Status::OK(); | 186 | 28.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 382 | Status reset() override { | 172 | 382 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 382 | size_t block_size = _options.data_page_size; | 174 | 382 | _count = 0; | 175 | 382 | _raw_data_size = 0; | 176 | 382 | _data.clear(); | 177 | 382 | _data.reserve(block_size); | 178 | 382 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 382 | << "buffer must be naturally-aligned"; | 180 | 382 | _buffer.clear(); | 181 | 382 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 382 | _finished = false; | 183 | 382 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 382 | }); | 185 | 382 | return Status::OK(); | 186 | 382 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 171 | 73.2k | Status reset() override { | 172 | 73.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 73.2k | size_t block_size = _options.data_page_size; | 174 | 73.2k | _count = 0; | 175 | 73.2k | _raw_data_size = 0; | 176 | 73.2k | _data.clear(); | 177 | 73.2k | _data.reserve(block_size); | 178 | 73.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 73.2k | << "buffer must be naturally-aligned"; | 180 | 73.2k | _buffer.clear(); | 181 | 73.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 73.2k | _finished = false; | 183 | 73.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 73.2k | }); | 185 | 73.2k | return Status::OK(); | 186 | 73.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 86.9k | Status reset() override { | 172 | 86.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 86.9k | size_t block_size = _options.data_page_size; | 174 | 86.9k | _count = 0; | 175 | 86.9k | _raw_data_size = 0; | 176 | 86.9k | _data.clear(); | 177 | 86.9k | _data.reserve(block_size); | 178 | 86.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 86.9k | << "buffer must be naturally-aligned"; | 180 | 86.9k | _buffer.clear(); | 181 | 86.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 86.9k | _finished = false; | 183 | 86.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 86.9k | }); | 185 | 87.0k | return Status::OK(); | 186 | 86.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 783 | Status reset() override { | 172 | 783 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 783 | size_t block_size = _options.data_page_size; | 174 | 783 | _count = 0; | 175 | 783 | _raw_data_size = 0; | 176 | 783 | _data.clear(); | 177 | 783 | _data.reserve(block_size); | 178 | 783 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 783 | << "buffer must be naturally-aligned"; | 180 | 783 | _buffer.clear(); | 181 | 783 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 783 | _finished = false; | 183 | 783 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 783 | }); | 185 | 784 | return Status::OK(); | 186 | 783 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 14.0k | Status reset() override { | 172 | 14.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.0k | size_t block_size = _options.data_page_size; | 174 | 14.0k | _count = 0; | 175 | 14.0k | _raw_data_size = 0; | 176 | 14.0k | _data.clear(); | 177 | 14.0k | _data.reserve(block_size); | 178 | 14.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.0k | << "buffer must be naturally-aligned"; | 180 | 14.0k | _buffer.clear(); | 181 | 14.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.0k | _finished = false; | 183 | 14.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.0k | }); | 185 | 14.1k | return Status::OK(); | 186 | 14.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 301 | Status reset() override { | 172 | 301 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 301 | size_t block_size = _options.data_page_size; | 174 | 301 | _count = 0; | 175 | 301 | _raw_data_size = 0; | 176 | 301 | _data.clear(); | 177 | 301 | _data.reserve(block_size); | 178 | 301 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 301 | << "buffer must be naturally-aligned"; | 180 | 301 | _buffer.clear(); | 181 | 301 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 301 | _finished = false; | 183 | 301 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 301 | }); | 185 | 301 | return Status::OK(); | 186 | 301 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.1k | Status reset() override { | 172 | 19.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.1k | size_t block_size = _options.data_page_size; | 174 | 19.1k | _count = 0; | 175 | 19.1k | _raw_data_size = 0; | 176 | 19.1k | _data.clear(); | 177 | 19.1k | _data.reserve(block_size); | 178 | 19.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.1k | << "buffer must be naturally-aligned"; | 180 | 19.1k | _buffer.clear(); | 181 | 19.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.1k | _finished = false; | 183 | 19.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.1k | }); | 185 | 19.1k | return Status::OK(); | 186 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 31.2k | Status reset() override { | 172 | 31.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.2k | size_t block_size = _options.data_page_size; | 174 | 31.2k | _count = 0; | 175 | 31.2k | _raw_data_size = 0; | 176 | 31.2k | _data.clear(); | 177 | 31.2k | _data.reserve(block_size); | 178 | 31.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.2k | << "buffer must be naturally-aligned"; | 180 | 31.2k | _buffer.clear(); | 181 | 31.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.2k | _finished = false; | 183 | 31.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.2k | }); | 185 | 31.3k | return Status::OK(); | 186 | 31.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 31.9k | Status reset() override { | 172 | 31.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.9k | size_t block_size = _options.data_page_size; | 174 | 31.9k | _count = 0; | 175 | 31.9k | _raw_data_size = 0; | 176 | 31.9k | _data.clear(); | 177 | 31.9k | _data.reserve(block_size); | 178 | 31.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.9k | << "buffer must be naturally-aligned"; | 180 | 31.9k | _buffer.clear(); | 181 | 31.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.9k | _finished = false; | 183 | 31.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.9k | }); | 185 | 31.9k | return Status::OK(); | 186 | 31.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.20k | Status reset() override { | 172 | 2.20k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.20k | size_t block_size = _options.data_page_size; | 174 | 2.20k | _count = 0; | 175 | 2.20k | _raw_data_size = 0; | 176 | 2.20k | _data.clear(); | 177 | 2.20k | _data.reserve(block_size); | 178 | 2.20k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.20k | << "buffer must be naturally-aligned"; | 180 | 2.20k | _buffer.clear(); | 181 | 2.20k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.20k | _finished = false; | 183 | 2.20k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.20k | }); | 185 | 2.20k | return Status::OK(); | 186 | 2.20k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.48k | Status reset() override { | 172 | 1.48k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.48k | size_t block_size = _options.data_page_size; | 174 | 1.48k | _count = 0; | 175 | 1.48k | _raw_data_size = 0; | 176 | 1.48k | _data.clear(); | 177 | 1.48k | _data.reserve(block_size); | 178 | 1.48k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.48k | << "buffer must be naturally-aligned"; | 180 | 1.48k | _buffer.clear(); | 181 | 1.48k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.48k | _finished = false; | 183 | 1.48k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.48k | }); | 185 | 1.48k | return Status::OK(); | 186 | 1.48k | } |
_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 | 1.74M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 1.74M | 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 | 30.5k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 16.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 2.43k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 717 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 1.55k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 766 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.28k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 692 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 778 | 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.55k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.17k | 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 | 130 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 190 | 291 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 190 | 1.14k | 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 | 545k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 67.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 54.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 8.70k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 179k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 64.9k | 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 | 10.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 10.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 14.3k | 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 | 197 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 36.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 42.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 469 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.06k | 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.54k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 19.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 16.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 192 | 1.05k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 192 | 696 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 614 | 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 | 833k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 360k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 55.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.21k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 177k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 65.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 11.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 11.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 185 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 36.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 44.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 315 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 6.98k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 195 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.55k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 15.9k | : _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 | 786 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 700 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 827k | OwnedSlice _finish(int final_size_of_type) { |
216 | 827k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 827k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 827k | int padding_elems = num_elems_after_padding - _count; |
221 | 827k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 25.5M | for (int i = 0; i < padding_bytes; i++) { |
223 | 24.7M | _data.push_back(0); |
224 | 24.7M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 827k | _buffer.resize( |
228 | 827k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 827k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 827k | int64_t bytes = |
232 | 827k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 827k | num_elems_after_padding, final_size_of_type, 0); |
234 | 827k | 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 | 827k | encode_fixed32_le(&_buffer[0], _count); |
244 | 827k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 827k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 827k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 827k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 827k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 827k | return _buffer.build(); |
251 | 827k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 349k | OwnedSlice _finish(int final_size_of_type) { | 216 | 349k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 349k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 349k | int padding_elems = num_elems_after_padding - _count; | 221 | 349k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.64M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.29M | _data.push_back(0); | 224 | 6.29M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 349k | _buffer.resize( | 228 | 349k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 349k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 349k | int64_t bytes = | 232 | 349k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 349k | num_elems_after_padding, final_size_of_type, 0); | 234 | 349k | 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 | 349k | encode_fixed32_le(&_buffer[0], _count); | 244 | 349k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 349k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 349k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 349k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 349k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 349k | return _buffer.build(); | 251 | 349k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 54.2k | OwnedSlice _finish(int final_size_of_type) { | 216 | 54.2k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 54.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 54.2k | int padding_elems = num_elems_after_padding - _count; | 221 | 54.2k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 345k | for (int i = 0; i < padding_bytes; i++) { | 223 | 291k | _data.push_back(0); | 224 | 291k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 54.2k | _buffer.resize( | 228 | 54.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 54.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 54.2k | int64_t bytes = | 232 | 54.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 54.2k | num_elems_after_padding, final_size_of_type, 0); | 234 | 54.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 | 54.2k | encode_fixed32_le(&_buffer[0], _count); | 244 | 54.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 54.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 54.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 54.2k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 54.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 54.2k | return _buffer.build(); | 251 | 54.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 8.70k | OwnedSlice _finish(int final_size_of_type) { | 216 | 8.70k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 8.70k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 8.70k | int padding_elems = num_elems_after_padding - _count; | 221 | 8.70k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 90.7k | for (int i = 0; i < padding_bytes; i++) { | 223 | 82.0k | _data.push_back(0); | 224 | 82.0k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 8.70k | _buffer.resize( | 228 | 8.70k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 8.70k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 8.70k | int64_t bytes = | 232 | 8.70k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 8.70k | num_elems_after_padding, final_size_of_type, 0); | 234 | 8.70k | 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 | 8.70k | encode_fixed32_le(&_buffer[0], _count); | 244 | 8.70k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 8.70k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 8.70k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 8.70k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 8.70k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 8.70k | return _buffer.build(); | 251 | 8.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 179k | OwnedSlice _finish(int final_size_of_type) { | 216 | 179k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 179k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 179k | int padding_elems = num_elems_after_padding - _count; | 221 | 179k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 8.87M | for (int i = 0; i < padding_bytes; i++) { | 223 | 8.69M | _data.push_back(0); | 224 | 8.69M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 179k | _buffer.resize( | 228 | 179k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 179k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 179k | int64_t bytes = | 232 | 179k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 179k | num_elems_after_padding, final_size_of_type, 0); | 234 | 179k | 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 | 179k | encode_fixed32_le(&_buffer[0], _count); | 244 | 179k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 179k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 179k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 179k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 179k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 179k | return _buffer.build(); | 251 | 179k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 64.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 64.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 64.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 64.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 64.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.09M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.03M | _data.push_back(0); | 224 | 3.03M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 64.9k | _buffer.resize( | 228 | 64.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 64.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 64.9k | int64_t bytes = | 232 | 64.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 64.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 64.9k | 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 | 64.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 64.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 64.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 64.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 64.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 64.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 64.9k | return _buffer.build(); | 251 | 64.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 10.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 10.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 10.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 10.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 10.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 762k | for (int i = 0; i < padding_bytes; i++) { | 223 | 751k | _data.push_back(0); | 224 | 751k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 10.9k | _buffer.resize( | 228 | 10.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 10.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 10.9k | int64_t bytes = | 232 | 10.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 10.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 10.9k | 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 | 10.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 10.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 10.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 10.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 10.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 10.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 10.9k | return _buffer.build(); | 251 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 10.8k | OwnedSlice _finish(int final_size_of_type) { | 216 | 10.8k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 10.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 10.8k | int padding_elems = num_elems_after_padding - _count; | 221 | 10.8k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 238k | for (int i = 0; i < padding_bytes; i++) { | 223 | 227k | _data.push_back(0); | 224 | 227k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 10.8k | _buffer.resize( | 228 | 10.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 10.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 10.8k | int64_t bytes = | 232 | 10.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 10.8k | num_elems_after_padding, final_size_of_type, 0); | 234 | 10.8k | 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 | 10.8k | encode_fixed32_le(&_buffer[0], _count); | 244 | 10.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 10.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 10.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 10.8k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 10.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 10.8k | return _buffer.build(); | 251 | 10.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 14.3k | OwnedSlice _finish(int final_size_of_type) { | 216 | 14.3k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 14.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 14.3k | int padding_elems = num_elems_after_padding - _count; | 221 | 14.3k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 584k | for (int i = 0; i < padding_bytes; i++) { | 223 | 569k | _data.push_back(0); | 224 | 569k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 14.3k | _buffer.resize( | 228 | 14.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 14.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 14.3k | int64_t bytes = | 232 | 14.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 14.3k | num_elems_after_padding, final_size_of_type, 0); | 234 | 14.3k | 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.3k | encode_fixed32_le(&_buffer[0], _count); | 244 | 14.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 14.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 14.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 14.3k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 14.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 14.3k | return _buffer.build(); | 251 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 197 | OwnedSlice _finish(int final_size_of_type) { | 216 | 197 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 197 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 197 | int padding_elems = num_elems_after_padding - _count; | 221 | 197 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.69k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.50k | _data.push_back(0); | 224 | 2.50k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 197 | _buffer.resize( | 228 | 197 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 197 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 197 | int64_t bytes = | 232 | 197 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 197 | num_elems_after_padding, final_size_of_type, 0); | 234 | 197 | 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 | 197 | encode_fixed32_le(&_buffer[0], _count); | 244 | 197 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 197 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 197 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 197 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 197 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 197 | return _buffer.build(); | 251 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 36.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 36.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 36.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 36.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 36.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 791k | for (int i = 0; i < padding_bytes; i++) { | 223 | 754k | _data.push_back(0); | 224 | 754k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 36.9k | _buffer.resize( | 228 | 36.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 36.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 36.9k | int64_t bytes = | 232 | 36.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 36.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 36.9k | 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 | 36.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 36.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 36.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 36.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 36.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 36.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 36.9k | return _buffer.build(); | 251 | 36.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 42.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 42.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 42.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 42.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 42.9k | 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 | 42.9k | _buffer.resize( | 228 | 42.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 42.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 42.9k | int64_t bytes = | 232 | 42.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 42.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 42.9k | 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 | 42.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 42.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 42.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 42.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 42.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 42.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 42.9k | return _buffer.build(); | 251 | 42.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 215 | 469 | OwnedSlice _finish(int final_size_of_type) { | 216 | 469 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 469 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 469 | int padding_elems = num_elems_after_padding - _count; | 221 | 469 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 8.07k | for (int i = 0; i < padding_bytes; i++) { | 223 | 7.60k | _data.push_back(0); | 224 | 7.60k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 469 | _buffer.resize( | 228 | 469 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 469 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 469 | int64_t bytes = | 232 | 469 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 469 | num_elems_after_padding, final_size_of_type, 0); | 234 | 469 | 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 | 469 | encode_fixed32_le(&_buffer[0], _count); | 244 | 469 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 469 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 469 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 469 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 469 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 469 | return _buffer.build(); | 251 | 469 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.06k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.06k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.06k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.06k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 370k | for (int i = 0; i < padding_bytes; i++) { | 223 | 363k | _data.push_back(0); | 224 | 363k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.06k | _buffer.resize( | 228 | 7.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.06k | int64_t bytes = | 232 | 7.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.06k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.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 | 7.06k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.06k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.06k | return _buffer.build(); | 251 | 7.06k | } |
_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.56k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.45k | _data.push_back(0); | 224 | 6.45k | } | 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.54k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.54k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.54k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.54k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.54k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 115k | for (int i = 0; i < padding_bytes; i++) { | 223 | 106k | _data.push_back(0); | 224 | 106k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.54k | _buffer.resize( | 228 | 9.54k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.54k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.54k | int64_t bytes = | 232 | 9.54k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.54k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.54k | 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.54k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.54k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.54k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.54k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.54k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.54k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.54k | return _buffer.build(); | 251 | 9.54k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 19.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 19.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 19.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 19.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 19.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 497k | for (int i = 0; i < padding_bytes; i++) { | 223 | 478k | _data.push_back(0); | 224 | 478k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 19.0k | _buffer.resize( | 228 | 19.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 19.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 19.0k | int64_t bytes = | 232 | 19.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 19.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 19.0k | 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.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 19.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 19.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 19.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 19.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 19.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 19.0k | return _buffer.build(); | 251 | 19.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 16.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 16.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 16.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 16.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 16.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.09M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.08M | _data.push_back(0); | 224 | 1.08M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 16.0k | _buffer.resize( | 228 | 16.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 16.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 16.0k | int64_t bytes = | 232 | 16.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 16.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 16.0k | 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.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 16.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 16.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 16.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 16.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 16.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 16.0k | return _buffer.build(); | 251 | 16.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 215 | 1.05k | OwnedSlice _finish(int final_size_of_type) { | 216 | 1.05k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 1.05k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 1.05k | int padding_elems = num_elems_after_padding - _count; | 221 | 1.05k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 160k | for (int i = 0; i < padding_bytes; i++) { | 223 | 159k | _data.push_back(0); | 224 | 159k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 1.05k | _buffer.resize( | 228 | 1.05k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 1.05k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 1.05k | int64_t bytes = | 232 | 1.05k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 1.05k | num_elems_after_padding, final_size_of_type, 0); | 234 | 1.05k | 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.05k | encode_fixed32_le(&_buffer[0], _count); | 244 | 1.05k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 1.05k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 1.05k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 1.05k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 1.05k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 1.05k | return _buffer.build(); | 251 | 1.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 215 | 696 | OwnedSlice _finish(int final_size_of_type) { | 216 | 696 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 696 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 696 | int padding_elems = num_elems_after_padding - _count; | 221 | 696 | 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 | 696 | _buffer.resize( | 228 | 696 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 696 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 696 | int64_t bytes = | 232 | 696 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 696 | num_elems_after_padding, final_size_of_type, 0); | 234 | 696 | 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 | 696 | encode_fixed32_le(&_buffer[0], _count); | 244 | 696 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 696 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 696 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 696 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 696 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 696 | return _buffer.build(); | 251 | 696 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 614 | OwnedSlice _finish(int final_size_of_type) { | 216 | 614 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 614 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 614 | int padding_elems = num_elems_after_padding - _count; | 221 | 614 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 49.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 49.2k | _data.push_back(0); | 224 | 49.2k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 614 | _buffer.resize( | 228 | 614 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 614 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 614 | int64_t bytes = | 232 | 614 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 614 | num_elems_after_padding, final_size_of_type, 0); | 234 | 614 | 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 | 614 | encode_fixed32_le(&_buffer[0], _count); | 244 | 614 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 614 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 614 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 614 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 614 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 614 | return _buffer.build(); | 251 | 614 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.55M | CppType cell(int idx) const { |
256 | 1.55M | DCHECK_GE(idx, 0); |
257 | 1.55M | CppType ret; |
258 | 1.55M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.55M | return ret; |
260 | 1.55M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 629k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 629k | CppType ret; | 258 | 629k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 629k | return ret; | 260 | 629k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 106k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 106k | CppType ret; | 258 | 106k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 106k | return ret; | 260 | 106k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 17.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 17.0k | CppType ret; | 258 | 17.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 17.0k | return ret; | 260 | 17.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 353k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 353k | CppType ret; | 258 | 353k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 353k | return ret; | 260 | 353k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 129k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 129k | CppType ret; | 258 | 129k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 129k | return ret; | 260 | 129k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 21.1k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 21.1k | CppType ret; | 258 | 21.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 21.1k | return ret; | 260 | 21.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 21.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 21.0k | CppType ret; | 258 | 21.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 21.0k | return ret; | 260 | 21.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 27.8k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 27.8k | CppType ret; | 258 | 27.8k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 27.8k | return ret; | 260 | 27.8k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 384 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 384 | CppType ret; | 258 | 384 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 384 | return ret; | 260 | 384 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 72.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 72.0k | CppType ret; | 258 | 72.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 72.0k | return ret; | 260 | 72.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 83.1k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 83.1k | CppType ret; | 258 | 83.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 83.1k | return ret; | 260 | 83.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 738 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 738 | CppType ret; | 258 | 738 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 738 | return ret; | 260 | 738 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 13.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 13.7k | CppType ret; | 258 | 13.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 13.7k | return ret; | 260 | 13.7k | } |
_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.37k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.37k | CppType ret; | 258 | 9.37k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.37k | return ret; | 260 | 9.37k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 36.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 36.3k | CppType ret; | 258 | 36.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 36.3k | return ret; | 260 | 36.3k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 31.1k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.1k | CppType ret; | 258 | 31.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.1k | return ret; | 260 | 31.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.00k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.00k | CppType ret; | 258 | 2.00k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.00k | return ret; | 260 | 2.00k | } |
_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.59M | int& size_of_element) { |
277 | 2.59M | 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.59M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.59M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.59M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.59M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.59M | 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.59M | switch (size_of_element) { |
295 | 212k | case 1: |
296 | 246k | case 2: |
297 | 251k | case 3: |
298 | 1.77M | case 4: |
299 | 2.48M | case 8: |
300 | 2.48M | case 12: |
301 | 2.59M | case 16: |
302 | 2.59M | case 32: |
303 | 2.59M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.59M | } |
307 | 2.59M | return Status::OK(); |
308 | 2.59M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.29M | : _data(data), |
315 | 1.29M | _options(options), |
316 | 1.29M | _parsed(false), |
317 | 1.29M | _num_elements(0), |
318 | 1.29M | _num_element_after_padding(0), |
319 | 1.29M | _size_of_element(0), |
320 | 1.29M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 665k | : _data(data), | 315 | 665k | _options(options), | 316 | 665k | _parsed(false), | 317 | 665k | _num_elements(0), | 318 | 665k | _num_element_after_padding(0), | 319 | 665k | _size_of_element(0), | 320 | 665k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 106k | : _data(data), | 315 | 106k | _options(options), | 316 | 106k | _parsed(false), | 317 | 106k | _num_elements(0), | 318 | 106k | _num_element_after_padding(0), | 319 | 106k | _size_of_element(0), | 320 | 106k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 17.1k | : _data(data), | 315 | 17.1k | _options(options), | 316 | 17.1k | _parsed(false), | 317 | 17.1k | _num_elements(0), | 318 | 17.1k | _num_element_after_padding(0), | 319 | 17.1k | _size_of_element(0), | 320 | 17.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 106k | : _data(data), | 315 | 106k | _options(options), | 316 | 106k | _parsed(false), | 317 | 106k | _num_elements(0), | 318 | 106k | _num_element_after_padding(0), | 319 | 106k | _size_of_element(0), | 320 | 106k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 86.5k | : _data(data), | 315 | 86.5k | _options(options), | 316 | 86.5k | _parsed(false), | 317 | 86.5k | _num_elements(0), | 318 | 86.5k | _num_element_after_padding(0), | 319 | 86.5k | _size_of_element(0), | 320 | 86.5k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 16.9k | : _data(data), | 315 | 16.9k | _options(options), | 316 | 16.9k | _parsed(false), | 317 | 16.9k | _num_elements(0), | 318 | 16.9k | _num_element_after_padding(0), | 319 | 16.9k | _size_of_element(0), | 320 | 16.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 20.3k | : _data(data), | 315 | 20.3k | _options(options), | 316 | 20.3k | _parsed(false), | 317 | 20.3k | _num_elements(0), | 318 | 20.3k | _num_element_after_padding(0), | 319 | 20.3k | _size_of_element(0), | 320 | 20.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.7k | : _data(data), | 315 | 30.7k | _options(options), | 316 | 30.7k | _parsed(false), | 317 | 30.7k | _num_elements(0), | 318 | 30.7k | _num_element_after_padding(0), | 319 | 30.7k | _size_of_element(0), | 320 | 30.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.66k | : _data(data), | 315 | 2.66k | _options(options), | 316 | 2.66k | _parsed(false), | 317 | 2.66k | _num_elements(0), | 318 | 2.66k | _num_element_after_padding(0), | 319 | 2.66k | _size_of_element(0), | 320 | 2.66k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 60.8k | : _data(data), | 315 | 60.8k | _options(options), | 316 | 60.8k | _parsed(false), | 317 | 60.8k | _num_elements(0), | 318 | 60.8k | _num_element_after_padding(0), | 319 | 60.8k | _size_of_element(0), | 320 | 60.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 68.2k | : _data(data), | 315 | 68.2k | _options(options), | 316 | 68.2k | _parsed(false), | 317 | 68.2k | _num_elements(0), | 318 | 68.2k | _num_element_after_padding(0), | 319 | 68.2k | _size_of_element(0), | 320 | 68.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 3.36k | : _data(data), | 315 | 3.36k | _options(options), | 316 | 3.36k | _parsed(false), | 317 | 3.36k | _num_elements(0), | 318 | 3.36k | _num_element_after_padding(0), | 319 | 3.36k | _size_of_element(0), | 320 | 3.36k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 14.8k | : _data(data), | 315 | 14.8k | _options(options), | 316 | 14.8k | _parsed(false), | 317 | 14.8k | _num_elements(0), | 318 | 14.8k | _num_element_after_padding(0), | 319 | 14.8k | _size_of_element(0), | 320 | 14.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.29k | : _data(data), | 315 | 1.29k | _options(options), | 316 | 1.29k | _parsed(false), | 317 | 1.29k | _num_elements(0), | 318 | 1.29k | _num_element_after_padding(0), | 319 | 1.29k | _size_of_element(0), | 320 | 1.29k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.3k | : _data(data), | 315 | 15.3k | _options(options), | 316 | 15.3k | _parsed(false), | 317 | 15.3k | _num_elements(0), | 318 | 15.3k | _num_element_after_padding(0), | 319 | 15.3k | _size_of_element(0), | 320 | 15.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 43.3k | : _data(data), | 315 | 43.3k | _options(options), | 316 | 43.3k | _parsed(false), | 317 | 43.3k | _num_elements(0), | 318 | 43.3k | _num_element_after_padding(0), | 319 | 43.3k | _size_of_element(0), | 320 | 43.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 32.9k | : _data(data), | 315 | 32.9k | _options(options), | 316 | 32.9k | _parsed(false), | 317 | 32.9k | _num_elements(0), | 318 | 32.9k | _num_element_after_padding(0), | 319 | 32.9k | _size_of_element(0), | 320 | 32.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.79k | : _data(data), | 315 | 1.79k | _options(options), | 316 | 1.79k | _parsed(false), | 317 | 1.79k | _num_elements(0), | 318 | 1.79k | _num_element_after_padding(0), | 319 | 1.79k | _size_of_element(0), | 320 | 1.79k | _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.14k | : _data(data), | 315 | 1.14k | _options(options), | 316 | 1.14k | _parsed(false), | 317 | 1.14k | _num_elements(0), | 318 | 1.14k | _num_element_after_padding(0), | 319 | 1.14k | _size_of_element(0), | 320 | 1.14k | _cur_index(0) {} |
|
321 | | |
322 | 1.29M | Status init() override { |
323 | 1.29M | CHECK(!_parsed); |
324 | 1.29M | size_t unused; |
325 | 1.29M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.29M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.29M | if (_data.size != |
329 | 1.29M | _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.29M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.29M | _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.29M | 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.29M | _parsed = true; |
349 | 1.29M | return Status::OK(); |
350 | 1.29M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 665k | Status init() override { | 323 | 665k | CHECK(!_parsed); | 324 | 665k | size_t unused; | 325 | 665k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 665k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 665k | if (_data.size != | 329 | 665k | _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 | 665k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 665k | _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 | 665k | 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 | 665k | _parsed = true; | 349 | 665k | return Status::OK(); | 350 | 665k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 106k | Status init() override { | 323 | 106k | CHECK(!_parsed); | 324 | 106k | size_t unused; | 325 | 106k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 106k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 106k | if (_data.size != | 329 | 106k | _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 | 106k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 106k | _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 | 106k | 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 | 106k | _parsed = true; | 349 | 106k | return Status::OK(); | 350 | 106k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 17.1k | Status init() override { | 323 | 17.1k | CHECK(!_parsed); | 324 | 17.1k | size_t unused; | 325 | 17.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 17.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 17.1k | if (_data.size != | 329 | 17.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 | 17.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 17.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 | 17.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 | 17.1k | _parsed = true; | 349 | 17.1k | return Status::OK(); | 350 | 17.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 106k | Status init() override { | 323 | 106k | CHECK(!_parsed); | 324 | 106k | size_t unused; | 325 | 106k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 106k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 106k | if (_data.size != | 329 | 106k | _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 | 106k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 106k | _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 | 106k | 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 | 106k | _parsed = true; | 349 | 106k | return Status::OK(); | 350 | 106k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 86.5k | Status init() override { | 323 | 86.5k | CHECK(!_parsed); | 324 | 86.5k | size_t unused; | 325 | 86.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 86.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 86.5k | if (_data.size != | 329 | 86.5k | _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 | 86.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 86.5k | _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 | 86.5k | 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 | 86.5k | _parsed = true; | 349 | 86.5k | return Status::OK(); | 350 | 86.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 16.9k | Status init() override { | 323 | 16.9k | CHECK(!_parsed); | 324 | 16.9k | size_t unused; | 325 | 16.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 16.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 16.9k | if (_data.size != | 329 | 16.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 | 16.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 16.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 | 16.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 | 16.9k | _parsed = true; | 349 | 16.9k | return Status::OK(); | 350 | 16.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 20.3k | Status init() override { | 323 | 20.3k | CHECK(!_parsed); | 324 | 20.3k | size_t unused; | 325 | 20.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 20.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 20.3k | if (_data.size != | 329 | 20.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 | 20.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 20.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 | 20.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 | 20.3k | _parsed = true; | 349 | 20.3k | return Status::OK(); | 350 | 20.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 30.7k | Status init() override { | 323 | 30.7k | CHECK(!_parsed); | 324 | 30.7k | size_t unused; | 325 | 30.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.7k | if (_data.size != | 329 | 30.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 | 30.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.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 | 30.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 | 30.7k | _parsed = true; | 349 | 30.7k | return Status::OK(); | 350 | 30.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 2.66k | Status init() override { | 323 | 2.66k | CHECK(!_parsed); | 324 | 2.66k | size_t unused; | 325 | 2.66k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.66k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.66k | if (_data.size != | 329 | 2.66k | _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.66k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.66k | _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.66k | 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.66k | _parsed = true; | 349 | 2.66k | return Status::OK(); | 350 | 2.66k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 60.8k | Status init() override { | 323 | 60.8k | CHECK(!_parsed); | 324 | 60.8k | size_t unused; | 325 | 60.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 60.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 60.8k | if (_data.size != | 329 | 60.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 | 60.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 60.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 | 60.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 | 60.8k | _parsed = true; | 349 | 60.8k | return Status::OK(); | 350 | 60.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 68.2k | Status init() override { | 323 | 68.2k | CHECK(!_parsed); | 324 | 68.2k | size_t unused; | 325 | 68.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 68.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 68.2k | if (_data.size != | 329 | 68.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 | 68.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 68.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 | 68.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 | 68.2k | _parsed = true; | 349 | 68.2k | return Status::OK(); | 350 | 68.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 3.36k | Status init() override { | 323 | 3.36k | CHECK(!_parsed); | 324 | 3.36k | size_t unused; | 325 | 3.36k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 3.36k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 3.36k | if (_data.size != | 329 | 3.36k | _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 | 3.36k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 3.36k | _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 | 3.36k | 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 | 3.36k | _parsed = true; | 349 | 3.36k | return Status::OK(); | 350 | 3.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 14.8k | Status init() override { | 323 | 14.8k | CHECK(!_parsed); | 324 | 14.8k | size_t unused; | 325 | 14.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 14.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 14.8k | if (_data.size != | 329 | 14.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 | 14.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 14.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 | 14.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 | 14.8k | _parsed = true; | 349 | 14.8k | return Status::OK(); | 350 | 14.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 322 | 1.29k | Status init() override { | 323 | 1.29k | CHECK(!_parsed); | 324 | 1.29k | size_t unused; | 325 | 1.29k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.29k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.29k | if (_data.size != | 329 | 1.29k | _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.29k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.29k | _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.29k | 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.29k | _parsed = true; | 349 | 1.29k | return Status::OK(); | 350 | 1.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.3k | Status init() override { | 323 | 15.3k | CHECK(!_parsed); | 324 | 15.3k | size_t unused; | 325 | 15.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.3k | if (_data.size != | 329 | 15.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 | 15.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.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 | 15.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 | 15.3k | _parsed = true; | 349 | 15.3k | return Status::OK(); | 350 | 15.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 43.3k | Status init() override { | 323 | 43.3k | CHECK(!_parsed); | 324 | 43.3k | size_t unused; | 325 | 43.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 43.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 43.3k | if (_data.size != | 329 | 43.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 | 43.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 43.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 | 43.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 | 43.3k | _parsed = true; | 349 | 43.3k | return Status::OK(); | 350 | 43.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 32.9k | Status init() override { | 323 | 32.9k | CHECK(!_parsed); | 324 | 32.9k | size_t unused; | 325 | 32.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 32.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 32.9k | if (_data.size != | 329 | 32.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 | 32.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 32.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 | 32.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 | 32.9k | _parsed = true; | 349 | 32.9k | return Status::OK(); | 350 | 32.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.79k | Status init() override { | 323 | 1.79k | CHECK(!_parsed); | 324 | 1.79k | size_t unused; | 325 | 1.79k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.79k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.79k | if (_data.size != | 329 | 1.79k | _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.79k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.79k | _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.79k | 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.79k | _parsed = true; | 349 | 1.79k | return Status::OK(); | 350 | 1.79k | } |
_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.14k | Status init() override { | 323 | 1.14k | CHECK(!_parsed); | 324 | 1.14k | size_t unused; | 325 | 1.14k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.14k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.14k | if (_data.size != | 329 | 1.14k | _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.14k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.14k | _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.14k | 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.14k | _parsed = true; | 349 | 1.14k | return Status::OK(); | 350 | 1.14k | } |
|
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 | 2.04M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 2.04M | if (_num_elements == 0) [[unlikely]] { |
361 | 14.6k | 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 | 14.6k | } |
366 | | |
367 | 2.04M | DCHECK_LE(pos, _num_elements); |
368 | 2.04M | _cur_index = pos; |
369 | 2.04M | return Status::OK(); |
370 | 2.04M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.40M | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 1.40M | if (_num_elements == 0) [[unlikely]] { | 361 | 7.53k | 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 | 7.53k | } | 366 | | | 367 | 1.40M | DCHECK_LE(pos, _num_elements); | 368 | 1.40M | _cur_index = pos; | 369 | 1.40M | return Status::OK(); | 370 | 1.40M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 105k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 105k | if (_num_elements == 0) [[unlikely]] { | 361 | 531 | 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 | 531 | } | 366 | | | 367 | 105k | DCHECK_LE(pos, _num_elements); | 368 | 105k | _cur_index = pos; | 369 | 105k | return Status::OK(); | 370 | 105k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 2.72k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 2.72k | 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 | 2.72k | DCHECK_LE(pos, _num_elements); | 368 | 2.72k | _cur_index = pos; | 369 | 2.72k | return Status::OK(); | 370 | 2.72k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 33.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 33.7k | if (_num_elements == 0) [[unlikely]] { | 361 | 841 | 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 | 841 | } | 366 | | | 367 | 33.7k | DCHECK_LE(pos, _num_elements); | 368 | 33.7k | _cur_index = pos; | 369 | 33.7k | return Status::OK(); | 370 | 33.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 9.31k | Status seek_to_position_in_page(size_t pos) override { | 359 | 9.31k | DCHECK(_parsed) << "Must call init()"; | 360 | 9.31k | 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 | 9.31k | DCHECK_LE(pos, _num_elements); | 368 | 9.31k | _cur_index = pos; | 369 | 9.31k | return Status::OK(); | 370 | 9.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 4.63k | Status seek_to_position_in_page(size_t pos) override { | 359 | 4.63k | DCHECK(_parsed) << "Must call init()"; | 360 | 4.63k | 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 | 4.63k | DCHECK_LE(pos, _num_elements); | 368 | 4.63k | _cur_index = pos; | 369 | 4.63k | return Status::OK(); | 370 | 4.63k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 17.7k | DCHECK(_parsed) << "Must call init()"; | 360 | 17.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 | 17.7k | DCHECK_LE(pos, _num_elements); | 368 | 17.7k | _cur_index = pos; | 369 | 17.7k | return Status::OK(); | 370 | 17.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.6k | Status seek_to_position_in_page(size_t pos) override { | 359 | 13.6k | DCHECK(_parsed) << "Must call init()"; | 360 | 13.6k | if (_num_elements == 0) [[unlikely]] { | 361 | 5 | 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 | } | 366 | | | 367 | 13.6k | DCHECK_LE(pos, _num_elements); | 368 | 13.6k | _cur_index = pos; | 369 | 13.6k | return Status::OK(); | 370 | 13.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 10.8k | Status seek_to_position_in_page(size_t pos) override { | 359 | 10.8k | DCHECK(_parsed) << "Must call init()"; | 360 | 10.8k | 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.8k | DCHECK_LE(pos, _num_elements); | 368 | 10.8k | _cur_index = pos; | 369 | 10.8k | return Status::OK(); | 370 | 10.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 337k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 337k | if (_num_elements == 0) [[unlikely]] { | 361 | 777 | 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 | 777 | } | 366 | | | 367 | 337k | DCHECK_LE(pos, _num_elements); | 368 | 337k | _cur_index = pos; | 369 | 337k | return Status::OK(); | 370 | 337k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 51.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 51.0k | if (_num_elements == 0) [[unlikely]] { | 361 | 15 | 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 | 15 | } | 366 | | | 367 | 51.0k | DCHECK_LE(pos, _num_elements); | 368 | 51.0k | _cur_index = pos; | 369 | 51.0k | return Status::OK(); | 370 | 51.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.72k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.72k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.72k | 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 | 7.72k | DCHECK_LE(pos, _num_elements); | 368 | 7.72k | _cur_index = pos; | 369 | 7.72k | return Status::OK(); | 370 | 7.72k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 6.67k | Status seek_to_position_in_page(size_t pos) override { | 359 | 6.67k | DCHECK(_parsed) << "Must call init()"; | 360 | 6.67k | 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.67k | DCHECK_LE(pos, _num_elements); | 368 | 6.67k | _cur_index = pos; | 369 | 6.67k | return Status::OK(); | 370 | 6.67k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 28 | Status seek_to_position_in_page(size_t pos) override { | 359 | 28 | DCHECK(_parsed) << "Must call init()"; | 360 | 28 | 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 | 28 | DCHECK_LE(pos, _num_elements); | 368 | 28 | _cur_index = pos; | 369 | 28 | return Status::OK(); | 370 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 750 | Status seek_to_position_in_page(size_t pos) override { | 359 | 750 | DCHECK(_parsed) << "Must call init()"; | 360 | 750 | if (_num_elements == 0) [[unlikely]] { | 361 | 39 | 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 | 39 | } | 366 | | | 367 | 750 | DCHECK_LE(pos, _num_elements); | 368 | 750 | _cur_index = pos; | 369 | 750 | return Status::OK(); | 370 | 750 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 19.2k | Status seek_to_position_in_page(size_t pos) override { | 359 | 19.2k | DCHECK(_parsed) << "Must call init()"; | 360 | 19.2k | if (_num_elements == 0) [[unlikely]] { | 361 | 3.44k | 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 | 3.44k | } | 366 | | | 367 | 19.2k | DCHECK_LE(pos, _num_elements); | 368 | 19.2k | _cur_index = pos; | 369 | 19.2k | return Status::OK(); | 370 | 19.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_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 | 1.10k | 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.10k | } | 366 | | | 367 | 13.4k | DCHECK_LE(pos, _num_elements); | 368 | 13.4k | _cur_index = pos; | 369 | 13.4k | return Status::OK(); | 370 | 13.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.93k | Status seek_to_position_in_page(size_t pos) override { | 359 | 1.93k | DCHECK(_parsed) << "Must call init()"; | 360 | 1.93k | 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.93k | DCHECK_LE(pos, _num_elements); | 368 | 1.93k | _cur_index = pos; | 369 | 1.93k | return Status::OK(); | 370 | 1.93k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 69 | Status seek_to_position_in_page(size_t pos) override { | 359 | 69 | DCHECK(_parsed) << "Must call init()"; | 360 | 69 | 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 | 69 | DCHECK_LE(pos, _num_elements); | 368 | 69 | _cur_index = pos; | 369 | 69 | return Status::OK(); | 370 | 69 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 90 | Status seek_to_position_in_page(size_t pos) override { | 359 | 90 | DCHECK(_parsed) << "Must call init()"; | 360 | 90 | 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 | 90 | DCHECK_LE(pos, _num_elements); | 368 | 90 | _cur_index = pos; | 369 | 90 | return Status::OK(); | 370 | 90 | } |
|
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 | 2.50M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 2.50M | DCHECK(_parsed); |
413 | 2.50M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 2.50M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 2.50M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 2.50M | *n = max_fetch; |
422 | 2.50M | if constexpr (forward_index) { |
423 | 1.92M | _cur_index += max_fetch; |
424 | 1.92M | } |
425 | | |
426 | 2.50M | return Status::OK(); |
427 | 2.50M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 546k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 546k | DCHECK(_parsed); | 413 | 546k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 546k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 546k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 546k | *n = max_fetch; | 422 | 546k | if constexpr (forward_index) { | 423 | 546k | _cur_index += max_fetch; | 424 | 546k | } | 425 | | | 426 | 546k | return Status::OK(); | 427 | 546k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 244k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 244k | DCHECK(_parsed); | 413 | 244k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 244k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 244k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 244k | *n = max_fetch; | 422 | 244k | if constexpr (forward_index) { | 423 | 244k | _cur_index += max_fetch; | 424 | 244k | } | 425 | | | 426 | 244k | return Status::OK(); | 427 | 244k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 18.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 18.4k | DCHECK(_parsed); | 413 | 18.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 18.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 18.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 18.4k | *n = max_fetch; | 422 | 18.4k | if constexpr (forward_index) { | 423 | 18.4k | _cur_index += max_fetch; | 424 | 18.4k | } | 425 | | | 426 | 18.4k | return Status::OK(); | 427 | 18.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 106k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 106k | DCHECK(_parsed); | 413 | 106k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 106k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 106k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 106k | *n = max_fetch; | 422 | 106k | if constexpr (forward_index) { | 423 | 106k | _cur_index += max_fetch; | 424 | 106k | } | 425 | | | 426 | 106k | return Status::OK(); | 427 | 106k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 338k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 338k | DCHECK(_parsed); | 413 | 338k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 338k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 338k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 338k | *n = max_fetch; | 422 | 338k | if constexpr (forward_index) { | 423 | 338k | _cur_index += max_fetch; | 424 | 338k | } | 425 | | | 426 | 338k | return Status::OK(); | 427 | 338k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 583k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 583k | DCHECK(_parsed); | 413 | 583k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 583k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 583k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 583k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 583k | return Status::OK(); | 427 | 583k | } |
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 | 18.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 18.1k | DCHECK(_parsed); | 413 | 18.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 18.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 18.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 18.1k | *n = max_fetch; | 422 | 18.1k | if constexpr (forward_index) { | 423 | 18.1k | _cur_index += max_fetch; | 424 | 18.1k | } | 425 | | | 426 | 18.1k | return Status::OK(); | 427 | 18.1k | } |
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.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 14.7k | DCHECK(_parsed); | 413 | 14.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 14.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 14.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 14.7k | *n = max_fetch; | 422 | 14.7k | if constexpr (forward_index) { | 423 | 14.7k | _cur_index += max_fetch; | 424 | 14.7k | } | 425 | | | 426 | 14.7k | return Status::OK(); | 427 | 14.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 29.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 29.8k | DCHECK(_parsed); | 413 | 29.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 29.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 29.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 29.8k | *n = max_fetch; | 422 | 29.8k | if constexpr (forward_index) { | 423 | 29.8k | _cur_index += max_fetch; | 424 | 29.8k | } | 425 | | | 426 | 29.8k | return Status::OK(); | 427 | 29.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 4.05k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 4.05k | DCHECK(_parsed); | 413 | 4.05k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 4.05k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 4.05k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 4.05k | *n = max_fetch; | 422 | 4.05k | if constexpr (forward_index) { | 423 | 4.05k | _cur_index += max_fetch; | 424 | 4.05k | } | 425 | | | 426 | 4.05k | return Status::OK(); | 427 | 4.05k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 442k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 442k | DCHECK(_parsed); | 413 | 442k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 442k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 442k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 442k | *n = max_fetch; | 422 | 442k | if constexpr (forward_index) { | 423 | 442k | _cur_index += max_fetch; | 424 | 442k | } | 425 | | | 426 | 442k | return Status::OK(); | 427 | 442k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 69.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 69.6k | DCHECK(_parsed); | 413 | 69.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 69.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 69.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 69.6k | *n = max_fetch; | 422 | 69.6k | if constexpr (forward_index) { | 423 | 69.6k | _cur_index += max_fetch; | 424 | 69.6k | } | 425 | | | 426 | 69.6k | return Status::OK(); | 427 | 69.6k | } |
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.94k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.94k | DCHECK(_parsed); | 413 | 1.94k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.94k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.94k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.94k | *n = max_fetch; | 422 | 1.94k | if constexpr (forward_index) { | 423 | 1.94k | _cur_index += max_fetch; | 424 | 1.94k | } | 425 | | | 426 | 1.94k | return Status::OK(); | 427 | 1.94k | } |
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.96k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 6.96k | DCHECK(_parsed); | 413 | 6.96k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 6.96k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 6.96k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 6.96k | *n = max_fetch; | 422 | 6.96k | if constexpr (forward_index) { | 423 | 6.96k | _cur_index += max_fetch; | 424 | 6.96k | } | 425 | | | 426 | 6.96k | return Status::OK(); | 427 | 6.96k | } |
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.22k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.22k | DCHECK(_parsed); | 413 | 1.22k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.22k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.22k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.22k | *n = max_fetch; | 422 | 1.22k | if constexpr (forward_index) { | 423 | 1.22k | _cur_index += max_fetch; | 424 | 1.22k | } | 425 | | | 426 | 1.22k | return Status::OK(); | 427 | 1.22k | } |
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.67k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.67k | DCHECK(_parsed); | 413 | 8.67k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.67k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.67k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.67k | *n = max_fetch; | 422 | 8.67k | if constexpr (forward_index) { | 423 | 8.67k | _cur_index += max_fetch; | 424 | 8.67k | } | 425 | | | 426 | 8.67k | return Status::OK(); | 427 | 8.67k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 43.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 43.0k | DCHECK(_parsed); | 413 | 43.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 43.0k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 43.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 43.0k | *n = max_fetch; | 422 | 43.0k | if constexpr (forward_index) { | 423 | 43.0k | _cur_index += max_fetch; | 424 | 43.0k | } | 425 | | | 426 | 43.0k | return Status::OK(); | 427 | 43.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 22.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 22.7k | DCHECK(_parsed); | 413 | 22.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 22.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 22.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 22.7k | *n = max_fetch; | 422 | 22.7k | if constexpr (forward_index) { | 423 | 22.7k | _cur_index += max_fetch; | 424 | 22.7k | } | 425 | | | 426 | 22.7k | return Status::OK(); | 427 | 22.7k | } |
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.19k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.19k | DCHECK(_parsed); | 413 | 3.19k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.19k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.19k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.19k | *n = max_fetch; | 422 | 3.19k | if constexpr (forward_index) { | 423 | 3.19k | _cur_index += max_fetch; | 424 | 3.19k | } | 425 | | | 426 | 3.19k | return Status::OK(); | 427 | 3.19k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 740 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 740 | DCHECK(_parsed); | 413 | 741 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 740 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 740 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 740 | *n = max_fetch; | 422 | 740 | if constexpr (forward_index) { | 423 | 740 | _cur_index += max_fetch; | 424 | 740 | } | 425 | | | 426 | 740 | return Status::OK(); | 427 | 740 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 3.24k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.24k | DCHECK(_parsed); | 413 | 3.24k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.24k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.24k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.24k | *n = max_fetch; | 422 | 3.24k | if constexpr (forward_index) { | 423 | 3.24k | _cur_index += max_fetch; | 424 | 3.24k | } | 425 | | | 426 | 3.24k | return Status::OK(); | 427 | 3.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 1.92M | 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 | 546k | 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 | 244k | 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 | 18.4k | 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 | 106k | 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 | 338k | 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 | 18.1k | 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.7k | 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 | 29.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 4.05k | 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 | 442k | 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 | 69.6k | 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.94k | 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.96k | 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.22k | 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.67k | 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 | 43.0k | 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 | 22.7k | 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.19k | 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 | 742 | 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 | 3.25k | 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 | 354k | MutableColumnPtr& dst) override { |
433 | 354k | DCHECK(_parsed); |
434 | 354k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 354k | auto total = *n; |
440 | 354k | auto read_count = 0; |
441 | 354k | _buffer.resize(total); |
442 | 69.8M | for (size_t i = 0; i < total; ++i) { |
443 | 69.5M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 69.5M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 8.28k | break; |
446 | 8.28k | } |
447 | | |
448 | 69.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 69.5M | } |
450 | | |
451 | 354k | if (LIKELY(read_count > 0)) { |
452 | 354k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 354k | } |
454 | | |
455 | 354k | *n = read_count; |
456 | 354k | return Status::OK(); |
457 | 354k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 76.2k | MutableColumnPtr& dst) override { | 433 | 76.2k | DCHECK(_parsed); | 434 | 76.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 76.2k | auto total = *n; | 440 | 76.2k | auto read_count = 0; | 441 | 76.2k | _buffer.resize(total); | 442 | 17.5M | for (size_t i = 0; i < total; ++i) { | 443 | 17.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 17.4M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.40k | break; | 446 | 1.40k | } | 447 | | | 448 | 17.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 17.4M | } | 450 | | | 451 | 76.3k | if (LIKELY(read_count > 0)) { | 452 | 76.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 76.3k | } | 454 | | | 455 | 76.2k | *n = read_count; | 456 | 76.2k | return Status::OK(); | 457 | 76.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 29.7k | MutableColumnPtr& dst) override { | 433 | 29.7k | DCHECK(_parsed); | 434 | 29.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 29.7k | auto total = *n; | 440 | 29.7k | auto read_count = 0; | 441 | 29.7k | _buffer.resize(total); | 442 | 899k | for (size_t i = 0; i < total; ++i) { | 443 | 869k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 869k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 869k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 869k | } | 450 | | | 451 | 29.7k | if (LIKELY(read_count > 0)) { | 452 | 29.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 29.7k | } | 454 | | | 455 | 29.7k | *n = read_count; | 456 | 29.7k | return Status::OK(); | 457 | 29.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 6.37k | MutableColumnPtr& dst) override { | 433 | 6.37k | DCHECK(_parsed); | 434 | 6.37k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 6.37k | auto total = *n; | 440 | 6.37k | auto read_count = 0; | 441 | 6.37k | _buffer.resize(total); | 442 | 76.3k | for (size_t i = 0; i < total; ++i) { | 443 | 70.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 70.0k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 70.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 70.0k | } | 450 | | | 451 | 6.37k | if (LIKELY(read_count > 0)) { | 452 | 6.37k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 6.37k | } | 454 | | | 455 | 6.37k | *n = read_count; | 456 | 6.37k | return Status::OK(); | 457 | 6.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 57.0k | MutableColumnPtr& dst) override { | 433 | 57.0k | DCHECK(_parsed); | 434 | 57.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 57.0k | auto total = *n; | 440 | 57.0k | auto read_count = 0; | 441 | 57.0k | _buffer.resize(total); | 442 | 1.84M | for (size_t i = 0; i < total; ++i) { | 443 | 1.78M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.78M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 1.78M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.78M | } | 450 | | | 451 | 57.0k | if (LIKELY(read_count > 0)) { | 452 | 57.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 57.0k | } | 454 | | | 455 | 57.0k | *n = read_count; | 456 | 57.0k | return Status::OK(); | 457 | 57.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 26.7k | MutableColumnPtr& dst) override { | 433 | 26.7k | DCHECK(_parsed); | 434 | 26.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 26.7k | auto total = *n; | 440 | 26.7k | auto read_count = 0; | 441 | 26.7k | _buffer.resize(total); | 442 | 595k | for (size_t i = 0; i < total; ++i) { | 443 | 568k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 568k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 82 | break; | 446 | 82 | } | 447 | | | 448 | 568k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 568k | } | 450 | | | 451 | 26.7k | if (LIKELY(read_count > 0)) { | 452 | 26.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 26.7k | } | 454 | | | 455 | 26.7k | *n = read_count; | 456 | 26.7k | return Status::OK(); | 457 | 26.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 6.63k | MutableColumnPtr& dst) override { | 433 | 6.63k | DCHECK(_parsed); | 434 | 6.63k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 6.63k | auto total = *n; | 440 | 6.63k | auto read_count = 0; | 441 | 6.63k | _buffer.resize(total); | 442 | 16.0k | for (size_t i = 0; i < total; ++i) { | 443 | 9.41k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 9.41k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 9.41k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 9.41k | } | 450 | | | 451 | 6.63k | if (LIKELY(read_count > 0)) { | 452 | 6.63k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 6.63k | } | 454 | | | 455 | 6.63k | *n = read_count; | 456 | 6.63k | return Status::OK(); | 457 | 6.63k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.7k | MutableColumnPtr& dst) override { | 433 | 10.7k | DCHECK(_parsed); | 434 | 10.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.7k | auto total = *n; | 440 | 10.7k | auto read_count = 0; | 441 | 10.7k | _buffer.resize(total); | 442 | 1.16M | for (size_t i = 0; i < total; ++i) { | 443 | 1.15M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.15M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 30 | break; | 446 | 30 | } | 447 | | | 448 | 1.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.15M | } | 450 | | | 451 | 10.7k | if (LIKELY(read_count > 0)) { | 452 | 10.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.7k | } | 454 | | | 455 | 10.7k | *n = read_count; | 456 | 10.7k | return Status::OK(); | 457 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.3k | MutableColumnPtr& dst) override { | 433 | 15.3k | DCHECK(_parsed); | 434 | 15.3k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.3k | auto total = *n; | 440 | 15.3k | auto read_count = 0; | 441 | 15.3k | _buffer.resize(total); | 442 | 1.97M | for (size_t i = 0; i < total; ++i) { | 443 | 1.95M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.95M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 664 | break; | 446 | 664 | } | 447 | | | 448 | 1.95M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.95M | } | 450 | | | 451 | 15.3k | if (LIKELY(read_count > 0)) { | 452 | 15.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.3k | } | 454 | | | 455 | 15.3k | *n = read_count; | 456 | 15.3k | return Status::OK(); | 457 | 15.3k | } |
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.10k | MutableColumnPtr& dst) override { | 433 | 2.10k | DCHECK(_parsed); | 434 | 2.10k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.10k | auto total = *n; | 440 | 2.10k | auto read_count = 0; | 441 | 2.10k | _buffer.resize(total); | 442 | 544k | for (size_t i = 0; i < total; ++i) { | 443 | 542k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 542k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 7 | break; | 446 | 7 | } | 447 | | | 448 | 542k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 542k | } | 450 | | | 451 | 2.10k | if (LIKELY(read_count > 0)) { | 452 | 2.10k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.10k | } | 454 | | | 455 | 2.10k | *n = read_count; | 456 | 2.10k | return Status::OK(); | 457 | 2.10k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 29.7k | MutableColumnPtr& dst) override { | 433 | 29.7k | DCHECK(_parsed); | 434 | 29.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 29.7k | auto total = *n; | 440 | 29.7k | auto read_count = 0; | 441 | 29.7k | _buffer.resize(total); | 442 | 6.14M | for (size_t i = 0; i < total; ++i) { | 443 | 6.11M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.11M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 514 | break; | 446 | 514 | } | 447 | | | 448 | 6.11M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.11M | } | 450 | | | 451 | 29.7k | if (LIKELY(read_count > 0)) { | 452 | 29.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 29.7k | } | 454 | | | 455 | 29.7k | *n = read_count; | 456 | 29.7k | return Status::OK(); | 457 | 29.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.4k | MutableColumnPtr& dst) override { | 433 | 31.4k | DCHECK(_parsed); | 434 | 31.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.4k | auto total = *n; | 440 | 31.4k | auto read_count = 0; | 441 | 31.4k | _buffer.resize(total); | 442 | 7.50M | for (size_t i = 0; i < total; ++i) { | 443 | 7.47M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.47M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 92 | break; | 446 | 92 | } | 447 | | | 448 | 7.47M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.47M | } | 450 | | | 451 | 31.4k | if (LIKELY(read_count > 0)) { | 452 | 31.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.4k | } | 454 | | | 455 | 31.4k | *n = read_count; | 456 | 31.4k | return Status::OK(); | 457 | 31.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.30k | MutableColumnPtr& dst) override { | 433 | 2.30k | DCHECK(_parsed); | 434 | 2.30k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.30k | auto total = *n; | 440 | 2.30k | auto read_count = 0; | 441 | 2.30k | _buffer.resize(total); | 442 | 533k | for (size_t i = 0; i < total; ++i) { | 443 | 531k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 531k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 81 | break; | 446 | 81 | } | 447 | | | 448 | 531k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 531k | } | 450 | | | 451 | 2.30k | if (LIKELY(read_count > 0)) { | 452 | 2.30k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.30k | } | 454 | | | 455 | 2.30k | *n = read_count; | 456 | 2.30k | return Status::OK(); | 457 | 2.30k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 11.8k | MutableColumnPtr& dst) override { | 433 | 11.8k | DCHECK(_parsed); | 434 | 11.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 11.8k | auto total = *n; | 440 | 11.8k | auto read_count = 0; | 441 | 11.8k | _buffer.resize(total); | 442 | 25.1k | 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.8k | *n = read_count; | 456 | 11.8k | return Status::OK(); | 457 | 11.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 91 | MutableColumnPtr& dst) override { | 433 | 91 | DCHECK(_parsed); | 434 | 91 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 91 | auto total = *n; | 440 | 91 | auto read_count = 0; | 441 | 91 | _buffer.resize(total); | 442 | 187 | for (size_t i = 0; i < total; ++i) { | 443 | 96 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 96 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 96 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 96 | } | 450 | | | 451 | 91 | if (LIKELY(read_count > 0)) { | 452 | 91 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 91 | } | 454 | | | 455 | 91 | *n = read_count; | 456 | 91 | return Status::OK(); | 457 | 91 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.63k | MutableColumnPtr& dst) override { | 433 | 4.63k | DCHECK(_parsed); | 434 | 4.63k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.63k | auto total = *n; | 440 | 4.63k | auto read_count = 0; | 441 | 4.63k | _buffer.resize(total); | 442 | 19.1k | 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.63k | if (LIKELY(read_count > 0)) { | 452 | 4.63k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.63k | } | 454 | | | 455 | 4.63k | *n = read_count; | 456 | 4.63k | return Status::OK(); | 457 | 4.63k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 26.1k | MutableColumnPtr& dst) override { | 433 | 26.1k | DCHECK(_parsed); | 434 | 26.1k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 26.1k | auto total = *n; | 440 | 26.1k | auto read_count = 0; | 441 | 26.1k | _buffer.resize(total); | 442 | 20.1M | for (size_t i = 0; i < total; ++i) { | 443 | 20.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 20.0M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 5.00k | break; | 446 | 5.00k | } | 447 | | | 448 | 20.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 20.0M | } | 450 | | | 451 | 26.1k | if (LIKELY(read_count > 0)) { | 452 | 26.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 26.1k | } | 454 | | | 455 | 26.1k | *n = read_count; | 456 | 26.1k | return Status::OK(); | 457 | 26.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.6k | MutableColumnPtr& dst) override { | 433 | 15.6k | DCHECK(_parsed); | 434 | 15.6k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.6k | auto total = *n; | 440 | 15.6k | auto read_count = 0; | 441 | 15.6k | _buffer.resize(total); | 442 | 10.8M | for (size_t i = 0; i < total; ++i) { | 443 | 10.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 10.8M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 410 | break; | 446 | 410 | } | 447 | | | 448 | 10.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 10.8M | } | 450 | | | 451 | 15.6k | if (LIKELY(read_count > 0)) { | 452 | 15.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.6k | } | 454 | | | 455 | 15.6k | *n = read_count; | 456 | 15.6k | return Status::OK(); | 457 | 15.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 960 | MutableColumnPtr& dst) override { | 433 | 960 | DCHECK(_parsed); | 434 | 960 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 960 | auto total = *n; | 440 | 960 | auto read_count = 0; | 441 | 960 | _buffer.resize(total); | 442 | 2.77k | 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 | 960 | if (LIKELY(read_count > 0)) { | 452 | 960 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 960 | } | 454 | | | 455 | 960 | *n = read_count; | 456 | 960 | return Status::OK(); | 457 | 960 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 469 | MutableColumnPtr& dst) override { | 433 | 469 | DCHECK(_parsed); | 434 | 469 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 469 | auto total = *n; | 440 | 469 | auto read_count = 0; | 441 | 469 | _buffer.resize(total); | 442 | 1.18k | for (size_t i = 0; i < total; ++i) { | 443 | 713 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 713 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 713 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 713 | } | 450 | | | 451 | 469 | if (LIKELY(read_count > 0)) { | 452 | 469 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 469 | } | 454 | | | 455 | 469 | *n = read_count; | 456 | 469 | return Status::OK(); | 457 | 469 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 403 | MutableColumnPtr& dst) override { | 433 | 403 | DCHECK(_parsed); | 434 | 403 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 403 | auto total = *n; | 440 | 403 | auto read_count = 0; | 441 | 403 | _buffer.resize(total); | 442 | 1.31k | for (size_t i = 0; i < total; ++i) { | 443 | 913 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 913 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 913 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 913 | } | 450 | | | 451 | 403 | if (LIKELY(read_count > 0)) { | 452 | 403 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 403 | } | 454 | | | 455 | 403 | *n = read_count; | 456 | 403 | return Status::OK(); | 457 | 403 | } |
|
458 | | |
459 | 583k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 583k | return next_batch<false>(n, dst); |
461 | 583k | } 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 | 583k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 583k | return next_batch<false>(n, dst); | 461 | 583k | } |
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 | 2.03M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 1.92M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 1.10k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 578 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 6.76k | 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 | 312 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 14.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 10.0k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 6.24k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 28.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 22.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 4.84k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 989 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 465 | 6 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 465 | 3.44k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 4.21k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 5.40k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 304 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 44 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 104 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 73.3M | char* get_data(size_t index) const { |
468 | 73.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 73.3M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 19.3M | char* get_data(size_t index) const { | 468 | 19.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 19.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 1.11M | char* get_data(size_t index) const { | 468 | 1.11M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.11M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 88.4k | char* get_data(size_t index) const { | 468 | 88.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 88.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 1.89M | char* get_data(size_t index) const { | 468 | 1.89M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.89M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 467 | 1.48M | char* get_data(size_t index) const { | 468 | 1.48M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.48M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 467 | 27.5k | char* get_data(size_t index) const { | 468 | 27.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 27.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.17M | char* get_data(size_t index) const { | 468 | 1.17M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.17M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 1.98M | char* get_data(size_t index) const { | 468 | 1.98M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.98M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 546k | char* get_data(size_t index) const { | 468 | 546k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 546k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 6.56M | char* get_data(size_t index) const { | 468 | 6.56M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.56M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.54M | char* get_data(size_t index) const { | 468 | 7.54M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.54M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 533k | char* get_data(size_t index) const { | 468 | 533k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 533k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 20.2k | char* get_data(size_t index) const { | 468 | 20.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 20.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.31k | char* get_data(size_t index) const { | 468 | 1.31k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.31k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_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_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 20.1M | char* get_data(size_t index) const { | 468 | 20.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 20.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 10.8M | char* get_data(size_t index) const { | 468 | 10.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 10.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 467 | 5.00k | char* get_data(size_t index) const { | 468 | 5.00k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.00k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 467 | 1.45k | char* get_data(size_t index) const { | 468 | 1.45k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.45k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 4.16k | char* get_data(size_t index) const { | 468 | 4.16k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.16k | } |
|
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 |