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 | 835k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 388k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 44.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 6.60k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 153k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 73.1k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 9.04k | 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 | 19.2k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 190 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 36.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 44.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 317 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.37k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 191 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.66k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.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.16k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 819 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 741 | Status init() override { return reset(); } |
|
97 | | |
98 | 142M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 141M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 53.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 9.65k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 669k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 73.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 9.45k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 11.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 21.5k | 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 | 197 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 116k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 86.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 382 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.25k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 95 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.21k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 34.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 49.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 | 30.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 8.17k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.91M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.91M | return add_internal<false>(vals, count); |
102 | 1.91M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 724k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 724k | return add_internal<false>(vals, count); | 102 | 724k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 53.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 53.7k | return add_internal<false>(vals, count); | 102 | 53.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 9.65k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 9.65k | return add_internal<false>(vals, count); | 102 | 9.65k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 669k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 669k | return add_internal<false>(vals, count); | 102 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 73.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 73.3k | return add_internal<false>(vals, count); | 102 | 73.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 9.45k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 9.45k | return add_internal<false>(vals, count); | 102 | 9.45k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 11.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.6k | return add_internal<false>(vals, count); | 102 | 11.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 21.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 21.5k | return add_internal<false>(vals, count); | 102 | 21.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 197 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 197 | return add_internal<false>(vals, count); | 102 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 116k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 116k | return add_internal<false>(vals, count); | 102 | 116k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 86.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 86.2k | return add_internal<false>(vals, count); | 102 | 86.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 382 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 382 | return add_internal<false>(vals, count); | 102 | 382 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.25k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.25k | return add_internal<false>(vals, count); | 102 | 7.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 95 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 95 | return add_internal<false>(vals, count); | 102 | 95 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.21k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.21k | return add_internal<false>(vals, count); | 102 | 5.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 34.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 34.6k | return add_internal<false>(vals, count); | 102 | 34.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 49.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 49.6k | return add_internal<false>(vals, count); | 102 | 49.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 | 30.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 30.7k | return add_internal<false>(vals, count); | 102 | 30.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 8.17k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 8.17k | return add_internal<false>(vals, count); | 102 | 8.17k | } |
|
103 | | |
104 | 141M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 141M | return add_internal<true>(vals, count); |
106 | 141M | } |
107 | | |
108 | | template <bool single> |
109 | 142M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 142M | DCHECK(!_finished); |
111 | 142M | 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 | 142M | uint32_t to_add = cast_set<UInt32>( |
127 | 142M | 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 | 142M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 142M | 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 | 142M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 142M | _count += to_add; |
135 | 142M | _remain_element_capacity -= to_add; |
136 | 142M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 142M | *num_written = to_add; |
139 | 142M | if constexpr (single) { |
140 | | if constexpr (SIZE_OF_TYPE == 1) { |
141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; |
142 | | return Status::OK(); |
143 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
145 | | *reinterpret_cast<const uint16_t*>(vals); |
146 | | return Status::OK(); |
147 | 140M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 140M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 140M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 140M | return Status::OK(); |
151 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
153 | | *reinterpret_cast<const uint64_t*>(vals); |
154 | | return Status::OK(); |
155 | | } |
156 | 140M | } |
157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
159 | 142M | return Status::OK(); |
160 | 142M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 724k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 724k | DCHECK(!_finished); | 111 | 724k | 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 | 724k | uint32_t to_add = cast_set<UInt32>( | 127 | 724k | 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 | 724k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 724k | 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 | 724k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 724k | _count += to_add; | 135 | 724k | _remain_element_capacity -= to_add; | 136 | 724k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 724k | *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 | 724k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 724k | return Status::OK(); | 160 | 724k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 140M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 140M | DCHECK(!_finished); | 111 | 140M | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 140M | uint32_t to_add = cast_set<UInt32>( | 127 | 140M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 140M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 140M | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 140M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 140M | _count += to_add; | 135 | 140M | _remain_element_capacity -= to_add; | 136 | 140M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 140M | *num_written = to_add; | 139 | 140M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | 140M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 140M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 140M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 140M | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | 140M | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 140M | return Status::OK(); | 160 | 140M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 53.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 53.7k | DCHECK(!_finished); | 111 | 53.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 | 53.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 53.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 | 53.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 53.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 | 53.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 53.7k | _count += to_add; | 135 | 53.7k | _remain_element_capacity -= to_add; | 136 | 53.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 53.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 | 53.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 53.7k | return Status::OK(); | 160 | 53.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 9.66k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 9.66k | DCHECK(!_finished); | 111 | 9.66k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 9.66k | uint32_t to_add = cast_set<UInt32>( | 127 | 9.66k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 9.66k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 9.66k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 9.66k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 9.66k | _count += to_add; | 135 | 9.66k | _remain_element_capacity -= to_add; | 136 | 9.66k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 9.66k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 9.66k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 9.66k | return Status::OK(); | 160 | 9.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 669k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 669k | DCHECK(!_finished); | 111 | 669k | 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 | 669k | uint32_t to_add = cast_set<UInt32>( | 127 | 669k | 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 | 669k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 669k | 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 | 669k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 669k | _count += to_add; | 135 | 669k | _remain_element_capacity -= to_add; | 136 | 669k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 669k | *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 | 669k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 669k | return Status::OK(); | 160 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 73.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 73.3k | DCHECK(!_finished); | 111 | 73.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 73.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 73.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 73.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 73.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 73.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 73.3k | _count += to_add; | 135 | 73.3k | _remain_element_capacity -= to_add; | 136 | 73.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 73.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 73.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 73.3k | return Status::OK(); | 160 | 73.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 9.45k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 9.45k | DCHECK(!_finished); | 111 | 9.45k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 9.45k | uint32_t to_add = cast_set<UInt32>( | 127 | 9.45k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 9.45k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 9.45k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 9.45k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 9.45k | _count += to_add; | 135 | 9.45k | _remain_element_capacity -= to_add; | 136 | 9.45k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 9.45k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 9.45k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 9.45k | return Status::OK(); | 160 | 9.45k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.6k | DCHECK(!_finished); | 111 | 11.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 | 11.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.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 | 11.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.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 | 11.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.6k | _count += to_add; | 135 | 11.6k | _remain_element_capacity -= to_add; | 136 | 11.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.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 | 11.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.6k | return Status::OK(); | 160 | 11.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 21.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 21.5k | DCHECK(!_finished); | 111 | 21.5k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 21.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 21.5k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 21.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 21.5k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 21.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 21.5k | _count += to_add; | 135 | 21.5k | _remain_element_capacity -= to_add; | 136 | 21.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 21.5k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 21.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 21.5k | return Status::OK(); | 160 | 21.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 197 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 197 | DCHECK(!_finished); | 111 | 197 | 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 | 197 | uint32_t to_add = cast_set<UInt32>( | 127 | 197 | 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 | 197 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 197 | 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 | 197 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 197 | _count += to_add; | 135 | 197 | _remain_element_capacity -= to_add; | 136 | 197 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 197 | *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 | 197 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 197 | return Status::OK(); | 160 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 116k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 116k | DCHECK(!_finished); | 111 | 116k | 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 | 116k | uint32_t to_add = cast_set<UInt32>( | 127 | 116k | 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 | 116k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 116k | 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 | 116k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 116k | _count += to_add; | 135 | 116k | _remain_element_capacity -= to_add; | 136 | 116k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 116k | *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 | 116k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 116k | return Status::OK(); | 160 | 116k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 86.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 86.2k | DCHECK(!_finished); | 111 | 86.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 | 86.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 86.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 | 86.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 86.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 | 86.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 86.2k | _count += to_add; | 135 | 86.2k | _remain_element_capacity -= to_add; | 136 | 86.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 86.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 | 86.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 86.2k | return Status::OK(); | 160 | 86.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 382 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 382 | DCHECK(!_finished); | 111 | 382 | 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 | 382 | uint32_t to_add = cast_set<UInt32>( | 127 | 382 | 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 | 382 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 382 | 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 | 382 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 382 | _count += to_add; | 135 | 382 | _remain_element_capacity -= to_add; | 136 | 382 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 382 | *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 | 382 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 382 | return Status::OK(); | 160 | 382 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.25k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.25k | DCHECK(!_finished); | 111 | 7.25k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 7.25k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.25k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 7.25k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.25k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 7.25k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.25k | _count += to_add; | 135 | 7.25k | _remain_element_capacity -= to_add; | 136 | 7.25k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.25k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 7.25k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.25k | return Status::OK(); | 160 | 7.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 95 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 95 | DCHECK(!_finished); | 111 | 95 | 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 | 95 | uint32_t to_add = cast_set<UInt32>( | 127 | 95 | 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 | 95 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 95 | 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 | 95 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 95 | _count += to_add; | 135 | 95 | _remain_element_capacity -= to_add; | 136 | 95 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 95 | *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 | 95 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 95 | return Status::OK(); | 160 | 95 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.21k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.21k | DCHECK(!_finished); | 111 | 5.21k | 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.21k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.21k | 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.21k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.21k | 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.21k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.21k | _count += to_add; | 135 | 5.21k | _remain_element_capacity -= to_add; | 136 | 5.21k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.21k | *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.21k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.21k | return Status::OK(); | 160 | 5.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 34.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 34.6k | DCHECK(!_finished); | 111 | 34.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 | 34.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 34.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 | 34.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 34.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 | 34.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 34.6k | _count += to_add; | 135 | 34.6k | _remain_element_capacity -= to_add; | 136 | 34.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 34.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 | 34.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 34.6k | return Status::OK(); | 160 | 34.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 49.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 49.6k | DCHECK(!_finished); | 111 | 49.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 | 49.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 49.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 | 49.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 49.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 | 49.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 49.6k | _count += to_add; | 135 | 49.6k | _remain_element_capacity -= to_add; | 136 | 49.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 49.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 | 49.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 49.6k | return Status::OK(); | 160 | 49.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 | 30.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 30.7k | DCHECK(!_finished); | 111 | 30.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 | 30.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 30.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 | 30.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 30.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 | 30.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 30.7k | _count += to_add; | 135 | 30.7k | _remain_element_capacity -= to_add; | 136 | 30.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 30.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 | 30.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 30.7k | return Status::OK(); | 160 | 30.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 8.17k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 8.17k | DCHECK(!_finished); | 111 | 8.17k | 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 | 8.17k | uint32_t to_add = cast_set<UInt32>( | 127 | 8.17k | 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 | 8.17k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 8.17k | 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 | 8.17k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 8.17k | _count += to_add; | 135 | 8.17k | _remain_element_capacity -= to_add; | 136 | 8.17k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 8.17k | *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 | 8.17k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 8.17k | return Status::OK(); | 160 | 8.17k | } |
|
161 | | |
162 | 827k | Status finish(OwnedSlice* slice) override { |
163 | 827k | if (_count > 0) { |
164 | 780k | _first_value = cell(0); |
165 | 780k | _last_value = cell(_count - 1); |
166 | 780k | } |
167 | 827k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 828k | return Status::OK(); |
169 | 827k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 370k | Status finish(OwnedSlice* slice) override { | 163 | 370k | if (_count > 0) { | 164 | 336k | _first_value = cell(0); | 165 | 336k | _last_value = cell(_count - 1); | 166 | 336k | } | 167 | 370k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 370k | return Status::OK(); | 169 | 370k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.7k | Status finish(OwnedSlice* slice) override { | 163 | 43.7k | if (_count > 0) { | 164 | 43.1k | _first_value = cell(0); | 165 | 43.1k | _last_value = cell(_count - 1); | 166 | 43.1k | } | 167 | 43.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 43.7k | return Status::OK(); | 169 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6.49k | Status finish(OwnedSlice* slice) override { | 163 | 6.49k | if (_count > 0) { | 164 | 6.38k | _first_value = cell(0); | 165 | 6.38k | _last_value = cell(_count - 1); | 166 | 6.38k | } | 167 | 6.49k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 6.49k | return Status::OK(); | 169 | 6.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 158k | Status finish(OwnedSlice* slice) override { | 163 | 158k | if (_count > 0) { | 164 | 156k | _first_value = cell(0); | 165 | 156k | _last_value = cell(_count - 1); | 166 | 156k | } | 167 | 158k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 158k | return Status::OK(); | 169 | 158k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 73.0k | Status finish(OwnedSlice* slice) override { | 163 | 73.0k | if (_count > 0) { | 164 | 73.0k | _first_value = cell(0); | 165 | 73.0k | _last_value = cell(_count - 1); | 166 | 73.0k | } | 167 | 73.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 73.0k | return Status::OK(); | 169 | 73.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.19k | Status finish(OwnedSlice* slice) override { | 163 | 9.19k | if (_count > 0) { | 164 | 8.89k | _first_value = cell(0); | 165 | 8.89k | _last_value = cell(_count - 1); | 166 | 8.89k | } | 167 | 9.19k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.19k | return Status::OK(); | 169 | 9.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.0k | Status finish(OwnedSlice* slice) override { | 163 | 11.0k | if (_count > 0) { | 164 | 10.6k | _first_value = cell(0); | 165 | 10.6k | _last_value = cell(_count - 1); | 166 | 10.6k | } | 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 | 19.3k | Status finish(OwnedSlice* slice) override { | 163 | 19.3k | if (_count > 0) { | 164 | 18.9k | _first_value = cell(0); | 165 | 18.9k | _last_value = cell(_count - 1); | 166 | 18.9k | } | 167 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 19.3k | return Status::OK(); | 169 | 19.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 202 | Status finish(OwnedSlice* slice) override { | 163 | 202 | if (_count > 0) { | 164 | 197 | _first_value = cell(0); | 165 | 197 | _last_value = cell(_count - 1); | 166 | 197 | } | 167 | 202 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 202 | return Status::OK(); | 169 | 202 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.0k | Status finish(OwnedSlice* slice) override { | 163 | 37.0k | if (_count > 0) { | 164 | 36.1k | _first_value = cell(0); | 165 | 36.1k | _last_value = cell(_count - 1); | 166 | 36.1k | } | 167 | 37.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 37.0k | return Status::OK(); | 169 | 37.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.1k | Status finish(OwnedSlice* slice) override { | 163 | 43.1k | if (_count > 0) { | 164 | 41.7k | _first_value = cell(0); | 165 | 41.7k | _last_value = cell(_count - 1); | 166 | 41.7k | } | 167 | 43.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 43.1k | return Status::OK(); | 169 | 43.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 472 | Status finish(OwnedSlice* slice) override { | 163 | 472 | if (_count > 0) { | 164 | 372 | _first_value = cell(0); | 165 | 372 | _last_value = cell(_count - 1); | 166 | 372 | } | 167 | 472 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 472 | return Status::OK(); | 169 | 472 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.45k | Status finish(OwnedSlice* slice) override { | 163 | 7.45k | if (_count > 0) { | 164 | 7.25k | _first_value = cell(0); | 165 | 7.25k | _last_value = cell(_count - 1); | 166 | 7.25k | } | 167 | 7.45k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.45k | return Status::OK(); | 169 | 7.45k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 103 | Status finish(OwnedSlice* slice) override { | 163 | 103 | if (_count > 0) { | 164 | 95 | _first_value = cell(0); | 165 | 95 | _last_value = cell(_count - 1); | 166 | 95 | } | 167 | 103 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 103 | return Status::OK(); | 169 | 103 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.65k | Status finish(OwnedSlice* slice) override { | 163 | 9.65k | if (_count > 0) { | 164 | 4.74k | _first_value = cell(0); | 165 | 4.74k | _last_value = cell(_count - 1); | 166 | 4.74k | } | 167 | 9.65k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.65k | return Status::OK(); | 169 | 9.65k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 18.7k | Status finish(OwnedSlice* slice) override { | 163 | 18.7k | if (_count > 0) { | 164 | 17.8k | _first_value = cell(0); | 165 | 17.8k | _last_value = cell(_count - 1); | 166 | 17.8k | } | 167 | 18.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 18.7k | return Status::OK(); | 169 | 18.7k | } |
_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.01k | _first_value = cell(0); | 165 | 1.01k | _last_value = cell(_count - 1); | 166 | 1.01k | } | 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 | 733 | Status finish(OwnedSlice* slice) override { | 163 | 733 | if (_count > 0) { | 164 | 683 | _first_value = cell(0); | 165 | 683 | _last_value = cell(_count - 1); | 166 | 683 | } | 167 | 733 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 733 | return Status::OK(); | 169 | 733 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 662 | Status finish(OwnedSlice* slice) override { | 163 | 662 | if (_count > 0) { | 164 | 627 | _first_value = cell(0); | 165 | 627 | _last_value = cell(_count - 1); | 166 | 627 | } | 167 | 662 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 662 | return Status::OK(); | 169 | 662 | } |
|
170 | | |
171 | 1.98M | Status reset() override { |
172 | 1.98M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 1.98M | size_t block_size = _options.data_page_size; |
174 | 1.98M | _count = 0; |
175 | 1.98M | _raw_data_size = 0; |
176 | 1.98M | _data.clear(); |
177 | 1.98M | _data.reserve(block_size); |
178 | 1.98M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 1.98M | << "buffer must be naturally-aligned"; |
180 | 1.98M | _buffer.clear(); |
181 | 1.98M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 1.98M | _finished = false; |
183 | 1.98M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 1.98M | }); |
185 | 1.98M | return Status::OK(); |
186 | 1.98M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.08M | Status reset() override { | 172 | 1.08M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.08M | size_t block_size = _options.data_page_size; | 174 | 1.08M | _count = 0; | 175 | 1.08M | _raw_data_size = 0; | 176 | 1.08M | _data.clear(); | 177 | 1.08M | _data.reserve(block_size); | 178 | 1.08M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.08M | << "buffer must be naturally-aligned"; | 180 | 1.08M | _buffer.clear(); | 181 | 1.08M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.08M | _finished = false; | 183 | 1.08M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.08M | }); | 185 | 1.08M | return Status::OK(); | 186 | 1.08M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 88.1k | Status reset() override { | 172 | 88.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 88.1k | size_t block_size = _options.data_page_size; | 174 | 88.1k | _count = 0; | 175 | 88.1k | _raw_data_size = 0; | 176 | 88.1k | _data.clear(); | 177 | 88.1k | _data.reserve(block_size); | 178 | 88.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 88.1k | << "buffer must be naturally-aligned"; | 180 | 88.1k | _buffer.clear(); | 181 | 88.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 88.1k | _finished = false; | 183 | 88.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 88.1k | }); | 185 | 88.2k | return Status::OK(); | 186 | 88.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 13.0k | Status reset() override { | 172 | 13.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 13.0k | size_t block_size = _options.data_page_size; | 174 | 13.0k | _count = 0; | 175 | 13.0k | _raw_data_size = 0; | 176 | 13.0k | _data.clear(); | 177 | 13.0k | _data.reserve(block_size); | 178 | 13.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 13.0k | << "buffer must be naturally-aligned"; | 180 | 13.0k | _buffer.clear(); | 181 | 13.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 13.0k | _finished = false; | 183 | 13.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 13.0k | }); | 185 | 13.1k | return Status::OK(); | 186 | 13.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 312k | Status reset() override { | 172 | 312k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 312k | size_t block_size = _options.data_page_size; | 174 | 312k | _count = 0; | 175 | 312k | _raw_data_size = 0; | 176 | 312k | _data.clear(); | 177 | 312k | _data.reserve(block_size); | 178 | 312k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 312k | << "buffer must be naturally-aligned"; | 180 | 312k | _buffer.clear(); | 181 | 312k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 312k | _finished = false; | 183 | 312k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 312k | }); | 185 | 312k | return Status::OK(); | 186 | 312k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 146k | Status reset() override { | 172 | 146k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 146k | size_t block_size = _options.data_page_size; | 174 | 146k | _count = 0; | 175 | 146k | _raw_data_size = 0; | 176 | 146k | _data.clear(); | 177 | 146k | _data.reserve(block_size); | 178 | 146k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 146k | << "buffer must be naturally-aligned"; | 180 | 146k | _buffer.clear(); | 181 | 146k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 146k | _finished = false; | 183 | 146k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 146k | }); | 185 | 146k | return Status::OK(); | 186 | 146k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 18.2k | Status reset() override { | 172 | 18.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 18.2k | size_t block_size = _options.data_page_size; | 174 | 18.2k | _count = 0; | 175 | 18.2k | _raw_data_size = 0; | 176 | 18.2k | _data.clear(); | 177 | 18.2k | _data.reserve(block_size); | 178 | 18.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 18.2k | << "buffer must be naturally-aligned"; | 180 | 18.2k | _buffer.clear(); | 181 | 18.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 18.2k | _finished = false; | 183 | 18.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 18.2k | }); | 185 | 18.2k | return Status::OK(); | 186 | 18.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 22.8k | Status reset() override { | 172 | 22.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 22.8k | size_t block_size = _options.data_page_size; | 174 | 22.8k | _count = 0; | 175 | 22.8k | _raw_data_size = 0; | 176 | 22.8k | _data.clear(); | 177 | 22.8k | _data.reserve(block_size); | 178 | 22.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 22.8k | << "buffer must be naturally-aligned"; | 180 | 22.8k | _buffer.clear(); | 181 | 22.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 22.8k | _finished = false; | 183 | 22.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 22.8k | }); | 185 | 22.8k | return Status::OK(); | 186 | 22.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 38.5k | Status reset() override { | 172 | 38.5k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 38.5k | size_t block_size = _options.data_page_size; | 174 | 38.5k | _count = 0; | 175 | 38.5k | _raw_data_size = 0; | 176 | 38.5k | _data.clear(); | 177 | 38.5k | _data.reserve(block_size); | 178 | 38.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 38.5k | << "buffer must be naturally-aligned"; | 180 | 38.5k | _buffer.clear(); | 181 | 38.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 38.5k | _finished = false; | 183 | 38.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 38.5k | }); | 185 | 38.5k | return Status::OK(); | 186 | 38.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 392 | Status reset() override { | 172 | 392 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 392 | size_t block_size = _options.data_page_size; | 174 | 392 | _count = 0; | 175 | 392 | _raw_data_size = 0; | 176 | 392 | _data.clear(); | 177 | 392 | _data.reserve(block_size); | 178 | 392 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 392 | << "buffer must be naturally-aligned"; | 180 | 392 | _buffer.clear(); | 181 | 392 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 392 | _finished = false; | 183 | 392 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 392 | }); | 185 | 392 | return Status::OK(); | 186 | 392 | } |
_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.6k | return Status::OK(); | 186 | 73.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 87.2k | Status reset() override { | 172 | 87.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 87.2k | size_t block_size = _options.data_page_size; | 174 | 87.2k | _count = 0; | 175 | 87.2k | _raw_data_size = 0; | 176 | 87.2k | _data.clear(); | 177 | 87.2k | _data.reserve(block_size); | 178 | 87.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 87.2k | << "buffer must be naturally-aligned"; | 180 | 87.2k | _buffer.clear(); | 181 | 87.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 87.2k | _finished = false; | 183 | 87.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 87.2k | }); | 185 | 87.3k | return Status::OK(); | 186 | 87.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 789 | Status reset() override { | 172 | 789 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 789 | size_t block_size = _options.data_page_size; | 174 | 789 | _count = 0; | 175 | 789 | _raw_data_size = 0; | 176 | 789 | _data.clear(); | 177 | 789 | _data.reserve(block_size); | 178 | 789 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 789 | << "buffer must be naturally-aligned"; | 180 | 789 | _buffer.clear(); | 181 | 789 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 789 | _finished = false; | 183 | 789 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 789 | }); | 185 | 790 | return Status::OK(); | 186 | 789 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 14.8k | Status reset() override { | 172 | 14.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.8k | size_t block_size = _options.data_page_size; | 174 | 14.8k | _count = 0; | 175 | 14.8k | _raw_data_size = 0; | 176 | 14.8k | _data.clear(); | 177 | 14.8k | _data.reserve(block_size); | 178 | 14.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.8k | << "buffer must be naturally-aligned"; | 180 | 14.8k | _buffer.clear(); | 181 | 14.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.8k | _finished = false; | 183 | 14.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.8k | }); | 185 | 14.9k | return Status::OK(); | 186 | 14.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 294 | Status reset() override { | 172 | 294 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 294 | size_t block_size = _options.data_page_size; | 174 | 294 | _count = 0; | 175 | 294 | _raw_data_size = 0; | 176 | 294 | _data.clear(); | 177 | 294 | _data.reserve(block_size); | 178 | 294 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 294 | << "buffer must be naturally-aligned"; | 180 | 294 | _buffer.clear(); | 181 | 294 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 294 | _finished = false; | 183 | 294 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 294 | }); | 185 | 294 | return Status::OK(); | 186 | 294 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.3k | Status reset() override { | 172 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.3k | size_t block_size = _options.data_page_size; | 174 | 19.3k | _count = 0; | 175 | 19.3k | _raw_data_size = 0; | 176 | 19.3k | _data.clear(); | 177 | 19.3k | _data.reserve(block_size); | 178 | 19.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.3k | << "buffer must be naturally-aligned"; | 180 | 19.3k | _buffer.clear(); | 181 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.3k | _finished = false; | 183 | 19.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.3k | }); | 185 | 19.3k | return Status::OK(); | 186 | 19.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 31.1k | Status reset() override { | 172 | 31.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.1k | size_t block_size = _options.data_page_size; | 174 | 31.1k | _count = 0; | 175 | 31.1k | _raw_data_size = 0; | 176 | 31.1k | _data.clear(); | 177 | 31.1k | _data.reserve(block_size); | 178 | 31.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.1k | << "buffer must be naturally-aligned"; | 180 | 31.1k | _buffer.clear(); | 181 | 31.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.1k | _finished = false; | 183 | 31.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.1k | }); | 185 | 31.1k | return Status::OK(); | 186 | 31.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 32.0k | Status reset() override { | 172 | 32.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.0k | size_t block_size = _options.data_page_size; | 174 | 32.0k | _count = 0; | 175 | 32.0k | _raw_data_size = 0; | 176 | 32.0k | _data.clear(); | 177 | 32.0k | _data.reserve(block_size); | 178 | 32.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.0k | << "buffer must be naturally-aligned"; | 180 | 32.0k | _buffer.clear(); | 181 | 32.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.0k | _finished = false; | 183 | 32.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.0k | }); | 185 | 32.0k | return Status::OK(); | 186 | 32.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.23k | Status reset() override { | 172 | 2.23k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.23k | size_t block_size = _options.data_page_size; | 174 | 2.23k | _count = 0; | 175 | 2.23k | _raw_data_size = 0; | 176 | 2.23k | _data.clear(); | 177 | 2.23k | _data.reserve(block_size); | 178 | 2.23k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.23k | << "buffer must be naturally-aligned"; | 180 | 2.23k | _buffer.clear(); | 181 | 2.23k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.23k | _finished = false; | 183 | 2.23k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.23k | }); | 185 | 2.23k | return Status::OK(); | 186 | 2.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.55k | Status reset() override { | 172 | 1.55k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.55k | size_t block_size = _options.data_page_size; | 174 | 1.55k | _count = 0; | 175 | 1.55k | _raw_data_size = 0; | 176 | 1.55k | _data.clear(); | 177 | 1.55k | _data.reserve(block_size); | 178 | 1.55k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.55k | << "buffer must be naturally-aligned"; | 180 | 1.55k | _buffer.clear(); | 181 | 1.55k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.55k | _finished = false; | 183 | 1.55k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.55k | }); | 185 | 1.55k | return Status::OK(); | 186 | 1.55k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.40k | Status reset() override { | 172 | 1.40k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.40k | size_t block_size = _options.data_page_size; | 174 | 1.40k | _count = 0; | 175 | 1.40k | _raw_data_size = 0; | 176 | 1.40k | _data.clear(); | 177 | 1.40k | _data.reserve(block_size); | 178 | 1.40k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.40k | << "buffer must be naturally-aligned"; | 180 | 1.40k | _buffer.clear(); | 181 | 1.40k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.40k | _finished = false; | 183 | 1.40k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.40k | }); | 185 | 1.40k | return Status::OK(); | 186 | 1.40k | } |
|
187 | | |
188 | 3.03M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 3.03M | 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 | 31.0k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 17.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 2.19k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 743 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 2.61k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 682 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.18k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 712 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 737 | 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.50k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.00k | 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 | 127 | 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.08k | 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 | 521k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 64.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 43.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 6.49k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 158k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 73.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.19k | 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 | 19.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 192 | 202 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 37.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 43.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 472 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.45k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 192 | 103 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.65k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 18.7k | 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 | 733 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 662 | 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 | 835k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 388k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 44.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 6.60k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 153k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 73.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.04k | : _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 | 19.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 190 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 36.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 44.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 317 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.38k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 191 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.66k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.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.16k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 820 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 741 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 827k | OwnedSlice _finish(int final_size_of_type) { |
216 | 827k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 827k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 827k | int padding_elems = num_elems_after_padding - _count; |
221 | 827k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 24.7M | for (int i = 0; i < padding_bytes; i++) { |
223 | 23.9M | _data.push_back(0); |
224 | 23.9M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 827k | _buffer.resize( |
228 | 827k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 827k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 827k | int64_t bytes = |
232 | 827k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 827k | num_elems_after_padding, final_size_of_type, 0); |
234 | 827k | if (bytes < 0) [[unlikely]] { |
235 | | // This means the bitshuffle function fails. |
236 | | // Ideally, this should not happen. |
237 | 0 | warn_with_bitshuffle_error(bytes); |
238 | | // It does not matter what will be returned here, |
239 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
240 | 0 | return OwnedSlice(); |
241 | 0 | } |
242 | | // update header |
243 | 827k | encode_fixed32_le(&_buffer[0], _count); |
244 | 827k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 827k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 827k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 827k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 827k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 827k | return _buffer.build(); |
251 | 827k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 370k | OwnedSlice _finish(int final_size_of_type) { | 216 | 370k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 370k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 370k | int padding_elems = num_elems_after_padding - _count; | 221 | 370k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.06M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.69M | _data.push_back(0); | 224 | 6.69M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 370k | _buffer.resize( | 228 | 370k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 370k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 370k | int64_t bytes = | 232 | 370k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 370k | num_elems_after_padding, final_size_of_type, 0); | 234 | 370k | 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 | 370k | encode_fixed32_le(&_buffer[0], _count); | 244 | 370k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 370k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 370k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 370k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 370k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 370k | return _buffer.build(); | 251 | 370k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 43.7k | OwnedSlice _finish(int final_size_of_type) { | 216 | 43.7k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 43.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 43.7k | int padding_elems = num_elems_after_padding - _count; | 221 | 43.7k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 261k | for (int i = 0; i < padding_bytes; i++) { | 223 | 218k | _data.push_back(0); | 224 | 218k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 43.7k | _buffer.resize( | 228 | 43.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 43.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 43.7k | int64_t bytes = | 232 | 43.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 43.7k | num_elems_after_padding, final_size_of_type, 0); | 234 | 43.7k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 43.7k | encode_fixed32_le(&_buffer[0], _count); | 244 | 43.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 43.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 43.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 43.7k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 43.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 43.7k | return _buffer.build(); | 251 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 6.49k | OwnedSlice _finish(int final_size_of_type) { | 216 | 6.49k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 6.49k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 6.49k | int padding_elems = num_elems_after_padding - _count; | 221 | 6.49k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 60.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 54.3k | _data.push_back(0); | 224 | 54.3k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 6.49k | _buffer.resize( | 228 | 6.49k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 6.49k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 6.49k | int64_t bytes = | 232 | 6.49k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 6.49k | num_elems_after_padding, final_size_of_type, 0); | 234 | 6.49k | 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 | 6.49k | encode_fixed32_le(&_buffer[0], _count); | 244 | 6.49k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 6.49k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 6.49k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 6.49k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 6.49k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 6.49k | return _buffer.build(); | 251 | 6.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 158k | OwnedSlice _finish(int final_size_of_type) { | 216 | 158k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 158k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 158k | int padding_elems = num_elems_after_padding - _count; | 221 | 158k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.20M | for (int i = 0; i < padding_bytes; i++) { | 223 | 7.04M | _data.push_back(0); | 224 | 7.04M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 158k | _buffer.resize( | 228 | 158k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 158k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 158k | int64_t bytes = | 232 | 158k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 158k | num_elems_after_padding, final_size_of_type, 0); | 234 | 158k | 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 | 158k | encode_fixed32_le(&_buffer[0], _count); | 244 | 158k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 158k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 158k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 158k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 158k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 158k | return _buffer.build(); | 251 | 158k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 73.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 73.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 73.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 73.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 73.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.48M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.41M | _data.push_back(0); | 224 | 3.41M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 73.0k | _buffer.resize( | 228 | 73.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 73.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 73.0k | int64_t bytes = | 232 | 73.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 73.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 73.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 | 73.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 73.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 73.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 73.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 73.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 73.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 73.0k | return _buffer.build(); | 251 | 73.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 9.19k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.19k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.19k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.19k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.19k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 561k | for (int i = 0; i < padding_bytes; i++) { | 223 | 552k | _data.push_back(0); | 224 | 552k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.19k | _buffer.resize( | 228 | 9.19k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.19k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.19k | int64_t bytes = | 232 | 9.19k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.19k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.19k | 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.19k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.19k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.19k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.19k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.19k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.19k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.19k | return _buffer.build(); | 251 | 9.19k | } |
_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 | 239k | for (int i = 0; i < padding_bytes; i++) { | 223 | 228k | _data.push_back(0); | 224 | 228k | } | 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 | 19.3k | OwnedSlice _finish(int final_size_of_type) { | 216 | 19.3k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 19.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 19.3k | int padding_elems = num_elems_after_padding - _count; | 221 | 19.3k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 864k | for (int i = 0; i < padding_bytes; i++) { | 223 | 845k | _data.push_back(0); | 224 | 845k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 19.3k | _buffer.resize( | 228 | 19.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 19.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 19.3k | int64_t bytes = | 232 | 19.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 19.3k | num_elems_after_padding, final_size_of_type, 0); | 234 | 19.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 | 19.3k | encode_fixed32_le(&_buffer[0], _count); | 244 | 19.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 19.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 19.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 19.3k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 19.3k | return _buffer.build(); | 251 | 19.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 202 | OwnedSlice _finish(int final_size_of_type) { | 216 | 202 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 202 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 202 | int padding_elems = num_elems_after_padding - _count; | 221 | 202 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.77k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.57k | _data.push_back(0); | 224 | 2.57k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 202 | _buffer.resize( | 228 | 202 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 202 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 202 | int64_t bytes = | 232 | 202 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 202 | num_elems_after_padding, final_size_of_type, 0); | 234 | 202 | 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 | 202 | encode_fixed32_le(&_buffer[0], _count); | 244 | 202 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 202 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 202 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 202 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 202 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 202 | return _buffer.build(); | 251 | 202 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 37.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 37.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 37.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 37.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 37.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 794k | 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.0k | _buffer.resize( | 228 | 37.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 37.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 37.0k | int64_t bytes = | 232 | 37.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 37.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 37.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 | 37.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 37.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 37.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 37.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 37.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 37.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 37.0k | return _buffer.build(); | 251 | 37.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 43.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 43.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 43.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 43.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 43.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.83M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.79M | _data.push_back(0); | 224 | 1.79M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 43.1k | _buffer.resize( | 228 | 43.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 43.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 43.1k | int64_t bytes = | 232 | 43.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 43.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 43.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 | 43.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 43.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 43.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 43.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 43.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 43.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 43.1k | return _buffer.build(); | 251 | 43.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 215 | 472 | OwnedSlice _finish(int final_size_of_type) { | 216 | 472 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 472 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 472 | int padding_elems = num_elems_after_padding - _count; | 221 | 472 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 8.12k | for (int i = 0; i < padding_bytes; i++) { | 223 | 7.65k | _data.push_back(0); | 224 | 7.65k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 472 | _buffer.resize( | 228 | 472 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 472 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 472 | int64_t bytes = | 232 | 472 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 472 | num_elems_after_padding, final_size_of_type, 0); | 234 | 472 | 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 | 472 | encode_fixed32_le(&_buffer[0], _count); | 244 | 472 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 472 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 472 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 472 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 472 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 472 | return _buffer.build(); | 251 | 472 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.45k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.45k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.45k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.45k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.45k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 390k | for (int i = 0; i < padding_bytes; i++) { | 223 | 382k | _data.push_back(0); | 224 | 382k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.45k | _buffer.resize( | 228 | 7.45k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.45k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.45k | int64_t bytes = | 232 | 7.45k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.45k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.45k | 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.45k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.45k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.45k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.45k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.45k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.45k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.45k | return _buffer.build(); | 251 | 7.45k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 215 | 103 | OwnedSlice _finish(int final_size_of_type) { | 216 | 103 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 103 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 103 | int padding_elems = num_elems_after_padding - _count; | 221 | 103 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 5.97k | for (int i = 0; i < padding_bytes; i++) { | 223 | 5.86k | _data.push_back(0); | 224 | 5.86k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 103 | _buffer.resize( | 228 | 103 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 103 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 103 | int64_t bytes = | 232 | 103 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 103 | num_elems_after_padding, final_size_of_type, 0); | 234 | 103 | 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 | 103 | encode_fixed32_le(&_buffer[0], _count); | 244 | 103 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 103 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 103 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 103 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 103 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 103 | return _buffer.build(); | 251 | 103 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 215 | 9.65k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.65k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.65k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.65k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.65k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 116k | 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.65k | _buffer.resize( | 228 | 9.65k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.65k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.65k | int64_t bytes = | 232 | 9.65k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.65k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.65k | 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.65k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.65k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.65k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.65k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.65k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.65k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.65k | return _buffer.build(); | 251 | 9.65k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 18.7k | OwnedSlice _finish(int final_size_of_type) { | 216 | 18.7k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 18.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 18.7k | int padding_elems = num_elems_after_padding - _count; | 221 | 18.7k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 500k | for (int i = 0; i < padding_bytes; i++) { | 223 | 481k | _data.push_back(0); | 224 | 481k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 18.7k | _buffer.resize( | 228 | 18.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 18.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 18.7k | int64_t bytes = | 232 | 18.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 18.7k | num_elems_after_padding, final_size_of_type, 0); | 234 | 18.7k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 18.7k | encode_fixed32_le(&_buffer[0], _count); | 244 | 18.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 18.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 18.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 18.7k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 18.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 18.7k | return _buffer.build(); | 251 | 18.7k | } |
_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 | 162k | for (int i = 0; i < padding_bytes; i++) { | 223 | 161k | _data.push_back(0); | 224 | 161k | } | 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 | 733 | OwnedSlice _finish(int final_size_of_type) { | 216 | 733 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 733 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 733 | int padding_elems = num_elems_after_padding - _count; | 221 | 733 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 15.4k | for (int i = 0; i < padding_bytes; i++) { | 223 | 14.6k | _data.push_back(0); | 224 | 14.6k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 733 | _buffer.resize( | 228 | 733 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 733 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 733 | int64_t bytes = | 232 | 733 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 733 | num_elems_after_padding, final_size_of_type, 0); | 234 | 733 | 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 | 733 | encode_fixed32_le(&_buffer[0], _count); | 244 | 733 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 733 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 733 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 733 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 733 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 733 | return _buffer.build(); | 251 | 733 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 662 | OwnedSlice _finish(int final_size_of_type) { | 216 | 662 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 662 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 662 | int padding_elems = num_elems_after_padding - _count; | 221 | 662 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 54.0k | for (int i = 0; i < padding_bytes; i++) { | 223 | 53.3k | _data.push_back(0); | 224 | 53.3k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 662 | _buffer.resize( | 228 | 662 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 662 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 662 | int64_t bytes = | 232 | 662 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 662 | num_elems_after_padding, final_size_of_type, 0); | 234 | 662 | 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 | 662 | encode_fixed32_le(&_buffer[0], _count); | 244 | 662 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 662 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 662 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 662 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 662 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 662 | return _buffer.build(); | 251 | 662 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.56M | CppType cell(int idx) const { |
256 | 1.56M | DCHECK_GE(idx, 0); |
257 | 1.56M | CppType ret; |
258 | 1.56M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.56M | return ret; |
260 | 1.56M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 673k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 673k | CppType ret; | 258 | 673k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 673k | return ret; | 260 | 673k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 86.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 86.2k | CppType ret; | 258 | 86.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 86.2k | return ret; | 260 | 86.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 12.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 12.7k | CppType ret; | 258 | 12.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 12.7k | return ret; | 260 | 12.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 313k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 313k | CppType ret; | 258 | 313k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 313k | return ret; | 260 | 313k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 146k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 146k | CppType ret; | 258 | 146k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 146k | return ret; | 260 | 146k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 17.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 17.7k | CppType ret; | 258 | 17.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 17.7k | return ret; | 260 | 17.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 21.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 21.3k | CppType ret; | 258 | 21.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 21.3k | return ret; | 260 | 21.3k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 37.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 37.9k | CppType ret; | 258 | 37.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 37.9k | return ret; | 260 | 37.9k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 394 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 394 | CppType ret; | 258 | 394 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 394 | return ret; | 260 | 394 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 72.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 72.2k | CppType ret; | 258 | 72.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 72.2k | return ret; | 260 | 72.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 83.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 83.4k | CppType ret; | 258 | 83.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 83.4k | return ret; | 260 | 83.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 744 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 744 | CppType ret; | 258 | 744 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 744 | return ret; | 260 | 744 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 14.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 14.4k | CppType ret; | 258 | 14.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 14.4k | return ret; | 260 | 14.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi Line | Count | Source | 255 | 190 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 190 | CppType ret; | 258 | 190 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 190 | return ret; | 260 | 190 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 255 | 9.49k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.49k | CppType ret; | 258 | 9.49k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.49k | return ret; | 260 | 9.49k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 35.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 35.7k | CppType ret; | 258 | 35.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 35.7k | return ret; | 260 | 35.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 31.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.2k | CppType ret; | 258 | 31.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.2k | return ret; | 260 | 31.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.02k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.02k | CppType ret; | 258 | 2.02k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.02k | return ret; | 260 | 2.02k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.36k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.36k | CppType ret; | 258 | 1.36k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.36k | return ret; | 260 | 1.36k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.25k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.25k | CppType ret; | 258 | 1.25k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.25k | return ret; | 260 | 1.25k | } |
|
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.73M | int& size_of_element) { |
277 | 2.73M | 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.73M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.73M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.73M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.73M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.73M | 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.73M | switch (size_of_element) { |
295 | 191k | case 1: |
296 | 226k | case 2: |
297 | 231k | case 3: |
298 | 1.70M | case 4: |
299 | 2.64M | case 8: |
300 | 2.64M | case 12: |
301 | 2.73M | case 16: |
302 | 2.73M | case 32: |
303 | 2.73M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.73M | } |
307 | 2.73M | return Status::OK(); |
308 | 2.73M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.36M | : _data(data), |
315 | 1.36M | _options(options), |
316 | 1.36M | _parsed(false), |
317 | 1.36M | _num_elements(0), |
318 | 1.36M | _num_element_after_padding(0), |
319 | 1.36M | _size_of_element(0), |
320 | 1.36M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 639k | : _data(data), | 315 | 639k | _options(options), | 316 | 639k | _parsed(false), | 317 | 639k | _num_elements(0), | 318 | 639k | _num_element_after_padding(0), | 319 | 639k | _size_of_element(0), | 320 | 639k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 95.6k | : _data(data), | 315 | 95.6k | _options(options), | 316 | 95.6k | _parsed(false), | 317 | 95.6k | _num_elements(0), | 318 | 95.6k | _num_element_after_padding(0), | 319 | 95.6k | _size_of_element(0), | 320 | 95.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 17.4k | : _data(data), | 315 | 17.4k | _options(options), | 316 | 17.4k | _parsed(false), | 317 | 17.4k | _num_elements(0), | 318 | 17.4k | _num_element_after_padding(0), | 319 | 17.4k | _size_of_element(0), | 320 | 17.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 216k | : _data(data), | 315 | 216k | _options(options), | 316 | 216k | _parsed(false), | 317 | 216k | _num_elements(0), | 318 | 216k | _num_element_after_padding(0), | 319 | 216k | _size_of_element(0), | 320 | 216k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 93.9k | : _data(data), | 315 | 93.9k | _options(options), | 316 | 93.9k | _parsed(false), | 317 | 93.9k | _num_elements(0), | 318 | 93.9k | _num_element_after_padding(0), | 319 | 93.9k | _size_of_element(0), | 320 | 93.9k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 12.0k | : _data(data), | 315 | 12.0k | _options(options), | 316 | 12.0k | _parsed(false), | 317 | 12.0k | _num_elements(0), | 318 | 12.0k | _num_element_after_padding(0), | 319 | 12.0k | _size_of_element(0), | 320 | 12.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 20.2k | : _data(data), | 315 | 20.2k | _options(options), | 316 | 20.2k | _parsed(false), | 317 | 20.2k | _num_elements(0), | 318 | 20.2k | _num_element_after_padding(0), | 319 | 20.2k | _size_of_element(0), | 320 | 20.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.4k | : _data(data), | 315 | 30.4k | _options(options), | 316 | 30.4k | _parsed(false), | 317 | 30.4k | _num_elements(0), | 318 | 30.4k | _num_element_after_padding(0), | 319 | 30.4k | _size_of_element(0), | 320 | 30.4k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.50k | : _data(data), | 315 | 2.50k | _options(options), | 316 | 2.50k | _parsed(false), | 317 | 2.50k | _num_elements(0), | 318 | 2.50k | _num_element_after_padding(0), | 319 | 2.50k | _size_of_element(0), | 320 | 2.50k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 61.0k | : _data(data), | 315 | 61.0k | _options(options), | 316 | 61.0k | _parsed(false), | 317 | 61.0k | _num_elements(0), | 318 | 61.0k | _num_element_after_padding(0), | 319 | 61.0k | _size_of_element(0), | 320 | 61.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 67.9k | : _data(data), | 315 | 67.9k | _options(options), | 316 | 67.9k | _parsed(false), | 317 | 67.9k | _num_elements(0), | 318 | 67.9k | _num_element_after_padding(0), | 319 | 67.9k | _size_of_element(0), | 320 | 67.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 3.30k | : _data(data), | 315 | 3.30k | _options(options), | 316 | 3.30k | _parsed(false), | 317 | 3.30k | _num_elements(0), | 318 | 3.30k | _num_element_after_padding(0), | 319 | 3.30k | _size_of_element(0), | 320 | 3.30k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 16.2k | : _data(data), | 315 | 16.2k | _options(options), | 316 | 16.2k | _parsed(false), | 317 | 16.2k | _num_elements(0), | 318 | 16.2k | _num_element_after_padding(0), | 319 | 16.2k | _size_of_element(0), | 320 | 16.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.29k | : _data(data), | 315 | 1.29k | _options(options), | 316 | 1.29k | _parsed(false), | 317 | 1.29k | _num_elements(0), | 318 | 1.29k | _num_element_after_padding(0), | 319 | 1.29k | _size_of_element(0), | 320 | 1.29k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.4k | : _data(data), | 315 | 15.4k | _options(options), | 316 | 15.4k | _parsed(false), | 317 | 15.4k | _num_elements(0), | 318 | 15.4k | _num_element_after_padding(0), | 319 | 15.4k | _size_of_element(0), | 320 | 15.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 39.8k | : _data(data), | 315 | 39.8k | _options(options), | 316 | 39.8k | _parsed(false), | 317 | 39.8k | _num_elements(0), | 318 | 39.8k | _num_element_after_padding(0), | 319 | 39.8k | _size_of_element(0), | 320 | 39.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 31.2k | : _data(data), | 315 | 31.2k | _options(options), | 316 | 31.2k | _parsed(false), | 317 | 31.2k | _num_elements(0), | 318 | 31.2k | _num_element_after_padding(0), | 319 | 31.2k | _size_of_element(0), | 320 | 31.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.80k | : _data(data), | 315 | 1.80k | _options(options), | 316 | 1.80k | _parsed(false), | 317 | 1.80k | _num_elements(0), | 318 | 1.80k | _num_element_after_padding(0), | 319 | 1.80k | _size_of_element(0), | 320 | 1.80k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.22k | : _data(data), | 315 | 1.22k | _options(options), | 316 | 1.22k | _parsed(false), | 317 | 1.22k | _num_elements(0), | 318 | 1.22k | _num_element_after_padding(0), | 319 | 1.22k | _size_of_element(0), | 320 | 1.22k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_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) {} |
|
321 | | |
322 | 1.36M | Status init() override { |
323 | 1.36M | CHECK(!_parsed); |
324 | 1.36M | size_t unused; |
325 | 1.36M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.36M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.36M | if (_data.size != |
329 | 1.36M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
330 | 0 | std::stringstream ss; |
331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
334 | 0 | return Status::InternalError(ss.str()); |
335 | 0 | } |
336 | | |
337 | | // Currently, only the UINT32 block encoder supports expanding size: |
338 | 1.36M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.36M | _size_of_element != SIZE_OF_TYPE)) { |
340 | 0 | return Status::InternalError( |
341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
343 | 0 | } |
344 | 1.36M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
346 | 0 | _size_of_element, SIZE_OF_TYPE); |
347 | 0 | } |
348 | 1.36M | _parsed = true; |
349 | 1.36M | return Status::OK(); |
350 | 1.36M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 639k | Status init() override { | 323 | 639k | CHECK(!_parsed); | 324 | 639k | size_t unused; | 325 | 639k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 639k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 639k | if (_data.size != | 329 | 639k | _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 | 639k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 639k | _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 | 639k | 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 | 639k | _parsed = true; | 349 | 639k | return Status::OK(); | 350 | 639k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 95.6k | Status init() override { | 323 | 95.6k | CHECK(!_parsed); | 324 | 95.6k | size_t unused; | 325 | 95.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 95.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 95.6k | if (_data.size != | 329 | 95.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 | 95.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 95.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 | 95.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 | 95.6k | _parsed = true; | 349 | 95.6k | return Status::OK(); | 350 | 95.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 17.4k | Status init() override { | 323 | 17.4k | CHECK(!_parsed); | 324 | 17.4k | size_t unused; | 325 | 17.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 17.4k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 17.4k | if (_data.size != | 329 | 17.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 17.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 17.4k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 17.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 17.4k | _parsed = true; | 349 | 17.4k | return Status::OK(); | 350 | 17.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 216k | Status init() override { | 323 | 216k | CHECK(!_parsed); | 324 | 216k | size_t unused; | 325 | 216k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 216k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 216k | if (_data.size != | 329 | 216k | _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 | 216k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 216k | _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 | 216k | 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 | 216k | _parsed = true; | 349 | 216k | return Status::OK(); | 350 | 216k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 93.9k | Status init() override { | 323 | 93.9k | CHECK(!_parsed); | 324 | 93.9k | size_t unused; | 325 | 93.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 93.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 93.9k | if (_data.size != | 329 | 93.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 | 93.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 93.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 | 93.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 | 93.9k | _parsed = true; | 349 | 93.9k | return Status::OK(); | 350 | 93.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 12.0k | Status init() override { | 323 | 12.0k | CHECK(!_parsed); | 324 | 12.0k | size_t unused; | 325 | 12.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 12.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 12.0k | if (_data.size != | 329 | 12.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 12.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 12.0k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 12.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 12.0k | _parsed = true; | 349 | 12.0k | return Status::OK(); | 350 | 12.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 20.2k | Status init() override { | 323 | 20.2k | CHECK(!_parsed); | 324 | 20.2k | size_t unused; | 325 | 20.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 20.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 20.2k | if (_data.size != | 329 | 20.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 | 20.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 20.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 | 20.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 | 20.2k | _parsed = true; | 349 | 20.2k | return Status::OK(); | 350 | 20.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 30.3k | Status init() override { | 323 | 30.3k | CHECK(!_parsed); | 324 | 30.3k | size_t unused; | 325 | 30.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.3k | if (_data.size != | 329 | 30.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 30.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.3k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 30.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 30.3k | _parsed = true; | 349 | 30.3k | return Status::OK(); | 350 | 30.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 2.50k | Status init() override { | 323 | 2.50k | CHECK(!_parsed); | 324 | 2.50k | size_t unused; | 325 | 2.50k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.50k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.50k | if (_data.size != | 329 | 2.50k | _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.50k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.50k | _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.50k | 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.50k | _parsed = true; | 349 | 2.50k | return Status::OK(); | 350 | 2.50k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 61.0k | Status init() override { | 323 | 61.0k | CHECK(!_parsed); | 324 | 61.0k | size_t unused; | 325 | 61.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 61.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 61.0k | if (_data.size != | 329 | 61.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 61.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 61.0k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 61.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 61.0k | _parsed = true; | 349 | 61.0k | return Status::OK(); | 350 | 61.0k | } |
_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 | 3.30k | Status init() override { | 323 | 3.30k | CHECK(!_parsed); | 324 | 3.30k | size_t unused; | 325 | 3.30k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 3.30k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 3.30k | if (_data.size != | 329 | 3.30k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 3.30k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 3.30k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 3.30k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 3.30k | _parsed = true; | 349 | 3.30k | return Status::OK(); | 350 | 3.30k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 16.2k | Status init() override { | 323 | 16.2k | CHECK(!_parsed); | 324 | 16.2k | size_t unused; | 325 | 16.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 16.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 16.2k | if (_data.size != | 329 | 16.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 | 16.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 16.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 | 16.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 | 16.2k | _parsed = true; | 349 | 16.2k | return Status::OK(); | 350 | 16.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 322 | 1.29k | Status init() override { | 323 | 1.29k | CHECK(!_parsed); | 324 | 1.29k | size_t unused; | 325 | 1.29k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.29k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.29k | if (_data.size != | 329 | 1.29k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.29k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.29k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.29k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.29k | _parsed = true; | 349 | 1.29k | return Status::OK(); | 350 | 1.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.4k | Status init() override { | 323 | 15.4k | CHECK(!_parsed); | 324 | 15.4k | size_t unused; | 325 | 15.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.4k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.4k | if (_data.size != | 329 | 15.4k | _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.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.4k | _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.4k | 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.4k | _parsed = true; | 349 | 15.4k | return Status::OK(); | 350 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 39.8k | Status init() override { | 323 | 39.8k | CHECK(!_parsed); | 324 | 39.8k | size_t unused; | 325 | 39.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 39.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 39.8k | if (_data.size != | 329 | 39.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 | 39.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 39.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 | 39.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 | 39.8k | _parsed = true; | 349 | 39.8k | return Status::OK(); | 350 | 39.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 31.2k | Status init() override { | 323 | 31.2k | CHECK(!_parsed); | 324 | 31.2k | size_t unused; | 325 | 31.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 31.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 31.2k | if (_data.size != | 329 | 31.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 | 31.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 31.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 | 31.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 | 31.2k | _parsed = true; | 349 | 31.2k | return Status::OK(); | 350 | 31.2k | } |
_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.22k | Status init() override { | 323 | 1.22k | CHECK(!_parsed); | 324 | 1.22k | size_t unused; | 325 | 1.22k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.22k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.22k | if (_data.size != | 329 | 1.22k | _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.22k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.22k | _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.22k | 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.22k | _parsed = true; | 349 | 1.22k | return Status::OK(); | 350 | 1.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv 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 | } |
|
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.54M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 2.54M | if (_num_elements == 0) [[unlikely]] { |
361 | 4.99k | 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 | 4.99k | } |
366 | | |
367 | 2.54M | DCHECK_LE(pos, _num_elements); |
368 | 2.54M | _cur_index = pos; |
369 | 2.54M | return Status::OK(); |
370 | 2.54M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.63M | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 1.63M | if (_num_elements == 0) [[unlikely]] { | 361 | 2.20k | 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.20k | } | 366 | | | 367 | 1.63M | DCHECK_LE(pos, _num_elements); | 368 | 1.63M | _cur_index = pos; | 369 | 1.63M | return Status::OK(); | 370 | 1.63M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 107k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 107k | if (_num_elements == 0) [[unlikely]] { | 361 | 534 | 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 | 534 | } | 366 | | | 367 | 107k | DCHECK_LE(pos, _num_elements); | 368 | 107k | _cur_index = pos; | 369 | 107k | return Status::OK(); | 370 | 107k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 2.61k | Status seek_to_position_in_page(size_t pos) override { | 359 | 2.61k | DCHECK(_parsed) << "Must call init()"; | 360 | 2.61k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 2.61k | DCHECK_LE(pos, _num_elements); | 368 | 2.61k | _cur_index = pos; | 369 | 2.61k | return Status::OK(); | 370 | 2.61k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 248k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 248k | if (_num_elements == 0) [[unlikely]] { | 361 | 1.03k | 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.03k | } | 366 | | | 367 | 248k | DCHECK_LE(pos, _num_elements); | 368 | 248k | _cur_index = pos; | 369 | 248k | return Status::OK(); | 370 | 248k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 10.2k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 10.2k | 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.2k | DCHECK_LE(pos, _num_elements); | 368 | 10.2k | _cur_index = pos; | 369 | 10.2k | return Status::OK(); | 370 | 10.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 3.68k | Status seek_to_position_in_page(size_t pos) override { | 359 | 3.68k | DCHECK(_parsed) << "Must call init()"; | 360 | 3.68k | 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 | 3.68k | DCHECK_LE(pos, _num_elements); | 368 | 3.68k | _cur_index = pos; | 369 | 3.68k | return Status::OK(); | 370 | 3.68k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 19.3k | Status seek_to_position_in_page(size_t pos) override { | 359 | 19.3k | DCHECK(_parsed) << "Must call init()"; | 360 | 19.3k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 19.3k | DCHECK_LE(pos, _num_elements); | 368 | 19.3k | _cur_index = pos; | 369 | 19.3k | return Status::OK(); | 370 | 19.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 15.1k | Status seek_to_position_in_page(size_t pos) override { | 359 | 15.1k | DCHECK(_parsed) << "Must call init()"; | 360 | 15.1k | 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.1k | DCHECK_LE(pos, _num_elements); | 368 | 15.1k | _cur_index = pos; | 369 | 15.1k | return Status::OK(); | 370 | 15.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 13.0k | 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 | 13.0k | DCHECK_LE(pos, _num_elements); | 368 | 13.0k | _cur_index = pos; | 369 | 13.0k | return Status::OK(); | 370 | 13.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 377k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 377k | 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 | 377k | DCHECK_LE(pos, _num_elements); | 368 | 377k | _cur_index = pos; | 369 | 377k | return Status::OK(); | 370 | 377k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 62.2k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 62.2k | 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 | 62.2k | DCHECK_LE(pos, _num_elements); | 368 | 62.2k | _cur_index = pos; | 369 | 62.2k | return Status::OK(); | 370 | 62.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 9.07k | Status seek_to_position_in_page(size_t pos) override { | 359 | 9.07k | DCHECK(_parsed) << "Must call init()"; | 360 | 9.07k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 9.07k | DCHECK_LE(pos, _num_elements); | 368 | 9.07k | _cur_index = pos; | 369 | 9.07k | return Status::OK(); | 370 | 9.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.24k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.24k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.24k | 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.24k | DCHECK_LE(pos, _num_elements); | 368 | 7.24k | _cur_index = pos; | 369 | 7.24k | return Status::OK(); | 370 | 7.24k | } |
_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 | 817 | Status seek_to_position_in_page(size_t pos) override { | 359 | 817 | DCHECK(_parsed) << "Must call init()"; | 360 | 817 | 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 | 817 | DCHECK_LE(pos, _num_elements); | 368 | 817 | _cur_index = pos; | 369 | 817 | return Status::OK(); | 370 | 817 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 15.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 15.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 12 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 12 | } | 366 | | | 367 | 15.9k | DCHECK_LE(pos, _num_elements); | 368 | 15.9k | _cur_index = pos; | 369 | 15.9k | return Status::OK(); | 370 | 15.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 15.1k | Status seek_to_position_in_page(size_t pos) override { | 359 | 15.1k | DCHECK(_parsed) << "Must call init()"; | 360 | 15.1k | 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 | 15.1k | DCHECK_LE(pos, _num_elements); | 368 | 15.1k | _cur_index = pos; | 369 | 15.1k | return Status::OK(); | 370 | 15.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.95k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 1.95k | 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.95k | DCHECK_LE(pos, _num_elements); | 368 | 1.95k | _cur_index = pos; | 369 | 1.95k | return Status::OK(); | 370 | 1.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 69 | Status seek_to_position_in_page(size_t pos) override { | 359 | 69 | DCHECK(_parsed) << "Must call init()"; | 360 | 69 | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 69 | DCHECK_LE(pos, _num_elements); | 368 | 69 | _cur_index = pos; | 369 | 69 | return Status::OK(); | 370 | 69 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 89 | Status seek_to_position_in_page(size_t pos) override { | 359 | 89 | DCHECK(_parsed) << "Must call init()"; | 360 | 89 | if (_num_elements == 0) [[unlikely]] { | 361 | 1 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 1 | } | 366 | | | 367 | 89 | DCHECK_LE(pos, _num_elements); | 368 | 89 | _cur_index = pos; | 369 | 89 | return Status::OK(); | 370 | 89 | } |
|
371 | | |
372 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
373 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
374 | |
|
375 | 0 | if (_num_elements == 0) { |
376 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
377 | 0 | } |
378 | | |
379 | 0 | size_t left = 0; |
380 | 0 | size_t right = _num_elements; |
381 | |
|
382 | 0 | void* mid_value = nullptr; |
383 | | |
384 | | // find the first value >= target. after loop, |
385 | | // - left == index of first value >= target when found |
386 | | // - left == _num_elements when not found (all values < target) |
387 | 0 | while (left < right) { |
388 | 0 | size_t mid = left + (right - left) / 2; |
389 | 0 | mid_value = get_data(mid); |
390 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
391 | 0 | left = mid + 1; |
392 | 0 | } else { |
393 | 0 | right = mid; |
394 | 0 | } |
395 | 0 | } |
396 | 0 | if (left >= _num_elements) { |
397 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
398 | 0 | } |
399 | 0 | void* find_value = get_data(left); |
400 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
401 | 0 | *exact_match = true; |
402 | 0 | } else { |
403 | 0 | *exact_match = false; |
404 | 0 | } |
405 | |
|
406 | 0 | _cur_index = left; |
407 | 0 | return Status::OK(); |
408 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb |
409 | | |
410 | | template <bool forward_index = true> |
411 | 2.90M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 2.90M | DCHECK(_parsed); |
413 | 2.90M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 2.90M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 2.90M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 2.90M | *n = max_fetch; |
422 | 2.90M | if constexpr (forward_index) { |
423 | 2.33M | _cur_index += max_fetch; |
424 | 2.33M | } |
425 | | |
426 | 2.90M | return Status::OK(); |
427 | 2.90M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 658k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 658k | DCHECK(_parsed); | 413 | 658k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 658k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 658k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 658k | *n = max_fetch; | 422 | 658k | if constexpr (forward_index) { | 423 | 658k | _cur_index += max_fetch; | 424 | 658k | } | 425 | | | 426 | 658k | return Status::OK(); | 427 | 658k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 434k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 434k | DCHECK(_parsed); | 413 | 434k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 434k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 434k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 434k | *n = max_fetch; | 422 | 434k | if constexpr (forward_index) { | 423 | 434k | _cur_index += max_fetch; | 424 | 434k | } | 425 | | | 426 | 434k | return Status::OK(); | 427 | 434k | } |
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.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.8k | DCHECK(_parsed); | 413 | 15.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.8k | *n = max_fetch; | 422 | 15.8k | if constexpr (forward_index) { | 423 | 15.8k | _cur_index += max_fetch; | 424 | 15.8k | } | 425 | | | 426 | 15.8k | return Status::OK(); | 427 | 15.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 132k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 132k | DCHECK(_parsed); | 413 | 132k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 132k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 132k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 132k | *n = max_fetch; | 422 | 132k | if constexpr (forward_index) { | 423 | 132k | _cur_index += max_fetch; | 424 | 132k | } | 425 | | | 426 | 132k | return Status::OK(); | 427 | 132k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 335k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 335k | DCHECK(_parsed); | 413 | 335k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 335k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 335k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 335k | *n = max_fetch; | 422 | 335k | if constexpr (forward_index) { | 423 | 335k | _cur_index += max_fetch; | 424 | 335k | } | 425 | | | 426 | 335k | return Status::OK(); | 427 | 335k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 567k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 567k | DCHECK(_parsed); | 413 | 567k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 567k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 567k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 567k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 567k | return Status::OK(); | 427 | 567k | } |
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 | 13.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 13.5k | DCHECK(_parsed); | 413 | 13.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 13.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 13.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 13.5k | *n = max_fetch; | 422 | 13.5k | if constexpr (forward_index) { | 423 | 13.5k | _cur_index += max_fetch; | 424 | 13.5k | } | 425 | | | 426 | 13.5k | return Status::OK(); | 427 | 13.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 15.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.2k | DCHECK(_parsed); | 413 | 15.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.2k | *n = max_fetch; | 422 | 15.2k | if constexpr (forward_index) { | 423 | 15.2k | _cur_index += max_fetch; | 424 | 15.2k | } | 425 | | | 426 | 15.2k | return Status::OK(); | 427 | 15.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 23.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 23.6k | DCHECK(_parsed); | 413 | 23.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 23.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 23.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 23.6k | *n = max_fetch; | 422 | 23.6k | if constexpr (forward_index) { | 423 | 23.6k | _cur_index += max_fetch; | 424 | 23.6k | } | 425 | | | 426 | 23.6k | return Status::OK(); | 427 | 23.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 4.68k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 4.68k | DCHECK(_parsed); | 413 | 4.68k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 4.68k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 4.68k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 4.68k | *n = max_fetch; | 422 | 4.68k | if constexpr (forward_index) { | 423 | 4.68k | _cur_index += max_fetch; | 424 | 4.68k | } | 425 | | | 426 | 4.68k | return Status::OK(); | 427 | 4.68k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 491k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 491k | DCHECK(_parsed); | 413 | 491k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 491k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 491k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 491k | *n = max_fetch; | 422 | 491k | if constexpr (forward_index) { | 423 | 491k | _cur_index += max_fetch; | 424 | 491k | } | 425 | | | 426 | 491k | return Status::OK(); | 427 | 491k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 89.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 89.5k | DCHECK(_parsed); | 413 | 89.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 89.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 89.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 89.5k | *n = max_fetch; | 422 | 89.5k | if constexpr (forward_index) { | 423 | 89.5k | _cur_index += max_fetch; | 424 | 89.5k | } | 425 | | | 426 | 89.5k | return Status::OK(); | 427 | 89.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 1.94k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.94k | DCHECK(_parsed); | 413 | 1.94k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.94k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.94k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.94k | *n = max_fetch; | 422 | 1.94k | if constexpr (forward_index) { | 423 | 1.94k | _cur_index += max_fetch; | 424 | 1.94k | } | 425 | | | 426 | 1.94k | return Status::OK(); | 427 | 1.94k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 7.73k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 7.73k | DCHECK(_parsed); | 413 | 7.73k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 7.73k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 7.73k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 7.73k | *n = max_fetch; | 422 | 7.73k | if constexpr (forward_index) { | 423 | 7.73k | _cur_index += max_fetch; | 424 | 7.73k | } | 425 | | | 426 | 7.73k | return Status::OK(); | 427 | 7.73k | } |
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.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.23k | DCHECK(_parsed); | 413 | 1.23k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.23k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.23k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.23k | *n = max_fetch; | 422 | 1.23k | if constexpr (forward_index) { | 423 | 1.23k | _cur_index += max_fetch; | 424 | 1.23k | } | 425 | | | 426 | 1.23k | return Status::OK(); | 427 | 1.23k | } |
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.67k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 9.67k | DCHECK(_parsed); | 413 | 9.67k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 9.67k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 9.67k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 9.67k | *n = max_fetch; | 422 | 9.67k | if constexpr (forward_index) { | 423 | 9.67k | _cur_index += max_fetch; | 424 | 9.67k | } | 425 | | | 426 | 9.67k | return Status::OK(); | 427 | 9.67k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 42.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 42.8k | DCHECK(_parsed); | 413 | 42.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 42.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 42.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 42.8k | *n = max_fetch; | 422 | 42.8k | if constexpr (forward_index) { | 423 | 42.8k | _cur_index += max_fetch; | 424 | 42.8k | } | 425 | | | 426 | 42.8k | return Status::OK(); | 427 | 42.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 33.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 33.5k | DCHECK(_parsed); | 413 | 33.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 33.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 33.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 33.5k | *n = max_fetch; | 422 | 33.5k | if constexpr (forward_index) { | 423 | 33.5k | _cur_index += max_fetch; | 424 | 33.5k | } | 425 | | | 426 | 33.5k | return Status::OK(); | 427 | 33.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.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.21k | DCHECK(_parsed); | 413 | 3.21k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.21k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.21k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.21k | *n = max_fetch; | 422 | 3.21k | if constexpr (forward_index) { | 423 | 3.21k | _cur_index += max_fetch; | 424 | 3.21k | } | 425 | | | 426 | 3.21k | return Status::OK(); | 427 | 3.21k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 8.29k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.29k | DCHECK(_parsed); | 413 | 8.29k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.29k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.29k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.29k | *n = max_fetch; | 422 | 8.29k | if constexpr (forward_index) { | 423 | 8.29k | _cur_index += max_fetch; | 424 | 8.29k | } | 425 | | | 426 | 8.29k | return Status::OK(); | 427 | 8.29k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 8.32k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.32k | DCHECK(_parsed); | 413 | 8.33k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.32k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.32k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.32k | *n = max_fetch; | 422 | 8.32k | if constexpr (forward_index) { | 423 | 8.32k | _cur_index += max_fetch; | 424 | 8.32k | } | 425 | | | 426 | 8.32k | return Status::OK(); | 427 | 8.32k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 2.33M | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 657k | 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 | 434k | 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.8k | 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 | 132k | 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 | 335k | 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 | 13.5k | 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 | 15.2k | 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 | 23.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 4.67k | 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 | 491k | 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 | 89.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 1.94k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 7.73k | 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.23k | 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.67k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 42.8k | 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 | 33.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.21k | 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 | 8.30k | 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 | 8.33k | 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 | 468k | MutableColumnPtr& dst) override { |
433 | 468k | DCHECK(_parsed); |
434 | 468k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 468k | auto total = *n; |
440 | 468k | auto read_count = 0; |
441 | 468k | _buffer.resize(total); |
442 | 81.8M | for (size_t i = 0; i < total; ++i) { |
443 | 81.3M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 81.3M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 8.85k | break; |
446 | 8.85k | } |
447 | | |
448 | 81.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 81.3M | } |
450 | | |
451 | 468k | if (LIKELY(read_count > 0)) { |
452 | 468k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 468k | } |
454 | | |
455 | 468k | *n = read_count; |
456 | 468k | return Status::OK(); |
457 | 468k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 76.8k | MutableColumnPtr& dst) override { | 433 | 76.8k | DCHECK(_parsed); | 434 | 76.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 76.8k | auto total = *n; | 440 | 76.8k | auto read_count = 0; | 441 | 76.8k | _buffer.resize(total); | 442 | 19.3M | for (size_t i = 0; i < total; ++i) { | 443 | 19.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 19.2M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 680 | break; | 446 | 680 | } | 447 | | | 448 | 19.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 19.2M | } | 450 | | | 451 | 76.8k | if (LIKELY(read_count > 0)) { | 452 | 76.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 76.8k | } | 454 | | | 455 | 76.8k | *n = read_count; | 456 | 76.8k | return Status::OK(); | 457 | 76.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.0k | MutableColumnPtr& dst) override { | 433 | 31.0k | DCHECK(_parsed); | 434 | 31.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.0k | auto total = *n; | 440 | 31.0k | auto read_count = 0; | 441 | 31.0k | _buffer.resize(total); | 442 | 1.03M | for (size_t i = 0; i < total; ++i) { | 443 | 1.00M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.00M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 10 | break; | 446 | 10 | } | 447 | | | 448 | 1.00M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.00M | } | 450 | | | 451 | 31.0k | if (LIKELY(read_count > 0)) { | 452 | 31.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.0k | } | 454 | | | 455 | 31.0k | *n = read_count; | 456 | 31.0k | return Status::OK(); | 457 | 31.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 7.76k | MutableColumnPtr& dst) override { | 433 | 7.76k | DCHECK(_parsed); | 434 | 7.76k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 7.76k | auto total = *n; | 440 | 7.76k | auto read_count = 0; | 441 | 7.76k | _buffer.resize(total); | 442 | 52.8k | for (size_t i = 0; i < total; ++i) { | 443 | 45.1k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 45.1k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 45.1k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 45.1k | } | 450 | | | 451 | 7.76k | if (LIKELY(read_count > 0)) { | 452 | 7.76k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 7.76k | } | 454 | | | 455 | 7.76k | *n = read_count; | 456 | 7.76k | return Status::OK(); | 457 | 7.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 158k | MutableColumnPtr& dst) override { | 433 | 158k | DCHECK(_parsed); | 434 | 158k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 158k | auto total = *n; | 440 | 158k | auto read_count = 0; | 441 | 158k | _buffer.resize(total); | 442 | 5.19M | 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 | 668 | break; | 446 | 668 | } | 447 | | | 448 | 5.03M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 5.03M | } | 450 | | | 451 | 158k | if (LIKELY(read_count > 0)) { | 452 | 158k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 158k | } | 454 | | | 455 | 158k | *n = read_count; | 456 | 158k | return Status::OK(); | 457 | 158k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 36.1k | MutableColumnPtr& dst) override { | 433 | 36.1k | DCHECK(_parsed); | 434 | 36.1k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 36.1k | auto total = *n; | 440 | 36.1k | auto read_count = 0; | 441 | 36.1k | _buffer.resize(total); | 442 | 737k | for (size_t i = 0; i < total; ++i) { | 443 | 701k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 701k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 39 | break; | 446 | 39 | } | 447 | | | 448 | 701k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 701k | } | 450 | | | 451 | 36.1k | if (LIKELY(read_count > 0)) { | 452 | 36.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 36.1k | } | 454 | | | 455 | 36.1k | *n = read_count; | 456 | 36.1k | return Status::OK(); | 457 | 36.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 5.64k | MutableColumnPtr& dst) override { | 433 | 5.64k | DCHECK(_parsed); | 434 | 5.64k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 5.64k | auto total = *n; | 440 | 5.64k | auto read_count = 0; | 441 | 5.64k | _buffer.resize(total); | 442 | 14.2k | for (size_t i = 0; i < total; ++i) { | 443 | 8.62k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 8.62k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 8.62k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 8.62k | } | 450 | | | 451 | 5.65k | if (LIKELY(read_count > 0)) { | 452 | 5.65k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 5.65k | } | 454 | | | 455 | 5.64k | *n = read_count; | 456 | 5.64k | return Status::OK(); | 457 | 5.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_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 | 1.17M | for (size_t i = 0; i < total; ++i) { | 443 | 1.16M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.16M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 28 | break; | 446 | 28 | } | 447 | | | 448 | 1.16M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.16M | } | 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_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.0k | MutableColumnPtr& dst) override { | 433 | 15.0k | DCHECK(_parsed); | 434 | 15.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.0k | auto total = *n; | 440 | 15.0k | auto read_count = 0; | 441 | 15.0k | _buffer.resize(total); | 442 | 4.82M | for (size_t i = 0; i < total; ++i) { | 443 | 4.80M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 4.80M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 906 | break; | 446 | 906 | } | 447 | | | 448 | 4.80M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 4.80M | } | 450 | | | 451 | 15.0k | if (LIKELY(read_count > 0)) { | 452 | 15.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.0k | } | 454 | | | 455 | 15.0k | *n = read_count; | 456 | 15.0k | return Status::OK(); | 457 | 15.0k | } |
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.02k | MutableColumnPtr& dst) override { | 433 | 2.02k | DCHECK(_parsed); | 434 | 2.02k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.02k | auto total = *n; | 440 | 2.02k | auto read_count = 0; | 441 | 2.02k | _buffer.resize(total); | 442 | 629k | for (size_t i = 0; i < total; ++i) { | 443 | 627k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 627k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 15 | break; | 446 | 15 | } | 447 | | | 448 | 627k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 627k | } | 450 | | | 451 | 2.03k | if (LIKELY(read_count > 0)) { | 452 | 2.03k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.03k | } | 454 | | | 455 | 2.02k | *n = read_count; | 456 | 2.02k | return Status::OK(); | 457 | 2.02k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 30.7k | MutableColumnPtr& dst) override { | 433 | 30.7k | DCHECK(_parsed); | 434 | 30.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 30.7k | auto total = *n; | 440 | 30.7k | auto read_count = 0; | 441 | 30.7k | _buffer.resize(total); | 442 | 6.79M | for (size_t i = 0; i < total; ++i) { | 443 | 6.76M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.76M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 928 | break; | 446 | 928 | } | 447 | | | 448 | 6.76M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.76M | } | 450 | | | 451 | 30.8k | if (LIKELY(read_count > 0)) { | 452 | 30.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 30.8k | } | 454 | | | 455 | 30.7k | *n = read_count; | 456 | 30.7k | return Status::OK(); | 457 | 30.7k | } |
_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.28M | for (size_t i = 0; i < total; ++i) { | 443 | 7.25M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.25M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 95 | break; | 446 | 95 | } | 447 | | | 448 | 7.25M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.25M | } | 450 | | | 451 | 31.6k | if (LIKELY(read_count > 0)) { | 452 | 31.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.6k | } | 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.26k | MutableColumnPtr& dst) override { | 433 | 2.26k | DCHECK(_parsed); | 434 | 2.26k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.26k | auto total = *n; | 440 | 2.26k | auto read_count = 0; | 441 | 2.26k | _buffer.resize(total); | 442 | 642k | for (size_t i = 0; i < total; ++i) { | 443 | 639k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 639k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 80 | break; | 446 | 80 | } | 447 | | | 448 | 639k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 639k | } | 450 | | | 451 | 2.26k | if (LIKELY(read_count > 0)) { | 452 | 2.26k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.26k | } | 454 | | | 455 | 2.26k | *n = read_count; | 456 | 2.26k | return Status::OK(); | 457 | 2.26k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 12.8k | MutableColumnPtr& dst) override { | 433 | 12.8k | DCHECK(_parsed); | 434 | 12.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 12.8k | auto total = *n; | 440 | 12.8k | auto read_count = 0; | 441 | 12.8k | _buffer.resize(total); | 442 | 27.1k | for (size_t i = 0; i < total; ++i) { | 443 | 14.3k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.3k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.3k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.3k | } | 450 | | | 451 | 12.8k | if (LIKELY(read_count > 0)) { | 452 | 12.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 12.8k | } | 454 | | | 455 | 12.8k | *n = read_count; | 456 | 12.8k | return Status::OK(); | 457 | 12.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 77 | MutableColumnPtr& dst) override { | 433 | 77 | DCHECK(_parsed); | 434 | 77 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 77 | auto total = *n; | 440 | 77 | auto read_count = 0; | 441 | 77 | _buffer.resize(total); | 442 | 162 | for (size_t i = 0; i < total; ++i) { | 443 | 85 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 85 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 85 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 85 | } | 450 | | | 451 | 77 | if (LIKELY(read_count > 0)) { | 452 | 77 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 77 | } | 454 | | | 455 | 77 | *n = read_count; | 456 | 77 | return Status::OK(); | 457 | 77 | } |
_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.2k | for (size_t i = 0; i < total; ++i) { | 443 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.6k | } | 450 | | | 451 | 4.61k | if (LIKELY(read_count > 0)) { | 452 | 4.61k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.61k | } | 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 | 26.4k | MutableColumnPtr& dst) override { | 433 | 26.4k | DCHECK(_parsed); | 434 | 26.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 26.4k | auto total = *n; | 440 | 26.4k | auto read_count = 0; | 441 | 26.4k | _buffer.resize(total); | 442 | 23.8M | for (size_t i = 0; i < total; ++i) { | 443 | 23.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 23.8M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 4.96k | break; | 446 | 4.96k | } | 447 | | | 448 | 23.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 23.8M | } | 450 | | | 451 | 26.4k | if (LIKELY(read_count > 0)) { | 452 | 26.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 26.4k | } | 454 | | | 455 | 26.4k | *n = read_count; | 456 | 26.4k | return Status::OK(); | 457 | 26.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.1k | MutableColumnPtr& dst) override { | 433 | 15.1k | DCHECK(_parsed); | 434 | 15.1k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.1k | auto total = *n; | 440 | 15.1k | auto read_count = 0; | 441 | 15.1k | _buffer.resize(total); | 442 | 10.2M | for (size_t i = 0; i < total; ++i) { | 443 | 10.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 10.2M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 437 | break; | 446 | 437 | } | 447 | | | 448 | 10.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 10.2M | } | 450 | | | 451 | 15.1k | if (LIKELY(read_count > 0)) { | 452 | 15.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.1k | } | 454 | | | 455 | 15.1k | *n = read_count; | 456 | 15.1k | return Status::OK(); | 457 | 15.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 960 | MutableColumnPtr& dst) override { | 433 | 960 | DCHECK(_parsed); | 434 | 960 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 960 | auto total = *n; | 440 | 960 | auto read_count = 0; | 441 | 960 | _buffer.resize(total); | 442 | 2.76k | for (size_t i = 0; i < total; ++i) { | 443 | 1.80k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.80k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 1.80k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.80k | } | 450 | | | 451 | 960 | if (LIKELY(read_count > 0)) { | 452 | 960 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 960 | } | 454 | | | 455 | 960 | *n = read_count; | 456 | 960 | return Status::OK(); | 457 | 960 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 480 | MutableColumnPtr& dst) override { | 433 | 480 | DCHECK(_parsed); | 434 | 480 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 480 | auto total = *n; | 440 | 480 | auto read_count = 0; | 441 | 480 | _buffer.resize(total); | 442 | 1.20k | for (size_t i = 0; i < total; ++i) { | 443 | 724 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 724 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 724 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 724 | } | 450 | | | 451 | 480 | if (LIKELY(read_count > 0)) { | 452 | 480 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 480 | } | 454 | | | 455 | 480 | *n = read_count; | 456 | 480 | return Status::OK(); | 457 | 480 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 416 | MutableColumnPtr& dst) override { | 433 | 416 | DCHECK(_parsed); | 434 | 416 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 416 | auto total = *n; | 440 | 416 | auto read_count = 0; | 441 | 416 | _buffer.resize(total); | 442 | 1.34k | for (size_t i = 0; i < total; ++i) { | 443 | 931 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 931 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 931 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 931 | } | 450 | | | 451 | 417 | if (LIKELY(read_count > 0)) { | 452 | 417 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 417 | } | 454 | | | 455 | 416 | *n = read_count; | 456 | 416 | return Status::OK(); | 457 | 416 | } |
|
458 | | |
459 | 567k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 567k | return next_batch<false>(n, dst); |
461 | 567k | } 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 | 567k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 567k | return next_batch<false>(n, dst); | 461 | 567k | } |
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.48M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 1.98M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 1.23k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 805 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 377k | 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 | 223 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 16.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 11.3k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 7.65k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 29.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 33.1k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 6.26k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 1.06k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 465 | 9 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 465 | 3.33k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 726 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 7.47k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 308 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 51 | 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 | 85.5M | char* get_data(size_t index) const { |
468 | 85.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 85.5M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 21.1M | char* get_data(size_t index) const { | 468 | 21.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 21.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 1.43M | char* get_data(size_t index) const { | 468 | 1.43M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.43M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 60.9k | char* get_data(size_t index) const { | 468 | 60.9k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 60.9k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 5.17M | char* get_data(size_t index) const { | 468 | 5.17M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.17M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 467 | 1.60M | char* get_data(size_t index) const { | 468 | 1.60M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.60M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_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_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.18M | char* get_data(size_t index) const { | 468 | 1.18M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.18M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 4.83M | char* get_data(size_t index) const { | 468 | 4.83M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.83M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 632k | char* get_data(size_t index) const { | 468 | 632k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 632k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 7.25M | char* get_data(size_t index) const { | 468 | 7.25M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.25M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.34M | char* get_data(size_t index) const { | 468 | 7.34M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.34M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 641k | char* get_data(size_t index) const { | 468 | 641k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 641k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 22.0k | char* get_data(size_t index) const { | 468 | 22.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.31k | char* get_data(size_t index) const { | 468 | 1.31k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.31k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 467 | 24.2k | char* get_data(size_t index) const { | 468 | 24.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 24.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 23.9M | char* get_data(size_t index) const { | 468 | 23.9M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 23.9M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 10.2M | char* get_data(size_t index) const { | 468 | 10.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 10.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 467 | 5.02k | char* get_data(size_t index) const { | 468 | 5.02k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.02k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 467 | 9.02k | char* get_data(size_t index) const { | 468 | 9.02k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 9.02k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 9.26k | char* get_data(size_t index) const { | 468 | 9.26k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 9.26k | } |
|
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 |