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 | 774k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 372k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 46.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 8.73k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 111k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 69.1k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 10.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 11.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 14.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 189 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 36.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 43.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 286 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.28k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 184 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.61k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.3k | 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 | 792 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 713 | Status init() override { return reset(); } |
|
97 | | |
98 | 155M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 154M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 46.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 11.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 524k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 69.2k | 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 | 10.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 11.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 16.7k | 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 | 196 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 114k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 86.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 340 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.30k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 88 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.19k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 35.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 24.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 28.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 5.64k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.71M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.71M | return add_internal<false>(vals, count); |
102 | 1.71M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 716k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 716k | return add_internal<false>(vals, count); | 102 | 716k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 46.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 46.9k | return add_internal<false>(vals, count); | 102 | 46.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 11.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.1k | return add_internal<false>(vals, count); | 102 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 524k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 524k | return add_internal<false>(vals, count); | 102 | 524k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 69.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 69.2k | return add_internal<false>(vals, count); | 102 | 69.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 10.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 10.6k | return add_internal<false>(vals, count); | 102 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 11.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.7k | return add_internal<false>(vals, count); | 102 | 11.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 16.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.7k | return add_internal<false>(vals, count); | 102 | 16.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 196 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 196 | return add_internal<false>(vals, count); | 102 | 196 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 114k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 114k | return add_internal<false>(vals, count); | 102 | 114k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 86.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 86.1k | return add_internal<false>(vals, count); | 102 | 86.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 340 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 340 | return add_internal<false>(vals, count); | 102 | 340 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.31k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.31k | return add_internal<false>(vals, count); | 102 | 7.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 88 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 88 | return add_internal<false>(vals, count); | 102 | 88 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.19k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.19k | return add_internal<false>(vals, count); | 102 | 5.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 35.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 35.9k | return add_internal<false>(vals, count); | 102 | 35.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 24.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 24.6k | return add_internal<false>(vals, count); | 102 | 24.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.37k | return add_internal<false>(vals, count); | 102 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 28.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 28.2k | return add_internal<false>(vals, count); | 102 | 28.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 5.64k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.64k | return add_internal<false>(vals, count); | 102 | 5.64k | } |
|
103 | | |
104 | 153M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 153M | return add_internal<true>(vals, count); |
106 | 153M | } |
107 | | |
108 | | template <bool single> |
109 | 153M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 153M | DCHECK(!_finished); |
111 | 153M | 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 | 153M | uint32_t to_add = cast_set<UInt32>( |
127 | 153M | 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 | 153M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 153M | 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 | 153M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 154M | _count += to_add; |
135 | 154M | _remain_element_capacity -= to_add; |
136 | 154M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 154M | *num_written = to_add; |
139 | 154M | 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 | 152M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 152M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 152M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 152M | 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 | 152M | } |
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 | 154M | return Status::OK(); |
160 | 153M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 716k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 716k | DCHECK(!_finished); | 111 | 716k | 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 | 716k | uint32_t to_add = cast_set<UInt32>( | 127 | 716k | 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 | 716k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 716k | 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 | 716k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 716k | _count += to_add; | 135 | 716k | _remain_element_capacity -= to_add; | 136 | 716k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 716k | *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 | 716k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 716k | return Status::OK(); | 160 | 716k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 151M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 151M | DCHECK(!_finished); | 111 | 151M | 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 | 151M | uint32_t to_add = cast_set<UInt32>( | 127 | 151M | 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 | 151M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 151M | 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 | 151M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 152M | _count += to_add; | 135 | 152M | _remain_element_capacity -= to_add; | 136 | 152M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 152M | *num_written = to_add; | 139 | 152M | 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 | 152M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 152M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 152M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 152M | 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 | 152M | } | 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 | 152M | return Status::OK(); | 160 | 151M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 46.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 46.9k | DCHECK(!_finished); | 111 | 46.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 | 46.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 46.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 | 46.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 46.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 | 46.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 46.9k | _count += to_add; | 135 | 46.9k | _remain_element_capacity -= to_add; | 136 | 46.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 46.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 | 46.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 46.9k | return Status::OK(); | 160 | 46.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.1k | DCHECK(!_finished); | 111 | 11.1k | 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.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.1k | 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.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.1k | 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.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.1k | _count += to_add; | 135 | 11.1k | _remain_element_capacity -= to_add; | 136 | 11.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.1k | *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.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.1k | return Status::OK(); | 160 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 524k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 524k | DCHECK(!_finished); | 111 | 524k | 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 | 524k | uint32_t to_add = cast_set<UInt32>( | 127 | 524k | 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 | 524k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 524k | 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 | 524k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 524k | _count += to_add; | 135 | 524k | _remain_element_capacity -= to_add; | 136 | 524k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 524k | *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 | 524k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 524k | return Status::OK(); | 160 | 524k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 69.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 69.2k | DCHECK(!_finished); | 111 | 69.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 | 69.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 69.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 | 69.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 69.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 | 69.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 69.2k | _count += to_add; | 135 | 69.2k | _remain_element_capacity -= to_add; | 136 | 69.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 69.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 | 69.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 69.2k | return Status::OK(); | 160 | 69.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 10.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 10.6k | DCHECK(!_finished); | 111 | 10.6k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 10.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 10.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 10.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 10.6k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 10.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 10.6k | _count += to_add; | 135 | 10.6k | _remain_element_capacity -= to_add; | 136 | 10.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 10.6k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 10.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 10.6k | return Status::OK(); | 160 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.7k | DCHECK(!_finished); | 111 | 11.7k | 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.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.7k | 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.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.7k | 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.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.7k | _count += to_add; | 135 | 11.7k | _remain_element_capacity -= to_add; | 136 | 11.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.7k | *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.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.7k | return Status::OK(); | 160 | 11.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.7k | DCHECK(!_finished); | 111 | 16.7k | 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.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.7k | 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.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.7k | 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.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.7k | _count += to_add; | 135 | 16.7k | _remain_element_capacity -= to_add; | 136 | 16.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.7k | *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.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.7k | return Status::OK(); | 160 | 16.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 196 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 196 | DCHECK(!_finished); | 111 | 196 | 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 | 196 | uint32_t to_add = cast_set<UInt32>( | 127 | 196 | 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 | 196 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 196 | 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 | 196 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 196 | _count += to_add; | 135 | 196 | _remain_element_capacity -= to_add; | 136 | 196 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 196 | *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 | 196 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 196 | return Status::OK(); | 160 | 196 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 114k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 114k | DCHECK(!_finished); | 111 | 114k | 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 | 114k | uint32_t to_add = cast_set<UInt32>( | 127 | 114k | 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 | 114k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 114k | 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 | 114k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 114k | _count += to_add; | 135 | 114k | _remain_element_capacity -= to_add; | 136 | 114k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 114k | *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 | 114k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 114k | return Status::OK(); | 160 | 114k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 86.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 86.1k | DCHECK(!_finished); | 111 | 86.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 86.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 86.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 86.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 86.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 86.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 86.1k | _count += to_add; | 135 | 86.1k | _remain_element_capacity -= to_add; | 136 | 86.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 86.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 86.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 86.1k | return Status::OK(); | 160 | 86.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 340 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 340 | DCHECK(!_finished); | 111 | 340 | 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 | 340 | uint32_t to_add = cast_set<UInt32>( | 127 | 340 | 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 | 340 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 340 | 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 | 340 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 340 | _count += to_add; | 135 | 340 | _remain_element_capacity -= to_add; | 136 | 340 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 340 | *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 | 340 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 340 | return Status::OK(); | 160 | 340 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.31k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.31k | DCHECK(!_finished); | 111 | 7.31k | 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 | 7.31k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.31k | 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 | 7.31k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.31k | 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 | 7.31k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.31k | _count += to_add; | 135 | 7.31k | _remain_element_capacity -= to_add; | 136 | 7.31k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.31k | *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 | 7.31k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.31k | return Status::OK(); | 160 | 7.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 88 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 88 | DCHECK(!_finished); | 111 | 88 | 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 | 88 | uint32_t to_add = cast_set<UInt32>( | 127 | 88 | 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 | 88 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 88 | 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 | 88 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 88 | _count += to_add; | 135 | 88 | _remain_element_capacity -= to_add; | 136 | 88 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 88 | *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 | 88 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 88 | return Status::OK(); | 160 | 88 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.18k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.18k | DCHECK(!_finished); | 111 | 5.18k | 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.18k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.18k | 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.18k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.18k | 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.18k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.19k | _count += to_add; | 135 | 5.19k | _remain_element_capacity -= to_add; | 136 | 5.19k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.19k | *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.19k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.19k | return Status::OK(); | 160 | 5.18k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 35.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 35.9k | DCHECK(!_finished); | 111 | 35.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 | 35.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 35.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 | 35.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 35.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 | 35.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 35.9k | _count += to_add; | 135 | 35.9k | _remain_element_capacity -= to_add; | 136 | 35.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 35.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 | 35.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 35.9k | return Status::OK(); | 160 | 35.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 24.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 24.6k | DCHECK(!_finished); | 111 | 24.6k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 24.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 24.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 24.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 24.6k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 24.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 24.6k | _count += to_add; | 135 | 24.6k | _remain_element_capacity -= to_add; | 136 | 24.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 24.6k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 24.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 24.6k | return Status::OK(); | 160 | 24.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.37k | DCHECK(!_finished); | 111 | 1.37k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.37k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.37k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.37k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.37k | _count += to_add; | 135 | 1.37k | _remain_element_capacity -= to_add; | 136 | 1.37k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.37k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.37k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.37k | return Status::OK(); | 160 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 28.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 28.2k | DCHECK(!_finished); | 111 | 28.2k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 28.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 28.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 28.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 28.2k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 28.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 28.2k | _count += to_add; | 135 | 28.2k | _remain_element_capacity -= to_add; | 136 | 28.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 28.2k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 28.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 28.2k | return Status::OK(); | 160 | 28.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.64k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.64k | DCHECK(!_finished); | 111 | 5.64k | 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.64k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.64k | 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.64k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.64k | 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.64k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.64k | _count += to_add; | 135 | 5.64k | _remain_element_capacity -= to_add; | 136 | 5.64k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.64k | *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.64k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.64k | return Status::OK(); | 160 | 5.64k | } |
|
161 | | |
162 | 768k | Status finish(OwnedSlice* slice) override { |
163 | 768k | if (_count > 0) { |
164 | 722k | _first_value = cell(0); |
165 | 722k | _last_value = cell(_count - 1); |
166 | 722k | } |
167 | 768k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 769k | return Status::OK(); |
169 | 768k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 359k | Status finish(OwnedSlice* slice) override { | 163 | 359k | if (_count > 0) { | 164 | 324k | _first_value = cell(0); | 165 | 324k | _last_value = cell(_count - 1); | 166 | 324k | } | 167 | 359k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 359k | return Status::OK(); | 169 | 359k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 45.3k | Status finish(OwnedSlice* slice) override { | 163 | 45.3k | if (_count > 0) { | 164 | 44.8k | _first_value = cell(0); | 165 | 44.8k | _last_value = cell(_count - 1); | 166 | 44.8k | } | 167 | 45.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 45.3k | return Status::OK(); | 169 | 45.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.30k | Status finish(OwnedSlice* slice) override { | 163 | 8.30k | if (_count > 0) { | 164 | 8.14k | _first_value = cell(0); | 165 | 8.14k | _last_value = cell(_count - 1); | 166 | 8.14k | } | 167 | 8.30k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 8.30k | return Status::OK(); | 169 | 8.30k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 115k | Status finish(OwnedSlice* slice) override { | 163 | 115k | if (_count > 0) { | 164 | 113k | _first_value = cell(0); | 165 | 113k | _last_value = cell(_count - 1); | 166 | 113k | } | 167 | 115k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 115k | return Status::OK(); | 169 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 68.8k | Status finish(OwnedSlice* slice) override { | 163 | 68.8k | if (_count > 0) { | 164 | 68.8k | _first_value = cell(0); | 165 | 68.8k | _last_value = cell(_count - 1); | 166 | 68.8k | } | 167 | 68.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 68.8k | return Status::OK(); | 169 | 68.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 10.8k | Status finish(OwnedSlice* slice) override { | 163 | 10.8k | if (_count > 0) { | 164 | 10.4k | _first_value = cell(0); | 165 | 10.4k | _last_value = cell(_count - 1); | 166 | 10.4k | } | 167 | 10.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 10.8k | return Status::OK(); | 169 | 10.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.0k | Status finish(OwnedSlice* slice) override { | 163 | 11.0k | if (_count > 0) { | 164 | 10.7k | _first_value = cell(0); | 165 | 10.7k | _last_value = cell(_count - 1); | 166 | 10.7k | } | 167 | 11.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 11.0k | return Status::OK(); | 169 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.5k | Status finish(OwnedSlice* slice) override { | 163 | 14.5k | if (_count > 0) { | 164 | 14.2k | _first_value = cell(0); | 165 | 14.2k | _last_value = cell(_count - 1); | 166 | 14.2k | } | 167 | 14.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 14.5k | return Status::OK(); | 169 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 201 | Status finish(OwnedSlice* slice) override { | 163 | 201 | if (_count > 0) { | 164 | 196 | _first_value = cell(0); | 165 | 196 | _last_value = cell(_count - 1); | 166 | 196 | } | 167 | 201 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 201 | return Status::OK(); | 169 | 201 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.2k | Status finish(OwnedSlice* slice) override { | 163 | 37.2k | if (_count > 0) { | 164 | 36.2k | _first_value = cell(0); | 165 | 36.2k | _last_value = cell(_count - 1); | 166 | 36.2k | } | 167 | 37.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 37.2k | return Status::OK(); | 169 | 37.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 42.9k | Status finish(OwnedSlice* slice) override { | 163 | 42.9k | if (_count > 0) { | 164 | 41.5k | _first_value = cell(0); | 165 | 41.5k | _last_value = cell(_count - 1); | 166 | 41.5k | } | 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 | 440 | Status finish(OwnedSlice* slice) override { | 163 | 440 | if (_count > 0) { | 164 | 340 | _first_value = cell(0); | 165 | 340 | _last_value = cell(_count - 1); | 166 | 340 | } | 167 | 440 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 440 | return Status::OK(); | 169 | 440 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.51k | Status finish(OwnedSlice* slice) override { | 163 | 7.51k | if (_count > 0) { | 164 | 7.30k | _first_value = cell(0); | 165 | 7.30k | _last_value = cell(_count - 1); | 166 | 7.30k | } | 167 | 7.51k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.52k | return Status::OK(); | 169 | 7.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 96 | Status finish(OwnedSlice* slice) override { | 163 | 96 | if (_count > 0) { | 164 | 88 | _first_value = cell(0); | 165 | 88 | _last_value = cell(_count - 1); | 166 | 88 | } | 167 | 96 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 96 | return Status::OK(); | 169 | 96 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.61k | Status finish(OwnedSlice* slice) override { | 163 | 9.61k | if (_count > 0) { | 164 | 4.69k | _first_value = cell(0); | 165 | 4.69k | _last_value = cell(_count - 1); | 166 | 4.69k | } | 167 | 9.61k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.61k | return Status::OK(); | 169 | 9.61k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.1k | Status finish(OwnedSlice* slice) override { | 163 | 19.1k | if (_count > 0) { | 164 | 18.1k | _first_value = cell(0); | 165 | 18.1k | _last_value = cell(_count - 1); | 166 | 18.1k | } | 167 | 19.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 19.1k | return Status::OK(); | 169 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 16.1k | Status finish(OwnedSlice* slice) override { | 163 | 16.1k | if (_count > 0) { | 164 | 15.6k | _first_value = cell(0); | 165 | 15.6k | _last_value = cell(_count - 1); | 166 | 15.6k | } | 167 | 16.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 16.1k | return Status::OK(); | 169 | 16.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.06k | Status finish(OwnedSlice* slice) override { | 163 | 1.06k | if (_count > 0) { | 164 | 1.00k | _first_value = cell(0); | 165 | 1.00k | _last_value = cell(_count - 1); | 166 | 1.00k | } | 167 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 1.06k | return Status::OK(); | 169 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 706 | Status finish(OwnedSlice* slice) override { | 163 | 706 | if (_count > 0) { | 164 | 656 | _first_value = cell(0); | 165 | 656 | _last_value = cell(_count - 1); | 166 | 656 | } | 167 | 706 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 706 | return Status::OK(); | 169 | 706 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 633 | Status finish(OwnedSlice* slice) override { | 163 | 633 | if (_count > 0) { | 164 | 598 | _first_value = cell(0); | 165 | 598 | _last_value = cell(_count - 1); | 166 | 598 | } | 167 | 633 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 633 | return Status::OK(); | 169 | 633 | } |
|
170 | | |
171 | 1.85M | Status reset() override { |
172 | 1.85M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 1.85M | size_t block_size = _options.data_page_size; |
174 | 1.85M | _count = 0; |
175 | 1.85M | _raw_data_size = 0; |
176 | 1.85M | _data.clear(); |
177 | 1.85M | _data.reserve(block_size); |
178 | 1.85M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 1.85M | << "buffer must be naturally-aligned"; |
180 | 1.85M | _buffer.clear(); |
181 | 1.85M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 1.85M | _finished = false; |
183 | 1.85M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 1.85M | }); |
185 | 1.85M | return Status::OK(); |
186 | 1.85M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.04M | Status reset() override { | 172 | 1.04M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.04M | size_t block_size = _options.data_page_size; | 174 | 1.04M | _count = 0; | 175 | 1.04M | _raw_data_size = 0; | 176 | 1.04M | _data.clear(); | 177 | 1.04M | _data.reserve(block_size); | 178 | 1.04M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.04M | << "buffer must be naturally-aligned"; | 180 | 1.04M | _buffer.clear(); | 181 | 1.04M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.04M | _finished = false; | 183 | 1.04M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.04M | }); | 185 | 1.04M | return Status::OK(); | 186 | 1.04M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 91.7k | Status reset() override { | 172 | 91.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 91.7k | size_t block_size = _options.data_page_size; | 174 | 91.7k | _count = 0; | 175 | 91.7k | _raw_data_size = 0; | 176 | 91.7k | _data.clear(); | 177 | 91.7k | _data.reserve(block_size); | 178 | 91.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 91.7k | << "buffer must be naturally-aligned"; | 180 | 91.7k | _buffer.clear(); | 181 | 91.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 91.7k | _finished = false; | 183 | 91.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 91.7k | }); | 185 | 91.8k | return Status::OK(); | 186 | 91.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 17.0k | Status reset() override { | 172 | 17.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 17.0k | size_t block_size = _options.data_page_size; | 174 | 17.0k | _count = 0; | 175 | 17.0k | _raw_data_size = 0; | 176 | 17.0k | _data.clear(); | 177 | 17.0k | _data.reserve(block_size); | 178 | 17.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 17.0k | << "buffer must be naturally-aligned"; | 180 | 17.0k | _buffer.clear(); | 181 | 17.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 17.0k | _finished = false; | 183 | 17.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 17.0k | }); | 185 | 17.0k | return Status::OK(); | 186 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 226k | Status reset() override { | 172 | 226k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 226k | size_t block_size = _options.data_page_size; | 174 | 226k | _count = 0; | 175 | 226k | _raw_data_size = 0; | 176 | 226k | _data.clear(); | 177 | 226k | _data.reserve(block_size); | 178 | 226k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 226k | << "buffer must be naturally-aligned"; | 180 | 226k | _buffer.clear(); | 181 | 226k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 226k | _finished = false; | 183 | 226k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 226k | }); | 185 | 226k | return Status::OK(); | 186 | 226k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 137k | Status reset() override { | 172 | 137k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 137k | size_t block_size = _options.data_page_size; | 174 | 137k | _count = 0; | 175 | 137k | _raw_data_size = 0; | 176 | 137k | _data.clear(); | 177 | 137k | _data.reserve(block_size); | 178 | 137k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 137k | << "buffer must be naturally-aligned"; | 180 | 137k | _buffer.clear(); | 181 | 137k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 137k | _finished = false; | 183 | 137k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 137k | }); | 185 | 138k | return Status::OK(); | 186 | 137k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 21.6k | Status reset() override { | 172 | 21.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 21.6k | size_t block_size = _options.data_page_size; | 174 | 21.6k | _count = 0; | 175 | 21.6k | _raw_data_size = 0; | 176 | 21.6k | _data.clear(); | 177 | 21.6k | _data.reserve(block_size); | 178 | 21.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 21.6k | << "buffer must be naturally-aligned"; | 180 | 21.6k | _buffer.clear(); | 181 | 21.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 21.6k | _finished = false; | 183 | 21.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 21.6k | }); | 185 | 21.6k | return Status::OK(); | 186 | 21.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 22.9k | Status reset() override { | 172 | 22.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 22.9k | size_t block_size = _options.data_page_size; | 174 | 22.9k | _count = 0; | 175 | 22.9k | _raw_data_size = 0; | 176 | 22.9k | _data.clear(); | 177 | 22.9k | _data.reserve(block_size); | 178 | 22.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 22.9k | << "buffer must be naturally-aligned"; | 180 | 22.9k | _buffer.clear(); | 181 | 22.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 22.9k | _finished = false; | 183 | 22.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 22.9k | }); | 185 | 22.9k | return Status::OK(); | 186 | 22.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 29.0k | Status reset() override { | 172 | 29.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 29.0k | size_t block_size = _options.data_page_size; | 174 | 29.0k | _count = 0; | 175 | 29.0k | _raw_data_size = 0; | 176 | 29.0k | _data.clear(); | 177 | 29.0k | _data.reserve(block_size); | 178 | 29.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 29.0k | << "buffer must be naturally-aligned"; | 180 | 29.0k | _buffer.clear(); | 181 | 29.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 29.0k | _finished = false; | 183 | 29.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 29.0k | }); | 185 | 29.0k | return Status::OK(); | 186 | 29.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 390 | Status reset() override { | 172 | 390 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 390 | size_t block_size = _options.data_page_size; | 174 | 390 | _count = 0; | 175 | 390 | _raw_data_size = 0; | 176 | 390 | _data.clear(); | 177 | 390 | _data.reserve(block_size); | 178 | 390 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 390 | << "buffer must be naturally-aligned"; | 180 | 390 | _buffer.clear(); | 181 | 390 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 390 | _finished = false; | 183 | 390 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 390 | }); | 185 | 390 | return Status::OK(); | 186 | 390 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 171 | 73.6k | Status reset() override { | 172 | 73.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 73.6k | size_t block_size = _options.data_page_size; | 174 | 73.6k | _count = 0; | 175 | 73.6k | _raw_data_size = 0; | 176 | 73.6k | _data.clear(); | 177 | 73.6k | _data.reserve(block_size); | 178 | 73.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 73.6k | << "buffer must be naturally-aligned"; | 180 | 73.6k | _buffer.clear(); | 181 | 73.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 73.6k | _finished = false; | 183 | 73.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 73.6k | }); | 185 | 73.7k | return Status::OK(); | 186 | 73.6k | } |
_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 | 86.9k | return Status::OK(); | 186 | 86.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 726 | Status reset() override { | 172 | 726 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 726 | size_t block_size = _options.data_page_size; | 174 | 726 | _count = 0; | 175 | 726 | _raw_data_size = 0; | 176 | 726 | _data.clear(); | 177 | 726 | _data.reserve(block_size); | 178 | 726 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 726 | << "buffer must be naturally-aligned"; | 180 | 726 | _buffer.clear(); | 181 | 726 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 726 | _finished = false; | 183 | 726 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 726 | }); | 185 | 726 | return Status::OK(); | 186 | 726 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 14.7k | Status reset() override { | 172 | 14.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.7k | size_t block_size = _options.data_page_size; | 174 | 14.7k | _count = 0; | 175 | 14.7k | _raw_data_size = 0; | 176 | 14.7k | _data.clear(); | 177 | 14.7k | _data.reserve(block_size); | 178 | 14.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.7k | << "buffer must be naturally-aligned"; | 180 | 14.7k | _buffer.clear(); | 181 | 14.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.7k | _finished = false; | 183 | 14.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.7k | }); | 185 | 15.0k | return Status::OK(); | 186 | 14.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 280 | Status reset() override { | 172 | 280 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 280 | size_t block_size = _options.data_page_size; | 174 | 280 | _count = 0; | 175 | 280 | _raw_data_size = 0; | 176 | 280 | _data.clear(); | 177 | 280 | _data.reserve(block_size); | 178 | 280 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 280 | << "buffer must be naturally-aligned"; | 180 | 280 | _buffer.clear(); | 181 | 280 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 280 | _finished = false; | 183 | 280 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 280 | }); | 185 | 280 | return Status::OK(); | 186 | 280 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.2k | Status reset() override { | 172 | 19.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.2k | size_t block_size = _options.data_page_size; | 174 | 19.2k | _count = 0; | 175 | 19.2k | _raw_data_size = 0; | 176 | 19.2k | _data.clear(); | 177 | 19.2k | _data.reserve(block_size); | 178 | 19.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.2k | << "buffer must be naturally-aligned"; | 180 | 19.2k | _buffer.clear(); | 181 | 19.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.2k | _finished = false; | 183 | 19.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.2k | }); | 185 | 19.2k | return Status::OK(); | 186 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 31.4k | Status reset() override { | 172 | 31.4k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.4k | size_t block_size = _options.data_page_size; | 174 | 31.4k | _count = 0; | 175 | 31.4k | _raw_data_size = 0; | 176 | 31.4k | _data.clear(); | 177 | 31.4k | _data.reserve(block_size); | 178 | 31.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.4k | << "buffer must be naturally-aligned"; | 180 | 31.4k | _buffer.clear(); | 181 | 31.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.4k | _finished = false; | 183 | 31.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.4k | }); | 185 | 31.4k | return Status::OK(); | 186 | 31.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 32.1k | Status reset() override { | 172 | 32.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.1k | size_t block_size = _options.data_page_size; | 174 | 32.1k | _count = 0; | 175 | 32.1k | _raw_data_size = 0; | 176 | 32.1k | _data.clear(); | 177 | 32.1k | _data.reserve(block_size); | 178 | 32.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.1k | << "buffer must be naturally-aligned"; | 180 | 32.1k | _buffer.clear(); | 181 | 32.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.1k | _finished = false; | 183 | 32.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.1k | }); | 185 | 32.1k | return Status::OK(); | 186 | 32.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.21k | Status reset() override { | 172 | 2.21k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.21k | size_t block_size = _options.data_page_size; | 174 | 2.21k | _count = 0; | 175 | 2.21k | _raw_data_size = 0; | 176 | 2.21k | _data.clear(); | 177 | 2.21k | _data.reserve(block_size); | 178 | 2.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.21k | << "buffer must be naturally-aligned"; | 180 | 2.21k | _buffer.clear(); | 181 | 2.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.21k | _finished = false; | 183 | 2.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.21k | }); | 185 | 2.22k | return Status::OK(); | 186 | 2.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.49k | Status reset() override { | 172 | 1.49k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.49k | size_t block_size = _options.data_page_size; | 174 | 1.49k | _count = 0; | 175 | 1.49k | _raw_data_size = 0; | 176 | 1.49k | _data.clear(); | 177 | 1.49k | _data.reserve(block_size); | 178 | 1.49k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.49k | << "buffer must be naturally-aligned"; | 180 | 1.49k | _buffer.clear(); | 181 | 1.49k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.49k | _finished = false; | 183 | 1.49k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.49k | }); | 185 | 1.50k | return Status::OK(); | 186 | 1.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.34k | Status reset() override { | 172 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.34k | size_t block_size = _options.data_page_size; | 174 | 1.34k | _count = 0; | 175 | 1.34k | _raw_data_size = 0; | 176 | 1.34k | _data.clear(); | 177 | 1.34k | _data.reserve(block_size); | 178 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.34k | << "buffer must be naturally-aligned"; | 180 | 1.34k | _buffer.clear(); | 181 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.34k | _finished = false; | 183 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.34k | }); | 185 | 1.34k | return Status::OK(); | 186 | 1.34k | } |
|
187 | | |
188 | 3.02M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 3.02M | 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 | 29.2k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 16.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 2.26k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 629 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 1.70k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 738 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.04k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 704 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 769 | 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.54k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.10k | 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 | 131 | 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.13k | 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 | 470k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 60.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 45.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 8.30k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 115k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 68.8k | 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.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 11.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 14.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 192 | 201 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 37.2k | 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 | 440 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.51k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 192 | 96 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.61k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 19.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 16.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 192 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 192 | 706 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 633 | 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 | 774k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 372k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 46.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 8.74k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 111k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 69.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 10.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 11.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 189 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 36.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 43.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 286 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.33k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 184 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.61k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.3k | : _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 | 792 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 712 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 769k | OwnedSlice _finish(int final_size_of_type) { |
216 | 769k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 769k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 769k | int padding_elems = num_elems_after_padding - _count; |
221 | 769k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 22.2M | for (int i = 0; i < padding_bytes; i++) { |
223 | 21.5M | _data.push_back(0); |
224 | 21.5M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 769k | _buffer.resize( |
228 | 769k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 769k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 769k | int64_t bytes = |
232 | 769k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 769k | num_elems_after_padding, final_size_of_type, 0); |
234 | 769k | 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 | 769k | encode_fixed32_le(&_buffer[0], _count); |
244 | 769k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 769k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 769k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 769k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 769k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 769k | return _buffer.build(); |
251 | 769k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 359k | OwnedSlice _finish(int final_size_of_type) { | 216 | 359k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 359k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 359k | int padding_elems = num_elems_after_padding - _count; | 221 | 359k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.77M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.41M | _data.push_back(0); | 224 | 6.41M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 359k | _buffer.resize( | 228 | 359k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 359k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 359k | int64_t bytes = | 232 | 359k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 359k | num_elems_after_padding, final_size_of_type, 0); | 234 | 359k | 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 | 359k | encode_fixed32_le(&_buffer[0], _count); | 244 | 359k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 359k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 359k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 359k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 359k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 359k | return _buffer.build(); | 251 | 359k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 45.3k | OwnedSlice _finish(int final_size_of_type) { | 216 | 45.3k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 45.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 45.3k | int padding_elems = num_elems_after_padding - _count; | 221 | 45.3k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 296k | for (int i = 0; i < padding_bytes; i++) { | 223 | 251k | _data.push_back(0); | 224 | 251k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 45.3k | _buffer.resize( | 228 | 45.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 45.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 45.3k | int64_t bytes = | 232 | 45.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 45.3k | num_elems_after_padding, final_size_of_type, 0); | 234 | 45.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 | 45.3k | encode_fixed32_le(&_buffer[0], _count); | 244 | 45.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 45.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 45.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 45.3k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 45.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 45.3k | return _buffer.build(); | 251 | 45.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 8.30k | OwnedSlice _finish(int final_size_of_type) { | 216 | 8.30k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 8.30k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 8.30k | int padding_elems = num_elems_after_padding - _count; | 221 | 8.30k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 84.6k | for (int i = 0; i < padding_bytes; i++) { | 223 | 76.2k | _data.push_back(0); | 224 | 76.2k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 8.30k | _buffer.resize( | 228 | 8.30k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 8.30k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 8.30k | int64_t bytes = | 232 | 8.30k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 8.30k | num_elems_after_padding, final_size_of_type, 0); | 234 | 8.30k | 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.30k | encode_fixed32_le(&_buffer[0], _count); | 244 | 8.30k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 8.30k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 8.30k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 8.30k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 8.30k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 8.30k | return _buffer.build(); | 251 | 8.30k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 115k | OwnedSlice _finish(int final_size_of_type) { | 216 | 115k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 115k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 115k | int padding_elems = num_elems_after_padding - _count; | 221 | 115k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 5.29M | for (int i = 0; i < padding_bytes; i++) { | 223 | 5.17M | _data.push_back(0); | 224 | 5.17M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 115k | _buffer.resize( | 228 | 115k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 115k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 115k | int64_t bytes = | 232 | 115k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 115k | num_elems_after_padding, final_size_of_type, 0); | 234 | 115k | 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 | 115k | encode_fixed32_le(&_buffer[0], _count); | 244 | 115k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 115k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 115k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 115k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 115k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 115k | return _buffer.build(); | 251 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 68.8k | OwnedSlice _finish(int final_size_of_type) { | 216 | 68.8k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 68.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 68.8k | int padding_elems = num_elems_after_padding - _count; | 221 | 68.8k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.29M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.22M | _data.push_back(0); | 224 | 3.22M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 68.8k | _buffer.resize( | 228 | 68.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 68.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 68.8k | int64_t bytes = | 232 | 68.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 68.8k | num_elems_after_padding, final_size_of_type, 0); | 234 | 68.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 | 68.8k | encode_fixed32_le(&_buffer[0], _count); | 244 | 68.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 68.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 68.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 68.8k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 68.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 68.8k | return _buffer.build(); | 251 | 68.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_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 | 714k | for (int i = 0; i < padding_bytes; i++) { | 223 | 703k | _data.push_back(0); | 224 | 703k | } | 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_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 11.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 11.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 11.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 11.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 11.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 241k | for (int i = 0; i < padding_bytes; i++) { | 223 | 230k | _data.push_back(0); | 224 | 230k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 11.0k | _buffer.resize( | 228 | 11.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 11.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 11.0k | int64_t bytes = | 232 | 11.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 11.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 11.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 | 11.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 11.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 11.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 11.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 11.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 11.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 11.0k | return _buffer.build(); | 251 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 14.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 14.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 14.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 14.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 14.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 593k | for (int i = 0; i < padding_bytes; i++) { | 223 | 579k | _data.push_back(0); | 224 | 579k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 14.5k | _buffer.resize( | 228 | 14.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 14.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 14.5k | int64_t bytes = | 232 | 14.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 14.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 14.5k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 14.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 14.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 14.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 14.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 14.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 14.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 14.5k | return _buffer.build(); | 251 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 201 | OwnedSlice _finish(int final_size_of_type) { | 216 | 201 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 201 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 201 | int padding_elems = num_elems_after_padding - _count; | 221 | 201 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.76k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.56k | _data.push_back(0); | 224 | 2.56k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 201 | _buffer.resize( | 228 | 201 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 201 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 201 | int64_t bytes = | 232 | 201 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 201 | num_elems_after_padding, final_size_of_type, 0); | 234 | 201 | 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 | 201 | encode_fixed32_le(&_buffer[0], _count); | 244 | 201 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 201 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 201 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 201 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 201 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 201 | return _buffer.build(); | 251 | 201 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 37.2k | OwnedSlice _finish(int final_size_of_type) { | 216 | 37.2k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 37.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 37.2k | int padding_elems = num_elems_after_padding - _count; | 221 | 37.2k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 795k | for (int i = 0; i < padding_bytes; i++) { | 223 | 757k | _data.push_back(0); | 224 | 757k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 37.2k | _buffer.resize( | 228 | 37.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 37.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 37.2k | int64_t bytes = | 232 | 37.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 37.2k | num_elems_after_padding, final_size_of_type, 0); | 234 | 37.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 | 37.2k | encode_fixed32_le(&_buffer[0], _count); | 244 | 37.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 37.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 37.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 37.2k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 37.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 37.2k | return _buffer.build(); | 251 | 37.2k | } |
_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.82M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.78M | _data.push_back(0); | 224 | 1.78M | } | 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 | 440 | OwnedSlice _finish(int final_size_of_type) { | 216 | 440 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 440 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 440 | int padding_elems = num_elems_after_padding - _count; | 221 | 440 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.08k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.64k | _data.push_back(0); | 224 | 6.64k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 440 | _buffer.resize( | 228 | 440 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 440 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 440 | int64_t bytes = | 232 | 440 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 440 | num_elems_after_padding, final_size_of_type, 0); | 234 | 440 | 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 | 440 | encode_fixed32_le(&_buffer[0], _count); | 244 | 440 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 440 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 440 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 440 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 440 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 440 | return _buffer.build(); | 251 | 440 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.51k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.51k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.51k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.51k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.51k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 393k | for (int i = 0; i < padding_bytes; i++) { | 223 | 386k | _data.push_back(0); | 224 | 386k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.51k | _buffer.resize( | 228 | 7.51k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.51k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.51k | int64_t bytes = | 232 | 7.51k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.51k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.51k | 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.51k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.51k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.51k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.51k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.51k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.51k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.51k | return _buffer.build(); | 251 | 7.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 215 | 96 | OwnedSlice _finish(int final_size_of_type) { | 216 | 96 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 96 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 96 | int padding_elems = num_elems_after_padding - _count; | 221 | 96 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 5.60k | for (int i = 0; i < padding_bytes; i++) { | 223 | 5.50k | _data.push_back(0); | 224 | 5.50k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 96 | _buffer.resize( | 228 | 96 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 96 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 96 | int64_t bytes = | 232 | 96 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 96 | num_elems_after_padding, final_size_of_type, 0); | 234 | 96 | 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 | 96 | encode_fixed32_le(&_buffer[0], _count); | 244 | 96 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 96 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 96 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 96 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 96 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 96 | return _buffer.build(); | 251 | 96 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 215 | 9.61k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.61k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.61k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.61k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.61k | 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.61k | _buffer.resize( | 228 | 9.61k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.61k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.61k | int64_t bytes = | 232 | 9.61k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.61k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.61k | 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.61k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.61k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.61k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.61k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.61k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.61k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.61k | return _buffer.build(); | 251 | 9.61k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 19.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 19.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 19.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 19.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 19.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 499k | for (int i = 0; i < padding_bytes; i++) { | 223 | 480k | _data.push_back(0); | 224 | 480k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 19.1k | _buffer.resize( | 228 | 19.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 19.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 19.1k | int64_t bytes = | 232 | 19.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 19.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 19.1k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 19.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 19.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 19.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 19.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 19.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 19.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 19.1k | return _buffer.build(); | 251 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 16.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 16.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 16.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 16.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 16.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.10M | 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.1k | _buffer.resize( | 228 | 16.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 16.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 16.1k | int64_t bytes = | 232 | 16.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 16.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 16.1k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 16.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 16.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 16.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 16.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 16.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 16.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 16.1k | return _buffer.build(); | 251 | 16.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 215 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 216 | 1.06k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 221 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 161k | for (int i = 0; i < padding_bytes; i++) { | 223 | 160k | _data.push_back(0); | 224 | 160k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 1.06k | _buffer.resize( | 228 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 1.06k | int64_t bytes = | 232 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 234 | 1.06k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 1.06k | encode_fixed32_le(&_buffer[0], _count); | 244 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 1.06k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 1.06k | return _buffer.build(); | 251 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 215 | 706 | OwnedSlice _finish(int final_size_of_type) { | 216 | 706 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 706 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 706 | int padding_elems = num_elems_after_padding - _count; | 221 | 706 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 14.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 14.1k | _data.push_back(0); | 224 | 14.1k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 706 | _buffer.resize( | 228 | 706 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 706 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 706 | int64_t bytes = | 232 | 706 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 706 | num_elems_after_padding, final_size_of_type, 0); | 234 | 706 | 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 | 706 | encode_fixed32_le(&_buffer[0], _count); | 244 | 706 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 706 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 706 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 706 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 706 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 706 | return _buffer.build(); | 251 | 706 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 633 | OwnedSlice _finish(int final_size_of_type) { | 216 | 633 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 633 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 633 | int padding_elems = num_elems_after_padding - _count; | 221 | 633 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 51.0k | for (int i = 0; i < padding_bytes; i++) { | 223 | 50.4k | _data.push_back(0); | 224 | 50.4k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 633 | _buffer.resize( | 228 | 633 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 633 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 633 | int64_t bytes = | 232 | 633 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 633 | num_elems_after_padding, final_size_of_type, 0); | 234 | 633 | 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 | 633 | encode_fixed32_le(&_buffer[0], _count); | 244 | 633 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 633 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 633 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 633 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 633 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 633 | return _buffer.build(); | 251 | 633 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.44M | CppType cell(int idx) const { |
256 | 1.44M | DCHECK_GE(idx, 0); |
257 | 1.44M | CppType ret; |
258 | 1.44M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.44M | return ret; |
260 | 1.44M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 649k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 649k | CppType ret; | 258 | 649k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 649k | return ret; | 260 | 649k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 89.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 89.7k | CppType ret; | 258 | 89.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 89.7k | return ret; | 260 | 89.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 16.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 16.2k | CppType ret; | 258 | 16.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 16.2k | return ret; | 260 | 16.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 227k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 227k | CppType ret; | 258 | 227k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 227k | return ret; | 260 | 227k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 137k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 137k | CppType ret; | 258 | 137k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 137k | return ret; | 260 | 137k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 20.8k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 20.8k | CppType ret; | 258 | 20.8k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 20.8k | return ret; | 260 | 20.8k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 21.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 21.4k | CppType ret; | 258 | 21.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 21.4k | return ret; | 260 | 21.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 28.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 28.4k | CppType ret; | 258 | 28.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 28.4k | return ret; | 260 | 28.4k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 392 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 392 | CppType ret; | 258 | 392 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 392 | return ret; | 260 | 392 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 72.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 72.4k | CppType ret; | 258 | 72.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 72.4k | return ret; | 260 | 72.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 83.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 83.0k | CppType ret; | 258 | 83.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 83.0k | return ret; | 260 | 83.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 680 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 680 | CppType ret; | 258 | 680 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 680 | return ret; | 260 | 680 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 14.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 14.6k | CppType ret; | 258 | 14.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 14.6k | return ret; | 260 | 14.6k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi Line | Count | Source | 255 | 176 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 176 | CppType ret; | 258 | 176 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 176 | return ret; | 260 | 176 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 255 | 9.38k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.38k | CppType ret; | 258 | 9.38k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.38k | return ret; | 260 | 9.38k | } |
_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.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.3k | CppType ret; | 258 | 31.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.3k | return ret; | 260 | 31.3k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.01k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.01k | CppType ret; | 258 | 2.01k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.01k | return ret; | 260 | 2.01k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.31k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.31k | CppType ret; | 258 | 1.31k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.31k | return ret; | 260 | 1.31k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.19k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.19k | CppType ret; | 258 | 1.19k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.19k | return ret; | 260 | 1.19k | } |
|
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.55M | int& size_of_element) { |
277 | 2.55M | 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.55M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.55M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.55M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.55M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.55M | 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.55M | switch (size_of_element) { |
295 | 171k | case 1: |
296 | 214k | case 2: |
297 | 217k | case 3: |
298 | 1.66M | case 4: |
299 | 2.44M | case 8: |
300 | 2.44M | case 12: |
301 | 2.55M | case 16: |
302 | 2.55M | case 32: |
303 | 2.55M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.55M | } |
307 | 2.55M | return Status::OK(); |
308 | 2.55M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.27M | : _data(data), |
315 | 1.27M | _options(options), |
316 | 1.27M | _parsed(false), |
317 | 1.27M | _num_elements(0), |
318 | 1.27M | _num_element_after_padding(0), |
319 | 1.27M | _size_of_element(0), |
320 | 1.27M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 625k | : _data(data), | 315 | 625k | _options(options), | 316 | 625k | _parsed(false), | 317 | 625k | _num_elements(0), | 318 | 625k | _num_element_after_padding(0), | 319 | 625k | _size_of_element(0), | 320 | 625k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 85.5k | : _data(data), | 315 | 85.5k | _options(options), | 316 | 85.5k | _parsed(false), | 317 | 85.5k | _num_elements(0), | 318 | 85.5k | _num_element_after_padding(0), | 319 | 85.5k | _size_of_element(0), | 320 | 85.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 21.5k | : _data(data), | 315 | 21.5k | _options(options), | 316 | 21.5k | _parsed(false), | 317 | 21.5k | _num_elements(0), | 318 | 21.5k | _num_element_after_padding(0), | 319 | 21.5k | _size_of_element(0), | 320 | 21.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 141k | : _data(data), | 315 | 141k | _options(options), | 316 | 141k | _parsed(false), | 317 | 141k | _num_elements(0), | 318 | 141k | _num_element_after_padding(0), | 319 | 141k | _size_of_element(0), | 320 | 141k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 90.6k | : _data(data), | 315 | 90.6k | _options(options), | 316 | 90.6k | _parsed(false), | 317 | 90.6k | _num_elements(0), | 318 | 90.6k | _num_element_after_padding(0), | 319 | 90.6k | _size_of_element(0), | 320 | 90.6k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 19.7k | : _data(data), | 315 | 19.7k | _options(options), | 316 | 19.7k | _parsed(false), | 317 | 19.7k | _num_elements(0), | 318 | 19.7k | _num_element_after_padding(0), | 319 | 19.7k | _size_of_element(0), | 320 | 19.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 19.8k | : _data(data), | 315 | 19.8k | _options(options), | 316 | 19.8k | _parsed(false), | 317 | 19.8k | _num_elements(0), | 318 | 19.8k | _num_element_after_padding(0), | 319 | 19.8k | _size_of_element(0), | 320 | 19.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.5k | : _data(data), | 315 | 30.5k | _options(options), | 316 | 30.5k | _parsed(false), | 317 | 30.5k | _num_elements(0), | 318 | 30.5k | _num_element_after_padding(0), | 319 | 30.5k | _size_of_element(0), | 320 | 30.5k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.68k | : _data(data), | 315 | 1.68k | _options(options), | 316 | 1.68k | _parsed(false), | 317 | 1.68k | _num_elements(0), | 318 | 1.68k | _num_element_after_padding(0), | 319 | 1.68k | _size_of_element(0), | 320 | 1.68k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 61.2k | : _data(data), | 315 | 61.2k | _options(options), | 316 | 61.2k | _parsed(false), | 317 | 61.2k | _num_elements(0), | 318 | 61.2k | _num_element_after_padding(0), | 319 | 61.2k | _size_of_element(0), | 320 | 61.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 68.0k | : _data(data), | 315 | 68.0k | _options(options), | 316 | 68.0k | _parsed(false), | 317 | 68.0k | _num_elements(0), | 318 | 68.0k | _num_element_after_padding(0), | 319 | 68.0k | _size_of_element(0), | 320 | 68.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.47k | : _data(data), | 315 | 2.47k | _options(options), | 316 | 2.47k | _parsed(false), | 317 | 2.47k | _num_elements(0), | 318 | 2.47k | _num_element_after_padding(0), | 319 | 2.47k | _size_of_element(0), | 320 | 2.47k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 16.3k | : _data(data), | 315 | 16.3k | _options(options), | 316 | 16.3k | _parsed(false), | 317 | 16.3k | _num_elements(0), | 318 | 16.3k | _num_element_after_padding(0), | 319 | 16.3k | _size_of_element(0), | 320 | 16.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.28k | : _data(data), | 315 | 1.28k | _options(options), | 316 | 1.28k | _parsed(false), | 317 | 1.28k | _num_elements(0), | 318 | 1.28k | _num_element_after_padding(0), | 319 | 1.28k | _size_of_element(0), | 320 | 1.28k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.7k | : _data(data), | 315 | 15.7k | _options(options), | 316 | 15.7k | _parsed(false), | 317 | 15.7k | _num_elements(0), | 318 | 15.7k | _num_element_after_padding(0), | 319 | 15.7k | _size_of_element(0), | 320 | 15.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 40.6k | : _data(data), | 315 | 40.6k | _options(options), | 316 | 40.6k | _parsed(false), | 317 | 40.6k | _num_elements(0), | 318 | 40.6k | _num_element_after_padding(0), | 319 | 40.6k | _size_of_element(0), | 320 | 40.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 29.8k | : _data(data), | 315 | 29.8k | _options(options), | 316 | 29.8k | _parsed(false), | 317 | 29.8k | _num_elements(0), | 318 | 29.8k | _num_element_after_padding(0), | 319 | 29.8k | _size_of_element(0), | 320 | 29.8k | _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.19k | : _data(data), | 315 | 1.19k | _options(options), | 316 | 1.19k | _parsed(false), | 317 | 1.19k | _num_elements(0), | 318 | 1.19k | _num_element_after_padding(0), | 319 | 1.19k | _size_of_element(0), | 320 | 1.19k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.16k | : _data(data), | 315 | 1.16k | _options(options), | 316 | 1.16k | _parsed(false), | 317 | 1.16k | _num_elements(0), | 318 | 1.16k | _num_element_after_padding(0), | 319 | 1.16k | _size_of_element(0), | 320 | 1.16k | _cur_index(0) {} |
|
321 | | |
322 | 1.27M | Status init() override { |
323 | 1.27M | CHECK(!_parsed); |
324 | 1.27M | size_t unused; |
325 | 1.27M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.27M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.27M | if (_data.size != |
329 | 1.27M | _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.27M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.27M | _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.27M | 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.27M | _parsed = true; |
349 | 1.27M | return Status::OK(); |
350 | 1.27M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 625k | Status init() override { | 323 | 625k | CHECK(!_parsed); | 324 | 625k | size_t unused; | 325 | 625k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 625k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 625k | if (_data.size != | 329 | 625k | _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 | 625k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 625k | _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 | 625k | 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 | 625k | _parsed = true; | 349 | 625k | return Status::OK(); | 350 | 625k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 85.5k | Status init() override { | 323 | 85.5k | CHECK(!_parsed); | 324 | 85.5k | size_t unused; | 325 | 85.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 85.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 85.5k | if (_data.size != | 329 | 85.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 | 85.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 85.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 | 85.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 | 85.5k | _parsed = true; | 349 | 85.5k | return Status::OK(); | 350 | 85.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 21.5k | Status init() override { | 323 | 21.5k | CHECK(!_parsed); | 324 | 21.5k | size_t unused; | 325 | 21.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 21.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 21.5k | if (_data.size != | 329 | 21.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 | 21.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 21.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 | 21.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 | 21.5k | _parsed = true; | 349 | 21.5k | return Status::OK(); | 350 | 21.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 141k | Status init() override { | 323 | 141k | CHECK(!_parsed); | 324 | 141k | size_t unused; | 325 | 141k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 141k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 141k | if (_data.size != | 329 | 141k | _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 | 141k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 141k | _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 | 141k | 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 | 141k | _parsed = true; | 349 | 141k | return Status::OK(); | 350 | 141k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 90.6k | Status init() override { | 323 | 90.6k | CHECK(!_parsed); | 324 | 90.6k | size_t unused; | 325 | 90.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 90.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 90.6k | if (_data.size != | 329 | 90.6k | _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 | 90.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 90.6k | _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 | 90.6k | 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 | 90.6k | _parsed = true; | 349 | 90.6k | return Status::OK(); | 350 | 90.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 19.7k | Status init() override { | 323 | 19.7k | CHECK(!_parsed); | 324 | 19.7k | size_t unused; | 325 | 19.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 19.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 19.7k | if (_data.size != | 329 | 19.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 | 19.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 19.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 | 19.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 | 19.7k | _parsed = true; | 349 | 19.7k | return Status::OK(); | 350 | 19.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 19.8k | Status init() override { | 323 | 19.8k | CHECK(!_parsed); | 324 | 19.8k | size_t unused; | 325 | 19.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 19.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 19.8k | if (_data.size != | 329 | 19.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 19.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 19.8k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 19.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 19.8k | _parsed = true; | 349 | 19.8k | return Status::OK(); | 350 | 19.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 30.5k | Status init() override { | 323 | 30.5k | CHECK(!_parsed); | 324 | 30.5k | size_t unused; | 325 | 30.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.5k | if (_data.size != | 329 | 30.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 | 30.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.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 | 30.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 | 30.5k | _parsed = true; | 349 | 30.5k | return Status::OK(); | 350 | 30.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 1.68k | Status init() override { | 323 | 1.68k | CHECK(!_parsed); | 324 | 1.68k | size_t unused; | 325 | 1.68k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.68k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.68k | if (_data.size != | 329 | 1.68k | _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.68k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.68k | _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.68k | 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.68k | _parsed = true; | 349 | 1.68k | return Status::OK(); | 350 | 1.68k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 61.2k | Status init() override { | 323 | 61.2k | CHECK(!_parsed); | 324 | 61.2k | size_t unused; | 325 | 61.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 61.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 61.2k | if (_data.size != | 329 | 61.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 | 61.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 61.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 | 61.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 | 61.2k | _parsed = true; | 349 | 61.2k | return Status::OK(); | 350 | 61.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 67.9k | Status init() override { | 323 | 67.9k | CHECK(!_parsed); | 324 | 67.9k | size_t unused; | 325 | 67.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 67.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 67.9k | if (_data.size != | 329 | 67.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 | 67.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 67.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 | 67.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 | 67.9k | _parsed = true; | 349 | 67.9k | return Status::OK(); | 350 | 67.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 2.47k | Status init() override { | 323 | 2.47k | CHECK(!_parsed); | 324 | 2.47k | size_t unused; | 325 | 2.47k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.47k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.47k | if (_data.size != | 329 | 2.47k | _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.47k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.47k | _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.47k | 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.47k | _parsed = true; | 349 | 2.47k | return Status::OK(); | 350 | 2.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 16.3k | Status init() override { | 323 | 16.3k | CHECK(!_parsed); | 324 | 16.3k | size_t unused; | 325 | 16.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 16.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 16.3k | if (_data.size != | 329 | 16.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 | 16.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 16.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 | 16.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 | 16.3k | _parsed = true; | 349 | 16.3k | return Status::OK(); | 350 | 16.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 322 | 1.27k | Status init() override { | 323 | 1.27k | CHECK(!_parsed); | 324 | 1.27k | size_t unused; | 325 | 1.27k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.27k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.27k | if (_data.size != | 329 | 1.27k | _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.27k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.27k | _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.27k | 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.27k | _parsed = true; | 349 | 1.27k | return Status::OK(); | 350 | 1.27k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.7k | Status init() override { | 323 | 15.7k | CHECK(!_parsed); | 324 | 15.7k | size_t unused; | 325 | 15.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.7k | if (_data.size != | 329 | 15.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 | 15.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.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 | 15.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 | 15.7k | _parsed = true; | 349 | 15.7k | return Status::OK(); | 350 | 15.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 40.6k | Status init() override { | 323 | 40.6k | CHECK(!_parsed); | 324 | 40.6k | size_t unused; | 325 | 40.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 40.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 40.6k | if (_data.size != | 329 | 40.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 40.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 40.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 40.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 40.6k | _parsed = true; | 349 | 40.6k | return Status::OK(); | 350 | 40.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 29.8k | Status init() override { | 323 | 29.8k | CHECK(!_parsed); | 324 | 29.8k | size_t unused; | 325 | 29.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 29.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 29.8k | if (_data.size != | 329 | 29.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 | 29.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 29.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 | 29.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 | 29.8k | _parsed = true; | 349 | 29.8k | return Status::OK(); | 350 | 29.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.80k | Status init() override { | 323 | 1.80k | CHECK(!_parsed); | 324 | 1.80k | size_t unused; | 325 | 1.80k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.80k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.80k | if (_data.size != | 329 | 1.80k | _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.80k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.80k | _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.80k | 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.80k | _parsed = true; | 349 | 1.80k | return Status::OK(); | 350 | 1.80k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 322 | 1.19k | Status init() override { | 323 | 1.19k | CHECK(!_parsed); | 324 | 1.19k | size_t unused; | 325 | 1.19k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.19k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.19k | if (_data.size != | 329 | 1.19k | _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.19k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.19k | _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.19k | 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.19k | _parsed = true; | 349 | 1.19k | return Status::OK(); | 350 | 1.19k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 322 | 1.16k | Status init() override { | 323 | 1.16k | CHECK(!_parsed); | 324 | 1.16k | size_t unused; | 325 | 1.16k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.16k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.16k | if (_data.size != | 329 | 1.16k | _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.16k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.16k | _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.16k | 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.16k | _parsed = true; | 349 | 1.16k | return Status::OK(); | 350 | 1.16k | } |
|
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.02M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 2.02M | if (_num_elements == 0) [[unlikely]] { |
361 | 5.43k | 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.43k | } |
366 | | |
367 | 2.02M | DCHECK_LE(pos, _num_elements); |
368 | 2.02M | _cur_index = pos; |
369 | 2.02M | return Status::OK(); |
370 | 2.02M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.27M | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 1.27M | if (_num_elements == 0) [[unlikely]] { | 361 | 2.58k | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 2.58k | } | 366 | | | 367 | 1.27M | DCHECK_LE(pos, _num_elements); | 368 | 1.27M | _cur_index = pos; | 369 | 1.27M | return Status::OK(); | 370 | 1.27M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 95.1k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 95.1k | if (_num_elements == 0) [[unlikely]] { | 361 | 446 | 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 | 446 | } | 366 | | | 367 | 95.1k | DCHECK_LE(pos, _num_elements); | 368 | 95.1k | _cur_index = pos; | 369 | 95.1k | return Status::OK(); | 370 | 95.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.4k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 17.4k | 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.4k | DCHECK_LE(pos, _num_elements); | 368 | 17.4k | _cur_index = pos; | 369 | 17.4k | return Status::OK(); | 370 | 17.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 101k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 101k | if (_num_elements == 0) [[unlikely]] { | 361 | 1.18k | 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.18k | } | 366 | | | 367 | 101k | DCHECK_LE(pos, _num_elements); | 368 | 101k | _cur_index = pos; | 369 | 101k | return Status::OK(); | 370 | 101k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 21.4k | Status seek_to_position_in_page(size_t pos) override { | 359 | 21.4k | DCHECK(_parsed) << "Must call init()"; | 360 | 21.4k | 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 | 21.4k | DCHECK_LE(pos, _num_elements); | 368 | 21.4k | _cur_index = pos; | 369 | 21.4k | return Status::OK(); | 370 | 21.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 9.77k | Status seek_to_position_in_page(size_t pos) override { | 359 | 9.77k | DCHECK(_parsed) << "Must call init()"; | 360 | 9.77k | if (_num_elements == 0) [[unlikely]] { | 361 | 6 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 6 | } | 366 | | | 367 | 9.77k | DCHECK_LE(pos, _num_elements); | 368 | 9.77k | _cur_index = pos; | 369 | 9.77k | return Status::OK(); | 370 | 9.77k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 16.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 16.9k | DCHECK(_parsed) << "Must call init()"; | 360 | 16.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 16.9k | DCHECK_LE(pos, _num_elements); | 368 | 16.9k | _cur_index = pos; | 369 | 16.9k | return Status::OK(); | 370 | 16.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 15.3k | Status seek_to_position_in_page(size_t pos) override { | 359 | 15.3k | DCHECK(_parsed) << "Must call init()"; | 360 | 15.3k | 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 | 15.3k | DCHECK_LE(pos, _num_elements); | 368 | 15.3k | _cur_index = pos; | 369 | 15.3k | return Status::OK(); | 370 | 15.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 10.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 10.7k | DCHECK(_parsed) << "Must call init()"; | 360 | 10.7k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 10.7k | DCHECK_LE(pos, _num_elements); | 368 | 10.7k | _cur_index = pos; | 369 | 10.7k | return Status::OK(); | 370 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 375k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 375k | 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 | 375k | DCHECK_LE(pos, _num_elements); | 368 | 375k | _cur_index = pos; | 369 | 375k | return Status::OK(); | 370 | 375k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 41.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 41.5k | 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 | 41.5k | DCHECK_LE(pos, _num_elements); | 368 | 41.5k | _cur_index = pos; | 369 | 41.5k | return Status::OK(); | 370 | 41.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.71k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.71k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.71k | 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.71k | DCHECK_LE(pos, _num_elements); | 368 | 7.71k | _cur_index = pos; | 369 | 7.71k | return Status::OK(); | 370 | 7.71k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.18k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.18k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.18k | 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 | 7.18k | DCHECK_LE(pos, _num_elements); | 368 | 7.18k | _cur_index = pos; | 369 | 7.18k | return Status::OK(); | 370 | 7.18k | } |
_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 | 747 | Status seek_to_position_in_page(size_t pos) override { | 359 | 747 | DCHECK(_parsed) << "Must call init()"; | 360 | 747 | if (_num_elements == 0) [[unlikely]] { | 361 | 30 | 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 | 30 | } | 366 | | | 367 | 747 | DCHECK_LE(pos, _num_elements); | 368 | 747 | _cur_index = pos; | 369 | 747 | return Status::OK(); | 370 | 747 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 17.0k | if (_num_elements == 0) [[unlikely]] { | 361 | 12 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 12 | } | 366 | | | 367 | 17.0k | DCHECK_LE(pos, _num_elements); | 368 | 17.0k | _cur_index = pos; | 369 | 17.0k | return Status::OK(); | 370 | 17.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 11.3k | Status seek_to_position_in_page(size_t pos) override { | 359 | 11.3k | DCHECK(_parsed) << "Must call init()"; | 360 | 11.3k | if (_num_elements == 0) [[unlikely]] { | 361 | 10 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 10 | } | 366 | | | 367 | 11.3k | DCHECK_LE(pos, _num_elements); | 368 | 11.3k | _cur_index = pos; | 369 | 11.3k | return Status::OK(); | 370 | 11.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.94k | Status seek_to_position_in_page(size_t pos) override { | 359 | 1.94k | DCHECK(_parsed) << "Must call init()"; | 360 | 1.94k | 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.94k | DCHECK_LE(pos, _num_elements); | 368 | 1.94k | _cur_index = pos; | 369 | 1.94k | return Status::OK(); | 370 | 1.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 73 | Status seek_to_position_in_page(size_t pos) override { | 359 | 73 | DCHECK(_parsed) << "Must call init()"; | 360 | 73 | 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 | 73 | DCHECK_LE(pos, _num_elements); | 368 | 73 | _cur_index = pos; | 369 | 73 | return Status::OK(); | 370 | 73 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 88 | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 88 | 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 | 88 | DCHECK_LE(pos, _num_elements); | 368 | 88 | _cur_index = pos; | 369 | 88 | return Status::OK(); | 370 | 88 | } |
|
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.18M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 2.18M | DCHECK(_parsed); |
413 | 2.18M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 2.18M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 2.18M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 2.18M | *n = max_fetch; |
422 | 2.18M | if constexpr (forward_index) { |
423 | 1.63M | _cur_index += max_fetch; |
424 | 1.63M | } |
425 | | |
426 | 2.18M | return Status::OK(); |
427 | 2.18M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 227k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 227k | DCHECK(_parsed); | 413 | 227k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 227k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 227k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 227k | *n = max_fetch; | 422 | 227k | if constexpr (forward_index) { | 423 | 227k | _cur_index += max_fetch; | 424 | 227k | } | 425 | | | 426 | 227k | return Status::OK(); | 427 | 227k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 191k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 191k | DCHECK(_parsed); | 413 | 191k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 191k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 191k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 191k | *n = max_fetch; | 422 | 191k | if constexpr (forward_index) { | 423 | 191k | _cur_index += max_fetch; | 424 | 191k | } | 425 | | | 426 | 191k | return Status::OK(); | 427 | 191k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 15.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.5k | DCHECK(_parsed); | 413 | 15.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.5k | *n = max_fetch; | 422 | 15.5k | if constexpr (forward_index) { | 423 | 15.5k | _cur_index += max_fetch; | 424 | 15.5k | } | 425 | | | 426 | 15.5k | return Status::OK(); | 427 | 15.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 127k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 127k | DCHECK(_parsed); | 413 | 127k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 127k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 127k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 127k | *n = max_fetch; | 422 | 127k | if constexpr (forward_index) { | 423 | 127k | _cur_index += max_fetch; | 424 | 127k | } | 425 | | | 426 | 127k | return Status::OK(); | 427 | 127k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 324k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 324k | DCHECK(_parsed); | 413 | 324k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 324k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 324k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 324k | *n = max_fetch; | 422 | 324k | if constexpr (forward_index) { | 423 | 324k | _cur_index += max_fetch; | 424 | 324k | } | 425 | | | 426 | 324k | return Status::OK(); | 427 | 324k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 549k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 549k | DCHECK(_parsed); | 413 | 550k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 549k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 549k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 549k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 549k | return Status::OK(); | 427 | 549k | } |
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 | 15.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.3k | DCHECK(_parsed); | 413 | 15.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.3k | *n = max_fetch; | 422 | 15.3k | if constexpr (forward_index) { | 423 | 15.3k | _cur_index += max_fetch; | 424 | 15.3k | } | 425 | | | 426 | 15.3k | return Status::OK(); | 427 | 15.3k | } |
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.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 14.5k | DCHECK(_parsed); | 413 | 14.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 14.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 14.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 14.5k | *n = max_fetch; | 422 | 14.5k | if constexpr (forward_index) { | 423 | 14.5k | _cur_index += max_fetch; | 424 | 14.5k | } | 425 | | | 426 | 14.5k | return Status::OK(); | 427 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 22.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 22.2k | DCHECK(_parsed); | 413 | 22.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 22.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 22.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 22.2k | *n = max_fetch; | 422 | 22.2k | if constexpr (forward_index) { | 423 | 22.2k | _cur_index += max_fetch; | 424 | 22.2k | } | 425 | | | 426 | 22.2k | return Status::OK(); | 427 | 22.2k | } |
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 | 3.76k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.76k | DCHECK(_parsed); | 413 | 3.77k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.76k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.76k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.76k | *n = max_fetch; | 422 | 3.76k | if constexpr (forward_index) { | 423 | 3.76k | _cur_index += max_fetch; | 424 | 3.76k | } | 425 | | | 426 | 3.76k | return Status::OK(); | 427 | 3.76k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 498k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 498k | DCHECK(_parsed); | 413 | 498k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 498k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 498k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 498k | *n = max_fetch; | 422 | 498k | if constexpr (forward_index) { | 423 | 498k | _cur_index += max_fetch; | 424 | 498k | } | 425 | | | 426 | 498k | return Status::OK(); | 427 | 498k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 86.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 86.8k | DCHECK(_parsed); | 413 | 86.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 86.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 86.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 86.8k | *n = max_fetch; | 422 | 86.8k | if constexpr (forward_index) { | 423 | 86.8k | _cur_index += max_fetch; | 424 | 86.8k | } | 425 | | | 426 | 86.8k | return Status::OK(); | 427 | 86.8k | } |
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.09k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.09k | DCHECK(_parsed); | 413 | 1.09k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.09k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.09k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.09k | *n = max_fetch; | 422 | 1.09k | if constexpr (forward_index) { | 423 | 1.09k | _cur_index += max_fetch; | 424 | 1.09k | } | 425 | | | 426 | 1.09k | return Status::OK(); | 427 | 1.09k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 7.67k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 7.67k | DCHECK(_parsed); | 413 | 7.67k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 7.67k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 7.67k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 7.67k | *n = max_fetch; | 422 | 7.67k | if constexpr (forward_index) { | 423 | 7.67k | _cur_index += max_fetch; | 424 | 7.67k | } | 425 | | | 426 | 7.67k | return Status::OK(); | 427 | 7.67k | } |
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 | 9.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 9.14k | DCHECK(_parsed); | 413 | 9.14k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 9.14k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 9.14k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 9.14k | *n = max_fetch; | 422 | 9.14k | if constexpr (forward_index) { | 423 | 9.14k | _cur_index += max_fetch; | 424 | 9.14k | } | 425 | | | 426 | 9.14k | return Status::OK(); | 427 | 9.14k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 44.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 44.1k | DCHECK(_parsed); | 413 | 44.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 44.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 44.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 44.1k | *n = max_fetch; | 422 | 44.1k | if constexpr (forward_index) { | 423 | 44.1k | _cur_index += max_fetch; | 424 | 44.1k | } | 425 | | | 426 | 44.1k | return Status::OK(); | 427 | 44.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 28.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 28.5k | DCHECK(_parsed); | 413 | 28.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 28.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 28.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 28.5k | *n = max_fetch; | 422 | 28.5k | if constexpr (forward_index) { | 423 | 28.5k | _cur_index += max_fetch; | 424 | 28.5k | } | 425 | | | 426 | 28.5k | return Status::OK(); | 427 | 28.5k | } |
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.22k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.22k | DCHECK(_parsed); | 413 | 3.22k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.22k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.22k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.22k | *n = max_fetch; | 422 | 3.22k | if constexpr (forward_index) { | 423 | 3.22k | _cur_index += max_fetch; | 424 | 3.22k | } | 425 | | | 426 | 3.22k | return Status::OK(); | 427 | 3.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 5.78k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 5.78k | DCHECK(_parsed); | 413 | 5.78k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 5.78k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 5.78k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 5.78k | *n = max_fetch; | 422 | 5.78k | if constexpr (forward_index) { | 423 | 5.78k | _cur_index += max_fetch; | 424 | 5.78k | } | 425 | | | 426 | 5.78k | return Status::OK(); | 427 | 5.78k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 5.79k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 5.79k | DCHECK(_parsed); | 413 | 5.79k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 5.79k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 5.79k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 5.79k | *n = max_fetch; | 422 | 5.79k | if constexpr (forward_index) { | 423 | 5.79k | _cur_index += max_fetch; | 424 | 5.79k | } | 425 | | | 426 | 5.79k | return Status::OK(); | 427 | 5.79k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 1.63M | 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 | 228k | 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 | 191k | 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 | 15.5k | 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 | 127k | 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 | 325k | 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 | 15.3k | 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.5k | 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 | 22.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 3.77k | 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 | 498k | 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 | 86.8k | 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.09k | 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 | 7.67k | 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 | 9.14k | 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 | 44.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 28.5k | 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.22k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 5.78k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 5.79k | 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 | 378k | MutableColumnPtr& dst) override { |
433 | 378k | DCHECK(_parsed); |
434 | 378k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 378k | auto total = *n; |
440 | 378k | auto read_count = 0; |
441 | 378k | _buffer.resize(total); |
442 | 97.6M | for (size_t i = 0; i < total; ++i) { |
443 | 97.2M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 97.2M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 11.3k | break; |
446 | 11.3k | } |
447 | | |
448 | 97.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 97.2M | } |
450 | | |
451 | 378k | if (LIKELY(read_count > 0)) { |
452 | 378k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 378k | } |
454 | | |
455 | 378k | *n = read_count; |
456 | 378k | return Status::OK(); |
457 | 378k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 64.0k | MutableColumnPtr& dst) override { | 433 | 64.0k | DCHECK(_parsed); | 434 | 64.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 64.0k | auto total = *n; | 440 | 64.0k | auto read_count = 0; | 441 | 64.0k | _buffer.resize(total); | 442 | 12.1M | for (size_t i = 0; i < total; ++i) { | 443 | 12.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 12.1M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 995 | break; | 446 | 995 | } | 447 | | | 448 | 12.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 12.1M | } | 450 | | | 451 | 64.1k | if (LIKELY(read_count > 0)) { | 452 | 64.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 64.1k | } | 454 | | | 455 | 64.0k | *n = read_count; | 456 | 64.0k | return Status::OK(); | 457 | 64.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 33.9k | MutableColumnPtr& dst) override { | 433 | 33.9k | DCHECK(_parsed); | 434 | 33.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 33.9k | auto total = *n; | 440 | 33.9k | auto read_count = 0; | 441 | 33.9k | _buffer.resize(total); | 442 | 3.92M | for (size_t i = 0; i < total; ++i) { | 443 | 3.89M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.89M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 101 | break; | 446 | 101 | } | 447 | | | 448 | 3.89M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.89M | } | 450 | | | 451 | 33.9k | if (LIKELY(read_count > 0)) { | 452 | 33.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 33.9k | } | 454 | | | 455 | 33.9k | *n = read_count; | 456 | 33.9k | return Status::OK(); | 457 | 33.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.3k | MutableColumnPtr& dst) override { | 433 | 10.3k | DCHECK(_parsed); | 434 | 10.3k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.3k | auto total = *n; | 440 | 10.3k | auto read_count = 0; | 441 | 10.3k | _buffer.resize(total); | 442 | 716k | for (size_t i = 0; i < total; ++i) { | 443 | 706k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 706k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 14 | break; | 446 | 14 | } | 447 | | | 448 | 706k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 706k | } | 450 | | | 451 | 10.3k | if (LIKELY(read_count > 0)) { | 452 | 10.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.3k | } | 454 | | | 455 | 10.3k | *n = read_count; | 456 | 10.3k | return Status::OK(); | 457 | 10.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 70.4k | MutableColumnPtr& dst) override { | 433 | 70.4k | DCHECK(_parsed); | 434 | 70.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 70.4k | auto total = *n; | 440 | 70.4k | auto read_count = 0; | 441 | 70.4k | _buffer.resize(total); | 442 | 20.6M | for (size_t i = 0; i < total; ++i) { | 443 | 20.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 20.5M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.94k | break; | 446 | 1.94k | } | 447 | | | 448 | 20.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 20.5M | } | 450 | | | 451 | 70.4k | if (LIKELY(read_count > 0)) { | 452 | 70.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 70.4k | } | 454 | | | 455 | 70.4k | *n = read_count; | 456 | 70.4k | return Status::OK(); | 457 | 70.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.8k | MutableColumnPtr& dst) override { | 433 | 31.8k | DCHECK(_parsed); | 434 | 31.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.8k | auto total = *n; | 440 | 31.8k | auto read_count = 0; | 441 | 31.8k | _buffer.resize(total); | 442 | 643k | for (size_t i = 0; i < total; ++i) { | 443 | 611k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 611k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 611k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 611k | } | 450 | | | 451 | 31.8k | if (LIKELY(read_count > 0)) { | 452 | 31.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.8k | } | 454 | | | 455 | 31.8k | *n = read_count; | 456 | 31.8k | return Status::OK(); | 457 | 31.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.1k | MutableColumnPtr& dst) override { | 433 | 10.1k | DCHECK(_parsed); | 434 | 10.1k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.1k | auto total = *n; | 440 | 10.1k | auto read_count = 0; | 441 | 10.1k | _buffer.resize(total); | 442 | 1.98M | for (size_t i = 0; i < total; ++i) { | 443 | 1.97M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.97M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 202 | break; | 446 | 202 | } | 447 | | | 448 | 1.97M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.97M | } | 450 | | | 451 | 10.1k | if (LIKELY(read_count > 0)) { | 452 | 10.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.1k | } | 454 | | | 455 | 10.1k | *n = read_count; | 456 | 10.1k | return Status::OK(); | 457 | 10.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.8k | MutableColumnPtr& dst) override { | 433 | 10.8k | DCHECK(_parsed); | 434 | 10.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.8k | auto total = *n; | 440 | 10.8k | auto read_count = 0; | 441 | 10.8k | _buffer.resize(total); | 442 | 1.18M | for (size_t i = 0; i < total; ++i) { | 443 | 1.17M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.17M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 28 | break; | 446 | 28 | } | 447 | | | 448 | 1.17M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.17M | } | 450 | | | 451 | 10.8k | if (LIKELY(read_count > 0)) { | 452 | 10.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.8k | } | 454 | | | 455 | 10.8k | *n = read_count; | 456 | 10.8k | return Status::OK(); | 457 | 10.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 16.4k | MutableColumnPtr& dst) override { | 433 | 16.4k | DCHECK(_parsed); | 434 | 16.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 16.4k | auto total = *n; | 440 | 16.4k | auto read_count = 0; | 441 | 16.4k | _buffer.resize(total); | 442 | 5.06M | for (size_t i = 0; i < total; ++i) { | 443 | 5.04M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 5.04M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.02k | break; | 446 | 1.02k | } | 447 | | | 448 | 5.04M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 5.04M | } | 450 | | | 451 | 16.4k | if (LIKELY(read_count > 0)) { | 452 | 16.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 16.4k | } | 454 | | | 455 | 16.4k | *n = read_count; | 456 | 16.4k | return Status::OK(); | 457 | 16.4k | } |
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.17k | MutableColumnPtr& dst) override { | 433 | 2.17k | DCHECK(_parsed); | 434 | 2.17k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.17k | auto total = *n; | 440 | 2.17k | auto read_count = 0; | 441 | 2.17k | _buffer.resize(total); | 442 | 566k | for (size_t i = 0; i < total; ++i) { | 443 | 564k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 564k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 13 | break; | 446 | 13 | } | 447 | | | 448 | 564k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 564k | } | 450 | | | 451 | 2.17k | if (LIKELY(read_count > 0)) { | 452 | 2.17k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.17k | } | 454 | | | 455 | 2.17k | *n = read_count; | 456 | 2.17k | return Status::OK(); | 457 | 2.17k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.2k | MutableColumnPtr& dst) override { | 433 | 31.2k | DCHECK(_parsed); | 434 | 31.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.2k | auto total = *n; | 440 | 31.2k | auto read_count = 0; | 441 | 31.2k | _buffer.resize(total); | 442 | 6.61M | for (size_t i = 0; i < total; ++i) { | 443 | 6.58M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.58M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 836 | break; | 446 | 836 | } | 447 | | | 448 | 6.58M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.58M | } | 450 | | | 451 | 31.2k | if (LIKELY(read_count > 0)) { | 452 | 31.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.2k | } | 454 | | | 455 | 31.2k | *n = read_count; | 456 | 31.2k | return Status::OK(); | 457 | 31.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.5k | MutableColumnPtr& dst) override { | 433 | 31.5k | DCHECK(_parsed); | 434 | 31.5k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.5k | auto total = *n; | 440 | 31.5k | auto read_count = 0; | 441 | 31.5k | _buffer.resize(total); | 442 | 7.75M | for (size_t i = 0; i < total; ++i) { | 443 | 7.72M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.72M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 71 | break; | 446 | 71 | } | 447 | | | 448 | 7.72M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.72M | } | 450 | | | 451 | 31.5k | if (LIKELY(read_count > 0)) { | 452 | 31.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.5k | } | 454 | | | 455 | 31.5k | *n = read_count; | 456 | 31.5k | return Status::OK(); | 457 | 31.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.38k | MutableColumnPtr& dst) override { | 433 | 2.38k | DCHECK(_parsed); | 434 | 2.38k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.38k | auto total = *n; | 440 | 2.38k | auto read_count = 0; | 441 | 2.38k | _buffer.resize(total); | 442 | 567k | for (size_t i = 0; i < total; ++i) { | 443 | 564k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 564k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 66 | break; | 446 | 66 | } | 447 | | | 448 | 564k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 564k | } | 450 | | | 451 | 2.38k | if (LIKELY(read_count > 0)) { | 452 | 2.38k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.38k | } | 454 | | | 455 | 2.38k | *n = read_count; | 456 | 2.38k | return Status::OK(); | 457 | 2.38k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 12.9k | MutableColumnPtr& dst) override { | 433 | 12.9k | DCHECK(_parsed); | 434 | 12.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 12.9k | auto total = *n; | 440 | 12.9k | auto read_count = 0; | 441 | 12.9k | _buffer.resize(total); | 442 | 27.4k | for (size_t i = 0; i < total; ++i) { | 443 | 14.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.4k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.4k | } | 450 | | | 451 | 12.9k | if (LIKELY(read_count > 0)) { | 452 | 12.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 12.9k | } | 454 | | | 455 | 12.9k | *n = read_count; | 456 | 12.9k | return Status::OK(); | 457 | 12.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 78 | MutableColumnPtr& dst) override { | 433 | 78 | DCHECK(_parsed); | 434 | 78 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 78 | auto total = *n; | 440 | 78 | auto read_count = 0; | 441 | 78 | _buffer.resize(total); | 442 | 161 | for (size_t i = 0; i < total; ++i) { | 443 | 83 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 83 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 83 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 83 | } | 450 | | | 451 | 78 | if (LIKELY(read_count > 0)) { | 452 | 78 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 78 | } | 454 | | | 455 | 78 | *n = read_count; | 456 | 78 | return Status::OK(); | 457 | 78 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.60k | MutableColumnPtr& dst) override { | 433 | 4.60k | DCHECK(_parsed); | 434 | 4.60k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.60k | auto total = *n; | 440 | 4.60k | auto read_count = 0; | 441 | 4.60k | _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.60k | if (LIKELY(read_count > 0)) { | 452 | 4.60k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.60k | } | 454 | | | 455 | 4.60k | *n = read_count; | 456 | 4.60k | return Status::OK(); | 457 | 4.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 27.8k | MutableColumnPtr& dst) override { | 433 | 27.8k | DCHECK(_parsed); | 434 | 27.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 27.8k | auto total = *n; | 440 | 27.8k | auto read_count = 0; | 441 | 27.8k | _buffer.resize(total); | 442 | 24.5M | for (size_t i = 0; i < total; ++i) { | 443 | 24.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 24.5M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 5.69k | break; | 446 | 5.69k | } | 447 | | | 448 | 24.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 24.5M | } | 450 | | | 451 | 27.8k | if (LIKELY(read_count > 0)) { | 452 | 27.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 27.8k | } | 454 | | | 455 | 27.8k | *n = read_count; | 456 | 27.8k | return Status::OK(); | 457 | 27.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.9k | MutableColumnPtr& dst) override { | 433 | 15.9k | DCHECK(_parsed); | 434 | 15.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.9k | auto total = *n; | 440 | 15.9k | auto read_count = 0; | 441 | 15.9k | _buffer.resize(total); | 442 | 11.1M | for (size_t i = 0; i < total; ++i) { | 443 | 11.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 11.1M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 346 | break; | 446 | 346 | } | 447 | | | 448 | 11.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 11.1M | } | 450 | | | 451 | 15.9k | if (LIKELY(read_count > 0)) { | 452 | 15.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.9k | } | 454 | | | 455 | 15.9k | *n = read_count; | 456 | 15.9k | return Status::OK(); | 457 | 15.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 937 | MutableColumnPtr& dst) override { | 433 | 937 | DCHECK(_parsed); | 434 | 937 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 937 | auto total = *n; | 440 | 937 | auto read_count = 0; | 441 | 937 | _buffer.resize(total); | 442 | 2.39k | for (size_t i = 0; i < total; ++i) { | 443 | 1.45k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.45k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 1.45k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.45k | } | 450 | | | 451 | 938 | if (LIKELY(read_count > 0)) { | 452 | 938 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 938 | } | 454 | | | 455 | 937 | *n = read_count; | 456 | 937 | return Status::OK(); | 457 | 937 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 473 | MutableColumnPtr& dst) override { | 433 | 473 | DCHECK(_parsed); | 434 | 473 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 473 | auto total = *n; | 440 | 473 | auto read_count = 0; | 441 | 473 | _buffer.resize(total); | 442 | 1.19k | for (size_t i = 0; i < total; ++i) { | 443 | 717 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 717 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 717 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 717 | } | 450 | | | 451 | 473 | if (LIKELY(read_count > 0)) { | 452 | 473 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 473 | } | 454 | | | 455 | 473 | *n = read_count; | 456 | 473 | return Status::OK(); | 457 | 473 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 415 | MutableColumnPtr& dst) override { | 433 | 415 | DCHECK(_parsed); | 434 | 415 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 415 | auto total = *n; | 440 | 415 | auto read_count = 0; | 441 | 415 | _buffer.resize(total); | 442 | 1.34k | for (size_t i = 0; i < total; ++i) { | 443 | 930 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 930 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 930 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 930 | } | 450 | | | 451 | 415 | if (LIKELY(read_count > 0)) { | 452 | 414 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 414 | } | 454 | | | 455 | 415 | *n = read_count; | 456 | 415 | return Status::OK(); | 457 | 415 | } |
|
458 | | |
459 | 550k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 550k | return next_batch<false>(n, dst); |
461 | 550k | } 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 | 550k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 550k | return next_batch<false>(n, dst); | 461 | 550k | } |
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.70M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 2.51M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 15.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 15.1k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 61.6k | 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 | 3.75k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 14.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 10.7k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 6.24k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 28.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 14.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 5.66k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 1.07k | 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.45k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 558 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 5.30k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 55 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 103 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 100M | char* get_data(size_t index) const { |
468 | 100M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 100M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 13.6M | char* get_data(size_t index) const { | 468 | 13.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 13.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 4.08M | char* get_data(size_t index) const { | 468 | 4.08M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.08M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 721k | char* get_data(size_t index) const { | 468 | 721k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 721k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 20.7M | char* get_data(size_t index) const { | 468 | 20.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 20.7M | } |
_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 | 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 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.19M | char* get_data(size_t index) const { | 468 | 1.19M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.19M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 5.07M | char* get_data(size_t index) const { | 468 | 5.07M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.07M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 567k | char* get_data(size_t index) const { | 468 | 567k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 567k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 7.08M | char* get_data(size_t index) const { | 468 | 7.08M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.08M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.80M | char* get_data(size_t index) const { | 468 | 7.80M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.80M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 565k | char* get_data(size_t index) const { | 468 | 565k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 565k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 22.1k | char* get_data(size_t index) const { | 468 | 22.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.30k | char* get_data(size_t index) const { | 468 | 1.30k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.30k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 467 | 23.7k | char* get_data(size_t index) const { | 468 | 23.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 23.7k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 24.5M | char* get_data(size_t index) const { | 468 | 24.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 24.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 11.1M | char* get_data(size_t index) const { | 468 | 11.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 11.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 467 | 4.68k | char* get_data(size_t index) const { | 468 | 4.68k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.68k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 467 | 6.49k | char* get_data(size_t index) const { | 468 | 6.49k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.49k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 6.71k | char* get_data(size_t index) const { | 468 | 6.71k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.71k | } |
|
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 |