be/src/storage/segment/bitshuffle_page.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <glog/logging.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <cstddef> |
24 | | #include <cstdint> |
25 | | #include <cstring> |
26 | | #include <ostream> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/cast_set.h" |
30 | | #include "common/compiler_util.h" // IWYU pragma: keep |
31 | | #include "common/status.h" |
32 | | #include "core/column/column.h" |
33 | | #include "core/data_type/data_type.h" |
34 | | #include "core/types.h" |
35 | | #include "storage/olap_common.h" |
36 | | #include "storage/segment/bitshuffle_wrapper.h" |
37 | | #include "storage/segment/common.h" |
38 | | #include "storage/segment/options.h" |
39 | | #include "storage/segment/page_builder.h" |
40 | | #include "storage/segment/page_decoder.h" |
41 | | #include "storage/types.h" |
42 | | #include "util/alignment.h" |
43 | | #include "util/coding.h" |
44 | | #include "util/faststring.h" |
45 | | #include "util/slice.h" |
46 | | |
47 | | namespace doris { |
48 | | namespace segment_v2 { |
49 | | |
50 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
51 | | |
52 | | void warn_with_bitshuffle_error(int64_t val); |
53 | | |
54 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
55 | | // size type blocks with lz4. |
56 | | // |
57 | | // The page format is as follows: |
58 | | // |
59 | | // 1. Header: (16 bytes total) |
60 | | // |
61 | | // <num_elements> [32-bit] |
62 | | // The number of elements encoded in the page. |
63 | | // |
64 | | // <compressed_size> [32-bit] |
65 | | // The post-compression size of the page, including this header. |
66 | | // |
67 | | // <padded_num_elements> [32-bit] |
68 | | // Padding is needed to meet the requirements of the bitshuffle |
69 | | // library such that the input/output is a multiple of 8. Some |
70 | | // ignored elements are appended to the end of the page if necessary |
71 | | // to meet this requirement. |
72 | | // |
73 | | // This header field is the post-padding element count. |
74 | | // |
75 | | // <elem_size_bytes> [32-bit] |
76 | | // The size of the elements, in bytes, as actually encoded. In the |
77 | | // case that all of the data in a page can fit into a smaller |
78 | | // integer type, then we may choose to encode that smaller type |
79 | | // to save CPU costs. |
80 | | // |
81 | | // This is currently only implemented in the UINT32 page type. |
82 | | // |
83 | | // NOTE: all on-disk ints are encoded little-endian |
84 | | // |
85 | | // 2. Element data |
86 | | // |
87 | | // The header is followed by the bitshuffle-compressed element data. |
88 | | // |
89 | | template <FieldType Type> |
90 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
91 | | public: |
92 | | using Self = BitshufflePageBuilder<Type>; |
93 | | friend class PageBuilderHelper<Self>; |
94 | | |
95 | 91.5k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 52.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 6.57k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 730 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 12.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 690 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 7.58k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 601 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 852 | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 267 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 1.28k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 2.27k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 179 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 274 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 140 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 285 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 646 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 1.15k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 1.67k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 572 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 334 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 334 | Status init() override { return reset(); } |
|
96 | | |
97 | 45.8M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 45.6M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 9.12k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 845 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 173k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 1.08k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 8.01k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 709 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 1.22k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 283 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 1.82k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 2.87k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 107 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 432 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 149 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 682 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 1.47k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 2.63k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 630 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 245 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 245 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 823k | Status add(const uint8_t* vals, size_t* count) override { |
100 | 823k | return add_internal<false>(vals, count); |
101 | 823k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 617k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 617k | return add_internal<false>(vals, count); | 101 | 617k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 9.12k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 9.12k | return add_internal<false>(vals, count); | 101 | 9.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 845 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 845 | return add_internal<false>(vals, count); | 101 | 845 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 173k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 173k | return add_internal<false>(vals, count); | 101 | 173k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 1.08k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.08k | return add_internal<false>(vals, count); | 101 | 1.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 8.01k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.01k | return add_internal<false>(vals, count); | 101 | 8.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 709 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 709 | return add_internal<false>(vals, count); | 101 | 709 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 1.22k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.22k | return add_internal<false>(vals, count); | 101 | 1.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 283 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 283 | return add_internal<false>(vals, count); | 101 | 283 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 1.82k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.82k | return add_internal<false>(vals, count); | 101 | 1.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 2.87k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 2.87k | return add_internal<false>(vals, count); | 101 | 2.87k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 107 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 107 | return add_internal<false>(vals, count); | 101 | 107 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 432 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 432 | return add_internal<false>(vals, count); | 101 | 432 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 149 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 149 | return add_internal<false>(vals, count); | 101 | 149 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 192 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 192 | return add_internal<false>(vals, count); | 101 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 682 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 682 | return add_internal<false>(vals, count); | 101 | 682 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 1.47k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.47k | return add_internal<false>(vals, count); | 101 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 2.63k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 2.63k | return add_internal<false>(vals, count); | 101 | 2.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 630 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 630 | return add_internal<false>(vals, count); | 101 | 630 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 245 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 245 | return add_internal<false>(vals, count); | 101 | 245 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 245 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 245 | return add_internal<false>(vals, count); | 101 | 245 | } |
|
102 | | |
103 | 44.4M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 44.4M | return add_internal<true>(vals, count); |
105 | 44.4M | } |
106 | | |
107 | | template <bool single> |
108 | 45.0M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 45.0M | DCHECK(!_finished); |
110 | 45.0M | if (_remain_element_capacity == 0) { |
111 | 0 | *num_written = 0; |
112 | 0 | return Status::OK(); |
113 | 0 | } |
114 | | |
115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
116 | | // the row count of a single men tbl could be very large. |
117 | | // a real log: |
118 | | /* |
119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
120 | | */ |
121 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
125 | 45.0M | uint32_t to_add = cast_set<UInt32>( |
126 | 45.0M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
128 | 45.0M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 45.0M | size_t orig_size = _data.size(); |
130 | | // This may need a large memory, should return error if could not allocated |
131 | | // successfully, to avoid BE OOM. |
132 | 45.0M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 45.1M | _count += to_add; |
134 | 45.1M | _remain_element_capacity -= to_add; |
135 | 45.1M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 45.1M | *num_written = to_add; |
138 | 45.1M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | _data[orig_size] = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 44.3M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 44.3M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 44.3M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 44.3M | return Status::OK(); |
150 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
152 | | *reinterpret_cast<const uint64_t*>(vals); |
153 | | return Status::OK(); |
154 | | } |
155 | 44.3M | } |
156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
158 | 45.1M | return Status::OK(); |
159 | 45.0M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 617k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 617k | DCHECK(!_finished); | 110 | 617k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 617k | uint32_t to_add = cast_set<UInt32>( | 126 | 617k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 617k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 617k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 617k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 617k | _count += to_add; | 134 | 617k | _remain_element_capacity -= to_add; | 135 | 617k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 617k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 617k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 617k | return Status::OK(); | 159 | 617k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.2M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.2M | DCHECK(!_finished); | 110 | 44.2M | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.2M | uint32_t to_add = cast_set<UInt32>( | 126 | 44.2M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.2M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.2M | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.2M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.3M | _count += to_add; | 134 | 44.3M | _remain_element_capacity -= to_add; | 135 | 44.3M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.3M | *num_written = to_add; | 138 | 44.3M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 44.3M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 44.3M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 44.3M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 44.3M | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | 44.3M | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.3M | return Status::OK(); | 159 | 44.2M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 9.12k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 9.12k | DCHECK(!_finished); | 110 | 9.12k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 9.12k | uint32_t to_add = cast_set<UInt32>( | 126 | 9.12k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 9.12k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 9.12k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 9.12k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 9.12k | _count += to_add; | 134 | 9.12k | _remain_element_capacity -= to_add; | 135 | 9.12k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 9.12k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 9.12k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 9.12k | return Status::OK(); | 159 | 9.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 845 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 845 | DCHECK(!_finished); | 110 | 845 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 845 | uint32_t to_add = cast_set<UInt32>( | 126 | 845 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 845 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 845 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 845 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 845 | _count += to_add; | 134 | 845 | _remain_element_capacity -= to_add; | 135 | 845 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 845 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 845 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 845 | return Status::OK(); | 159 | 845 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 173k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 173k | DCHECK(!_finished); | 110 | 173k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 173k | uint32_t to_add = cast_set<UInt32>( | 126 | 173k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 173k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 173k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 173k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 173k | _count += to_add; | 134 | 173k | _remain_element_capacity -= to_add; | 135 | 173k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 173k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 173k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 173k | return Status::OK(); | 159 | 173k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.08k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.08k | DCHECK(!_finished); | 110 | 1.08k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.08k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.08k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.08k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.08k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.08k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.08k | _count += to_add; | 134 | 1.08k | _remain_element_capacity -= to_add; | 135 | 1.08k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.08k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.08k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.08k | return Status::OK(); | 159 | 1.08k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.01k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.01k | DCHECK(!_finished); | 110 | 8.01k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 8.01k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.01k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 8.01k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.01k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 8.01k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.01k | _count += to_add; | 134 | 8.01k | _remain_element_capacity -= to_add; | 135 | 8.01k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.01k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 8.01k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.01k | return Status::OK(); | 159 | 8.01k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 709 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 709 | DCHECK(!_finished); | 110 | 709 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 709 | uint32_t to_add = cast_set<UInt32>( | 126 | 709 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 709 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 709 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 709 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 709 | _count += to_add; | 134 | 709 | _remain_element_capacity -= to_add; | 135 | 709 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 709 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 709 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 709 | return Status::OK(); | 159 | 709 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.22k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.22k | DCHECK(!_finished); | 110 | 1.22k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.22k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.22k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.22k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.22k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.22k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.22k | _count += to_add; | 134 | 1.22k | _remain_element_capacity -= to_add; | 135 | 1.22k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.22k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.22k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.22k | return Status::OK(); | 159 | 1.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 283 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 283 | DCHECK(!_finished); | 110 | 283 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 283 | uint32_t to_add = cast_set<UInt32>( | 126 | 283 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 283 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 283 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 283 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 283 | _count += to_add; | 134 | 283 | _remain_element_capacity -= to_add; | 135 | 283 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 283 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 283 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 283 | return Status::OK(); | 159 | 283 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.82k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.82k | DCHECK(!_finished); | 110 | 1.82k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.82k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.82k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.82k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.82k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.82k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.82k | _count += to_add; | 134 | 1.82k | _remain_element_capacity -= to_add; | 135 | 1.82k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.82k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.82k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.82k | return Status::OK(); | 159 | 1.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 2.87k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 2.87k | DCHECK(!_finished); | 110 | 2.87k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 2.87k | uint32_t to_add = cast_set<UInt32>( | 126 | 2.87k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 2.87k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 2.87k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 2.87k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 2.87k | _count += to_add; | 134 | 2.87k | _remain_element_capacity -= to_add; | 135 | 2.87k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 2.87k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 2.87k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 2.87k | return Status::OK(); | 159 | 2.87k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 107 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 107 | DCHECK(!_finished); | 110 | 107 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 107 | uint32_t to_add = cast_set<UInt32>( | 126 | 107 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 107 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 107 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 107 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 107 | _count += to_add; | 134 | 107 | _remain_element_capacity -= to_add; | 135 | 107 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 107 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 107 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 107 | return Status::OK(); | 159 | 107 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 432 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 432 | DCHECK(!_finished); | 110 | 432 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 432 | uint32_t to_add = cast_set<UInt32>( | 126 | 432 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 432 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 432 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 432 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 432 | _count += to_add; | 134 | 432 | _remain_element_capacity -= to_add; | 135 | 432 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 432 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 432 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 432 | return Status::OK(); | 159 | 432 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 149 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 149 | DCHECK(!_finished); | 110 | 149 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 149 | uint32_t to_add = cast_set<UInt32>( | 126 | 149 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 149 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 149 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 149 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 149 | _count += to_add; | 134 | 149 | _remain_element_capacity -= to_add; | 135 | 149 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 149 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 149 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 149 | return Status::OK(); | 159 | 149 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 192 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 192 | DCHECK(!_finished); | 110 | 192 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 192 | uint32_t to_add = cast_set<UInt32>( | 126 | 192 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 192 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 192 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 192 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 192 | _count += to_add; | 134 | 192 | _remain_element_capacity -= to_add; | 135 | 192 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 192 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 192 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 192 | return Status::OK(); | 159 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 682 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 682 | DCHECK(!_finished); | 110 | 682 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 682 | uint32_t to_add = cast_set<UInt32>( | 126 | 682 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 682 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 682 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 682 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 682 | _count += to_add; | 134 | 682 | _remain_element_capacity -= to_add; | 135 | 682 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 682 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 682 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 682 | return Status::OK(); | 159 | 682 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.47k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.47k | DCHECK(!_finished); | 110 | 1.47k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.47k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.47k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.47k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.47k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.47k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.47k | _count += to_add; | 134 | 1.47k | _remain_element_capacity -= to_add; | 135 | 1.47k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.47k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.47k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.47k | return Status::OK(); | 159 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 2.63k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 2.63k | DCHECK(!_finished); | 110 | 2.63k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 2.63k | uint32_t to_add = cast_set<UInt32>( | 126 | 2.63k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 2.63k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 2.63k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 2.63k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 2.63k | _count += to_add; | 134 | 2.63k | _remain_element_capacity -= to_add; | 135 | 2.63k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 2.63k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 2.63k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 2.63k | return Status::OK(); | 159 | 2.63k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 630 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 630 | DCHECK(!_finished); | 110 | 630 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 630 | uint32_t to_add = cast_set<UInt32>( | 126 | 630 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 630 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 630 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 630 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 630 | _count += to_add; | 134 | 630 | _remain_element_capacity -= to_add; | 135 | 630 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 630 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 630 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 630 | return Status::OK(); | 159 | 630 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 245 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 245 | DCHECK(!_finished); | 110 | 245 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 245 | uint32_t to_add = cast_set<UInt32>( | 126 | 245 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 245 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 245 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 245 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 245 | _count += to_add; | 134 | 245 | _remain_element_capacity -= to_add; | 135 | 245 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 245 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 245 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 245 | return Status::OK(); | 159 | 245 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 245 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 245 | DCHECK(!_finished); | 110 | 245 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 245 | uint32_t to_add = cast_set<UInt32>( | 126 | 245 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 245 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 245 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 245 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 245 | _count += to_add; | 134 | 245 | _remain_element_capacity -= to_add; | 135 | 245 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 245 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 245 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 245 | return Status::OK(); | 159 | 245 | } |
|
160 | | |
161 | 94.5k | Status finish(OwnedSlice* slice) override { |
162 | 94.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 94.5k | return Status::OK(); |
164 | 94.5k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 52.6k | Status finish(OwnedSlice* slice) override { | 162 | 52.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 52.6k | return Status::OK(); | 164 | 52.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.52k | Status finish(OwnedSlice* slice) override { | 162 | 6.52k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.52k | return Status::OK(); | 164 | 6.52k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 681 | Status finish(OwnedSlice* slice) override { | 162 | 681 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 681 | return Status::OK(); | 164 | 681 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 13.4k | Status finish(OwnedSlice* slice) override { | 162 | 13.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 13.4k | return Status::OK(); | 164 | 13.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 964 | Status finish(OwnedSlice* slice) override { | 162 | 964 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 964 | return Status::OK(); | 164 | 964 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.99k | Status finish(OwnedSlice* slice) override { | 162 | 7.99k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.99k | return Status::OK(); | 164 | 7.99k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 553 | Status finish(OwnedSlice* slice) override { | 162 | 553 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 553 | return Status::OK(); | 164 | 553 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.07k | Status finish(OwnedSlice* slice) override { | 162 | 1.07k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.07k | return Status::OK(); | 164 | 1.07k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 278 | Status finish(OwnedSlice* slice) override { | 162 | 278 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 278 | return Status::OK(); | 164 | 278 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.47k | Status finish(OwnedSlice* slice) override { | 162 | 1.47k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.47k | return Status::OK(); | 164 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 2.58k | Status finish(OwnedSlice* slice) override { | 162 | 2.58k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 2.58k | return Status::OK(); | 164 | 2.58k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 111 | Status finish(OwnedSlice* slice) override { | 162 | 111 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 111 | return Status::OK(); | 164 | 111 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 427 | Status finish(OwnedSlice* slice) override { | 162 | 427 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 427 | return Status::OK(); | 164 | 427 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 139 | Status finish(OwnedSlice* slice) override { | 162 | 139 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 139 | return Status::OK(); | 164 | 139 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 190 | Status finish(OwnedSlice* slice) override { | 162 | 190 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 190 | return Status::OK(); | 164 | 190 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 645 | Status finish(OwnedSlice* slice) override { | 162 | 645 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 645 | return Status::OK(); | 164 | 645 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.35k | Status finish(OwnedSlice* slice) override { | 162 | 1.35k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.35k | return Status::OK(); | 164 | 1.35k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 2.52k | Status finish(OwnedSlice* slice) override { | 162 | 2.52k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 2.52k | return Status::OK(); | 164 | 2.52k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 465 | Status finish(OwnedSlice* slice) override { | 162 | 465 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 465 | return Status::OK(); | 164 | 465 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 239 | Status finish(OwnedSlice* slice) override { | 162 | 239 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 239 | return Status::OK(); | 164 | 239 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 239 | Status finish(OwnedSlice* slice) override { | 162 | 239 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 239 | return Status::OK(); | 164 | 239 | } |
|
165 | | |
166 | 223k | Status reset() override { |
167 | 223k | RETURN_IF_CATCH_EXCEPTION({ |
168 | 223k | size_t block_size = _options.data_page_size; |
169 | 223k | _count = 0; |
170 | 223k | _raw_data_size = 0; |
171 | 223k | _data.clear(); |
172 | 223k | _data.reserve(block_size); |
173 | 223k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 223k | << "buffer must be naturally-aligned"; |
175 | 223k | _buffer.clear(); |
176 | 223k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 223k | _finished = false; |
178 | 223k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 223k | }); |
180 | 223k | return Status::OK(); |
181 | 223k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 142k | Status reset() override { | 167 | 142k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 142k | size_t block_size = _options.data_page_size; | 169 | 142k | _count = 0; | 170 | 142k | _raw_data_size = 0; | 171 | 142k | _data.clear(); | 172 | 142k | _data.reserve(block_size); | 173 | 142k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 142k | << "buffer must be naturally-aligned"; | 175 | 142k | _buffer.clear(); | 176 | 142k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 142k | _finished = false; | 178 | 142k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 142k | }); | 180 | 142k | return Status::OK(); | 181 | 142k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 13.1k | Status reset() override { | 167 | 13.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 13.1k | size_t block_size = _options.data_page_size; | 169 | 13.1k | _count = 0; | 170 | 13.1k | _raw_data_size = 0; | 171 | 13.1k | _data.clear(); | 172 | 13.1k | _data.reserve(block_size); | 173 | 13.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 13.1k | << "buffer must be naturally-aligned"; | 175 | 13.1k | _buffer.clear(); | 176 | 13.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 13.1k | _finished = false; | 178 | 13.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 13.1k | }); | 180 | 13.1k | return Status::OK(); | 181 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 1.41k | Status reset() override { | 167 | 1.41k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.41k | size_t block_size = _options.data_page_size; | 169 | 1.41k | _count = 0; | 170 | 1.41k | _raw_data_size = 0; | 171 | 1.41k | _data.clear(); | 172 | 1.41k | _data.reserve(block_size); | 173 | 1.41k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.41k | << "buffer must be naturally-aligned"; | 175 | 1.41k | _buffer.clear(); | 176 | 1.41k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.41k | _finished = false; | 178 | 1.41k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.41k | }); | 180 | 1.41k | return Status::OK(); | 181 | 1.41k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 25.8k | Status reset() override { | 167 | 25.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 25.8k | size_t block_size = _options.data_page_size; | 169 | 25.8k | _count = 0; | 170 | 25.8k | _raw_data_size = 0; | 171 | 25.8k | _data.clear(); | 172 | 25.8k | _data.reserve(block_size); | 173 | 25.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 25.8k | << "buffer must be naturally-aligned"; | 175 | 25.8k | _buffer.clear(); | 176 | 25.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 25.8k | _finished = false; | 178 | 25.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 25.8k | }); | 180 | 25.9k | return Status::OK(); | 181 | 25.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 1.65k | Status reset() override { | 167 | 1.65k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.65k | size_t block_size = _options.data_page_size; | 169 | 1.65k | _count = 0; | 170 | 1.65k | _raw_data_size = 0; | 171 | 1.65k | _data.clear(); | 172 | 1.65k | _data.reserve(block_size); | 173 | 1.65k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.65k | << "buffer must be naturally-aligned"; | 175 | 1.65k | _buffer.clear(); | 176 | 1.65k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.65k | _finished = false; | 178 | 1.65k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.65k | }); | 180 | 1.65k | return Status::OK(); | 181 | 1.65k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 15.5k | Status reset() override { | 167 | 15.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.5k | size_t block_size = _options.data_page_size; | 169 | 15.5k | _count = 0; | 170 | 15.5k | _raw_data_size = 0; | 171 | 15.5k | _data.clear(); | 172 | 15.5k | _data.reserve(block_size); | 173 | 15.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.5k | << "buffer must be naturally-aligned"; | 175 | 15.5k | _buffer.clear(); | 176 | 15.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.5k | _finished = false; | 178 | 15.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.5k | }); | 180 | 15.5k | return Status::OK(); | 181 | 15.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 1.15k | Status reset() override { | 167 | 1.15k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.15k | size_t block_size = _options.data_page_size; | 169 | 1.15k | _count = 0; | 170 | 1.15k | _raw_data_size = 0; | 171 | 1.15k | _data.clear(); | 172 | 1.15k | _data.reserve(block_size); | 173 | 1.15k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.15k | << "buffer must be naturally-aligned"; | 175 | 1.15k | _buffer.clear(); | 176 | 1.15k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.15k | _finished = false; | 178 | 1.15k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.15k | }); | 180 | 1.15k | return Status::OK(); | 181 | 1.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 1.93k | Status reset() override { | 167 | 1.93k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.93k | size_t block_size = _options.data_page_size; | 169 | 1.93k | _count = 0; | 170 | 1.93k | _raw_data_size = 0; | 171 | 1.93k | _data.clear(); | 172 | 1.93k | _data.reserve(block_size); | 173 | 1.93k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.93k | << "buffer must be naturally-aligned"; | 175 | 1.93k | _buffer.clear(); | 176 | 1.93k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.93k | _finished = false; | 178 | 1.93k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.93k | }); | 180 | 1.93k | return Status::OK(); | 181 | 1.93k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 545 | Status reset() override { | 167 | 545 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 545 | size_t block_size = _options.data_page_size; | 169 | 545 | _count = 0; | 170 | 545 | _raw_data_size = 0; | 171 | 545 | _data.clear(); | 172 | 545 | _data.reserve(block_size); | 173 | 545 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 545 | << "buffer must be naturally-aligned"; | 175 | 545 | _buffer.clear(); | 176 | 545 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 545 | _finished = false; | 178 | 545 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 545 | }); | 180 | 545 | return Status::OK(); | 181 | 545 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 2.75k | Status reset() override { | 167 | 2.75k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.75k | size_t block_size = _options.data_page_size; | 169 | 2.75k | _count = 0; | 170 | 2.75k | _raw_data_size = 0; | 171 | 2.75k | _data.clear(); | 172 | 2.75k | _data.reserve(block_size); | 173 | 2.75k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.75k | << "buffer must be naturally-aligned"; | 175 | 2.75k | _buffer.clear(); | 176 | 2.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.75k | _finished = false; | 178 | 2.75k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.75k | }); | 180 | 2.75k | return Status::OK(); | 181 | 2.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 4.85k | Status reset() override { | 167 | 4.85k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 4.85k | size_t block_size = _options.data_page_size; | 169 | 4.85k | _count = 0; | 170 | 4.85k | _raw_data_size = 0; | 171 | 4.85k | _data.clear(); | 172 | 4.85k | _data.reserve(block_size); | 173 | 4.85k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 4.85k | << "buffer must be naturally-aligned"; | 175 | 4.85k | _buffer.clear(); | 176 | 4.85k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 4.85k | _finished = false; | 178 | 4.85k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 4.85k | }); | 180 | 4.85k | return Status::OK(); | 181 | 4.85k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 290 | Status reset() override { | 167 | 290 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 290 | size_t block_size = _options.data_page_size; | 169 | 290 | _count = 0; | 170 | 290 | _raw_data_size = 0; | 171 | 290 | _data.clear(); | 172 | 290 | _data.reserve(block_size); | 173 | 290 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 290 | << "buffer must be naturally-aligned"; | 175 | 290 | _buffer.clear(); | 176 | 290 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 290 | _finished = false; | 178 | 290 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 290 | }); | 180 | 290 | return Status::OK(); | 181 | 290 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 701 | Status reset() override { | 167 | 701 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 701 | size_t block_size = _options.data_page_size; | 169 | 701 | _count = 0; | 170 | 701 | _raw_data_size = 0; | 171 | 701 | _data.clear(); | 172 | 701 | _data.reserve(block_size); | 173 | 701 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 701 | << "buffer must be naturally-aligned"; | 175 | 701 | _buffer.clear(); | 176 | 701 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 701 | _finished = false; | 178 | 701 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 701 | }); | 180 | 701 | return Status::OK(); | 181 | 701 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 279 | Status reset() override { | 167 | 279 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 279 | size_t block_size = _options.data_page_size; | 169 | 279 | _count = 0; | 170 | 279 | _raw_data_size = 0; | 171 | 279 | _data.clear(); | 172 | 279 | _data.reserve(block_size); | 173 | 279 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 279 | << "buffer must be naturally-aligned"; | 175 | 279 | _buffer.clear(); | 176 | 279 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 279 | _finished = false; | 178 | 279 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 279 | }); | 180 | 279 | return Status::OK(); | 181 | 279 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 475 | Status reset() override { | 167 | 475 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 475 | size_t block_size = _options.data_page_size; | 169 | 475 | _count = 0; | 170 | 475 | _raw_data_size = 0; | 171 | 475 | _data.clear(); | 172 | 475 | _data.reserve(block_size); | 173 | 475 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 475 | << "buffer must be naturally-aligned"; | 175 | 475 | _buffer.clear(); | 176 | 475 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 475 | _finished = false; | 178 | 475 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 475 | }); | 180 | 475 | return Status::OK(); | 181 | 475 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 1.29k | Status reset() override { | 167 | 1.29k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.29k | size_t block_size = _options.data_page_size; | 169 | 1.29k | _count = 0; | 170 | 1.29k | _raw_data_size = 0; | 171 | 1.29k | _data.clear(); | 172 | 1.29k | _data.reserve(block_size); | 173 | 1.29k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.29k | << "buffer must be naturally-aligned"; | 175 | 1.29k | _buffer.clear(); | 176 | 1.29k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.29k | _finished = false; | 178 | 1.29k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.29k | }); | 180 | 1.29k | return Status::OK(); | 181 | 1.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 2.51k | Status reset() override { | 167 | 2.51k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.51k | size_t block_size = _options.data_page_size; | 169 | 2.51k | _count = 0; | 170 | 2.51k | _raw_data_size = 0; | 171 | 2.51k | _data.clear(); | 172 | 2.51k | _data.reserve(block_size); | 173 | 2.51k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.51k | << "buffer must be naturally-aligned"; | 175 | 2.51k | _buffer.clear(); | 176 | 2.51k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.51k | _finished = false; | 178 | 2.51k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.51k | }); | 180 | 2.51k | return Status::OK(); | 181 | 2.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 4.19k | Status reset() override { | 167 | 4.19k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 4.19k | size_t block_size = _options.data_page_size; | 169 | 4.19k | _count = 0; | 170 | 4.19k | _raw_data_size = 0; | 171 | 4.19k | _data.clear(); | 172 | 4.19k | _data.reserve(block_size); | 173 | 4.19k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 4.19k | << "buffer must be naturally-aligned"; | 175 | 4.19k | _buffer.clear(); | 176 | 4.19k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 4.19k | _finished = false; | 178 | 4.19k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 4.19k | }); | 180 | 4.19k | return Status::OK(); | 181 | 4.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 1.03k | Status reset() override { | 167 | 1.03k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.03k | size_t block_size = _options.data_page_size; | 169 | 1.03k | _count = 0; | 170 | 1.03k | _raw_data_size = 0; | 171 | 1.03k | _data.clear(); | 172 | 1.03k | _data.reserve(block_size); | 173 | 1.03k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.03k | << "buffer must be naturally-aligned"; | 175 | 1.03k | _buffer.clear(); | 176 | 1.03k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.03k | _finished = false; | 178 | 1.03k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.03k | }); | 180 | 1.03k | return Status::OK(); | 181 | 1.03k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 573 | Status reset() override { | 167 | 573 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 573 | size_t block_size = _options.data_page_size; | 169 | 573 | _count = 0; | 170 | 573 | _raw_data_size = 0; | 171 | 573 | _data.clear(); | 172 | 573 | _data.reserve(block_size); | 173 | 573 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 573 | << "buffer must be naturally-aligned"; | 175 | 573 | _buffer.clear(); | 176 | 573 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 573 | _finished = false; | 178 | 573 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 573 | }); | 180 | 573 | return Status::OK(); | 181 | 573 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 573 | Status reset() override { | 167 | 573 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 573 | size_t block_size = _options.data_page_size; | 169 | 573 | _count = 0; | 170 | 573 | _raw_data_size = 0; | 171 | 573 | _data.clear(); | 172 | 573 | _data.reserve(block_size); | 173 | 573 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 573 | << "buffer must be naturally-aligned"; | 175 | 573 | _buffer.clear(); | 176 | 573 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 573 | _finished = false; | 178 | 573 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 573 | }); | 180 | 573 | return Status::OK(); | 181 | 573 | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | 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_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv 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_9FieldTypeE41EE5countEv 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 |
184 | | |
185 | 16.3k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 11.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 1.79k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 103 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 621 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 92 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 224 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 14 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 4 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 418 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 513 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 405 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 102 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 56.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 14.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6.52k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 681 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 13.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 964 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.99k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 553 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.07k | 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 | 187 | 278 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.47k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 2.58k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 111 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 427 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 139 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 190 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 645 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.35k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 2.52k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 465 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 239 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 239 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 91.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 52.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 6.57k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 730 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 690 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.58k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 601 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 852 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 267 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.28k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2.27k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 179 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 274 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 140 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 285 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 646 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.15k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.67k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 572 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 333 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 334 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 94.5k | OwnedSlice _finish(int final_size_of_type) { |
194 | 94.5k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 94.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 94.5k | int padding_elems = num_elems_after_padding - _count; |
199 | 94.5k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 2.04M | for (int i = 0; i < padding_bytes; i++) { |
201 | 1.95M | _data.push_back(0); |
202 | 1.95M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 94.5k | _buffer.resize( |
206 | 94.5k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 94.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 94.5k | int64_t bytes = |
210 | 94.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 94.5k | num_elems_after_padding, final_size_of_type, 0); |
212 | 94.5k | if (bytes < 0) [[unlikely]] { |
213 | | // This means the bitshuffle function fails. |
214 | | // Ideally, this should not happen. |
215 | 0 | warn_with_bitshuffle_error(bytes); |
216 | | // It does not matter what will be returned here, |
217 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
218 | 0 | return OwnedSlice(); |
219 | 0 | } |
220 | | // update header |
221 | 94.5k | encode_fixed32_le(&_buffer[0], _count); |
222 | 94.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 94.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 94.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 94.5k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 94.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 94.5k | return _buffer.build(); |
229 | 94.5k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 52.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 52.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 52.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 52.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 52.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 792k | for (int i = 0; i < padding_bytes; i++) { | 201 | 739k | _data.push_back(0); | 202 | 739k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 52.6k | _buffer.resize( | 206 | 52.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 52.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 52.6k | int64_t bytes = | 210 | 52.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 52.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 52.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 52.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 52.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 52.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 52.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 52.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 52.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 52.6k | return _buffer.build(); | 229 | 52.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 6.52k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.52k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.52k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.52k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.52k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 33.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 27.4k | _data.push_back(0); | 202 | 27.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.52k | _buffer.resize( | 206 | 6.52k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.52k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.52k | int64_t bytes = | 210 | 6.52k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.52k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.52k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6.52k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.52k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.52k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.52k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.52k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.52k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.52k | return _buffer.build(); | 229 | 6.52k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 681 | OwnedSlice _finish(int final_size_of_type) { | 194 | 681 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 681 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 681 | int padding_elems = num_elems_after_padding - _count; | 199 | 681 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.65k | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.97k | _data.push_back(0); | 202 | 5.97k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 681 | _buffer.resize( | 206 | 681 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 681 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 681 | int64_t bytes = | 210 | 681 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 681 | num_elems_after_padding, final_size_of_type, 0); | 212 | 681 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 681 | encode_fixed32_le(&_buffer[0], _count); | 222 | 681 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 681 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 681 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 681 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 681 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 681 | return _buffer.build(); | 229 | 681 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 13.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 13.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 13.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 13.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 13.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 372k | for (int i = 0; i < padding_bytes; i++) { | 201 | 358k | _data.push_back(0); | 202 | 358k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 13.4k | _buffer.resize( | 206 | 13.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 13.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 13.4k | int64_t bytes = | 210 | 13.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 13.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 13.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 13.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 13.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 13.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 13.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 13.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 13.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 13.4k | return _buffer.build(); | 229 | 13.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 964 | OwnedSlice _finish(int final_size_of_type) { | 194 | 964 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 964 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 964 | int padding_elems = num_elems_after_padding - _count; | 199 | 964 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 43.5k | for (int i = 0; i < padding_bytes; i++) { | 201 | 42.6k | _data.push_back(0); | 202 | 42.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 964 | _buffer.resize( | 206 | 964 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 964 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 964 | int64_t bytes = | 210 | 964 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 964 | num_elems_after_padding, final_size_of_type, 0); | 212 | 964 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 964 | encode_fixed32_le(&_buffer[0], _count); | 222 | 964 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 964 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 964 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 964 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 964 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 964 | return _buffer.build(); | 229 | 964 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 7.99k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.99k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.99k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.99k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.99k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 348k | for (int i = 0; i < padding_bytes; i++) { | 201 | 340k | _data.push_back(0); | 202 | 340k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.99k | _buffer.resize( | 206 | 7.99k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.99k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.99k | int64_t bytes = | 210 | 7.99k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.99k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.99k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.99k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.99k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.99k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.99k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.99k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.99k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.99k | return _buffer.build(); | 229 | 7.99k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 553 | OwnedSlice _finish(int final_size_of_type) { | 194 | 553 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 553 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 553 | int padding_elems = num_elems_after_padding - _count; | 199 | 553 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 8.58k | for (int i = 0; i < padding_bytes; i++) { | 201 | 8.03k | _data.push_back(0); | 202 | 8.03k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 553 | _buffer.resize( | 206 | 553 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 553 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 553 | int64_t bytes = | 210 | 553 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 553 | num_elems_after_padding, final_size_of_type, 0); | 212 | 553 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 553 | encode_fixed32_le(&_buffer[0], _count); | 222 | 553 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 553 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 553 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 553 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 553 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 553 | return _buffer.build(); | 229 | 553 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 1.07k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.07k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.07k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.07k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.07k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 26.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 25.1k | _data.push_back(0); | 202 | 25.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.07k | _buffer.resize( | 206 | 1.07k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.07k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.07k | int64_t bytes = | 210 | 1.07k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.07k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.07k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.07k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.07k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.07k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.07k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.07k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.07k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.07k | return _buffer.build(); | 229 | 1.07k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 278 | OwnedSlice _finish(int final_size_of_type) { | 194 | 278 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 278 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 278 | int padding_elems = num_elems_after_padding - _count; | 199 | 278 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.76k | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.48k | _data.push_back(0); | 202 | 3.48k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 278 | _buffer.resize( | 206 | 278 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 278 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 278 | int64_t bytes = | 210 | 278 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 278 | num_elems_after_padding, final_size_of_type, 0); | 212 | 278 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 278 | encode_fixed32_le(&_buffer[0], _count); | 222 | 278 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 278 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 278 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 278 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 278 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 278 | return _buffer.build(); | 229 | 278 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 1.47k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.47k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.47k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.47k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.47k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 21.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 19.6k | _data.push_back(0); | 202 | 19.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.47k | _buffer.resize( | 206 | 1.47k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.47k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.47k | int64_t bytes = | 210 | 1.47k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.47k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.47k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.47k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.47k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.47k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.47k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.47k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.47k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.47k | return _buffer.build(); | 229 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 2.58k | OwnedSlice _finish(int final_size_of_type) { | 194 | 2.58k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 2.58k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 2.58k | int padding_elems = num_elems_after_padding - _count; | 199 | 2.58k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 90.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 88.2k | _data.push_back(0); | 202 | 88.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 2.58k | _buffer.resize( | 206 | 2.58k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 2.58k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 2.58k | int64_t bytes = | 210 | 2.58k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 2.58k | num_elems_after_padding, final_size_of_type, 0); | 212 | 2.58k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 2.58k | encode_fixed32_le(&_buffer[0], _count); | 222 | 2.58k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 2.58k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 2.58k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 2.58k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 2.58k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 2.58k | return _buffer.build(); | 229 | 2.58k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 111 | OwnedSlice _finish(int final_size_of_type) { | 194 | 111 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 111 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 111 | int padding_elems = num_elems_after_padding - _count; | 199 | 111 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.75k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.64k | _data.push_back(0); | 202 | 4.64k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 111 | _buffer.resize( | 206 | 111 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 111 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 111 | int64_t bytes = | 210 | 111 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 111 | num_elems_after_padding, final_size_of_type, 0); | 212 | 111 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 111 | encode_fixed32_le(&_buffer[0], _count); | 222 | 111 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 111 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 111 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 111 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 111 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 111 | return _buffer.build(); | 229 | 111 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 427 | OwnedSlice _finish(int final_size_of_type) { | 194 | 427 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 427 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 427 | int padding_elems = num_elems_after_padding - _count; | 199 | 427 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 9.81k | for (int i = 0; i < padding_bytes; i++) { | 201 | 9.39k | _data.push_back(0); | 202 | 9.39k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 427 | _buffer.resize( | 206 | 427 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 427 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 427 | int64_t bytes = | 210 | 427 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 427 | num_elems_after_padding, final_size_of_type, 0); | 212 | 427 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 427 | encode_fixed32_le(&_buffer[0], _count); | 222 | 427 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 427 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 427 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 427 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 427 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 427 | return _buffer.build(); | 229 | 427 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 139 | OwnedSlice _finish(int final_size_of_type) { | 194 | 139 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 139 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 139 | int padding_elems = num_elems_after_padding - _count; | 199 | 139 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.89k | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.76k | _data.push_back(0); | 202 | 5.76k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 139 | _buffer.resize( | 206 | 139 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 139 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 139 | int64_t bytes = | 210 | 139 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 139 | num_elems_after_padding, final_size_of_type, 0); | 212 | 139 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 139 | encode_fixed32_le(&_buffer[0], _count); | 222 | 139 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 139 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 139 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 139 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 139 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 139 | return _buffer.build(); | 229 | 139 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 190 | OwnedSlice _finish(int final_size_of_type) { | 194 | 190 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 190 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 190 | int padding_elems = num_elems_after_padding - _count; | 199 | 190 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 10.8k | _data.push_back(0); | 202 | 10.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 190 | _buffer.resize( | 206 | 190 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 190 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 190 | int64_t bytes = | 210 | 190 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 190 | num_elems_after_padding, final_size_of_type, 0); | 212 | 190 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 190 | encode_fixed32_le(&_buffer[0], _count); | 222 | 190 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 190 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 190 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 190 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 190 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 190 | return _buffer.build(); | 229 | 190 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 645 | OwnedSlice _finish(int final_size_of_type) { | 194 | 645 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 645 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 645 | int padding_elems = num_elems_after_padding - _count; | 199 | 645 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 14.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 13.4k | _data.push_back(0); | 202 | 13.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 645 | _buffer.resize( | 206 | 645 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 645 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 645 | int64_t bytes = | 210 | 645 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 645 | num_elems_after_padding, final_size_of_type, 0); | 212 | 645 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 645 | encode_fixed32_le(&_buffer[0], _count); | 222 | 645 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 645 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 645 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 645 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 645 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 645 | return _buffer.build(); | 229 | 645 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 1.35k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.35k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.35k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.35k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.35k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 41.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 40.1k | _data.push_back(0); | 202 | 40.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.35k | _buffer.resize( | 206 | 1.35k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.35k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.35k | int64_t bytes = | 210 | 1.35k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.35k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.35k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.35k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.35k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.35k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.35k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.35k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.35k | return _buffer.build(); | 229 | 1.35k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 2.52k | OwnedSlice _finish(int final_size_of_type) { | 194 | 2.52k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 2.52k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 2.52k | int padding_elems = num_elems_after_padding - _count; | 199 | 2.52k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 118k | for (int i = 0; i < padding_bytes; i++) { | 201 | 115k | _data.push_back(0); | 202 | 115k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 2.52k | _buffer.resize( | 206 | 2.52k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 2.52k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 2.52k | int64_t bytes = | 210 | 2.52k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 2.52k | num_elems_after_padding, final_size_of_type, 0); | 212 | 2.52k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 2.52k | encode_fixed32_le(&_buffer[0], _count); | 222 | 2.52k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 2.52k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 2.52k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 2.52k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 2.52k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 2.52k | return _buffer.build(); | 229 | 2.52k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 465 | OwnedSlice _finish(int final_size_of_type) { | 194 | 465 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 465 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 465 | int padding_elems = num_elems_after_padding - _count; | 199 | 465 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 71.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 70.6k | _data.push_back(0); | 202 | 70.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 465 | _buffer.resize( | 206 | 465 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 465 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 465 | int64_t bytes = | 210 | 465 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 465 | num_elems_after_padding, final_size_of_type, 0); | 212 | 465 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 465 | encode_fixed32_le(&_buffer[0], _count); | 222 | 465 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 465 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 465 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 465 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 465 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 465 | return _buffer.build(); | 229 | 465 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 239 | OwnedSlice _finish(int final_size_of_type) { | 194 | 239 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 239 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 239 | int padding_elems = num_elems_after_padding - _count; | 199 | 239 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.87k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.64k | _data.push_back(0); | 202 | 4.64k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 239 | _buffer.resize( | 206 | 239 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 239 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 239 | int64_t bytes = | 210 | 239 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 239 | num_elems_after_padding, final_size_of_type, 0); | 212 | 239 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 239 | encode_fixed32_le(&_buffer[0], _count); | 222 | 239 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 239 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 239 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 239 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 239 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 239 | return _buffer.build(); | 229 | 239 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 239 | OwnedSlice _finish(int final_size_of_type) { | 194 | 239 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 239 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 239 | int padding_elems = num_elems_after_padding - _count; | 199 | 239 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 19.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 19.2k | _data.push_back(0); | 202 | 19.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 239 | _buffer.resize( | 206 | 239 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 239 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 239 | int64_t bytes = | 210 | 239 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 239 | num_elems_after_padding, final_size_of_type, 0); | 212 | 239 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 239 | encode_fixed32_le(&_buffer[0], _count); | 222 | 239 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 239 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 239 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 239 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 239 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 239 | return _buffer.build(); | 229 | 239 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 194k | int& size_of_element) { |
253 | 194k | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 194k | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 194k | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 194k | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 194k | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 194k | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 194k | switch (size_of_element) { |
271 | 17.9k | case 1: |
272 | 20.2k | case 2: |
273 | 21.7k | case 3: |
274 | 120k | case 4: |
275 | 175k | case 8: |
276 | 175k | case 12: |
277 | 194k | case 16: |
278 | 194k | case 32: |
279 | 194k | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 194k | } |
283 | 194k | return Status::OK(); |
284 | 194k | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 132k | : _data(data), |
291 | 132k | _options(options), |
292 | 132k | _parsed(false), |
293 | 132k | _num_elements(0), |
294 | 132k | _num_element_after_padding(0), |
295 | 132k | _size_of_element(0), |
296 | 132k | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 55.7k | : _data(data), | 291 | 55.7k | _options(options), | 292 | 55.7k | _parsed(false), | 293 | 55.7k | _num_elements(0), | 294 | 55.7k | _num_element_after_padding(0), | 295 | 55.7k | _size_of_element(0), | 296 | 55.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 12.7k | : _data(data), | 291 | 12.7k | _options(options), | 292 | 12.7k | _parsed(false), | 293 | 12.7k | _num_elements(0), | 294 | 12.7k | _num_element_after_padding(0), | 295 | 12.7k | _size_of_element(0), | 296 | 12.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.87k | : _data(data), | 291 | 1.87k | _options(options), | 292 | 1.87k | _parsed(false), | 293 | 1.87k | _num_elements(0), | 294 | 1.87k | _num_element_after_padding(0), | 295 | 1.87k | _size_of_element(0), | 296 | 1.87k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.6k | : _data(data), | 291 | 16.6k | _options(options), | 292 | 16.6k | _parsed(false), | 293 | 16.6k | _num_elements(0), | 294 | 16.6k | _num_element_after_padding(0), | 295 | 16.6k | _size_of_element(0), | 296 | 16.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.60k | : _data(data), | 291 | 3.60k | _options(options), | 292 | 3.60k | _parsed(false), | 293 | 3.60k | _num_elements(0), | 294 | 3.60k | _num_element_after_padding(0), | 295 | 3.60k | _size_of_element(0), | 296 | 3.60k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 6.31k | : _data(data), | 291 | 6.31k | _options(options), | 292 | 6.31k | _parsed(false), | 293 | 6.31k | _num_elements(0), | 294 | 6.31k | _num_element_after_padding(0), | 295 | 6.31k | _size_of_element(0), | 296 | 6.31k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.73k | : _data(data), | 291 | 1.73k | _options(options), | 292 | 1.73k | _parsed(false), | 293 | 1.73k | _num_elements(0), | 294 | 1.73k | _num_element_after_padding(0), | 295 | 1.73k | _size_of_element(0), | 296 | 1.73k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.95k | : _data(data), | 291 | 2.95k | _options(options), | 292 | 2.95k | _parsed(false), | 293 | 2.95k | _num_elements(0), | 294 | 2.95k | _num_element_after_padding(0), | 295 | 2.95k | _size_of_element(0), | 296 | 2.95k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.25k | : _data(data), | 291 | 1.25k | _options(options), | 292 | 1.25k | _parsed(false), | 293 | 1.25k | _num_elements(0), | 294 | 1.25k | _num_element_after_padding(0), | 295 | 1.25k | _size_of_element(0), | 296 | 1.25k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.22k | : _data(data), | 291 | 3.22k | _options(options), | 292 | 3.22k | _parsed(false), | 293 | 3.22k | _num_elements(0), | 294 | 3.22k | _num_element_after_padding(0), | 295 | 3.22k | _size_of_element(0), | 296 | 3.22k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 11.7k | : _data(data), | 291 | 11.7k | _options(options), | 292 | 11.7k | _parsed(false), | 293 | 11.7k | _num_elements(0), | 294 | 11.7k | _num_element_after_padding(0), | 295 | 11.7k | _size_of_element(0), | 296 | 11.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 221 | : _data(data), | 291 | 221 | _options(options), | 292 | 221 | _parsed(false), | 293 | 221 | _num_elements(0), | 294 | 221 | _num_element_after_padding(0), | 295 | 221 | _size_of_element(0), | 296 | 221 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.82k | : _data(data), | 291 | 1.82k | _options(options), | 292 | 1.82k | _parsed(false), | 293 | 1.82k | _num_elements(0), | 294 | 1.82k | _num_element_after_padding(0), | 295 | 1.82k | _size_of_element(0), | 296 | 1.82k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 20 | : _data(data), | 291 | 20 | _options(options), | 292 | 20 | _parsed(false), | 293 | 20 | _num_elements(0), | 294 | 20 | _num_element_after_padding(0), | 295 | 20 | _size_of_element(0), | 296 | 20 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 73 | : _data(data), | 291 | 73 | _options(options), | 292 | 73 | _parsed(false), | 293 | 73 | _num_elements(0), | 294 | 73 | _num_element_after_padding(0), | 295 | 73 | _size_of_element(0), | 296 | 73 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 136 | : _data(data), | 291 | 136 | _options(options), | 292 | 136 | _parsed(false), | 293 | 136 | _num_elements(0), | 294 | 136 | _num_element_after_padding(0), | 295 | 136 | _size_of_element(0), | 296 | 136 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 237 | : _data(data), | 291 | 237 | _options(options), | 292 | 237 | _parsed(false), | 293 | 237 | _num_elements(0), | 294 | 237 | _num_element_after_padding(0), | 295 | 237 | _size_of_element(0), | 296 | 237 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 11.4k | : _data(data), | 291 | 11.4k | _options(options), | 292 | 11.4k | _parsed(false), | 293 | 11.4k | _num_elements(0), | 294 | 11.4k | _num_element_after_padding(0), | 295 | 11.4k | _size_of_element(0), | 296 | 11.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 81 | : _data(data), | 291 | 81 | _options(options), | 292 | 81 | _parsed(false), | 293 | 81 | _num_elements(0), | 294 | 81 | _num_element_after_padding(0), | 295 | 81 | _size_of_element(0), | 296 | 81 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 92 | : _data(data), | 291 | 92 | _options(options), | 292 | 92 | _parsed(false), | 293 | 92 | _num_elements(0), | 294 | 92 | _num_element_after_padding(0), | 295 | 92 | _size_of_element(0), | 296 | 92 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 92 | : _data(data), | 291 | 92 | _options(options), | 292 | 92 | _parsed(false), | 293 | 92 | _num_elements(0), | 294 | 92 | _num_element_after_padding(0), | 295 | 92 | _size_of_element(0), | 296 | 92 | _cur_index(0) {} |
|
297 | | |
298 | 132k | Status init() override { |
299 | 132k | CHECK(!_parsed); |
300 | 132k | size_t unused; |
301 | 132k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 132k | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 132k | if (_data.size != |
305 | 132k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 0 | std::stringstream ss; |
307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 0 | return Status::InternalError(ss.str()); |
311 | 0 | } |
312 | | |
313 | | // Currently, only the UINT32 block encoder supports expanding size: |
314 | 132k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 132k | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 132k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 132k | _parsed = true; |
325 | 132k | return Status::OK(); |
326 | 132k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 55.7k | Status init() override { | 299 | 55.7k | CHECK(!_parsed); | 300 | 55.7k | size_t unused; | 301 | 55.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 55.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 55.7k | if (_data.size != | 305 | 55.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 55.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 55.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 55.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 55.7k | _parsed = true; | 325 | 55.7k | return Status::OK(); | 326 | 55.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 12.7k | Status init() override { | 299 | 12.7k | CHECK(!_parsed); | 300 | 12.7k | size_t unused; | 301 | 12.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 12.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 12.7k | if (_data.size != | 305 | 12.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 12.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 12.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 12.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 12.7k | _parsed = true; | 325 | 12.7k | return Status::OK(); | 326 | 12.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 1.87k | Status init() override { | 299 | 1.87k | CHECK(!_parsed); | 300 | 1.87k | size_t unused; | 301 | 1.87k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.87k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.87k | if (_data.size != | 305 | 1.87k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.87k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.87k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.87k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.87k | _parsed = true; | 325 | 1.87k | return Status::OK(); | 326 | 1.87k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 16.6k | Status init() override { | 299 | 16.6k | CHECK(!_parsed); | 300 | 16.6k | size_t unused; | 301 | 16.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.6k | if (_data.size != | 305 | 16.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 16.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 16.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 16.6k | _parsed = true; | 325 | 16.6k | return Status::OK(); | 326 | 16.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 3.60k | Status init() override { | 299 | 3.60k | CHECK(!_parsed); | 300 | 3.60k | size_t unused; | 301 | 3.60k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.60k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.60k | if (_data.size != | 305 | 3.60k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.60k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.60k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.60k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.60k | _parsed = true; | 325 | 3.60k | return Status::OK(); | 326 | 3.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 6.31k | Status init() override { | 299 | 6.31k | CHECK(!_parsed); | 300 | 6.31k | size_t unused; | 301 | 6.31k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 6.31k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 6.31k | if (_data.size != | 305 | 6.31k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 6.31k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 6.31k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 6.31k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 6.31k | _parsed = true; | 325 | 6.31k | return Status::OK(); | 326 | 6.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 1.73k | Status init() override { | 299 | 1.73k | CHECK(!_parsed); | 300 | 1.73k | size_t unused; | 301 | 1.73k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.73k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.73k | if (_data.size != | 305 | 1.73k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.73k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.73k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.73k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.73k | _parsed = true; | 325 | 1.73k | return Status::OK(); | 326 | 1.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 2.95k | Status init() override { | 299 | 2.95k | CHECK(!_parsed); | 300 | 2.95k | size_t unused; | 301 | 2.95k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.95k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.95k | if (_data.size != | 305 | 2.95k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.95k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.95k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.95k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.95k | _parsed = true; | 325 | 2.95k | return Status::OK(); | 326 | 2.95k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.25k | Status init() override { | 299 | 1.25k | CHECK(!_parsed); | 300 | 1.25k | size_t unused; | 301 | 1.25k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.25k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.25k | if (_data.size != | 305 | 1.25k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.25k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.25k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.25k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.25k | _parsed = true; | 325 | 1.25k | return Status::OK(); | 326 | 1.25k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 3.22k | Status init() override { | 299 | 3.22k | CHECK(!_parsed); | 300 | 3.22k | size_t unused; | 301 | 3.22k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.22k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.22k | if (_data.size != | 305 | 3.22k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.22k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.22k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.22k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.22k | _parsed = true; | 325 | 3.22k | return Status::OK(); | 326 | 3.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 11.7k | Status init() override { | 299 | 11.7k | CHECK(!_parsed); | 300 | 11.7k | size_t unused; | 301 | 11.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 11.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 11.7k | if (_data.size != | 305 | 11.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 11.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 11.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 11.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 11.7k | _parsed = true; | 325 | 11.7k | return Status::OK(); | 326 | 11.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 221 | Status init() override { | 299 | 221 | CHECK(!_parsed); | 300 | 221 | size_t unused; | 301 | 221 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 221 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 221 | if (_data.size != | 305 | 221 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 221 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 221 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 221 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 221 | _parsed = true; | 325 | 221 | return Status::OK(); | 326 | 221 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 1.82k | Status init() override { | 299 | 1.82k | CHECK(!_parsed); | 300 | 1.82k | size_t unused; | 301 | 1.82k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.82k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.82k | if (_data.size != | 305 | 1.82k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.82k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.82k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.82k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.82k | _parsed = true; | 325 | 1.82k | return Status::OK(); | 326 | 1.82k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 20 | Status init() override { | 299 | 20 | CHECK(!_parsed); | 300 | 20 | size_t unused; | 301 | 20 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 20 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 20 | if (_data.size != | 305 | 20 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 20 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 20 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 20 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 20 | _parsed = true; | 325 | 20 | return Status::OK(); | 326 | 20 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 73 | Status init() override { | 299 | 73 | CHECK(!_parsed); | 300 | 73 | size_t unused; | 301 | 73 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 73 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 73 | if (_data.size != | 305 | 73 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 73 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 73 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 73 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 73 | _parsed = true; | 325 | 73 | return Status::OK(); | 326 | 73 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 136 | Status init() override { | 299 | 136 | CHECK(!_parsed); | 300 | 136 | size_t unused; | 301 | 136 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 136 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 136 | if (_data.size != | 305 | 136 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 136 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 136 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 136 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 136 | _parsed = true; | 325 | 136 | return Status::OK(); | 326 | 136 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 237 | Status init() override { | 299 | 237 | CHECK(!_parsed); | 300 | 237 | size_t unused; | 301 | 237 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 237 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 237 | if (_data.size != | 305 | 237 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 237 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 237 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 237 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 237 | _parsed = true; | 325 | 237 | return Status::OK(); | 326 | 237 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 11.4k | Status init() override { | 299 | 11.4k | CHECK(!_parsed); | 300 | 11.4k | size_t unused; | 301 | 11.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 11.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 11.4k | if (_data.size != | 305 | 11.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 11.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 11.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 11.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 11.4k | _parsed = true; | 325 | 11.4k | return Status::OK(); | 326 | 11.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 81 | Status init() override { | 299 | 81 | CHECK(!_parsed); | 300 | 81 | size_t unused; | 301 | 81 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 81 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 81 | if (_data.size != | 305 | 81 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 81 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 81 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 81 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 81 | _parsed = true; | 325 | 81 | return Status::OK(); | 326 | 81 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 92 | Status init() override { | 299 | 92 | CHECK(!_parsed); | 300 | 92 | size_t unused; | 301 | 92 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 92 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 92 | if (_data.size != | 305 | 92 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 92 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 92 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 92 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 92 | _parsed = true; | 325 | 92 | return Status::OK(); | 326 | 92 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 92 | Status init() override { | 299 | 92 | CHECK(!_parsed); | 300 | 92 | size_t unused; | 301 | 92 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 92 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 92 | if (_data.size != | 305 | 92 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 92 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 92 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 92 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 92 | _parsed = true; | 325 | 92 | return Status::OK(); | 326 | 92 | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 3.24M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 3.24M | if (_num_elements == 0) [[unlikely]] { |
337 | 261 | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 261 | } |
342 | | |
343 | 3.24M | DCHECK_LE(pos, _num_elements); |
344 | 3.24M | _cur_index = pos; |
345 | 3.24M | return Status::OK(); |
346 | 3.24M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.31M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.31M | if (_num_elements == 0) [[unlikely]] { | 337 | 236 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 236 | } | 342 | | | 343 | 1.31M | DCHECK_LE(pos, _num_elements); | 344 | 1.31M | _cur_index = pos; | 345 | 1.31M | return Status::OK(); | 346 | 1.31M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 222k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 222k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 222k | DCHECK_LE(pos, _num_elements); | 344 | 222k | _cur_index = pos; | 345 | 222k | return Status::OK(); | 346 | 222k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 203k | Status seek_to_position_in_page(size_t pos) override { | 335 | 203k | DCHECK(_parsed) << "Must call init()"; | 336 | 203k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 203k | DCHECK_LE(pos, _num_elements); | 344 | 203k | _cur_index = pos; | 345 | 203k | return Status::OK(); | 346 | 203k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 219k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 219k | if (_num_elements == 0) [[unlikely]] { | 337 | 25 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 25 | } | 342 | | | 343 | 219k | DCHECK_LE(pos, _num_elements); | 344 | 219k | _cur_index = pos; | 345 | 219k | return Status::OK(); | 346 | 219k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 110k | Status seek_to_position_in_page(size_t pos) override { | 335 | 110k | DCHECK(_parsed) << "Must call init()"; | 336 | 110k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 110k | DCHECK_LE(pos, _num_elements); | 344 | 110k | _cur_index = pos; | 345 | 110k | return Status::OK(); | 346 | 110k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.11k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.11k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.11k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.11k | DCHECK_LE(pos, _num_elements); | 344 | 1.11k | _cur_index = pos; | 345 | 1.11k | return Status::OK(); | 346 | 1.11k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 209k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 209k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 209k | DCHECK_LE(pos, _num_elements); | 344 | 209k | _cur_index = pos; | 345 | 209k | return Status::OK(); | 346 | 209k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 182k | Status seek_to_position_in_page(size_t pos) override { | 335 | 182k | DCHECK(_parsed) << "Must call init()"; | 336 | 182k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 182k | DCHECK_LE(pos, _num_elements); | 344 | 182k | _cur_index = pos; | 345 | 182k | return Status::OK(); | 346 | 182k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 194k | Status seek_to_position_in_page(size_t pos) override { | 335 | 194k | DCHECK(_parsed) << "Must call init()"; | 336 | 194k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 194k | DCHECK_LE(pos, _num_elements); | 344 | 194k | _cur_index = pos; | 345 | 194k | return Status::OK(); | 346 | 194k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 211k | Status seek_to_position_in_page(size_t pos) override { | 335 | 211k | DCHECK(_parsed) << "Must call init()"; | 336 | 211k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 211k | DCHECK_LE(pos, _num_elements); | 344 | 211k | _cur_index = pos; | 345 | 211k | return Status::OK(); | 346 | 211k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 70.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 70.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 70.8k | DCHECK_LE(pos, _num_elements); | 344 | 70.8k | _cur_index = pos; | 345 | 70.8k | return Status::OK(); | 346 | 70.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 50 | Status seek_to_position_in_page(size_t pos) override { | 335 | 50 | DCHECK(_parsed) << "Must call init()"; | 336 | 50 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 50 | DCHECK_LE(pos, _num_elements); | 344 | 50 | _cur_index = pos; | 345 | 50 | return Status::OK(); | 346 | 50 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 185k | Status seek_to_position_in_page(size_t pos) override { | 335 | 185k | DCHECK(_parsed) << "Must call init()"; | 336 | 185k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 185k | DCHECK_LE(pos, _num_elements); | 344 | 185k | _cur_index = pos; | 345 | 185k | return Status::OK(); | 346 | 185k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1 | Status seek_to_position_in_page(size_t pos) override { | 335 | 1 | DCHECK(_parsed) << "Must call init()"; | 336 | 1 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1 | DCHECK_LE(pos, _num_elements); | 344 | 1 | _cur_index = pos; | 345 | 1 | return Status::OK(); | 346 | 1 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 3 | Status seek_to_position_in_page(size_t pos) override { | 335 | 3 | DCHECK(_parsed) << "Must call init()"; | 336 | 3 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 3 | DCHECK_LE(pos, _num_elements); | 344 | 3 | _cur_index = pos; | 345 | 3 | return Status::OK(); | 346 | 3 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 20 | Status seek_to_position_in_page(size_t pos) override { | 335 | 20 | DCHECK(_parsed) << "Must call init()"; | 336 | 20 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 20 | DCHECK_LE(pos, _num_elements); | 344 | 20 | _cur_index = pos; | 345 | 20 | return Status::OK(); | 346 | 20 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 116k | Status seek_to_position_in_page(size_t pos) override { | 335 | 116k | DCHECK(_parsed) << "Must call init()"; | 336 | 116k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 116k | DCHECK_LE(pos, _num_elements); | 344 | 116k | _cur_index = pos; | 345 | 116k | return Status::OK(); | 346 | 116k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 4 | Status seek_to_position_in_page(size_t pos) override { | 335 | 4 | DCHECK(_parsed) << "Must call init()"; | 336 | 4 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 4 | DCHECK_LE(pos, _num_elements); | 344 | 4 | _cur_index = pos; | 345 | 4 | return Status::OK(); | 346 | 4 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6 | Status seek_to_position_in_page(size_t pos) override { | 335 | 6 | DCHECK(_parsed) << "Must call init()"; | 336 | 6 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 6 | DCHECK_LE(pos, _num_elements); | 344 | 6 | _cur_index = pos; | 345 | 6 | return Status::OK(); | 346 | 6 | } |
|
347 | | |
348 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | |
|
351 | 0 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 0 | size_t left = 0; |
356 | 0 | size_t right = _num_elements; |
357 | |
|
358 | 0 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 0 | while (left < right) { |
364 | 0 | size_t mid = left + (right - left) / 2; |
365 | 0 | mid_value = get_data(mid); |
366 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 0 | left = mid + 1; |
368 | 0 | } else { |
369 | 0 | right = mid; |
370 | 0 | } |
371 | 0 | } |
372 | 0 | if (left >= _num_elements) { |
373 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 0 | } |
375 | 0 | void* find_value = get_data(left); |
376 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 0 | *exact_match = true; |
378 | 0 | } else { |
379 | 0 | *exact_match = false; |
380 | 0 | } |
381 | |
|
382 | 0 | _cur_index = left; |
383 | 0 | return Status::OK(); |
384 | 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_9FieldTypeE9EE22seek_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_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_9FieldTypeE41EE22seek_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 |
385 | | |
386 | | template <bool forward_index = true> |
387 | 152k | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 152k | DCHECK(_parsed); |
389 | 152k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 152k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 152k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 152k | *n = max_fetch; |
398 | 152k | if constexpr (forward_index) { |
399 | 146k | _cur_index += max_fetch; |
400 | 146k | } |
401 | | |
402 | 152k | return Status::OK(); |
403 | 152k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 31.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 31.2k | DCHECK(_parsed); | 389 | 31.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 31.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 31.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 31.2k | *n = max_fetch; | 398 | 31.2k | if constexpr (forward_index) { | 399 | 31.2k | _cur_index += max_fetch; | 400 | 31.2k | } | 401 | | | 402 | 31.2k | return Status::OK(); | 403 | 31.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 33.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 33.0k | DCHECK(_parsed); | 389 | 33.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 33.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 33.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 33.0k | *n = max_fetch; | 398 | 33.0k | if constexpr (forward_index) { | 399 | 33.0k | _cur_index += max_fetch; | 400 | 33.0k | } | 401 | | | 402 | 33.0k | return Status::OK(); | 403 | 33.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.32k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.32k | DCHECK(_parsed); | 389 | 1.32k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.32k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.32k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.32k | *n = max_fetch; | 398 | 1.32k | if constexpr (forward_index) { | 399 | 1.32k | _cur_index += max_fetch; | 400 | 1.32k | } | 401 | | | 402 | 1.32k | return Status::OK(); | 403 | 1.32k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 23.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 23.2k | DCHECK(_parsed); | 389 | 23.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 23.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 23.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 23.2k | *n = max_fetch; | 398 | 23.2k | if constexpr (forward_index) { | 399 | 23.2k | _cur_index += max_fetch; | 400 | 23.2k | } | 401 | | | 402 | 23.2k | return Status::OK(); | 403 | 23.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.59k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.59k | DCHECK(_parsed); | 389 | 1.59k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.59k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.59k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.59k | *n = max_fetch; | 398 | 1.59k | if constexpr (forward_index) { | 399 | 1.59k | _cur_index += max_fetch; | 400 | 1.59k | } | 401 | | | 402 | 1.59k | return Status::OK(); | 403 | 1.59k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 6.75k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 6.75k | DCHECK(_parsed); | 389 | 6.75k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 6.75k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 6.75k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 6.75k | *n = max_fetch; | 398 | 6.75k | if constexpr (forward_index) { | 399 | 6.75k | _cur_index += max_fetch; | 400 | 6.75k | } | 401 | | | 402 | 6.75k | return Status::OK(); | 403 | 6.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 6.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 6.12k | DCHECK(_parsed); | 389 | 6.12k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 6.12k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 6.12k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 6.12k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 6.12k | return Status::OK(); | 403 | 6.12k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 970 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 970 | DCHECK(_parsed); | 389 | 970 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 970 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 970 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 970 | *n = max_fetch; | 398 | 970 | if constexpr (forward_index) { | 399 | 970 | _cur_index += max_fetch; | 400 | 970 | } | 401 | | | 402 | 970 | return Status::OK(); | 403 | 970 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.62k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.62k | DCHECK(_parsed); | 389 | 1.62k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.62k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.62k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.62k | *n = max_fetch; | 398 | 1.62k | if constexpr (forward_index) { | 399 | 1.62k | _cur_index += max_fetch; | 400 | 1.62k | } | 401 | | | 402 | 1.62k | return Status::OK(); | 403 | 1.62k | } |
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 | 387 | 643 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 643 | DCHECK(_parsed); | 389 | 643 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 643 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 643 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 643 | *n = max_fetch; | 398 | 643 | if constexpr (forward_index) { | 399 | 643 | _cur_index += max_fetch; | 400 | 643 | } | 401 | | | 402 | 643 | return Status::OK(); | 403 | 643 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 4.49k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 4.49k | DCHECK(_parsed); | 389 | 4.49k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 4.49k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 4.49k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 4.49k | *n = max_fetch; | 398 | 4.49k | if constexpr (forward_index) { | 399 | 4.49k | _cur_index += max_fetch; | 400 | 4.49k | } | 401 | | | 402 | 4.49k | return Status::OK(); | 403 | 4.49k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 33.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 33.0k | DCHECK(_parsed); | 389 | 33.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 33.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 33.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 33.0k | *n = max_fetch; | 398 | 33.0k | if constexpr (forward_index) { | 399 | 33.0k | _cur_index += max_fetch; | 400 | 33.0k | } | 401 | | | 402 | 33.0k | return Status::OK(); | 403 | 33.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 89 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 89 | DCHECK(_parsed); | 389 | 89 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 89 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 89 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 89 | *n = max_fetch; | 398 | 89 | if constexpr (forward_index) { | 399 | 89 | _cur_index += max_fetch; | 400 | 89 | } | 401 | | | 402 | 89 | return Status::OK(); | 403 | 89 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 887 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 887 | DCHECK(_parsed); | 389 | 887 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 887 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 887 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 887 | *n = max_fetch; | 398 | 887 | if constexpr (forward_index) { | 399 | 887 | _cur_index += max_fetch; | 400 | 887 | } | 401 | | | 402 | 887 | return Status::OK(); | 403 | 887 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 20 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20 | DCHECK(_parsed); | 389 | 20 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 20 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20 | *n = max_fetch; | 398 | 20 | if constexpr (forward_index) { | 399 | 20 | _cur_index += max_fetch; | 400 | 20 | } | 401 | | | 402 | 20 | return Status::OK(); | 403 | 20 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 67 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 67 | DCHECK(_parsed); | 389 | 67 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 67 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 67 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 67 | *n = max_fetch; | 398 | 67 | if constexpr (forward_index) { | 399 | 67 | _cur_index += max_fetch; | 400 | 67 | } | 401 | | | 402 | 67 | return Status::OK(); | 403 | 67 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 38 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 38 | DCHECK(_parsed); | 389 | 38 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 38 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 38 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 38 | *n = max_fetch; | 398 | 38 | if constexpr (forward_index) { | 399 | 38 | _cur_index += max_fetch; | 400 | 38 | } | 401 | | | 402 | 38 | return Status::OK(); | 403 | 38 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 186 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 186 | DCHECK(_parsed); | 389 | 186 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 186 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 186 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 186 | *n = max_fetch; | 398 | 186 | if constexpr (forward_index) { | 399 | 186 | _cur_index += max_fetch; | 400 | 186 | } | 401 | | | 402 | 186 | return Status::OK(); | 403 | 186 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 6.61k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 6.61k | DCHECK(_parsed); | 389 | 6.61k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 6.61k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 6.61k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 6.61k | *n = max_fetch; | 398 | 6.61k | if constexpr (forward_index) { | 399 | 6.61k | _cur_index += max_fetch; | 400 | 6.61k | } | 401 | | | 402 | 6.61k | return Status::OK(); | 403 | 6.61k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 77 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 77 | DCHECK(_parsed); | 389 | 77 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 77 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 77 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 77 | *n = max_fetch; | 398 | 77 | if constexpr (forward_index) { | 399 | 77 | _cur_index += max_fetch; | 400 | 77 | } | 401 | | | 402 | 77 | return Status::OK(); | 403 | 77 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 76 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 76 | DCHECK(_parsed); | 389 | 76 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 76 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 76 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 76 | *n = max_fetch; | 398 | 76 | if constexpr (forward_index) { | 399 | 76 | _cur_index += max_fetch; | 400 | 76 | } | 401 | | | 402 | 76 | return Status::OK(); | 403 | 76 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 76 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 76 | DCHECK(_parsed); | 389 | 76 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 76 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 76 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 76 | *n = max_fetch; | 398 | 76 | if constexpr (forward_index) { | 399 | 76 | _cur_index += max_fetch; | 400 | 76 | } | 401 | | | 402 | 76 | return Status::OK(); | 403 | 76 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 146k | 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 | 405 | 31.2k | 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 | 405 | 33.0k | 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 | 405 | 1.32k | 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 | 405 | 23.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.59k | 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 | 405 | 6.75k | 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_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 970 | 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 | 405 | 1.62k | 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 | 405 | 643 | 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 | 405 | 4.49k | 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 | 405 | 33.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 89 | 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 | 405 | 887 | 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 | 405 | 20 | 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 | 405 | 67 | 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 | 405 | 38 | 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 | 405 | 186 | 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 | 405 | 6.61k | 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 | 405 | 77 | 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 | 405 | 76 | 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 | 405 | 76 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
406 | | |
407 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
408 | 130k | MutableColumnPtr& dst) override { |
409 | 130k | DCHECK(_parsed); |
410 | 130k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 130k | auto total = *n; |
416 | 130k | auto read_count = 0; |
417 | 130k | _buffer.resize(total); |
418 | 43.4M | for (size_t i = 0; i < total; ++i) { |
419 | 43.3M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 43.3M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 3.25k | break; |
422 | 3.25k | } |
423 | | |
424 | 43.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 43.3M | } |
426 | | |
427 | 130k | if (LIKELY(read_count > 0)) { |
428 | 130k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 130k | } |
430 | | |
431 | 130k | *n = read_count; |
432 | 130k | return Status::OK(); |
433 | 130k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.76k | MutableColumnPtr& dst) override { | 409 | 7.76k | DCHECK(_parsed); | 410 | 7.76k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.76k | auto total = *n; | 416 | 7.76k | auto read_count = 0; | 417 | 7.76k | _buffer.resize(total); | 418 | 5.81M | for (size_t i = 0; i < total; ++i) { | 419 | 5.80M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 5.80M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 39 | break; | 422 | 39 | } | 423 | | | 424 | 5.80M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 5.80M | } | 426 | | | 427 | 7.76k | if (LIKELY(read_count > 0)) { | 428 | 7.76k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.76k | } | 430 | | | 431 | 7.76k | *n = read_count; | 432 | 7.76k | return Status::OK(); | 433 | 7.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.75k | MutableColumnPtr& dst) override { | 409 | 2.75k | DCHECK(_parsed); | 410 | 2.75k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.75k | auto total = *n; | 416 | 2.75k | auto read_count = 0; | 417 | 2.75k | _buffer.resize(total); | 418 | 1.49M | for (size_t i = 0; i < total; ++i) { | 419 | 1.49M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.49M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.49M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.49M | } | 426 | | | 427 | 2.75k | if (LIKELY(read_count > 0)) { | 428 | 2.75k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.75k | } | 430 | | | 431 | 2.75k | *n = read_count; | 432 | 2.75k | return Status::OK(); | 433 | 2.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.40k | MutableColumnPtr& dst) override { | 409 | 1.40k | DCHECK(_parsed); | 410 | 1.40k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.40k | auto total = *n; | 416 | 1.40k | auto read_count = 0; | 417 | 1.40k | _buffer.resize(total); | 418 | 606k | for (size_t i = 0; i < total; ++i) { | 419 | 604k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 604k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 13 | break; | 422 | 13 | } | 423 | | | 424 | 604k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 604k | } | 426 | | | 427 | 1.40k | if (LIKELY(read_count > 0)) { | 428 | 1.40k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.40k | } | 430 | | | 431 | 1.40k | *n = read_count; | 432 | 1.40k | return Status::OK(); | 433 | 1.40k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 94.0k | MutableColumnPtr& dst) override { | 409 | 94.0k | DCHECK(_parsed); | 410 | 94.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 94.0k | auto total = *n; | 416 | 94.0k | auto read_count = 0; | 417 | 94.0k | _buffer.resize(total); | 418 | 13.1M | for (size_t i = 0; i < total; ++i) { | 419 | 13.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.0M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.02k | break; | 422 | 1.02k | } | 423 | | | 424 | 13.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.0M | } | 426 | | | 427 | 94.0k | if (LIKELY(read_count > 0)) { | 428 | 94.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 94.0k | } | 430 | | | 431 | 94.0k | *n = read_count; | 432 | 94.0k | return Status::OK(); | 433 | 94.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.34k | MutableColumnPtr& dst) override { | 409 | 2.34k | DCHECK(_parsed); | 410 | 2.34k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.34k | auto total = *n; | 416 | 2.34k | auto read_count = 0; | 417 | 2.34k | _buffer.resize(total); | 418 | 937k | for (size_t i = 0; i < total; ++i) { | 419 | 935k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 935k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 572 | break; | 422 | 572 | } | 423 | | | 424 | 935k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 935k | } | 426 | | | 427 | 2.34k | if (LIKELY(read_count > 0)) { | 428 | 2.34k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.34k | } | 430 | | | 431 | 2.34k | *n = read_count; | 432 | 2.34k | return Status::OK(); | 433 | 2.34k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.74k | MutableColumnPtr& dst) override { | 409 | 2.74k | DCHECK(_parsed); | 410 | 2.74k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.74k | auto total = *n; | 416 | 2.74k | auto read_count = 0; | 417 | 2.74k | _buffer.resize(total); | 418 | 288k | for (size_t i = 0; i < total; ++i) { | 419 | 285k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 285k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 285k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 285k | } | 426 | | | 427 | 2.74k | if (LIKELY(read_count > 0)) { | 428 | 2.74k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.74k | } | 430 | | | 431 | 2.74k | *n = read_count; | 432 | 2.74k | return Status::OK(); | 433 | 2.74k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.53k | MutableColumnPtr& dst) override { | 409 | 1.53k | DCHECK(_parsed); | 410 | 1.53k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.53k | auto total = *n; | 416 | 1.53k | auto read_count = 0; | 417 | 1.53k | _buffer.resize(total); | 418 | 1.10M | for (size_t i = 0; i < total; ++i) { | 419 | 1.10M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.10M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 30 | break; | 422 | 30 | } | 423 | | | 424 | 1.10M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.10M | } | 426 | | | 427 | 1.53k | if (LIKELY(read_count > 0)) { | 428 | 1.53k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.53k | } | 430 | | | 431 | 1.53k | *n = read_count; | 432 | 1.53k | return Status::OK(); | 433 | 1.53k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2.22k | MutableColumnPtr& dst) override { | 409 | 2.22k | DCHECK(_parsed); | 410 | 2.22k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2.22k | auto total = *n; | 416 | 2.22k | auto read_count = 0; | 417 | 2.22k | _buffer.resize(total); | 418 | 1.00M | for (size_t i = 0; i < total; ++i) { | 419 | 1.00M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.00M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 368 | break; | 422 | 368 | } | 423 | | | 424 | 1.00M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.00M | } | 426 | | | 427 | 2.22k | if (LIKELY(read_count > 0)) { | 428 | 2.22k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2.22k | } | 430 | | | 431 | 2.22k | *n = read_count; | 432 | 2.22k | return Status::OK(); | 433 | 2.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.09k | MutableColumnPtr& dst) override { | 409 | 1.09k | DCHECK(_parsed); | 410 | 1.09k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.09k | auto total = *n; | 416 | 1.09k | auto read_count = 0; | 417 | 1.09k | _buffer.resize(total); | 418 | 503k | for (size_t i = 0; i < total; ++i) { | 419 | 502k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 502k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 12 | break; | 422 | 12 | } | 423 | | | 424 | 502k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 502k | } | 426 | | | 427 | 1.09k | if (LIKELY(read_count > 0)) { | 428 | 1.09k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.09k | } | 430 | | | 431 | 1.09k | *n = read_count; | 432 | 1.09k | return Status::OK(); | 433 | 1.09k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.77k | MutableColumnPtr& dst) override { | 409 | 1.77k | DCHECK(_parsed); | 410 | 1.77k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.77k | auto total = *n; | 416 | 1.77k | auto read_count = 0; | 417 | 1.77k | _buffer.resize(total); | 418 | 726k | for (size_t i = 0; i < total; ++i) { | 419 | 724k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 724k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 29 | break; | 422 | 29 | } | 423 | | | 424 | 724k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 724k | } | 426 | | | 427 | 1.77k | if (LIKELY(read_count > 0)) { | 428 | 1.77k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.77k | } | 430 | | | 431 | 1.77k | *n = read_count; | 432 | 1.77k | return Status::OK(); | 433 | 1.77k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.33k | MutableColumnPtr& dst) override { | 409 | 5.33k | DCHECK(_parsed); | 410 | 5.33k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.33k | auto total = *n; | 416 | 5.33k | auto read_count = 0; | 417 | 5.33k | _buffer.resize(total); | 418 | 9.06M | for (size_t i = 0; i < total; ++i) { | 419 | 9.06M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.06M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 196 | break; | 422 | 196 | } | 423 | | | 424 | 9.06M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.06M | } | 426 | | | 427 | 5.33k | if (LIKELY(read_count > 0)) { | 428 | 5.33k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.33k | } | 430 | | | 431 | 5.33k | *n = read_count; | 432 | 5.33k | return Status::OK(); | 433 | 5.33k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 128 | MutableColumnPtr& dst) override { | 409 | 128 | DCHECK(_parsed); | 410 | 128 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 128 | auto total = *n; | 416 | 128 | auto read_count = 0; | 417 | 128 | _buffer.resize(total); | 418 | 448 | for (size_t i = 0; i < total; ++i) { | 419 | 320 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 320 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 320 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 320 | } | 426 | | | 427 | 128 | if (LIKELY(read_count > 0)) { | 428 | 128 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 128 | } | 430 | | | 431 | 128 | *n = read_count; | 432 | 128 | return Status::OK(); | 433 | 128 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.44k | MutableColumnPtr& dst) override { | 409 | 1.44k | DCHECK(_parsed); | 410 | 1.44k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.44k | auto total = *n; | 416 | 1.44k | auto read_count = 0; | 417 | 1.44k | _buffer.resize(total); | 418 | 505k | for (size_t i = 0; i < total; ++i) { | 419 | 504k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 504k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 239 | break; | 422 | 239 | } | 423 | | | 424 | 504k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 504k | } | 426 | | | 427 | 1.44k | if (LIKELY(read_count > 0)) { | 428 | 1.44k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.44k | } | 430 | | | 431 | 1.44k | *n = read_count; | 432 | 1.44k | return Status::OK(); | 433 | 1.44k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 2 | MutableColumnPtr& dst) override { | 409 | 2 | DCHECK(_parsed); | 410 | 2 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 2 | auto total = *n; | 416 | 2 | auto read_count = 0; | 417 | 2 | _buffer.resize(total); | 418 | 4 | for (size_t i = 0; i < total; ++i) { | 419 | 2 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2 | } | 426 | | | 427 | 2 | if (LIKELY(read_count > 0)) { | 428 | 2 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 2 | } | 430 | | | 431 | 2 | *n = read_count; | 432 | 2 | return Status::OK(); | 433 | 2 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 24 | MutableColumnPtr& dst) override { | 409 | 24 | DCHECK(_parsed); | 410 | 24 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 24 | auto total = *n; | 416 | 24 | auto read_count = 0; | 417 | 24 | _buffer.resize(total); | 418 | 50 | for (size_t i = 0; i < total; ++i) { | 419 | 26 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 26 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 26 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 26 | } | 426 | | | 427 | 24 | if (LIKELY(read_count > 0)) { | 428 | 24 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 24 | } | 430 | | | 431 | 24 | *n = read_count; | 432 | 24 | return Status::OK(); | 433 | 24 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 52 | MutableColumnPtr& dst) override { | 409 | 52 | DCHECK(_parsed); | 410 | 52 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 52 | auto total = *n; | 416 | 52 | auto read_count = 0; | 417 | 52 | _buffer.resize(total); | 418 | 111 | for (size_t i = 0; i < total; ++i) { | 419 | 59 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 59 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 59 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 59 | } | 426 | | | 427 | 52 | if (LIKELY(read_count > 0)) { | 428 | 52 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 52 | } | 430 | | | 431 | 52 | *n = read_count; | 432 | 52 | return Status::OK(); | 433 | 52 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.59k | MutableColumnPtr& dst) override { | 409 | 5.59k | DCHECK(_parsed); | 410 | 5.59k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.59k | auto total = *n; | 416 | 5.59k | auto read_count = 0; | 417 | 5.59k | _buffer.resize(total); | 418 | 8.29M | for (size_t i = 0; i < total; ++i) { | 419 | 8.29M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.29M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 725 | break; | 422 | 725 | } | 423 | | | 424 | 8.28M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.28M | } | 426 | | | 427 | 5.59k | if (LIKELY(read_count > 0)) { | 428 | 5.59k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.59k | } | 430 | | | 431 | 5.59k | *n = read_count; | 432 | 5.59k | return Status::OK(); | 433 | 5.59k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 16 | MutableColumnPtr& dst) override { | 409 | 16 | DCHECK(_parsed); | 410 | 16 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 16 | auto total = *n; | 416 | 16 | auto read_count = 0; | 417 | 16 | _buffer.resize(total); | 418 | 97 | for (size_t i = 0; i < total; ++i) { | 419 | 81 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 81 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 81 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 81 | } | 426 | | | 427 | 16 | if (LIKELY(read_count > 0)) { | 428 | 16 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 16 | } | 430 | | | 431 | 16 | *n = read_count; | 432 | 16 | return Status::OK(); | 433 | 16 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 16 | MutableColumnPtr& dst) override { | 409 | 16 | DCHECK(_parsed); | 410 | 16 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 16 | auto total = *n; | 416 | 16 | auto read_count = 0; | 417 | 16 | _buffer.resize(total); | 418 | 92 | for (size_t i = 0; i < total; ++i) { | 419 | 76 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 76 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 76 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 76 | } | 426 | | | 427 | 16 | if (LIKELY(read_count > 0)) { | 428 | 16 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 16 | } | 430 | | | 431 | 16 | *n = read_count; | 432 | 16 | return Status::OK(); | 433 | 16 | } |
|
434 | | |
435 | 6.12k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 6.12k | return next_batch<false>(n, dst); |
437 | 6.12k | } 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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 6.12k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 6.12k | return next_batch<false>(n, dst); | 437 | 6.12k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_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_9FieldTypeE41EE15peek_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 |
438 | | |
439 | 4 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | 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_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv 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_9FieldTypeE41EE5countEv 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 |
440 | | |
441 | 3.71M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.77M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 203k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 202k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 287k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 108k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 208k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 181k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 193k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 208k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 43.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 34 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 184k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 1 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 73 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 4 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 113k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 9 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 12 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 44.0M | char* get_data(size_t index) const { |
444 | 44.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 44.0M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 6.34M | char* get_data(size_t index) const { | 444 | 6.34M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.34M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.53M | char* get_data(size_t index) const { | 444 | 1.53M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.53M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 606k | char* get_data(size_t index) const { | 444 | 606k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 606k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 13.0M | char* get_data(size_t index) const { | 444 | 13.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 13.0M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 937k | char* get_data(size_t index) const { | 444 | 937k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 937k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 298k | char* get_data(size_t index) const { | 444 | 298k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 298k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.10M | char* get_data(size_t index) const { | 444 | 1.10M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.10M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.00M | char* get_data(size_t index) const { | 444 | 1.00M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.00M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 503k | char* get_data(size_t index) const { | 444 | 503k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 503k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 728k | char* get_data(size_t index) const { | 444 | 728k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 728k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.09M | char* get_data(size_t index) const { | 444 | 9.09M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.09M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 409 | char* get_data(size_t index) const { | 444 | 409 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 409 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 504k | char* get_data(size_t index) const { | 444 | 504k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 504k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 20 | char* get_data(size_t index) const { | 444 | 20 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 69 | char* get_data(size_t index) const { | 444 | 69 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 69 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 64 | char* get_data(size_t index) const { | 444 | 64 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 64 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 245 | char* get_data(size_t index) const { | 444 | 245 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 245 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.29M | char* get_data(size_t index) const { | 444 | 8.29M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.29M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 77 | char* get_data(size_t index) const { | 444 | 77 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 77 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 157 | char* get_data(size_t index) const { | 444 | 157 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 157 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 152 | char* get_data(size_t index) const { | 444 | 152 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 152 | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |