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 | 860k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 422k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 54.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.16k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 157k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 10.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 63.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 11.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 13.9k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 136 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 36.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 235 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 136 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.54k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 11.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 14.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 958 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 716 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 590 | Status init() override { return reset(); } |
|
96 | | |
97 | 160M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 159M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 55.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 8.05k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 344k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 12.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 65.2k | 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 | 11.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 15.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 143 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 49.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 43.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 1 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 289 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 45 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 4.99k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 25.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 15.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.16k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 646 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 542 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.35M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.35M | return add_internal<false>(vals, count); |
101 | 1.35M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 697k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 697k | return add_internal<false>(vals, count); | 101 | 697k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 55.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 55.6k | return add_internal<false>(vals, count); | 101 | 55.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 8.05k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 8.05k | return add_internal<false>(vals, count); | 101 | 8.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 344k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 344k | return add_internal<false>(vals, count); | 101 | 344k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 12.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.4k | return add_internal<false>(vals, count); | 101 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 65.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 65.2k | return add_internal<false>(vals, count); | 101 | 65.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 11.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.3k | return add_internal<false>(vals, count); | 101 | 11.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 15.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 15.8k | return add_internal<false>(vals, count); | 101 | 15.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 143 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 143 | return add_internal<false>(vals, count); | 101 | 143 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 49.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 49.2k | return add_internal<false>(vals, count); | 101 | 49.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 43.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 43.0k | return add_internal<false>(vals, count); | 101 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 1 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1 | return add_internal<false>(vals, count); | 101 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 289 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 289 | return add_internal<false>(vals, count); | 101 | 289 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7 | return add_internal<false>(vals, count); | 101 | 7 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 45 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45 | return add_internal<false>(vals, count); | 101 | 45 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 4.99k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 4.99k | return add_internal<false>(vals, count); | 101 | 4.99k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 25.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 25.6k | return add_internal<false>(vals, count); | 101 | 25.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 15.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 15.5k | return add_internal<false>(vals, count); | 101 | 15.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.16k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.16k | return add_internal<false>(vals, count); | 101 | 1.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 646 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 646 | return add_internal<false>(vals, count); | 101 | 646 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 542 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 542 | return add_internal<false>(vals, count); | 101 | 542 | } |
|
102 | | |
103 | 157M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 157M | return add_internal<true>(vals, count); |
105 | 157M | } |
106 | | |
107 | | template <bool single> |
108 | 157M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 157M | DCHECK(!_finished); |
110 | 157M | 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 | 157M | uint32_t to_add = cast_set<UInt32>( |
126 | 157M | 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 | 157M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 157M | 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 | 157M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 159M | _count += to_add; |
134 | 159M | _remain_element_capacity -= to_add; |
135 | 159M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 159M | *num_written = to_add; |
138 | 159M | 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 | 158M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 158M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 158M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 158M | 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 | 158M | } |
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 | 159M | return Status::OK(); |
159 | 157M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 697k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 697k | DCHECK(!_finished); | 110 | 697k | 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 | 697k | uint32_t to_add = cast_set<UInt32>( | 126 | 697k | 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 | 697k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 697k | 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 | 697k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 697k | _count += to_add; | 134 | 697k | _remain_element_capacity -= to_add; | 135 | 697k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 697k | *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 | 697k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 697k | return Status::OK(); | 159 | 697k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 156M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 156M | DCHECK(!_finished); | 110 | 156M | 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 | 156M | uint32_t to_add = cast_set<UInt32>( | 126 | 156M | 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 | 156M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 156M | 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 | 156M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 158M | _count += to_add; | 134 | 158M | _remain_element_capacity -= to_add; | 135 | 158M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 158M | *num_written = to_add; | 138 | 158M | 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 | 158M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 158M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 158M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 158M | 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 | 158M | } | 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 | 158M | return Status::OK(); | 159 | 156M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 55.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 55.6k | DCHECK(!_finished); | 110 | 55.6k | 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 | 55.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 55.6k | 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 | 55.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 55.6k | 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 | 55.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 55.6k | _count += to_add; | 134 | 55.6k | _remain_element_capacity -= to_add; | 135 | 55.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 55.6k | *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 | 55.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 55.6k | return Status::OK(); | 159 | 55.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 8.05k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 8.05k | DCHECK(!_finished); | 110 | 8.05k | 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.05k | uint32_t to_add = cast_set<UInt32>( | 126 | 8.05k | 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.05k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 8.05k | 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.05k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 8.05k | _count += to_add; | 134 | 8.05k | _remain_element_capacity -= to_add; | 135 | 8.05k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 8.05k | *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.05k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 8.05k | return Status::OK(); | 159 | 8.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 344k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 344k | DCHECK(!_finished); | 110 | 344k | 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 | 344k | uint32_t to_add = cast_set<UInt32>( | 126 | 344k | 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 | 344k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 344k | 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 | 344k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 344k | _count += to_add; | 134 | 344k | _remain_element_capacity -= to_add; | 135 | 344k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 344k | *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 | 344k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 344k | return Status::OK(); | 159 | 344k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.4k | DCHECK(!_finished); | 110 | 12.4k | 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 | 12.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.4k | 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 | 12.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.4k | 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 | 12.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.4k | _count += to_add; | 134 | 12.4k | _remain_element_capacity -= to_add; | 135 | 12.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.4k | *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 | 12.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.4k | return Status::OK(); | 159 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 65.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 65.2k | DCHECK(!_finished); | 110 | 65.2k | 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 | 65.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 65.2k | 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 | 65.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 65.2k | 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 | 65.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 65.2k | _count += to_add; | 134 | 65.2k | _remain_element_capacity -= to_add; | 135 | 65.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 65.2k | *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 | 65.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 65.2k | return Status::OK(); | 159 | 65.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.3k | DCHECK(!_finished); | 110 | 11.3k | 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 | 11.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.3k | 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 | 11.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.3k | 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 | 11.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.3k | _count += to_add; | 134 | 11.3k | _remain_element_capacity -= to_add; | 135 | 11.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.3k | *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 | 11.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.3k | return Status::OK(); | 159 | 11.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 15.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 15.8k | DCHECK(!_finished); | 110 | 15.8k | 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 | 15.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 15.8k | 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 | 15.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 15.8k | 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 | 15.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 15.8k | _count += to_add; | 134 | 15.8k | _remain_element_capacity -= to_add; | 135 | 15.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 15.8k | *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 | 15.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 15.8k | return Status::OK(); | 159 | 15.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 143 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 143 | DCHECK(!_finished); | 110 | 143 | 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 | 143 | uint32_t to_add = cast_set<UInt32>( | 126 | 143 | 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 | 143 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 143 | 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 | 143 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 143 | _count += to_add; | 134 | 143 | _remain_element_capacity -= to_add; | 135 | 143 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 143 | *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 | 143 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 143 | return Status::OK(); | 159 | 143 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 49.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 49.2k | DCHECK(!_finished); | 110 | 49.2k | 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 | 49.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 49.2k | 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 | 49.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 49.2k | 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 | 49.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 49.2k | _count += to_add; | 134 | 49.2k | _remain_element_capacity -= to_add; | 135 | 49.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 49.2k | *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 | 49.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 49.2k | return Status::OK(); | 159 | 49.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 43.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 43.0k | DCHECK(!_finished); | 110 | 43.0k | 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 | 43.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 43.0k | 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 | 43.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 43.0k | 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 | 43.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 43.0k | _count += to_add; | 134 | 43.0k | _remain_element_capacity -= to_add; | 135 | 43.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 43.0k | *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 | 43.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 43.0k | return Status::OK(); | 159 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1 | DCHECK(!_finished); | 110 | 1 | 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 | uint32_t to_add = cast_set<UInt32>( | 126 | 1 | 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 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1 | 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 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1 | _count += to_add; | 134 | 1 | _remain_element_capacity -= to_add; | 135 | 1 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1 | *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 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1 | return Status::OK(); | 159 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 289 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 289 | DCHECK(!_finished); | 110 | 289 | 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 | 289 | uint32_t to_add = cast_set<UInt32>( | 126 | 289 | 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 | 289 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 289 | 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 | 289 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 289 | _count += to_add; | 134 | 289 | _remain_element_capacity -= to_add; | 135 | 289 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 289 | *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 | 289 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 289 | return Status::OK(); | 159 | 289 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7 | DCHECK(!_finished); | 110 | 7 | 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 | 7 | uint32_t to_add = cast_set<UInt32>( | 126 | 7 | 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 | 7 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7 | 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 | 7 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7 | _count += to_add; | 134 | 7 | _remain_element_capacity -= to_add; | 135 | 7 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7 | *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 | 7 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7 | return Status::OK(); | 159 | 7 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45 | DCHECK(!_finished); | 110 | 45 | 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 | uint32_t to_add = cast_set<UInt32>( | 126 | 45 | 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 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45 | 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 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45 | _count += to_add; | 134 | 45 | _remain_element_capacity -= to_add; | 135 | 45 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45 | *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 | 45 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45 | return Status::OK(); | 159 | 45 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 4.99k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 4.99k | DCHECK(!_finished); | 110 | 4.99k | 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 | 4.99k | uint32_t to_add = cast_set<UInt32>( | 126 | 4.99k | 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 | 4.99k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 4.99k | 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 | 4.99k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 4.99k | _count += to_add; | 134 | 4.99k | _remain_element_capacity -= to_add; | 135 | 4.99k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 4.99k | *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 | 4.99k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 4.99k | return Status::OK(); | 159 | 4.99k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 25.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 25.6k | DCHECK(!_finished); | 110 | 25.6k | 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 | 25.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 25.6k | 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 | 25.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 25.6k | 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 | 25.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 25.6k | _count += to_add; | 134 | 25.6k | _remain_element_capacity -= to_add; | 135 | 25.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 25.6k | *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 | 25.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 25.6k | return Status::OK(); | 159 | 25.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 15.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 15.5k | DCHECK(!_finished); | 110 | 15.5k | 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 | 15.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 15.5k | 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 | 15.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 15.5k | 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 | 15.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 15.5k | _count += to_add; | 134 | 15.5k | _remain_element_capacity -= to_add; | 135 | 15.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 15.5k | *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 | 15.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 15.5k | return Status::OK(); | 159 | 15.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.16k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.16k | DCHECK(!_finished); | 110 | 1.16k | 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.16k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.16k | 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.16k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.16k | 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.16k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.16k | _count += to_add; | 134 | 1.16k | _remain_element_capacity -= to_add; | 135 | 1.16k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.16k | *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.16k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.16k | return Status::OK(); | 159 | 1.16k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 646 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 646 | DCHECK(!_finished); | 110 | 646 | 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 | 646 | uint32_t to_add = cast_set<UInt32>( | 126 | 646 | 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 | 646 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 646 | 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 | 646 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 646 | _count += to_add; | 134 | 646 | _remain_element_capacity -= to_add; | 135 | 646 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 646 | *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 | 646 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 646 | return Status::OK(); | 159 | 646 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 542 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 542 | DCHECK(!_finished); | 110 | 542 | 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 | 542 | uint32_t to_add = cast_set<UInt32>( | 126 | 542 | 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 | 542 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 542 | 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 | 542 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 542 | _count += to_add; | 134 | 542 | _remain_element_capacity -= to_add; | 135 | 542 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 542 | *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 | 542 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 542 | return Status::OK(); | 159 | 542 | } |
|
160 | | |
161 | 854k | Status finish(OwnedSlice* slice) override { |
162 | 854k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 855k | return Status::OK(); |
164 | 854k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 407k | Status finish(OwnedSlice* slice) override { | 162 | 407k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 407k | return Status::OK(); | 164 | 407k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 53.8k | Status finish(OwnedSlice* slice) override { | 162 | 53.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 53.8k | return Status::OK(); | 164 | 53.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.77k | Status finish(OwnedSlice* slice) override { | 162 | 7.77k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.77k | return Status::OK(); | 164 | 7.77k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 160k | Status finish(OwnedSlice* slice) override { | 162 | 160k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 160k | return Status::OK(); | 164 | 160k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.0k | Status finish(OwnedSlice* slice) override { | 162 | 10.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.0k | return Status::OK(); | 164 | 10.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 63.9k | Status finish(OwnedSlice* slice) override { | 162 | 63.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 63.9k | return Status::OK(); | 164 | 63.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.9k | Status finish(OwnedSlice* slice) override { | 162 | 10.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.9k | return Status::OK(); | 164 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 13.8k | Status finish(OwnedSlice* slice) override { | 162 | 13.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 13.8k | return Status::OK(); | 164 | 13.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 148 | Status finish(OwnedSlice* slice) override { | 162 | 148 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 148 | return Status::OK(); | 164 | 148 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 37.1k | Status finish(OwnedSlice* slice) override { | 162 | 37.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 37.1k | return Status::OK(); | 164 | 37.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.0k | Status finish(OwnedSlice* slice) override { | 162 | 43.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.0k | return Status::OK(); | 164 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1 | Status finish(OwnedSlice* slice) override { | 162 | 1 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1 | return Status::OK(); | 164 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 389 | Status finish(OwnedSlice* slice) override { | 162 | 389 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 389 | return Status::OK(); | 164 | 389 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7 | Status finish(OwnedSlice* slice) override { | 162 | 7 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7 | return Status::OK(); | 164 | 7 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 49 | Status finish(OwnedSlice* slice) override { | 162 | 49 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 49 | return Status::OK(); | 164 | 49 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.54k | Status finish(OwnedSlice* slice) override { | 162 | 9.54k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.54k | return Status::OK(); | 164 | 9.54k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.1k | Status finish(OwnedSlice* slice) override { | 162 | 19.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.1k | return Status::OK(); | 164 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 14.8k | Status finish(OwnedSlice* slice) override { | 162 | 14.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 14.8k | return Status::OK(); | 164 | 14.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 861 | Status finish(OwnedSlice* slice) override { | 162 | 861 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 861 | return Status::OK(); | 164 | 861 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 629 | Status finish(OwnedSlice* slice) override { | 162 | 629 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 629 | return Status::OK(); | 164 | 629 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 508 | Status finish(OwnedSlice* slice) override { | 162 | 508 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 509 | return Status::OK(); | 164 | 508 | } |
|
165 | | |
166 | 2.04M | Status reset() override { |
167 | 2.04M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 2.04M | size_t block_size = _options.data_page_size; |
169 | 2.04M | _count = 0; |
170 | 2.04M | _raw_data_size = 0; |
171 | 2.04M | _data.clear(); |
172 | 2.04M | _data.reserve(block_size); |
173 | 2.04M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 2.04M | << "buffer must be naturally-aligned"; |
175 | 2.04M | _buffer.clear(); |
176 | 2.04M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 2.04M | _finished = false; |
178 | 2.04M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 2.04M | }); |
180 | 2.05M | return Status::OK(); |
181 | 2.04M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.16M | Status reset() override { | 167 | 1.16M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.16M | size_t block_size = _options.data_page_size; | 169 | 1.16M | _count = 0; | 170 | 1.16M | _raw_data_size = 0; | 171 | 1.16M | _data.clear(); | 172 | 1.16M | _data.reserve(block_size); | 173 | 1.16M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.16M | << "buffer must be naturally-aligned"; | 175 | 1.16M | _buffer.clear(); | 176 | 1.16M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.16M | _finished = false; | 178 | 1.16M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.16M | }); | 180 | 1.16M | return Status::OK(); | 181 | 1.16M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 108k | Status reset() override { | 167 | 108k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 108k | size_t block_size = _options.data_page_size; | 169 | 108k | _count = 0; | 170 | 108k | _raw_data_size = 0; | 171 | 108k | _data.clear(); | 172 | 108k | _data.reserve(block_size); | 173 | 108k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 108k | << "buffer must be naturally-aligned"; | 175 | 108k | _buffer.clear(); | 176 | 108k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 108k | _finished = false; | 178 | 108k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 108k | }); | 180 | 108k | return Status::OK(); | 181 | 108k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 15.9k | Status reset() override { | 167 | 15.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.9k | size_t block_size = _options.data_page_size; | 169 | 15.9k | _count = 0; | 170 | 15.9k | _raw_data_size = 0; | 171 | 15.9k | _data.clear(); | 172 | 15.9k | _data.reserve(block_size); | 173 | 15.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.9k | << "buffer must be naturally-aligned"; | 175 | 15.9k | _buffer.clear(); | 176 | 15.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.9k | _finished = false; | 178 | 15.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.9k | }); | 180 | 15.9k | return Status::OK(); | 181 | 15.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 317k | Status reset() override { | 167 | 317k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 317k | size_t block_size = _options.data_page_size; | 169 | 317k | _count = 0; | 170 | 317k | _raw_data_size = 0; | 171 | 317k | _data.clear(); | 172 | 317k | _data.reserve(block_size); | 173 | 317k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 317k | << "buffer must be naturally-aligned"; | 175 | 317k | _buffer.clear(); | 176 | 317k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 317k | _finished = false; | 178 | 317k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 317k | }); | 180 | 318k | return Status::OK(); | 181 | 317k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 20.1k | Status reset() override { | 167 | 20.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 20.1k | size_t block_size = _options.data_page_size; | 169 | 20.1k | _count = 0; | 170 | 20.1k | _raw_data_size = 0; | 171 | 20.1k | _data.clear(); | 172 | 20.1k | _data.reserve(block_size); | 173 | 20.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 20.1k | << "buffer must be naturally-aligned"; | 175 | 20.1k | _buffer.clear(); | 176 | 20.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 20.1k | _finished = false; | 178 | 20.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 20.1k | }); | 180 | 20.2k | return Status::OK(); | 181 | 20.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 127k | Status reset() override { | 167 | 127k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 127k | size_t block_size = _options.data_page_size; | 169 | 127k | _count = 0; | 170 | 127k | _raw_data_size = 0; | 171 | 127k | _data.clear(); | 172 | 127k | _data.reserve(block_size); | 173 | 127k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 127k | << "buffer must be naturally-aligned"; | 175 | 127k | _buffer.clear(); | 176 | 127k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 127k | _finished = false; | 178 | 127k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 127k | }); | 180 | 127k | return Status::OK(); | 181 | 127k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 22.6k | Status reset() override { | 167 | 22.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 22.6k | size_t block_size = _options.data_page_size; | 169 | 22.6k | _count = 0; | 170 | 22.6k | _raw_data_size = 0; | 171 | 22.6k | _data.clear(); | 172 | 22.6k | _data.reserve(block_size); | 173 | 22.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 22.6k | << "buffer must be naturally-aligned"; | 175 | 22.6k | _buffer.clear(); | 176 | 22.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 22.6k | _finished = false; | 178 | 22.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 22.6k | }); | 180 | 22.6k | return Status::OK(); | 181 | 22.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 27.8k | Status reset() override { | 167 | 27.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 27.8k | size_t block_size = _options.data_page_size; | 169 | 27.8k | _count = 0; | 170 | 27.8k | _raw_data_size = 0; | 171 | 27.8k | _data.clear(); | 172 | 27.8k | _data.reserve(block_size); | 173 | 27.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 27.8k | << "buffer must be naturally-aligned"; | 175 | 27.8k | _buffer.clear(); | 176 | 27.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 27.8k | _finished = false; | 178 | 27.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 27.8k | }); | 180 | 27.8k | return Status::OK(); | 181 | 27.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 284 | Status reset() override { | 167 | 284 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 284 | size_t block_size = _options.data_page_size; | 169 | 284 | _count = 0; | 170 | 284 | _raw_data_size = 0; | 171 | 284 | _data.clear(); | 172 | 284 | _data.reserve(block_size); | 173 | 284 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 284 | << "buffer must be naturally-aligned"; | 175 | 284 | _buffer.clear(); | 176 | 284 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 284 | _finished = false; | 178 | 284 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 284 | }); | 180 | 284 | return Status::OK(); | 181 | 284 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 73.1k | Status reset() override { | 167 | 73.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 73.1k | size_t block_size = _options.data_page_size; | 169 | 73.1k | _count = 0; | 170 | 73.1k | _raw_data_size = 0; | 171 | 73.1k | _data.clear(); | 172 | 73.1k | _data.reserve(block_size); | 173 | 73.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 73.1k | << "buffer must be naturally-aligned"; | 175 | 73.1k | _buffer.clear(); | 176 | 73.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 73.1k | _finished = false; | 178 | 73.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 73.1k | }); | 180 | 73.2k | return Status::OK(); | 181 | 73.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.0k | Status reset() override { | 167 | 87.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.0k | size_t block_size = _options.data_page_size; | 169 | 87.0k | _count = 0; | 170 | 87.0k | _raw_data_size = 0; | 171 | 87.0k | _data.clear(); | 172 | 87.0k | _data.reserve(block_size); | 173 | 87.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.0k | << "buffer must be naturally-aligned"; | 175 | 87.0k | _buffer.clear(); | 176 | 87.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.0k | _finished = false; | 178 | 87.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.0k | }); | 180 | 87.2k | return Status::OK(); | 181 | 87.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 2 | Status reset() override { | 167 | 2 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2 | size_t block_size = _options.data_page_size; | 169 | 2 | _count = 0; | 170 | 2 | _raw_data_size = 0; | 171 | 2 | _data.clear(); | 172 | 2 | _data.reserve(block_size); | 173 | 2 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2 | << "buffer must be naturally-aligned"; | 175 | 2 | _buffer.clear(); | 176 | 2 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2 | _finished = false; | 178 | 2 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2 | }); | 180 | 2 | return Status::OK(); | 181 | 2 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 624 | Status reset() override { | 167 | 624 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 624 | size_t block_size = _options.data_page_size; | 169 | 624 | _count = 0; | 170 | 624 | _raw_data_size = 0; | 171 | 624 | _data.clear(); | 172 | 624 | _data.reserve(block_size); | 173 | 624 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 624 | << "buffer must be naturally-aligned"; | 175 | 624 | _buffer.clear(); | 176 | 624 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 624 | _finished = false; | 178 | 624 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 624 | }); | 180 | 624 | return Status::OK(); | 181 | 624 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 14 | Status reset() override { | 167 | 14 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 14 | size_t block_size = _options.data_page_size; | 169 | 14 | _count = 0; | 170 | 14 | _raw_data_size = 0; | 171 | 14 | _data.clear(); | 172 | 14 | _data.reserve(block_size); | 173 | 14 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 14 | << "buffer must be naturally-aligned"; | 175 | 14 | _buffer.clear(); | 176 | 14 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 14 | _finished = false; | 178 | 14 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 14 | }); | 180 | 14 | return Status::OK(); | 181 | 14 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 185 | Status reset() override { | 167 | 185 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 185 | size_t block_size = _options.data_page_size; | 169 | 185 | _count = 0; | 170 | 185 | _raw_data_size = 0; | 171 | 185 | _data.clear(); | 172 | 185 | _data.reserve(block_size); | 173 | 185 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 185 | << "buffer must be naturally-aligned"; | 175 | 185 | _buffer.clear(); | 176 | 185 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 185 | _finished = false; | 178 | 185 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 185 | }); | 180 | 185 | return Status::OK(); | 181 | 185 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.0k | Status reset() override { | 167 | 19.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.0k | size_t block_size = _options.data_page_size; | 169 | 19.0k | _count = 0; | 170 | 19.0k | _raw_data_size = 0; | 171 | 19.0k | _data.clear(); | 172 | 19.0k | _data.reserve(block_size); | 173 | 19.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.0k | << "buffer must be naturally-aligned"; | 175 | 19.0k | _buffer.clear(); | 176 | 19.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.0k | _finished = false; | 178 | 19.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.0k | }); | 180 | 19.1k | return Status::OK(); | 181 | 19.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.1k | Status reset() override { | 167 | 31.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.1k | size_t block_size = _options.data_page_size; | 169 | 31.1k | _count = 0; | 170 | 31.1k | _raw_data_size = 0; | 171 | 31.1k | _data.clear(); | 172 | 31.1k | _data.reserve(block_size); | 173 | 31.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.1k | << "buffer must be naturally-aligned"; | 175 | 31.1k | _buffer.clear(); | 176 | 31.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.1k | _finished = false; | 178 | 31.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.1k | }); | 180 | 31.1k | return Status::OK(); | 181 | 31.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 29.7k | Status reset() override { | 167 | 29.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 29.7k | size_t block_size = _options.data_page_size; | 169 | 29.7k | _count = 0; | 170 | 29.7k | _raw_data_size = 0; | 171 | 29.7k | _data.clear(); | 172 | 29.7k | _data.reserve(block_size); | 173 | 29.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 29.7k | << "buffer must be naturally-aligned"; | 175 | 29.7k | _buffer.clear(); | 176 | 29.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 29.7k | _finished = false; | 178 | 29.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 29.7k | }); | 180 | 29.8k | return Status::OK(); | 181 | 29.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 1.81k | Status reset() override { | 167 | 1.81k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.81k | size_t block_size = _options.data_page_size; | 169 | 1.81k | _count = 0; | 170 | 1.81k | _raw_data_size = 0; | 171 | 1.81k | _data.clear(); | 172 | 1.81k | _data.reserve(block_size); | 173 | 1.81k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.81k | << "buffer must be naturally-aligned"; | 175 | 1.81k | _buffer.clear(); | 176 | 1.81k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.81k | _finished = false; | 178 | 1.81k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.81k | }); | 180 | 1.81k | return Status::OK(); | 181 | 1.81k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.34k | Status reset() override { | 167 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.34k | size_t block_size = _options.data_page_size; | 169 | 1.34k | _count = 0; | 170 | 1.34k | _raw_data_size = 0; | 171 | 1.34k | _data.clear(); | 172 | 1.34k | _data.reserve(block_size); | 173 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.34k | << "buffer must be naturally-aligned"; | 175 | 1.34k | _buffer.clear(); | 176 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.34k | _finished = false; | 178 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.34k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.09k | Status reset() override { | 167 | 1.09k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.09k | size_t block_size = _options.data_page_size; | 169 | 1.09k | _count = 0; | 170 | 1.09k | _raw_data_size = 0; | 171 | 1.09k | _data.clear(); | 172 | 1.09k | _data.reserve(block_size); | 173 | 1.09k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.09k | << "buffer must be naturally-aligned"; | 175 | 1.09k | _buffer.clear(); | 176 | 1.09k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.09k | _finished = false; | 178 | 1.09k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.09k | }); | 180 | 1.10k | return Status::OK(); | 181 | 1.09k | } |
|
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 | 120k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 66.0k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 19.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 942 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 21.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.14k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 2.52k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 735 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 816 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.82k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.80k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 13 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 178 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 337 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.18k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 26 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 539k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 91.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 53.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.77k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 160k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 63.9k | 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 | 10.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 13.8k | 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 | 148 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 37.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 389 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 49 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.54k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 14.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 861 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 629 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 509 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 859k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 421k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 54.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.17k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 157k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 63.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 13.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 136 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 36.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 235 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 136 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.54k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 14.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 958 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 716 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 589 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 854k | OwnedSlice _finish(int final_size_of_type) { |
194 | 854k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 854k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 854k | int padding_elems = num_elems_after_padding - _count; |
199 | 854k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 25.7M | for (int i = 0; i < padding_bytes; i++) { |
201 | 24.8M | _data.push_back(0); |
202 | 24.8M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 854k | _buffer.resize( |
206 | 854k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 854k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 854k | int64_t bytes = |
210 | 854k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 854k | num_elems_after_padding, final_size_of_type, 0); |
212 | 854k | 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 | 854k | encode_fixed32_le(&_buffer[0], _count); |
222 | 854k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 854k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 854k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 854k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 854k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 854k | return _buffer.build(); |
229 | 854k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 407k | OwnedSlice _finish(int final_size_of_type) { | 194 | 407k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 407k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 407k | int padding_elems = num_elems_after_padding - _count; | 199 | 407k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 8.26M | for (int i = 0; i < padding_bytes; i++) { | 201 | 7.85M | _data.push_back(0); | 202 | 7.85M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 407k | _buffer.resize( | 206 | 407k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 407k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 407k | int64_t bytes = | 210 | 407k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 407k | num_elems_after_padding, final_size_of_type, 0); | 212 | 407k | 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 | 407k | encode_fixed32_le(&_buffer[0], _count); | 222 | 407k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 407k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 407k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 407k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 407k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 407k | return _buffer.build(); | 229 | 407k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 53.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 53.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 53.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 53.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 53.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 355k | for (int i = 0; i < padding_bytes; i++) { | 201 | 301k | _data.push_back(0); | 202 | 301k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 53.8k | _buffer.resize( | 206 | 53.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 53.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 53.8k | int64_t bytes = | 210 | 53.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 53.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 53.8k | 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 | 53.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 53.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 53.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 53.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 53.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 53.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 53.8k | return _buffer.build(); | 229 | 53.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 7.77k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.77k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.77k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.77k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.77k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 85.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 77.3k | _data.push_back(0); | 202 | 77.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.77k | _buffer.resize( | 206 | 7.77k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.77k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.77k | int64_t bytes = | 210 | 7.77k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.77k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.77k | 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.77k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.77k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.77k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.77k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.77k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.77k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.77k | return _buffer.build(); | 229 | 7.77k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 160k | OwnedSlice _finish(int final_size_of_type) { | 194 | 160k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 160k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 160k | int padding_elems = num_elems_after_padding - _count; | 199 | 160k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 7.81M | for (int i = 0; i < padding_bytes; i++) { | 201 | 7.65M | _data.push_back(0); | 202 | 7.65M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 160k | _buffer.resize( | 206 | 160k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 160k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 160k | int64_t bytes = | 210 | 160k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 160k | num_elems_after_padding, final_size_of_type, 0); | 212 | 160k | 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 | 160k | encode_fixed32_le(&_buffer[0], _count); | 222 | 160k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 160k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 160k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 160k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 160k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 160k | return _buffer.build(); | 229 | 160k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 10.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 731k | for (int i = 0; i < padding_bytes; i++) { | 201 | 721k | _data.push_back(0); | 202 | 721k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.0k | _buffer.resize( | 206 | 10.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.0k | int64_t bytes = | 210 | 10.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.0k | 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 | 10.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.0k | return _buffer.build(); | 229 | 10.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 63.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 63.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 63.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 63.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 63.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.14M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.07M | _data.push_back(0); | 202 | 3.07M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 63.9k | _buffer.resize( | 206 | 63.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 63.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 63.9k | int64_t bytes = | 210 | 63.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 63.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 63.9k | 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 | 63.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 63.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 63.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 63.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 63.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 63.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 63.9k | return _buffer.build(); | 229 | 63.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 10.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 243k | for (int i = 0; i < padding_bytes; i++) { | 201 | 232k | _data.push_back(0); | 202 | 232k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.9k | _buffer.resize( | 206 | 10.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.9k | int64_t bytes = | 210 | 10.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.9k | 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 | 10.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.9k | return _buffer.build(); | 229 | 10.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 13.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 13.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 13.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 13.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 13.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 589k | for (int i = 0; i < padding_bytes; i++) { | 201 | 575k | _data.push_back(0); | 202 | 575k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 13.8k | _buffer.resize( | 206 | 13.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 13.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 13.8k | int64_t bytes = | 210 | 13.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 13.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 13.8k | 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.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 13.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 13.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 13.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 13.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 13.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 13.8k | return _buffer.build(); | 229 | 13.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 148 | OwnedSlice _finish(int final_size_of_type) { | 194 | 148 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 148 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 148 | int padding_elems = num_elems_after_padding - _count; | 199 | 148 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.66k | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.51k | _data.push_back(0); | 202 | 1.51k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 148 | _buffer.resize( | 206 | 148 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 148 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 148 | int64_t bytes = | 210 | 148 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 148 | num_elems_after_padding, final_size_of_type, 0); | 212 | 148 | 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 | 148 | encode_fixed32_le(&_buffer[0], _count); | 222 | 148 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 148 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 148 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 148 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 148 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 148 | return _buffer.build(); | 229 | 148 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 37.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 37.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 37.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 37.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 37.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 800k | for (int i = 0; i < padding_bytes; i++) { | 201 | 763k | _data.push_back(0); | 202 | 763k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 37.1k | _buffer.resize( | 206 | 37.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 37.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 37.1k | int64_t bytes = | 210 | 37.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 37.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 37.1k | 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 | 37.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 37.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 37.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 37.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 37.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 37.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 37.1k | return _buffer.build(); | 229 | 37.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.85M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.81M | _data.push_back(0); | 202 | 1.81M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.0k | _buffer.resize( | 206 | 43.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.0k | int64_t bytes = | 210 | 43.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.0k | 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 | 43.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.0k | return _buffer.build(); | 229 | 43.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 1 | OwnedSlice _finish(int final_size_of_type) { | 194 | 1 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1 | int padding_elems = num_elems_after_padding - _count; | 199 | 1 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 9 | for (int i = 0; i < padding_bytes; i++) { | 201 | 8 | _data.push_back(0); | 202 | 8 | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1 | _buffer.resize( | 206 | 1 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1 | int64_t bytes = | 210 | 1 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1 | num_elems_after_padding, final_size_of_type, 0); | 212 | 1 | 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 | encode_fixed32_le(&_buffer[0], _count); | 222 | 1 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1 | return _buffer.build(); | 229 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 389 | OwnedSlice _finish(int final_size_of_type) { | 194 | 389 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 389 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 389 | int padding_elems = num_elems_after_padding - _count; | 199 | 389 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.34k | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.96k | _data.push_back(0); | 202 | 3.96k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 389 | _buffer.resize( | 206 | 389 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 389 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 389 | int64_t bytes = | 210 | 389 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 389 | num_elems_after_padding, final_size_of_type, 0); | 212 | 389 | 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 | 389 | encode_fixed32_le(&_buffer[0], _count); | 222 | 389 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 389 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 389 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 389 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 389 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 389 | return _buffer.build(); | 229 | 389 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7 | OwnedSlice _finish(int final_size_of_type) { | 194 | 7 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7 | int padding_elems = num_elems_after_padding - _count; | 199 | 7 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 359 | for (int i = 0; i < padding_bytes; i++) { | 201 | 352 | _data.push_back(0); | 202 | 352 | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7 | _buffer.resize( | 206 | 7 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7 | int64_t bytes = | 210 | 7 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7 | num_elems_after_padding, final_size_of_type, 0); | 212 | 7 | 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 | encode_fixed32_le(&_buffer[0], _count); | 222 | 7 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7 | return _buffer.build(); | 229 | 7 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 49 | OwnedSlice _finish(int final_size_of_type) { | 194 | 49 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 49 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 49 | int padding_elems = num_elems_after_padding - _count; | 199 | 49 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 2.23k | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.18k | _data.push_back(0); | 202 | 2.18k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 49 | _buffer.resize( | 206 | 49 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 49 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 49 | int64_t bytes = | 210 | 49 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 49 | num_elems_after_padding, final_size_of_type, 0); | 212 | 49 | 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 | 49 | encode_fixed32_le(&_buffer[0], _count); | 222 | 49 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 49 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 49 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 49 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 49 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 49 | return _buffer.build(); | 229 | 49 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.54k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.54k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.54k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.54k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.54k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 115k | for (int i = 0; i < padding_bytes; i++) { | 201 | 105k | _data.push_back(0); | 202 | 105k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.54k | _buffer.resize( | 206 | 9.54k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.54k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.54k | int64_t bytes = | 210 | 9.54k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.54k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.54k | 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 | 9.54k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.54k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.54k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.54k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.54k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.54k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.54k | return _buffer.build(); | 229 | 9.54k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 19.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 487k | for (int i = 0; i < padding_bytes; i++) { | 201 | 468k | _data.push_back(0); | 202 | 468k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.1k | _buffer.resize( | 206 | 19.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.1k | int64_t bytes = | 210 | 19.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.1k | 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 | 19.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.1k | return _buffer.build(); | 229 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 14.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 14.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 14.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 14.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 14.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.07M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.05M | _data.push_back(0); | 202 | 1.05M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 14.8k | _buffer.resize( | 206 | 14.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 14.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 14.8k | int64_t bytes = | 210 | 14.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 14.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 14.8k | 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 | 14.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 14.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 14.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 14.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 14.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 14.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 14.8k | return _buffer.build(); | 229 | 14.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 861 | OwnedSlice _finish(int final_size_of_type) { | 194 | 861 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 861 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 861 | int padding_elems = num_elems_after_padding - _count; | 199 | 861 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 124k | for (int i = 0; i < padding_bytes; i++) { | 201 | 123k | _data.push_back(0); | 202 | 123k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 861 | _buffer.resize( | 206 | 861 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 861 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 861 | int64_t bytes = | 210 | 861 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 861 | num_elems_after_padding, final_size_of_type, 0); | 212 | 861 | 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 | 861 | encode_fixed32_le(&_buffer[0], _count); | 222 | 861 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 861 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 861 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 861 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 861 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 861 | return _buffer.build(); | 229 | 861 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 629 | OwnedSlice _finish(int final_size_of_type) { | 194 | 629 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 629 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 629 | int padding_elems = num_elems_after_padding - _count; | 199 | 629 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.3k | _data.push_back(0); | 202 | 12.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 629 | _buffer.resize( | 206 | 629 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 629 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 629 | int64_t bytes = | 210 | 629 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 629 | num_elems_after_padding, final_size_of_type, 0); | 212 | 629 | 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 | 629 | encode_fixed32_le(&_buffer[0], _count); | 222 | 629 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 629 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 629 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 629 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 629 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 629 | return _buffer.build(); | 229 | 629 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 508 | OwnedSlice _finish(int final_size_of_type) { | 194 | 508 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 508 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 508 | int padding_elems = num_elems_after_padding - _count; | 199 | 508 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 38.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 38.3k | _data.push_back(0); | 202 | 38.3k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 508 | _buffer.resize( | 206 | 508 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 508 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 508 | int64_t bytes = | 210 | 508 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 508 | num_elems_after_padding, final_size_of_type, 0); | 212 | 508 | 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 | 508 | encode_fixed32_le(&_buffer[0], _count); | 222 | 508 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 508 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 508 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 508 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 508 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 508 | return _buffer.build(); | 229 | 508 | } |
|
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 | 1.91M | int& size_of_element) { |
253 | 1.91M | 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 | 1.91M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 1.91M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 1.91M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 1.91M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 1.91M | 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 | 1.91M | switch (size_of_element) { |
271 | 205k | case 1: |
272 | 229k | case 2: |
273 | 231k | case 3: |
274 | 1.36M | case 4: |
275 | 1.85M | case 8: |
276 | 1.85M | case 12: |
277 | 1.92M | case 16: |
278 | 1.92M | case 32: |
279 | 1.92M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 1.91M | } |
283 | 1.92M | return Status::OK(); |
284 | 1.91M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.17M | : _data(data), |
291 | 1.17M | _options(options), |
292 | 1.17M | _parsed(false), |
293 | 1.17M | _num_elements(0), |
294 | 1.17M | _num_element_after_padding(0), |
295 | 1.17M | _size_of_element(0), |
296 | 1.17M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 585k | : _data(data), | 291 | 585k | _options(options), | 292 | 585k | _parsed(false), | 293 | 585k | _num_elements(0), | 294 | 585k | _num_element_after_padding(0), | 295 | 585k | _size_of_element(0), | 296 | 585k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 133k | : _data(data), | 291 | 133k | _options(options), | 292 | 133k | _parsed(false), | 293 | 133k | _num_elements(0), | 294 | 133k | _num_element_after_padding(0), | 295 | 133k | _size_of_element(0), | 296 | 133k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.1k | : _data(data), | 291 | 17.1k | _options(options), | 292 | 17.1k | _parsed(false), | 293 | 17.1k | _num_elements(0), | 294 | 17.1k | _num_element_after_padding(0), | 295 | 17.1k | _size_of_element(0), | 296 | 17.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 80.2k | : _data(data), | 291 | 80.2k | _options(options), | 292 | 80.2k | _parsed(false), | 293 | 80.2k | _num_elements(0), | 294 | 80.2k | _num_element_after_padding(0), | 295 | 80.2k | _size_of_element(0), | 296 | 80.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.3k | : _data(data), | 291 | 14.3k | _options(options), | 292 | 14.3k | _parsed(false), | 293 | 14.3k | _num_elements(0), | 294 | 14.3k | _num_element_after_padding(0), | 295 | 14.3k | _size_of_element(0), | 296 | 14.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 84.8k | : _data(data), | 291 | 84.8k | _options(options), | 292 | 84.8k | _parsed(false), | 293 | 84.8k | _num_elements(0), | 294 | 84.8k | _num_element_after_padding(0), | 295 | 84.8k | _size_of_element(0), | 296 | 84.8k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.8k | : _data(data), | 291 | 17.8k | _options(options), | 292 | 17.8k | _parsed(false), | 293 | 17.8k | _num_elements(0), | 294 | 17.8k | _num_element_after_padding(0), | 295 | 17.8k | _size_of_element(0), | 296 | 17.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 25.9k | : _data(data), | 291 | 25.9k | _options(options), | 292 | 25.9k | _parsed(false), | 293 | 25.9k | _num_elements(0), | 294 | 25.9k | _num_element_after_padding(0), | 295 | 25.9k | _size_of_element(0), | 296 | 25.9k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.36k | : _data(data), | 291 | 1.36k | _options(options), | 292 | 1.36k | _parsed(false), | 293 | 1.36k | _num_elements(0), | 294 | 1.36k | _num_element_after_padding(0), | 295 | 1.36k | _size_of_element(0), | 296 | 1.36k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 57.9k | : _data(data), | 291 | 57.9k | _options(options), | 292 | 57.9k | _parsed(false), | 293 | 57.9k | _num_elements(0), | 294 | 57.9k | _num_element_after_padding(0), | 295 | 57.9k | _size_of_element(0), | 296 | 57.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 68.4k | : _data(data), | 291 | 68.4k | _options(options), | 292 | 68.4k | _parsed(false), | 293 | 68.4k | _num_elements(0), | 294 | 68.4k | _num_element_after_padding(0), | 295 | 68.4k | _size_of_element(0), | 296 | 68.4k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.89k | : _data(data), | 291 | 1.89k | _options(options), | 292 | 1.89k | _parsed(false), | 293 | 1.89k | _num_elements(0), | 294 | 1.89k | _num_element_after_padding(0), | 295 | 1.89k | _size_of_element(0), | 296 | 1.89k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2 | : _data(data), | 291 | 2 | _options(options), | 292 | 2 | _parsed(false), | 293 | 2 | _num_elements(0), | 294 | 2 | _num_element_after_padding(0), | 295 | 2 | _size_of_element(0), | 296 | 2 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.24k | : _data(data), | 291 | 1.24k | _options(options), | 292 | 1.24k | _parsed(false), | 293 | 1.24k | _num_elements(0), | 294 | 1.24k | _num_element_after_padding(0), | 295 | 1.24k | _size_of_element(0), | 296 | 1.24k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.4k | : _data(data), | 291 | 14.4k | _options(options), | 292 | 14.4k | _parsed(false), | 293 | 14.4k | _num_elements(0), | 294 | 14.4k | _num_element_after_padding(0), | 295 | 14.4k | _size_of_element(0), | 296 | 14.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 38.8k | : _data(data), | 291 | 38.8k | _options(options), | 292 | 38.8k | _parsed(false), | 293 | 38.8k | _num_elements(0), | 294 | 38.8k | _num_element_after_padding(0), | 295 | 38.8k | _size_of_element(0), | 296 | 38.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 28.1k | : _data(data), | 291 | 28.1k | _options(options), | 292 | 28.1k | _parsed(false), | 293 | 28.1k | _num_elements(0), | 294 | 28.1k | _num_element_after_padding(0), | 295 | 28.1k | _size_of_element(0), | 296 | 28.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 425 | : _data(data), | 291 | 425 | _options(options), | 292 | 425 | _parsed(false), | 293 | 425 | _num_elements(0), | 294 | 425 | _num_element_after_padding(0), | 295 | 425 | _size_of_element(0), | 296 | 425 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 966 | : _data(data), | 291 | 966 | _options(options), | 292 | 966 | _parsed(false), | 293 | 966 | _num_elements(0), | 294 | 966 | _num_element_after_padding(0), | 295 | 966 | _size_of_element(0), | 296 | 966 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 839 | : _data(data), | 291 | 839 | _options(options), | 292 | 839 | _parsed(false), | 293 | 839 | _num_elements(0), | 294 | 839 | _num_element_after_padding(0), | 295 | 839 | _size_of_element(0), | 296 | 839 | _cur_index(0) {} |
|
297 | | |
298 | 1.16M | Status init() override { |
299 | 1.16M | CHECK(!_parsed); |
300 | 1.16M | size_t unused; |
301 | 1.16M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.16M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.16M | if (_data.size != |
305 | 1.16M | _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.16M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.16M | _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.16M | 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.16M | _parsed = true; |
325 | 1.16M | return Status::OK(); |
326 | 1.16M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 582k | Status init() override { | 299 | 582k | CHECK(!_parsed); | 300 | 582k | size_t unused; | 301 | 582k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 582k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 582k | if (_data.size != | 305 | 582k | _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 | 582k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 582k | _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 | 582k | 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 | 582k | _parsed = true; | 325 | 582k | return Status::OK(); | 326 | 582k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 133k | Status init() override { | 299 | 133k | CHECK(!_parsed); | 300 | 133k | size_t unused; | 301 | 133k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 133k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 133k | if (_data.size != | 305 | 133k | _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 | 133k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 133k | _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 | 133k | 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 | 133k | _parsed = true; | 325 | 133k | return Status::OK(); | 326 | 133k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 17.1k | Status init() override { | 299 | 17.1k | CHECK(!_parsed); | 300 | 17.1k | size_t unused; | 301 | 17.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 17.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 17.1k | if (_data.size != | 305 | 17.1k | _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 | 17.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 17.1k | _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 | 17.1k | 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 | 17.1k | _parsed = true; | 325 | 17.1k | return Status::OK(); | 326 | 17.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 79.8k | Status init() override { | 299 | 79.8k | CHECK(!_parsed); | 300 | 79.8k | size_t unused; | 301 | 79.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 79.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 79.8k | if (_data.size != | 305 | 79.8k | _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 | 79.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 79.8k | _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 | 79.8k | 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 | 79.8k | _parsed = true; | 325 | 79.8k | return Status::OK(); | 326 | 79.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 14.3k | Status init() override { | 299 | 14.3k | CHECK(!_parsed); | 300 | 14.3k | size_t unused; | 301 | 14.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.3k | if (_data.size != | 305 | 14.3k | _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 | 14.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.3k | _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 | 14.3k | 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 | 14.3k | _parsed = true; | 325 | 14.3k | return Status::OK(); | 326 | 14.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 84.7k | Status init() override { | 299 | 84.7k | CHECK(!_parsed); | 300 | 84.7k | size_t unused; | 301 | 84.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 84.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 84.7k | if (_data.size != | 305 | 84.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 | 84.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 84.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 | 84.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 | 84.7k | _parsed = true; | 325 | 84.7k | return Status::OK(); | 326 | 84.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 17.8k | Status init() override { | 299 | 17.8k | CHECK(!_parsed); | 300 | 17.8k | size_t unused; | 301 | 17.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 17.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 17.8k | if (_data.size != | 305 | 17.8k | _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 | 17.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 17.8k | _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 | 17.8k | 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 | 17.8k | _parsed = true; | 325 | 17.8k | return Status::OK(); | 326 | 17.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 25.9k | Status init() override { | 299 | 25.9k | CHECK(!_parsed); | 300 | 25.9k | size_t unused; | 301 | 25.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 25.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 25.9k | if (_data.size != | 305 | 25.9k | _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 | 25.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 25.9k | _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 | 25.9k | 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 | 25.9k | _parsed = true; | 325 | 25.9k | return Status::OK(); | 326 | 25.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.36k | Status init() override { | 299 | 1.36k | CHECK(!_parsed); | 300 | 1.36k | size_t unused; | 301 | 1.36k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.36k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.36k | if (_data.size != | 305 | 1.36k | _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.36k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.36k | _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.36k | 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.36k | _parsed = true; | 325 | 1.36k | return Status::OK(); | 326 | 1.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 57.7k | Status init() override { | 299 | 57.7k | CHECK(!_parsed); | 300 | 57.7k | size_t unused; | 301 | 57.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 57.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 57.7k | if (_data.size != | 305 | 57.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 | 57.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 57.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 | 57.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 | 57.7k | _parsed = true; | 325 | 57.7k | return Status::OK(); | 326 | 57.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 68.3k | Status init() override { | 299 | 68.3k | CHECK(!_parsed); | 300 | 68.3k | size_t unused; | 301 | 68.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 68.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 68.3k | if (_data.size != | 305 | 68.3k | _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 | 68.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 68.3k | _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 | 68.3k | 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 | 68.3k | _parsed = true; | 325 | 68.3k | return Status::OK(); | 326 | 68.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 1.89k | Status init() override { | 299 | 1.89k | CHECK(!_parsed); | 300 | 1.89k | size_t unused; | 301 | 1.89k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.89k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.89k | if (_data.size != | 305 | 1.89k | _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.89k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.89k | _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.89k | 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.89k | _parsed = true; | 325 | 1.89k | return Status::OK(); | 326 | 1.89k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 2 | Status init() override { | 299 | 2 | CHECK(!_parsed); | 300 | 2 | size_t unused; | 301 | 2 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2 | if (_data.size != | 305 | 2 | _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 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2 | _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 | 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 | _parsed = true; | 325 | 2 | return Status::OK(); | 326 | 2 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.24k | Status init() override { | 299 | 1.24k | CHECK(!_parsed); | 300 | 1.24k | size_t unused; | 301 | 1.24k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.24k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.24k | if (_data.size != | 305 | 1.24k | _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.24k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.24k | _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.24k | 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.24k | _parsed = true; | 325 | 1.24k | return Status::OK(); | 326 | 1.24k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 14.4k | Status init() override { | 299 | 14.4k | CHECK(!_parsed); | 300 | 14.4k | size_t unused; | 301 | 14.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.4k | if (_data.size != | 305 | 14.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 | 14.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.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 | 14.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 | 14.4k | _parsed = true; | 325 | 14.4k | return Status::OK(); | 326 | 14.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 38.7k | Status init() override { | 299 | 38.7k | CHECK(!_parsed); | 300 | 38.7k | size_t unused; | 301 | 38.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 38.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 38.7k | if (_data.size != | 305 | 38.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 | 38.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 38.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 | 38.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 | 38.7k | _parsed = true; | 325 | 38.7k | return Status::OK(); | 326 | 38.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 28.1k | Status init() override { | 299 | 28.1k | CHECK(!_parsed); | 300 | 28.1k | size_t unused; | 301 | 28.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 28.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 28.1k | if (_data.size != | 305 | 28.1k | _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 | 28.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 28.1k | _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 | 28.1k | 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 | 28.1k | _parsed = true; | 325 | 28.1k | return Status::OK(); | 326 | 28.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 425 | Status init() override { | 299 | 425 | CHECK(!_parsed); | 300 | 425 | size_t unused; | 301 | 425 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 425 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 425 | if (_data.size != | 305 | 425 | _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 | 425 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 425 | _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 | 425 | 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 | 425 | _parsed = true; | 325 | 425 | return Status::OK(); | 326 | 425 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 965 | Status init() override { | 299 | 965 | CHECK(!_parsed); | 300 | 965 | size_t unused; | 301 | 965 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 965 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 965 | if (_data.size != | 305 | 965 | _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 | 965 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 965 | _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 | 965 | 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 | 965 | _parsed = true; | 325 | 965 | return Status::OK(); | 326 | 965 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 837 | Status init() override { | 299 | 837 | CHECK(!_parsed); | 300 | 837 | size_t unused; | 301 | 837 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 837 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 837 | if (_data.size != | 305 | 837 | _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 | 837 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 837 | _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 | 837 | 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 | 837 | _parsed = true; | 325 | 837 | return Status::OK(); | 326 | 837 | } |
|
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.73M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 3.73M | if (_num_elements == 0) [[unlikely]] { |
337 | 4.46k | 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 | 4.46k | } |
342 | | |
343 | 3.73M | DCHECK_LE(pos, _num_elements); |
344 | 3.73M | _cur_index = pos; |
345 | 3.73M | return Status::OK(); |
346 | 3.73M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.99M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.99M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.96k | 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 | 1.96k | } | 342 | | | 343 | 1.99M | DCHECK_LE(pos, _num_elements); | 344 | 1.99M | _cur_index = pos; | 345 | 1.99M | return Status::OK(); | 346 | 1.99M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 45.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 45.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 446 | 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 | 446 | } | 342 | | | 343 | 45.5k | DCHECK_LE(pos, _num_elements); | 344 | 45.5k | _cur_index = pos; | 345 | 45.5k | return Status::OK(); | 346 | 45.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 4.45k | Status seek_to_position_in_page(size_t pos) override { | 335 | 4.45k | DCHECK(_parsed) << "Must call init()"; | 336 | 4.45k | if (_num_elements == 0) [[unlikely]] { | 337 | 1.35k | 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 | 1.35k | } | 342 | | | 343 | 4.45k | DCHECK_LE(pos, _num_elements); | 344 | 4.45k | _cur_index = pos; | 345 | 4.45k | return Status::OK(); | 346 | 4.45k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 117k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 117k | if (_num_elements == 0) [[unlikely]] { | 337 | 474 | 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 | 474 | } | 342 | | | 343 | 117k | DCHECK_LE(pos, _num_elements); | 344 | 117k | _cur_index = pos; | 345 | 117k | return Status::OK(); | 346 | 117k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 4.21k | Status seek_to_position_in_page(size_t pos) override { | 335 | 4.21k | DCHECK(_parsed) << "Must call init()"; | 336 | 4.21k | 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.21k | DCHECK_LE(pos, _num_elements); | 344 | 4.21k | _cur_index = pos; | 345 | 4.21k | return Status::OK(); | 346 | 4.21k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13.6k | Status seek_to_position_in_page(size_t pos) override { | 335 | 13.6k | DCHECK(_parsed) << "Must call init()"; | 336 | 13.6k | 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 | 13.6k | DCHECK_LE(pos, _num_elements); | 344 | 13.6k | _cur_index = pos; | 345 | 13.6k | return Status::OK(); | 346 | 13.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 238k | Status seek_to_position_in_page(size_t pos) override { | 335 | 238k | DCHECK(_parsed) << "Must call init()"; | 336 | 238k | 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 | 238k | DCHECK_LE(pos, _num_elements); | 344 | 238k | _cur_index = pos; | 345 | 238k | return Status::OK(); | 346 | 238k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 212k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 212k | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | 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 | 1 | } | 342 | | | 343 | 212k | DCHECK_LE(pos, _num_elements); | 344 | 212k | _cur_index = pos; | 345 | 212k | return Status::OK(); | 346 | 212k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 222k | Status seek_to_position_in_page(size_t pos) override { | 335 | 222k | 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_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 475k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 475k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | 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 | 197 | } | 342 | | | 343 | 475k | DCHECK_LE(pos, _num_elements); | 344 | 475k | _cur_index = pos; | 345 | 475k | return Status::OK(); | 346 | 475k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 57.3k | Status seek_to_position_in_page(size_t pos) override { | 335 | 57.3k | DCHECK(_parsed) << "Must call init()"; | 336 | 57.3k | if (_num_elements == 0) [[unlikely]] { | 337 | 18 | 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 | 18 | } | 342 | | | 343 | 57.3k | DCHECK_LE(pos, _num_elements); | 344 | 57.3k | _cur_index = pos; | 345 | 57.3k | return Status::OK(); | 346 | 57.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 210k | Status seek_to_position_in_page(size_t pos) override { | 335 | 210k | DCHECK(_parsed) << "Must call init()"; | 336 | 210k | 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 | 210k | DCHECK_LE(pos, _num_elements); | 344 | 210k | _cur_index = pos; | 345 | 210k | return Status::OK(); | 346 | 210k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_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_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 531 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 531 | if (_num_elements == 0) [[unlikely]] { | 337 | 2 | 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 | 2 | } | 342 | | | 343 | 531 | DCHECK_LE(pos, _num_elements); | 344 | 531 | _cur_index = pos; | 345 | 531 | return Status::OK(); | 346 | 531 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 16.1k | 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 | 16.1k | DCHECK_LE(pos, _num_elements); | 344 | 16.1k | _cur_index = pos; | 345 | 16.1k | return Status::OK(); | 346 | 16.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 121k | Status seek_to_position_in_page(size_t pos) override { | 335 | 121k | DCHECK(_parsed) << "Must call init()"; | 336 | 121k | if (_num_elements == 0) [[unlikely]] { | 337 | 4 | 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 | 4 | } | 342 | | | 343 | 121k | DCHECK_LE(pos, _num_elements); | 344 | 121k | _cur_index = pos; | 345 | 121k | return Status::OK(); | 346 | 121k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 560 | Status seek_to_position_in_page(size_t pos) override { | 335 | 560 | DCHECK(_parsed) << "Must call init()"; | 336 | 560 | 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 | 560 | DCHECK_LE(pos, _num_elements); | 344 | 560 | _cur_index = pos; | 345 | 560 | return Status::OK(); | 346 | 560 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 26 | Status seek_to_position_in_page(size_t pos) override { | 335 | 26 | DCHECK(_parsed) << "Must call init()"; | 336 | 26 | 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 | 26 | DCHECK_LE(pos, _num_elements); | 344 | 26 | _cur_index = pos; | 345 | 26 | return Status::OK(); | 346 | 26 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 69 | Status seek_to_position_in_page(size_t pos) override { | 335 | 69 | DCHECK(_parsed) << "Must call init()"; | 336 | 69 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | 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 | 1 | } | 342 | | | 343 | 69 | DCHECK_LE(pos, _num_elements); | 344 | 69 | _cur_index = pos; | 345 | 69 | return Status::OK(); | 346 | 69 | } |
|
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 | 1.36M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.36M | DCHECK(_parsed); |
389 | 1.36M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.36M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.36M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.36M | *n = max_fetch; |
398 | 1.36M | if constexpr (forward_index) { |
399 | 1.22M | _cur_index += max_fetch; |
400 | 1.22M | } |
401 | | |
402 | 1.36M | return Status::OK(); |
403 | 1.36M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 368k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 368k | DCHECK(_parsed); | 389 | 369k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 368k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 368k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 368k | *n = max_fetch; | 398 | 368k | if constexpr (forward_index) { | 399 | 368k | _cur_index += max_fetch; | 400 | 368k | } | 401 | | | 402 | 368k | return Status::OK(); | 403 | 368k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 147k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 147k | DCHECK(_parsed); | 389 | 147k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 147k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 147k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 147k | *n = max_fetch; | 398 | 147k | if constexpr (forward_index) { | 399 | 147k | _cur_index += max_fetch; | 400 | 147k | } | 401 | | | 402 | 147k | return Status::OK(); | 403 | 147k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 12.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 12.7k | DCHECK(_parsed); | 389 | 12.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 12.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 12.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 12.7k | *n = max_fetch; | 398 | 12.7k | if constexpr (forward_index) { | 399 | 12.7k | _cur_index += max_fetch; | 400 | 12.7k | } | 401 | | | 402 | 12.7k | return Status::OK(); | 403 | 12.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 75.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 75.7k | DCHECK(_parsed); | 389 | 75.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 75.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 75.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 75.7k | *n = max_fetch; | 398 | 75.7k | if constexpr (forward_index) { | 399 | 75.7k | _cur_index += max_fetch; | 400 | 75.7k | } | 401 | | | 402 | 75.7k | return Status::OK(); | 403 | 75.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 11.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.1k | DCHECK(_parsed); | 389 | 11.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.1k | *n = max_fetch; | 398 | 11.1k | if constexpr (forward_index) { | 399 | 11.1k | _cur_index += max_fetch; | 400 | 11.1k | } | 401 | | | 402 | 11.1k | return Status::OK(); | 403 | 11.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 117k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 117k | DCHECK(_parsed); | 389 | 117k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 117k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 117k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 117k | *n = max_fetch; | 398 | 117k | if constexpr (forward_index) { | 399 | 117k | _cur_index += max_fetch; | 400 | 117k | } | 401 | | | 402 | 117k | return Status::OK(); | 403 | 117k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 142k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 142k | DCHECK(_parsed); | 389 | 142k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 142k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 142k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 142k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 142k | return Status::OK(); | 403 | 142k | } |
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 | 11.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.1k | DCHECK(_parsed); | 389 | 11.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.1k | *n = max_fetch; | 398 | 11.1k | if constexpr (forward_index) { | 399 | 11.1k | _cur_index += max_fetch; | 400 | 11.1k | } | 401 | | | 402 | 11.1k | return Status::OK(); | 403 | 11.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.0k | DCHECK(_parsed); | 389 | 16.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.0k | *n = max_fetch; | 398 | 16.0k | if constexpr (forward_index) { | 399 | 16.0k | _cur_index += max_fetch; | 400 | 16.0k | } | 401 | | | 402 | 16.0k | return Status::OK(); | 403 | 16.0k | } |
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 | 645 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 645 | DCHECK(_parsed); | 389 | 645 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 645 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 645 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 645 | *n = max_fetch; | 398 | 645 | if constexpr (forward_index) { | 399 | 645 | _cur_index += max_fetch; | 400 | 645 | } | 401 | | | 402 | 645 | return Status::OK(); | 403 | 645 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 334k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 334k | DCHECK(_parsed); | 389 | 334k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 334k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 334k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 334k | *n = max_fetch; | 398 | 334k | if constexpr (forward_index) { | 399 | 334k | _cur_index += max_fetch; | 400 | 334k | } | 401 | | | 402 | 334k | return Status::OK(); | 403 | 334k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 68.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 68.7k | DCHECK(_parsed); | 389 | 68.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 68.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 68.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 68.7k | *n = max_fetch; | 398 | 68.7k | if constexpr (forward_index) { | 399 | 68.7k | _cur_index += max_fetch; | 400 | 68.7k | } | 401 | | | 402 | 68.7k | return Status::OK(); | 403 | 68.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 830 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 830 | DCHECK(_parsed); | 389 | 830 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 830 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 830 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 830 | *n = max_fetch; | 398 | 830 | if constexpr (forward_index) { | 399 | 830 | _cur_index += max_fetch; | 400 | 830 | } | 401 | | | 402 | 830 | return Status::OK(); | 403 | 830 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2 | DCHECK(_parsed); | 389 | 2 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2 | *n = max_fetch; | 398 | 2 | if constexpr (forward_index) { | 399 | 2 | _cur_index += max_fetch; | 400 | 2 | } | 401 | | | 402 | 2 | return Status::OK(); | 403 | 2 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.19k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.19k | DCHECK(_parsed); | 389 | 1.19k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.19k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.19k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.19k | *n = max_fetch; | 398 | 1.19k | if constexpr (forward_index) { | 399 | 1.19k | _cur_index += max_fetch; | 400 | 1.19k | } | 401 | | | 402 | 1.19k | return Status::OK(); | 403 | 1.19k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.31k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.31k | DCHECK(_parsed); | 389 | 7.31k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.31k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.31k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.31k | *n = max_fetch; | 398 | 7.31k | if constexpr (forward_index) { | 399 | 7.31k | _cur_index += max_fetch; | 400 | 7.31k | } | 401 | | | 402 | 7.31k | return Status::OK(); | 403 | 7.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 29.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 29.9k | DCHECK(_parsed); | 389 | 29.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 29.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 29.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 29.9k | *n = max_fetch; | 398 | 29.9k | if constexpr (forward_index) { | 399 | 29.9k | _cur_index += max_fetch; | 400 | 29.9k | } | 401 | | | 402 | 29.9k | return Status::OK(); | 403 | 29.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 17.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 17.4k | DCHECK(_parsed); | 389 | 17.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 17.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 17.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 17.4k | *n = max_fetch; | 398 | 17.4k | if constexpr (forward_index) { | 399 | 17.4k | _cur_index += max_fetch; | 400 | 17.4k | } | 401 | | | 402 | 17.4k | return Status::OK(); | 403 | 17.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.73k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.73k | DCHECK(_parsed); | 389 | 1.73k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.73k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.73k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.73k | *n = max_fetch; | 398 | 1.73k | if constexpr (forward_index) { | 399 | 1.73k | _cur_index += max_fetch; | 400 | 1.73k | } | 401 | | | 402 | 1.73k | return Status::OK(); | 403 | 1.73k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 672 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 672 | DCHECK(_parsed); | 389 | 672 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 672 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 672 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 672 | *n = max_fetch; | 398 | 672 | if constexpr (forward_index) { | 399 | 672 | _cur_index += max_fetch; | 400 | 672 | } | 401 | | | 402 | 672 | return Status::OK(); | 403 | 672 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 667 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 667 | DCHECK(_parsed); | 389 | 668 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 667 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 667 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 667 | *n = max_fetch; | 398 | 667 | if constexpr (forward_index) { | 399 | 667 | _cur_index += max_fetch; | 400 | 667 | } | 401 | | | 402 | 667 | return Status::OK(); | 403 | 667 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.22M | 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 | 367k | 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 | 147k | 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 | 12.7k | 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 | 75.7k | 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 | 11.1k | 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 | 117k | 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 | 11.1k | 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 | 16.0k | 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 | 644 | 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 | 334k | 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 | 68.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 830 | 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 | 2 | 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 | 1.18k | 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 | 7.31k | 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 | 29.9k | 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 | 17.4k | 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 | 1.73k | 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 | 673 | 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 | 669 | 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 | 461k | MutableColumnPtr& dst) override { |
409 | 461k | DCHECK(_parsed); |
410 | 461k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 461k | auto total = *n; |
416 | 461k | auto read_count = 0; |
417 | 461k | _buffer.resize(total); |
418 | 80.4M | for (size_t i = 0; i < total; ++i) { |
419 | 80.0M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 80.0M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 11.0k | break; |
422 | 11.0k | } |
423 | | |
424 | 80.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 80.0M | } |
426 | | |
427 | 461k | if (LIKELY(read_count > 0)) { |
428 | 461k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 461k | } |
430 | | |
431 | 461k | *n = read_count; |
432 | 461k | return Status::OK(); |
433 | 461k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 94.2k | MutableColumnPtr& dst) override { | 409 | 94.2k | DCHECK(_parsed); | 410 | 94.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 94.2k | auto total = *n; | 416 | 94.2k | auto read_count = 0; | 417 | 94.2k | _buffer.resize(total); | 418 | 15.7M | for (size_t i = 0; i < total; ++i) { | 419 | 15.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 15.6M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 590 | break; | 422 | 590 | } | 423 | | | 424 | 15.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 15.6M | } | 426 | | | 427 | 94.3k | if (LIKELY(read_count > 0)) { | 428 | 94.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 94.3k | } | 430 | | | 431 | 94.2k | *n = read_count; | 432 | 94.2k | return Status::OK(); | 433 | 94.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 59.8k | MutableColumnPtr& dst) override { | 409 | 59.8k | DCHECK(_parsed); | 410 | 59.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 59.8k | auto total = *n; | 416 | 59.8k | auto read_count = 0; | 417 | 59.8k | _buffer.resize(total); | 418 | 805k | for (size_t i = 0; i < total; ++i) { | 419 | 745k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 745k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 745k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 745k | } | 426 | | | 427 | 59.8k | if (LIKELY(read_count > 0)) { | 428 | 59.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 59.8k | } | 430 | | | 431 | 59.8k | *n = read_count; | 432 | 59.8k | return Status::OK(); | 433 | 59.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.03k | MutableColumnPtr& dst) override { | 409 | 8.03k | DCHECK(_parsed); | 410 | 8.03k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.03k | auto total = *n; | 416 | 8.03k | auto read_count = 0; | 417 | 8.03k | _buffer.resize(total); | 418 | 51.8k | for (size_t i = 0; i < total; ++i) { | 419 | 43.8k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 43.8k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 43.8k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 43.8k | } | 426 | | | 427 | 8.03k | if (LIKELY(read_count > 0)) { | 428 | 8.03k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.03k | } | 430 | | | 431 | 8.03k | *n = read_count; | 432 | 8.03k | return Status::OK(); | 433 | 8.03k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 123k | MutableColumnPtr& dst) override { | 409 | 123k | DCHECK(_parsed); | 410 | 123k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 123k | auto total = *n; | 416 | 123k | auto read_count = 0; | 417 | 123k | _buffer.resize(total); | 418 | 2.61M | for (size_t i = 0; i < total; ++i) { | 419 | 2.49M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.49M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 118 | break; | 422 | 118 | } | 423 | | | 424 | 2.49M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.49M | } | 426 | | | 427 | 123k | if (LIKELY(read_count > 0)) { | 428 | 123k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 123k | } | 430 | | | 431 | 123k | *n = read_count; | 432 | 123k | return Status::OK(); | 433 | 123k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.23k | MutableColumnPtr& dst) override { | 409 | 7.23k | DCHECK(_parsed); | 410 | 7.23k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.23k | auto total = *n; | 416 | 7.23k | auto read_count = 0; | 417 | 7.23k | _buffer.resize(total); | 418 | 16.3k | for (size_t i = 0; i < total; ++i) { | 419 | 9.15k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.15k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 9.15k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.15k | } | 426 | | | 427 | 7.23k | if (LIKELY(read_count > 0)) { | 428 | 7.23k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.23k | } | 430 | | | 431 | 7.23k | *n = read_count; | 432 | 7.23k | return Status::OK(); | 433 | 7.23k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 35.7k | MutableColumnPtr& dst) override { | 409 | 35.7k | DCHECK(_parsed); | 410 | 35.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 35.7k | auto total = *n; | 416 | 35.7k | auto read_count = 0; | 417 | 35.7k | _buffer.resize(total); | 418 | 7.33M | for (size_t i = 0; i < total; ++i) { | 419 | 7.29M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 7.29M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.62k | break; | 422 | 2.62k | } | 423 | | | 424 | 7.29M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 7.29M | } | 426 | | | 427 | 35.7k | if (LIKELY(read_count > 0)) { | 428 | 35.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 35.7k | } | 430 | | | 431 | 35.7k | *n = read_count; | 432 | 35.7k | return Status::OK(); | 433 | 35.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.02k | MutableColumnPtr& dst) override { | 409 | 9.02k | DCHECK(_parsed); | 410 | 9.02k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.02k | auto total = *n; | 416 | 9.02k | auto read_count = 0; | 417 | 9.02k | _buffer.resize(total); | 418 | 1.22M | for (size_t i = 0; i < total; ++i) { | 419 | 1.22M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.22M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 32 | break; | 422 | 32 | } | 423 | | | 424 | 1.22M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.22M | } | 426 | | | 427 | 9.03k | if (LIKELY(read_count > 0)) { | 428 | 9.03k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.03k | } | 430 | | | 431 | 9.02k | *n = read_count; | 432 | 9.02k | return Status::OK(); | 433 | 9.02k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.4k | MutableColumnPtr& dst) override { | 409 | 13.4k | DCHECK(_parsed); | 410 | 13.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.4k | auto total = *n; | 416 | 13.4k | auto read_count = 0; | 417 | 13.4k | _buffer.resize(total); | 418 | 3.20M | for (size_t i = 0; i < total; ++i) { | 419 | 3.19M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 3.19M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 508 | break; | 422 | 508 | } | 423 | | | 424 | 3.19M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 3.19M | } | 426 | | | 427 | 13.4k | if (LIKELY(read_count > 0)) { | 428 | 13.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.4k | } | 430 | | | 431 | 13.4k | *n = read_count; | 432 | 13.4k | return Status::OK(); | 433 | 13.4k | } |
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.20k | MutableColumnPtr& dst) override { | 409 | 1.20k | DCHECK(_parsed); | 410 | 1.20k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.20k | auto total = *n; | 416 | 1.20k | auto read_count = 0; | 417 | 1.20k | _buffer.resize(total); | 418 | 501k | for (size_t i = 0; i < total; ++i) { | 419 | 500k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 500k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 9 | break; | 422 | 9 | } | 423 | | | 424 | 500k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 500k | } | 426 | | | 427 | 1.20k | if (LIKELY(read_count > 0)) { | 428 | 1.20k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.20k | } | 430 | | | 431 | 1.20k | *n = read_count; | 432 | 1.20k | return Status::OK(); | 433 | 1.20k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.2k | MutableColumnPtr& dst) override { | 409 | 28.2k | DCHECK(_parsed); | 410 | 28.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.2k | auto total = *n; | 416 | 28.2k | auto read_count = 0; | 417 | 28.2k | _buffer.resize(total); | 418 | 7.56M | for (size_t i = 0; i < total; ++i) { | 419 | 7.53M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 7.53M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 423 | break; | 422 | 423 | } | 423 | | | 424 | 7.53M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 7.53M | } | 426 | | | 427 | 28.2k | if (LIKELY(read_count > 0)) { | 428 | 28.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.2k | } | 430 | | | 431 | 28.2k | *n = read_count; | 432 | 28.2k | return Status::OK(); | 433 | 28.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 34.1k | MutableColumnPtr& dst) override { | 409 | 34.1k | DCHECK(_parsed); | 410 | 34.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 34.1k | auto total = *n; | 416 | 34.1k | auto read_count = 0; | 417 | 34.1k | _buffer.resize(total); | 418 | 9.99M | for (size_t i = 0; i < total; ++i) { | 419 | 9.96M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.96M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 185 | break; | 422 | 185 | } | 423 | | | 424 | 9.96M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.96M | } | 426 | | | 427 | 34.2k | if (LIKELY(read_count > 0)) { | 428 | 34.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 34.2k | } | 430 | | | 431 | 34.1k | *n = read_count; | 432 | 34.1k | return Status::OK(); | 433 | 34.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.57k | MutableColumnPtr& dst) override { | 409 | 1.57k | DCHECK(_parsed); | 410 | 1.57k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.57k | auto total = *n; | 416 | 1.57k | auto read_count = 0; | 417 | 1.57k | _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 | 247 | break; | 422 | 247 | } | 423 | | | 424 | 504k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 504k | } | 426 | | | 427 | 1.57k | if (LIKELY(read_count > 0)) { | 428 | 1.57k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.57k | } | 430 | | | 431 | 1.57k | *n = read_count; | 432 | 1.57k | return Status::OK(); | 433 | 1.57k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 57 | MutableColumnPtr& dst) override { | 409 | 57 | DCHECK(_parsed); | 410 | 57 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 57 | auto total = *n; | 416 | 57 | auto read_count = 0; | 417 | 57 | _buffer.resize(total); | 418 | 114 | for (size_t i = 0; i < total; ++i) { | 419 | 57 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 57 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 57 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 57 | } | 426 | | | 427 | 57 | if (LIKELY(read_count > 0)) { | 428 | 57 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 57 | } | 430 | | | 431 | 57 | *n = read_count; | 432 | 57 | return Status::OK(); | 433 | 57 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.42k | MutableColumnPtr& dst) override { | 409 | 4.42k | DCHECK(_parsed); | 410 | 4.42k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.42k | auto total = *n; | 416 | 4.42k | auto read_count = 0; | 417 | 4.42k | _buffer.resize(total); | 418 | 18.6k | for (size_t i = 0; i < total; ++i) { | 419 | 14.2k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.2k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.2k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.2k | } | 426 | | | 427 | 4.42k | if (LIKELY(read_count > 0)) { | 428 | 4.42k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.42k | } | 430 | | | 431 | 4.42k | *n = read_count; | 432 | 4.42k | return Status::OK(); | 433 | 4.42k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.9k | MutableColumnPtr& dst) override { | 409 | 26.9k | DCHECK(_parsed); | 410 | 26.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.9k | auto total = *n; | 416 | 26.9k | auto read_count = 0; | 417 | 26.9k | _buffer.resize(total); | 418 | 21.8M | for (size_t i = 0; i < total; ++i) { | 419 | 21.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 21.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.54k | break; | 422 | 5.54k | } | 423 | | | 424 | 21.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 21.8M | } | 426 | | | 427 | 26.9k | if (LIKELY(read_count > 0)) { | 428 | 26.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.9k | } | 430 | | | 431 | 26.9k | *n = read_count; | 432 | 26.9k | return Status::OK(); | 433 | 26.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.2k | MutableColumnPtr& dst) override { | 409 | 13.2k | DCHECK(_parsed); | 410 | 13.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.2k | auto total = *n; | 416 | 13.2k | auto read_count = 0; | 417 | 13.2k | _buffer.resize(total); | 418 | 9.02M | for (size_t i = 0; i < total; ++i) { | 419 | 9.01M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.01M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 749 | break; | 422 | 749 | } | 423 | | | 424 | 9.01M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.01M | } | 426 | | | 427 | 13.2k | if (LIKELY(read_count > 0)) { | 428 | 13.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.2k | } | 430 | | | 431 | 13.2k | *n = read_count; | 432 | 13.2k | return Status::OK(); | 433 | 13.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 125 | MutableColumnPtr& dst) override { | 409 | 125 | DCHECK(_parsed); | 410 | 125 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 125 | auto total = *n; | 416 | 125 | auto read_count = 0; | 417 | 125 | _buffer.resize(total); | 418 | 338 | for (size_t i = 0; i < total; ++i) { | 419 | 213 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 213 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 213 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 213 | } | 426 | | | 427 | 125 | if (LIKELY(read_count > 0)) { | 428 | 125 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 125 | } | 430 | | | 431 | 125 | *n = read_count; | 432 | 125 | return Status::OK(); | 433 | 125 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 305 | MutableColumnPtr& dst) override { | 409 | 305 | DCHECK(_parsed); | 410 | 305 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 305 | auto total = *n; | 416 | 305 | auto read_count = 0; | 417 | 305 | _buffer.resize(total); | 418 | 698 | for (size_t i = 0; i < total; ++i) { | 419 | 393 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 393 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 393 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 393 | } | 426 | | | 427 | 305 | if (LIKELY(read_count > 0)) { | 428 | 305 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 305 | } | 430 | | | 431 | 305 | *n = read_count; | 432 | 305 | return Status::OK(); | 433 | 305 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 190 | MutableColumnPtr& dst) override { | 409 | 190 | DCHECK(_parsed); | 410 | 190 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 190 | auto total = *n; | 416 | 190 | auto read_count = 0; | 417 | 190 | _buffer.resize(total); | 418 | 452 | for (size_t i = 0; i < total; ++i) { | 419 | 262 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 262 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 262 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 262 | } | 426 | | | 427 | 190 | if (LIKELY(read_count > 0)) { | 428 | 190 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 190 | } | 430 | | | 431 | 190 | *n = read_count; | 432 | 190 | return Status::OK(); | 433 | 190 | } |
|
434 | | |
435 | 143k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 143k | return next_batch<false>(n, dst); |
437 | 143k | } 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 | 143k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 143k | return next_batch<false>(n, dst); | 437 | 143k | } |
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.13M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.69M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 1.38k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 836 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 171k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 571 | 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 | 237k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 210k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 221k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 239k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 23.1k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 209k | 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 | 3.57k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 647 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 117k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 7 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 29 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 87 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 82.8M | char* get_data(size_t index) const { |
444 | 82.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 82.8M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 17.5M | char* get_data(size_t index) const { | 444 | 17.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 17.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 893k | char* get_data(size_t index) const { | 444 | 893k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 893k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 56.5k | char* get_data(size_t index) const { | 444 | 56.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 56.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 2.56M | char* get_data(size_t index) const { | 444 | 2.56M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.56M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 20.3k | char* get_data(size_t index) const { | 444 | 20.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 7.55M | char* get_data(size_t index) const { | 444 | 7.55M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.55M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.23M | char* get_data(size_t index) const { | 444 | 1.23M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.23M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 3.21M | char* get_data(size_t index) const { | 444 | 3.21M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 3.21M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 501k | char* get_data(size_t index) const { | 444 | 501k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 501k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 7.87M | char* get_data(size_t index) const { | 444 | 7.87M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.87M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 10.0M | char* get_data(size_t index) const { | 444 | 10.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 10.0M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 505k | char* get_data(size_t index) const { | 444 | 505k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 505k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 2 | char* get_data(size_t index) const { | 444 | 2 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.24k | char* get_data(size_t index) const { | 444 | 1.24k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.24k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 21.5k | char* get_data(size_t index) const { | 444 | 21.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 21.8M | char* get_data(size_t index) const { | 444 | 21.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 9.03M | char* get_data(size_t index) const { | 444 | 9.03M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.03M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 1.94k | char* get_data(size_t index) const { | 444 | 1.94k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.94k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.06k | char* get_data(size_t index) const { | 444 | 1.06k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.06k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 931 | char* get_data(size_t index) const { | 444 | 931 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 931 | } |
|
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 |