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 | 877k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 452k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 57.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.53k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 101k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 9.06k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 80.0k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 13.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 16.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 730 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 39.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 47.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 638 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 6.92k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 357 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 10.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 17.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.15k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 828 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 769 | Status init() override { return reset(); } |
|
96 | | |
97 | 185M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 182M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 61.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 11.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 348k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 279k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 85.3k | 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 | 13.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 18.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 720 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 591k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 586k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 703 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.05k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 266 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.64k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 23.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 290k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 271k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 274k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 4.05M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 4.05M | return add_internal<false>(vals, count); |
101 | 4.05M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 1.18M | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.18M | return add_internal<false>(vals, count); | 101 | 1.18M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 61.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 61.6k | return add_internal<false>(vals, count); | 101 | 61.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 11.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.0k | return add_internal<false>(vals, count); | 101 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 348k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 348k | return add_internal<false>(vals, count); | 101 | 348k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 279k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 279k | return add_internal<false>(vals, count); | 101 | 279k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 85.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 85.3k | return add_internal<false>(vals, count); | 101 | 85.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 13.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 13.1k | return add_internal<false>(vals, count); | 101 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 18.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 18.3k | return add_internal<false>(vals, count); | 101 | 18.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 720 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 720 | return add_internal<false>(vals, count); | 101 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 591k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 591k | return add_internal<false>(vals, count); | 101 | 591k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 586k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 586k | return add_internal<false>(vals, count); | 101 | 586k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 703 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 703 | return add_internal<false>(vals, count); | 101 | 703 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.05k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.05k | return add_internal<false>(vals, count); | 101 | 7.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 266 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 266 | return add_internal<false>(vals, count); | 101 | 266 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.64k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.64k | return add_internal<false>(vals, count); | 101 | 5.64k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 23.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 23.7k | return add_internal<false>(vals, count); | 101 | 23.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 290k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 290k | return add_internal<false>(vals, count); | 101 | 290k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.37k | return add_internal<false>(vals, count); | 101 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 271k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 271k | return add_internal<false>(vals, count); | 101 | 271k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 274k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 274k | return add_internal<false>(vals, count); | 101 | 274k | } |
|
102 | | |
103 | 177M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 177M | return add_internal<true>(vals, count); |
105 | 177M | } |
106 | | |
107 | | template <bool single> |
108 | 180M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 180M | DCHECK(!_finished); |
110 | 180M | 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 | 180M | uint32_t to_add = cast_set<UInt32>( |
126 | 180M | 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 | 180M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 180M | 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 | 180M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 181M | _count += to_add; |
134 | 181M | _remain_element_capacity -= to_add; |
135 | 181M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 181M | *num_written = to_add; |
138 | 181M | 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 | 177M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 177M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 177M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 177M | 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 | 177M | } |
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 | 181M | return Status::OK(); |
159 | 180M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.18M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.18M | DCHECK(!_finished); | 110 | 1.18M | 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.18M | uint32_t to_add = cast_set<UInt32>( | 126 | 1.18M | 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.18M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.18M | 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.18M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.18M | _count += to_add; | 134 | 1.18M | _remain_element_capacity -= to_add; | 135 | 1.18M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.18M | *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.18M | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.18M | return Status::OK(); | 159 | 1.18M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 176M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 176M | DCHECK(!_finished); | 110 | 176M | 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 | 176M | uint32_t to_add = cast_set<UInt32>( | 126 | 176M | 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 | 176M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 176M | 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 | 176M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 177M | _count += to_add; | 134 | 177M | _remain_element_capacity -= to_add; | 135 | 177M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 177M | *num_written = to_add; | 138 | 177M | 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 | 177M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 177M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 177M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 177M | 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 | 177M | } | 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 | 177M | return Status::OK(); | 159 | 176M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 61.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 61.6k | DCHECK(!_finished); | 110 | 61.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 | 61.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 61.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 | 61.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 61.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 | 61.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 61.6k | _count += to_add; | 134 | 61.6k | _remain_element_capacity -= to_add; | 135 | 61.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 61.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 | 61.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 61.6k | return Status::OK(); | 159 | 61.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.0k | DCHECK(!_finished); | 110 | 11.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 | 11.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.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 | 11.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.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 | 11.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.0k | _count += to_add; | 134 | 11.0k | _remain_element_capacity -= to_add; | 135 | 11.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.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 | 11.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.0k | return Status::OK(); | 159 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 348k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 348k | DCHECK(!_finished); | 110 | 348k | 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 | 348k | uint32_t to_add = cast_set<UInt32>( | 126 | 348k | 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 | 348k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 348k | 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 | 348k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 348k | _count += to_add; | 134 | 348k | _remain_element_capacity -= to_add; | 135 | 348k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 348k | *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 | 348k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 348k | return Status::OK(); | 159 | 348k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 279k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 279k | DCHECK(!_finished); | 110 | 279k | 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 | 279k | uint32_t to_add = cast_set<UInt32>( | 126 | 279k | 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 | 279k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 279k | 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 | 279k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 279k | _count += to_add; | 134 | 279k | _remain_element_capacity -= to_add; | 135 | 279k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 279k | *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 | 279k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 279k | return Status::OK(); | 159 | 279k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 85.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 85.3k | DCHECK(!_finished); | 110 | 85.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 | 85.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 85.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 | 85.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 85.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 | 85.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 85.3k | _count += to_add; | 134 | 85.3k | _remain_element_capacity -= to_add; | 135 | 85.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 85.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 | 85.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 85.3k | return Status::OK(); | 159 | 85.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 13.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 13.1k | DCHECK(!_finished); | 110 | 13.1k | 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 | 13.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 13.1k | 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 | 13.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 13.1k | 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 | 13.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 13.1k | _count += to_add; | 134 | 13.1k | _remain_element_capacity -= to_add; | 135 | 13.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 13.1k | *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 | 13.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 13.1k | return Status::OK(); | 159 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 18.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 18.3k | DCHECK(!_finished); | 110 | 18.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 | 18.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 18.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 | 18.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 18.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 | 18.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 18.3k | _count += to_add; | 134 | 18.3k | _remain_element_capacity -= to_add; | 135 | 18.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 18.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 | 18.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 18.3k | return Status::OK(); | 159 | 18.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 720 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 720 | DCHECK(!_finished); | 110 | 720 | 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 | 720 | uint32_t to_add = cast_set<UInt32>( | 126 | 720 | 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 | 720 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 720 | 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 | 720 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 720 | _count += to_add; | 134 | 720 | _remain_element_capacity -= to_add; | 135 | 720 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 720 | *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 | 720 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 720 | return Status::OK(); | 159 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 591k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 591k | DCHECK(!_finished); | 110 | 591k | 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 | 591k | uint32_t to_add = cast_set<UInt32>( | 126 | 591k | 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 | 591k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 591k | 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 | 591k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 591k | _count += to_add; | 134 | 591k | _remain_element_capacity -= to_add; | 135 | 591k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 591k | *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 | 591k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 591k | return Status::OK(); | 159 | 591k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 586k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 586k | DCHECK(!_finished); | 110 | 586k | 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 | 586k | uint32_t to_add = cast_set<UInt32>( | 126 | 586k | 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 | 586k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 586k | 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 | 586k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 586k | _count += to_add; | 134 | 586k | _remain_element_capacity -= to_add; | 135 | 586k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 586k | *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 | 586k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 586k | return Status::OK(); | 159 | 586k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 703 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 703 | DCHECK(!_finished); | 110 | 703 | 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 | 703 | uint32_t to_add = cast_set<UInt32>( | 126 | 703 | 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 | 703 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 703 | 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 | 703 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 703 | _count += to_add; | 134 | 703 | _remain_element_capacity -= to_add; | 135 | 703 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 703 | *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 | 703 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 703 | return Status::OK(); | 159 | 703 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.05k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.05k | DCHECK(!_finished); | 110 | 7.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 | 7.05k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.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 | 7.05k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.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 | 7.05k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.05k | _count += to_add; | 134 | 7.05k | _remain_element_capacity -= to_add; | 135 | 7.05k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.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 | 7.05k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.05k | return Status::OK(); | 159 | 7.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 266 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 266 | DCHECK(!_finished); | 110 | 266 | 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 | 266 | uint32_t to_add = cast_set<UInt32>( | 126 | 266 | 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 | 266 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 266 | 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 | 266 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 266 | _count += to_add; | 134 | 266 | _remain_element_capacity -= to_add; | 135 | 266 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 266 | *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 | 266 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 266 | return Status::OK(); | 159 | 266 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.64k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.64k | DCHECK(!_finished); | 110 | 5.64k | 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 | 5.64k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.64k | 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 | 5.64k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.64k | 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 | 5.64k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.64k | _count += to_add; | 134 | 5.64k | _remain_element_capacity -= to_add; | 135 | 5.64k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.64k | *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 | 5.64k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.64k | return Status::OK(); | 159 | 5.64k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 23.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 23.7k | DCHECK(!_finished); | 110 | 23.7k | 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 | 23.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 23.7k | 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 | 23.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 23.7k | 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 | 23.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 23.7k | _count += to_add; | 134 | 23.7k | _remain_element_capacity -= to_add; | 135 | 23.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 23.7k | *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 | 23.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 23.7k | return Status::OK(); | 159 | 23.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 290k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 290k | DCHECK(!_finished); | 110 | 290k | 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 | 290k | uint32_t to_add = cast_set<UInt32>( | 126 | 290k | 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 | 290k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 290k | 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 | 290k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 290k | _count += to_add; | 134 | 290k | _remain_element_capacity -= to_add; | 135 | 290k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 290k | *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 | 290k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 290k | return Status::OK(); | 159 | 290k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.37k | DCHECK(!_finished); | 110 | 1.37k | 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.37k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.37k | 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.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.37k | 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.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.37k | _count += to_add; | 134 | 1.37k | _remain_element_capacity -= to_add; | 135 | 1.37k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.37k | *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.37k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.37k | return Status::OK(); | 159 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 271k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 271k | DCHECK(!_finished); | 110 | 271k | 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 | 271k | uint32_t to_add = cast_set<UInt32>( | 126 | 271k | 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 | 271k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 271k | 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 | 271k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 271k | _count += to_add; | 134 | 271k | _remain_element_capacity -= to_add; | 135 | 271k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 271k | *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 | 271k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 271k | return Status::OK(); | 159 | 271k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 274k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 274k | DCHECK(!_finished); | 110 | 274k | 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 | 274k | uint32_t to_add = cast_set<UInt32>( | 126 | 274k | 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 | 274k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 274k | 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 | 274k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 274k | _count += to_add; | 134 | 274k | _remain_element_capacity -= to_add; | 135 | 274k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 274k | *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 | 274k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 274k | return Status::OK(); | 159 | 274k | } |
|
160 | | |
161 | 865k | Status finish(OwnedSlice* slice) override { |
162 | 865k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 865k | return Status::OK(); |
164 | 865k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 432k | Status finish(OwnedSlice* slice) override { | 162 | 432k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 432k | return Status::OK(); | 164 | 432k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 57.1k | Status finish(OwnedSlice* slice) override { | 162 | 57.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 57.1k | return Status::OK(); | 164 | 57.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.18k | Status finish(OwnedSlice* slice) override { | 162 | 8.18k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.18k | return Status::OK(); | 164 | 8.18k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 104k | Status finish(OwnedSlice* slice) override { | 162 | 104k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 104k | return Status::OK(); | 164 | 104k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.77k | Status finish(OwnedSlice* slice) override { | 162 | 8.77k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.77k | return Status::OK(); | 164 | 8.77k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 80.4k | Status finish(OwnedSlice* slice) override { | 162 | 80.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 80.4k | return Status::OK(); | 164 | 80.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 12.5k | Status finish(OwnedSlice* slice) override { | 162 | 12.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 12.5k | return Status::OK(); | 164 | 12.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 16.2k | Status finish(OwnedSlice* slice) override { | 162 | 16.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 16.2k | return Status::OK(); | 164 | 16.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 749 | Status finish(OwnedSlice* slice) override { | 162 | 749 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 750 | return Status::OK(); | 164 | 749 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 39.6k | Status finish(OwnedSlice* slice) override { | 162 | 39.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 39.6k | return Status::OK(); | 164 | 39.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 46.8k | Status finish(OwnedSlice* slice) override { | 162 | 46.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 46.8k | return Status::OK(); | 164 | 46.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 793 | Status finish(OwnedSlice* slice) override { | 162 | 793 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 794 | return Status::OK(); | 164 | 793 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.14k | Status finish(OwnedSlice* slice) override { | 162 | 7.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.14k | return Status::OK(); | 164 | 7.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 277 | Status finish(OwnedSlice* slice) override { | 162 | 277 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 277 | return Status::OK(); | 164 | 277 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.3k | Status finish(OwnedSlice* slice) override { | 162 | 10.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.3k | return Status::OK(); | 164 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.5k | Status finish(OwnedSlice* slice) override { | 162 | 18.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.5k | return Status::OK(); | 164 | 18.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.0k | Status finish(OwnedSlice* slice) override { | 162 | 18.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.0k | return Status::OK(); | 164 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.07k | Status finish(OwnedSlice* slice) override { | 162 | 1.07k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.07k | return Status::OK(); | 164 | 1.07k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 760 | Status finish(OwnedSlice* slice) override { | 162 | 760 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 760 | return Status::OK(); | 164 | 760 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.04k | Status finish(OwnedSlice* slice) override { | 162 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.04k | return Status::OK(); | 164 | 1.04k | } |
|
165 | | |
166 | 2.11M | Status reset() override { |
167 | 2.11M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 2.11M | size_t block_size = _options.data_page_size; |
169 | 2.11M | _count = 0; |
170 | 2.11M | _raw_data_size = 0; |
171 | 2.11M | _data.clear(); |
172 | 2.11M | _data.reserve(block_size); |
173 | 2.11M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 2.11M | << "buffer must be naturally-aligned"; |
175 | 2.11M | _buffer.clear(); |
176 | 2.11M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 2.11M | _finished = false; |
178 | 2.11M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 2.11M | }); |
180 | 2.11M | return Status::OK(); |
181 | 2.11M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.25M | Status reset() override { | 167 | 1.25M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.25M | size_t block_size = _options.data_page_size; | 169 | 1.25M | _count = 0; | 170 | 1.25M | _raw_data_size = 0; | 171 | 1.25M | _data.clear(); | 172 | 1.25M | _data.reserve(block_size); | 173 | 1.25M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.25M | << "buffer must be naturally-aligned"; | 175 | 1.25M | _buffer.clear(); | 176 | 1.25M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.25M | _finished = false; | 178 | 1.25M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.25M | }); | 180 | 1.25M | return Status::OK(); | 181 | 1.25M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 114k | Status reset() override { | 167 | 114k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 114k | size_t block_size = _options.data_page_size; | 169 | 114k | _count = 0; | 170 | 114k | _raw_data_size = 0; | 171 | 114k | _data.clear(); | 172 | 114k | _data.reserve(block_size); | 173 | 114k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 114k | << "buffer must be naturally-aligned"; | 175 | 114k | _buffer.clear(); | 176 | 114k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 114k | _finished = false; | 178 | 114k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 114k | }); | 180 | 114k | return Status::OK(); | 181 | 114k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 16.7k | Status reset() override { | 167 | 16.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 16.7k | size_t block_size = _options.data_page_size; | 169 | 16.7k | _count = 0; | 170 | 16.7k | _raw_data_size = 0; | 171 | 16.7k | _data.clear(); | 172 | 16.7k | _data.reserve(block_size); | 173 | 16.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 16.7k | << "buffer must be naturally-aligned"; | 175 | 16.7k | _buffer.clear(); | 176 | 16.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 16.7k | _finished = false; | 178 | 16.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 16.7k | }); | 180 | 16.7k | return Status::OK(); | 181 | 16.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 206k | Status reset() override { | 167 | 206k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 206k | size_t block_size = _options.data_page_size; | 169 | 206k | _count = 0; | 170 | 206k | _raw_data_size = 0; | 171 | 206k | _data.clear(); | 172 | 206k | _data.reserve(block_size); | 173 | 206k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 206k | << "buffer must be naturally-aligned"; | 175 | 206k | _buffer.clear(); | 176 | 206k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 206k | _finished = false; | 178 | 206k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 206k | }); | 180 | 206k | return Status::OK(); | 181 | 206k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 17.8k | Status reset() override { | 167 | 17.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 17.8k | size_t block_size = _options.data_page_size; | 169 | 17.8k | _count = 0; | 170 | 17.8k | _raw_data_size = 0; | 171 | 17.8k | _data.clear(); | 172 | 17.8k | _data.reserve(block_size); | 173 | 17.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 17.8k | << "buffer must be naturally-aligned"; | 175 | 17.8k | _buffer.clear(); | 176 | 17.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 17.8k | _finished = false; | 178 | 17.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 17.8k | }); | 180 | 17.8k | return Status::OK(); | 181 | 17.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 160k | Status reset() override { | 167 | 160k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 160k | size_t block_size = _options.data_page_size; | 169 | 160k | _count = 0; | 170 | 160k | _raw_data_size = 0; | 171 | 160k | _data.clear(); | 172 | 160k | _data.reserve(block_size); | 173 | 160k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 160k | << "buffer must be naturally-aligned"; | 175 | 160k | _buffer.clear(); | 176 | 160k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 160k | _finished = false; | 178 | 160k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 160k | }); | 180 | 160k | return Status::OK(); | 181 | 160k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 25.9k | Status reset() override { | 167 | 25.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 25.9k | size_t block_size = _options.data_page_size; | 169 | 25.9k | _count = 0; | 170 | 25.9k | _raw_data_size = 0; | 171 | 25.9k | _data.clear(); | 172 | 25.9k | _data.reserve(block_size); | 173 | 25.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 25.9k | << "buffer must be naturally-aligned"; | 175 | 25.9k | _buffer.clear(); | 176 | 25.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 25.9k | _finished = false; | 178 | 25.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 25.9k | }); | 180 | 25.9k | return Status::OK(); | 181 | 25.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 32.7k | Status reset() override { | 167 | 32.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 32.7k | size_t block_size = _options.data_page_size; | 169 | 32.7k | _count = 0; | 170 | 32.7k | _raw_data_size = 0; | 171 | 32.7k | _data.clear(); | 172 | 32.7k | _data.reserve(block_size); | 173 | 32.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 32.7k | << "buffer must be naturally-aligned"; | 175 | 32.7k | _buffer.clear(); | 176 | 32.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 32.7k | _finished = false; | 178 | 32.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 32.7k | }); | 180 | 32.7k | return Status::OK(); | 181 | 32.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 1.48k | Status reset() override { | 167 | 1.48k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.48k | size_t block_size = _options.data_page_size; | 169 | 1.48k | _count = 0; | 170 | 1.48k | _raw_data_size = 0; | 171 | 1.48k | _data.clear(); | 172 | 1.48k | _data.reserve(block_size); | 173 | 1.48k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.48k | << "buffer must be naturally-aligned"; | 175 | 1.48k | _buffer.clear(); | 176 | 1.48k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.48k | _finished = false; | 178 | 1.48k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.48k | }); | 180 | 1.48k | return Status::OK(); | 181 | 1.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 78.7k | Status reset() override { | 167 | 78.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 78.7k | size_t block_size = _options.data_page_size; | 169 | 78.7k | _count = 0; | 170 | 78.7k | _raw_data_size = 0; | 171 | 78.7k | _data.clear(); | 172 | 78.7k | _data.reserve(block_size); | 173 | 78.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 78.7k | << "buffer must be naturally-aligned"; | 175 | 78.7k | _buffer.clear(); | 176 | 78.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 78.7k | _finished = false; | 178 | 78.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 78.7k | }); | 180 | 78.8k | return Status::OK(); | 181 | 78.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 94.5k | Status reset() override { | 167 | 94.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 94.5k | size_t block_size = _options.data_page_size; | 169 | 94.5k | _count = 0; | 170 | 94.5k | _raw_data_size = 0; | 171 | 94.5k | _data.clear(); | 172 | 94.5k | _data.reserve(block_size); | 173 | 94.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 94.5k | << "buffer must be naturally-aligned"; | 175 | 94.5k | _buffer.clear(); | 176 | 94.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 94.5k | _finished = false; | 178 | 94.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 94.5k | }); | 180 | 94.6k | return Status::OK(); | 181 | 94.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.43k | Status reset() override { | 167 | 1.43k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.43k | size_t block_size = _options.data_page_size; | 169 | 1.43k | _count = 0; | 170 | 1.43k | _raw_data_size = 0; | 171 | 1.43k | _data.clear(); | 172 | 1.43k | _data.reserve(block_size); | 173 | 1.43k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.43k | << "buffer must be naturally-aligned"; | 175 | 1.43k | _buffer.clear(); | 176 | 1.43k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.43k | _finished = false; | 178 | 1.43k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.43k | }); | 180 | 1.43k | return Status::OK(); | 181 | 1.43k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 14.0k | Status reset() override { | 167 | 14.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 14.0k | size_t block_size = _options.data_page_size; | 169 | 14.0k | _count = 0; | 170 | 14.0k | _raw_data_size = 0; | 171 | 14.0k | _data.clear(); | 172 | 14.0k | _data.reserve(block_size); | 173 | 14.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 14.0k | << "buffer must be naturally-aligned"; | 175 | 14.0k | _buffer.clear(); | 176 | 14.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 14.0k | _finished = false; | 178 | 14.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 14.0k | }); | 180 | 14.2k | return Status::OK(); | 181 | 14.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 633 | Status reset() override { | 167 | 633 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 633 | size_t block_size = _options.data_page_size; | 169 | 633 | _count = 0; | 170 | 633 | _raw_data_size = 0; | 171 | 633 | _data.clear(); | 172 | 633 | _data.reserve(block_size); | 173 | 633 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 633 | << "buffer must be naturally-aligned"; | 175 | 633 | _buffer.clear(); | 176 | 633 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 633 | _finished = false; | 178 | 633 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 633 | }); | 180 | 639 | return Status::OK(); | 181 | 633 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 20.6k | Status reset() override { | 167 | 20.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 20.6k | size_t block_size = _options.data_page_size; | 169 | 20.6k | _count = 0; | 170 | 20.6k | _raw_data_size = 0; | 171 | 20.6k | _data.clear(); | 172 | 20.6k | _data.reserve(block_size); | 173 | 20.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 20.6k | << "buffer must be naturally-aligned"; | 175 | 20.6k | _buffer.clear(); | 176 | 20.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 20.6k | _finished = false; | 178 | 20.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 20.6k | }); | 180 | 20.6k | return Status::OK(); | 181 | 20.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 30.6k | Status reset() override { | 167 | 30.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 30.6k | size_t block_size = _options.data_page_size; | 169 | 30.6k | _count = 0; | 170 | 30.6k | _raw_data_size = 0; | 171 | 30.6k | _data.clear(); | 172 | 30.6k | _data.reserve(block_size); | 173 | 30.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 30.6k | << "buffer must be naturally-aligned"; | 175 | 30.6k | _buffer.clear(); | 176 | 30.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 30.6k | _finished = false; | 178 | 30.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 30.6k | }); | 180 | 30.6k | return Status::OK(); | 181 | 30.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 35.5k | Status reset() override { | 167 | 35.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 35.5k | size_t block_size = _options.data_page_size; | 169 | 35.5k | _count = 0; | 170 | 35.5k | _raw_data_size = 0; | 171 | 35.5k | _data.clear(); | 172 | 35.5k | _data.reserve(block_size); | 173 | 35.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 35.5k | << "buffer must be naturally-aligned"; | 175 | 35.5k | _buffer.clear(); | 176 | 35.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 35.5k | _finished = false; | 178 | 35.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 35.5k | }); | 180 | 35.6k | return Status::OK(); | 181 | 35.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.22k | Status reset() override { | 167 | 2.22k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.22k | size_t block_size = _options.data_page_size; | 169 | 2.22k | _count = 0; | 170 | 2.22k | _raw_data_size = 0; | 171 | 2.22k | _data.clear(); | 172 | 2.22k | _data.reserve(block_size); | 173 | 2.22k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.22k | << "buffer must be naturally-aligned"; | 175 | 2.22k | _buffer.clear(); | 176 | 2.22k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.22k | _finished = false; | 178 | 2.22k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.22k | }); | 180 | 2.23k | return Status::OK(); | 181 | 2.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.58k | Status reset() override { | 167 | 1.58k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.58k | size_t block_size = _options.data_page_size; | 169 | 1.58k | _count = 0; | 170 | 1.58k | _raw_data_size = 0; | 171 | 1.58k | _data.clear(); | 172 | 1.58k | _data.reserve(block_size); | 173 | 1.58k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.58k | << "buffer must be naturally-aligned"; | 175 | 1.58k | _buffer.clear(); | 176 | 1.58k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.58k | _finished = false; | 178 | 1.58k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.58k | }); | 180 | 1.59k | return Status::OK(); | 181 | 1.58k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv 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 | } |
|
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_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 | 96.2k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 53.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 13.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 592 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 15.0k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 634 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 4.30k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 929 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 954 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 11 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.90k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.82k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 18 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 50 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 300 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 319 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.15k | 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 | 515k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 82.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 57.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.18k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 104k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.77k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 80.4k | 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 | 12.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 16.2k | 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 | 749 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 39.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 46.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 794 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 277 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 760 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.04k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 877k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 452k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 57.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.53k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 101k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.07k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 80.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 13.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 729 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 39.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 47.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 634 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 6.90k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 358 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 17.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.15k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 827 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 770 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 865k | OwnedSlice _finish(int final_size_of_type) { |
194 | 865k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 865k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 865k | int padding_elems = num_elems_after_padding - _count; |
199 | 865k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 24.2M | for (int i = 0; i < padding_bytes; i++) { |
201 | 23.3M | _data.push_back(0); |
202 | 23.3M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 865k | _buffer.resize( |
206 | 865k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 865k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 865k | int64_t bytes = |
210 | 865k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 865k | num_elems_after_padding, final_size_of_type, 0); |
212 | 865k | 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 | 865k | encode_fixed32_le(&_buffer[0], _count); |
222 | 865k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 865k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 865k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 865k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 865k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 865k | return _buffer.build(); |
229 | 865k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 432k | OwnedSlice _finish(int final_size_of_type) { | 194 | 432k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 432k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 432k | int padding_elems = num_elems_after_padding - _count; | 199 | 432k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 8.44M | for (int i = 0; i < padding_bytes; i++) { | 201 | 8.01M | _data.push_back(0); | 202 | 8.01M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 432k | _buffer.resize( | 206 | 432k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 432k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 432k | int64_t bytes = | 210 | 432k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 432k | num_elems_after_padding, final_size_of_type, 0); | 212 | 432k | 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 | 432k | encode_fixed32_le(&_buffer[0], _count); | 222 | 432k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 432k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 432k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 432k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 432k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 432k | return _buffer.build(); | 229 | 432k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 57.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 57.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 57.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 57.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 57.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 369k | for (int i = 0; i < padding_bytes; i++) { | 201 | 312k | _data.push_back(0); | 202 | 312k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 57.1k | _buffer.resize( | 206 | 57.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 57.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 57.1k | int64_t bytes = | 210 | 57.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 57.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 57.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 | 57.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 57.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 57.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 57.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 57.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 57.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 57.1k | return _buffer.build(); | 229 | 57.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 8.18k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.18k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.18k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.18k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.18k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 94.8k | for (int i = 0; i < padding_bytes; i++) { | 201 | 86.6k | _data.push_back(0); | 202 | 86.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.18k | _buffer.resize( | 206 | 8.18k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.18k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.18k | int64_t bytes = | 210 | 8.18k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.18k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.18k | 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 | 8.18k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.18k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.18k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.18k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.18k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.18k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.18k | return _buffer.build(); | 229 | 8.18k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 104k | OwnedSlice _finish(int final_size_of_type) { | 194 | 104k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 104k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 104k | int padding_elems = num_elems_after_padding - _count; | 199 | 104k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 4.53M | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.43M | _data.push_back(0); | 202 | 4.43M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 104k | _buffer.resize( | 206 | 104k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 104k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 104k | int64_t bytes = | 210 | 104k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 104k | num_elems_after_padding, final_size_of_type, 0); | 212 | 104k | 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 | 104k | encode_fixed32_le(&_buffer[0], _count); | 222 | 104k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 104k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 104k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 104k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 104k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 104k | return _buffer.build(); | 229 | 104k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 8.77k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.77k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.77k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.77k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.77k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 712k | for (int i = 0; i < padding_bytes; i++) { | 201 | 703k | _data.push_back(0); | 202 | 703k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.77k | _buffer.resize( | 206 | 8.77k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.77k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.77k | int64_t bytes = | 210 | 8.77k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.77k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.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 | 8.77k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.77k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.77k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.77k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.77k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.77k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.77k | return _buffer.build(); | 229 | 8.77k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 80.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 80.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 80.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 80.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 80.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.81M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.73M | _data.push_back(0); | 202 | 3.73M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 80.4k | _buffer.resize( | 206 | 80.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 80.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 80.4k | int64_t bytes = | 210 | 80.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 80.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 80.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 80.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 80.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 80.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 80.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 80.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 80.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 80.4k | return _buffer.build(); | 229 | 80.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 12.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 12.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 12.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 12.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 12.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 269k | for (int i = 0; i < padding_bytes; i++) { | 201 | 256k | _data.push_back(0); | 202 | 256k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 12.5k | _buffer.resize( | 206 | 12.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 12.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 12.5k | int64_t bytes = | 210 | 12.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 12.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 12.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 12.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 12.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 12.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 12.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 12.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 12.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 12.5k | return _buffer.build(); | 229 | 12.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 16.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 16.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 16.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 16.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 16.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 678k | for (int i = 0; i < padding_bytes; i++) { | 201 | 662k | _data.push_back(0); | 202 | 662k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 16.2k | _buffer.resize( | 206 | 16.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 16.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 16.2k | int64_t bytes = | 210 | 16.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 16.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 16.2k | 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 | 16.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 16.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 16.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 16.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 16.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 16.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 16.2k | return _buffer.build(); | 229 | 16.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 749 | OwnedSlice _finish(int final_size_of_type) { | 194 | 749 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 749 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 749 | int padding_elems = num_elems_after_padding - _count; | 199 | 749 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 10.6k | _data.push_back(0); | 202 | 10.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 749 | _buffer.resize( | 206 | 749 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 749 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 749 | int64_t bytes = | 210 | 749 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 749 | num_elems_after_padding, final_size_of_type, 0); | 212 | 749 | 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 | 749 | encode_fixed32_le(&_buffer[0], _count); | 222 | 749 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 749 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 749 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 749 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 749 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 749 | return _buffer.build(); | 229 | 749 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 39.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 39.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 39.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 39.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 39.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 845k | for (int i = 0; i < padding_bytes; i++) { | 201 | 806k | _data.push_back(0); | 202 | 806k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 39.6k | _buffer.resize( | 206 | 39.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 39.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 39.6k | int64_t bytes = | 210 | 39.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 39.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 39.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 39.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 39.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 39.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 39.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 39.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 39.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 39.6k | return _buffer.build(); | 229 | 39.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 46.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 46.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 46.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 46.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 46.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.97M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.92M | _data.push_back(0); | 202 | 1.92M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 46.8k | _buffer.resize( | 206 | 46.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 46.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 46.8k | int64_t bytes = | 210 | 46.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 46.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 46.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 | 46.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 46.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 46.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 46.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 46.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 46.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 46.8k | return _buffer.build(); | 229 | 46.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 793 | OwnedSlice _finish(int final_size_of_type) { | 194 | 793 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 793 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 793 | int padding_elems = num_elems_after_padding - _count; | 199 | 793 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 20.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 19.2k | _data.push_back(0); | 202 | 19.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 793 | _buffer.resize( | 206 | 793 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 793 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 793 | int64_t bytes = | 210 | 793 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 793 | num_elems_after_padding, final_size_of_type, 0); | 212 | 793 | 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 | 793 | encode_fixed32_le(&_buffer[0], _count); | 222 | 793 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 793 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 793 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 793 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 793 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 793 | return _buffer.build(); | 229 | 793 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.14k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.14k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.14k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.14k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 374k | for (int i = 0; i < padding_bytes; i++) { | 201 | 367k | _data.push_back(0); | 202 | 367k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.14k | _buffer.resize( | 206 | 7.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.14k | int64_t bytes = | 210 | 7.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.14k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.14k | 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.14k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.14k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.14k | return _buffer.build(); | 229 | 7.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 277 | OwnedSlice _finish(int final_size_of_type) { | 194 | 277 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 277 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 277 | int padding_elems = num_elems_after_padding - _count; | 199 | 277 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 20.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 19.8k | _data.push_back(0); | 202 | 19.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 277 | _buffer.resize( | 206 | 277 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 277 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 277 | int64_t bytes = | 210 | 277 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 277 | num_elems_after_padding, final_size_of_type, 0); | 212 | 277 | 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 | 277 | encode_fixed32_le(&_buffer[0], _count); | 222 | 277 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 277 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 277 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 277 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 277 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 277 | return _buffer.build(); | 229 | 277 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 10.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 128k | for (int i = 0; i < padding_bytes; i++) { | 201 | 117k | _data.push_back(0); | 202 | 117k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.3k | _buffer.resize( | 206 | 10.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.3k | int64_t bytes = | 210 | 10.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.3k | 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.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.3k | return _buffer.build(); | 229 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 490k | for (int i = 0; i < padding_bytes; i++) { | 201 | 472k | _data.push_back(0); | 202 | 472k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.5k | _buffer.resize( | 206 | 18.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.5k | int64_t bytes = | 210 | 18.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 18.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.5k | return _buffer.build(); | 229 | 18.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 18.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.20M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.18M | _data.push_back(0); | 202 | 1.18M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.0k | _buffer.resize( | 206 | 18.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.0k | int64_t bytes = | 210 | 18.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.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 | 18.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.0k | return _buffer.build(); | 229 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.07k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.07k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.07k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.07k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.07k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 163k | for (int i = 0; i < padding_bytes; i++) { | 201 | 162k | _data.push_back(0); | 202 | 162k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.07k | _buffer.resize( | 206 | 1.07k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.07k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.07k | int64_t bytes = | 210 | 1.07k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.07k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.07k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.07k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.07k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.07k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.07k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.07k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.07k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.07k | return _buffer.build(); | 229 | 1.07k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 760 | OwnedSlice _finish(int final_size_of_type) { | 194 | 760 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 760 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 760 | int padding_elems = num_elems_after_padding - _count; | 199 | 760 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 15.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 14.6k | _data.push_back(0); | 202 | 14.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 760 | _buffer.resize( | 206 | 760 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 760 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 760 | int64_t bytes = | 210 | 760 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 760 | num_elems_after_padding, final_size_of_type, 0); | 212 | 760 | 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 | 760 | encode_fixed32_le(&_buffer[0], _count); | 222 | 760 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 760 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 760 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 760 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 760 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 760 | return _buffer.build(); | 229 | 760 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 1.04k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.04k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.04k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.04k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.04k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 53.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 52.2k | _data.push_back(0); | 202 | 52.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.04k | _buffer.resize( | 206 | 1.04k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.04k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.04k | int64_t bytes = | 210 | 1.04k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.04k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.04k | 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.04k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.04k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.04k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.04k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.04k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.04k | return _buffer.build(); | 229 | 1.04k | } |
|
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 | 2.60M | int& size_of_element) { |
253 | 2.60M | 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 | 2.60M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.60M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.60M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.60M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.60M | 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 | 2.60M | switch (size_of_element) { |
271 | 263k | case 1: |
272 | 297k | case 2: |
273 | 326k | case 3: |
274 | 1.72M | case 4: |
275 | 2.50M | case 8: |
276 | 2.51M | case 12: |
277 | 2.60M | case 16: |
278 | 2.60M | case 32: |
279 | 2.60M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.60M | } |
283 | 2.60M | return Status::OK(); |
284 | 2.60M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.30M | : _data(data), |
291 | 1.30M | _options(options), |
292 | 1.30M | _parsed(false), |
293 | 1.30M | _num_elements(0), |
294 | 1.30M | _num_element_after_padding(0), |
295 | 1.30M | _size_of_element(0), |
296 | 1.30M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 596k | : _data(data), | 291 | 596k | _options(options), | 292 | 596k | _parsed(false), | 293 | 596k | _num_elements(0), | 294 | 596k | _num_element_after_padding(0), | 295 | 596k | _size_of_element(0), | 296 | 596k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 131k | : _data(data), | 291 | 131k | _options(options), | 292 | 131k | _parsed(false), | 293 | 131k | _num_elements(0), | 294 | 131k | _num_element_after_padding(0), | 295 | 131k | _size_of_element(0), | 296 | 131k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.0k | : _data(data), | 291 | 17.0k | _options(options), | 292 | 17.0k | _parsed(false), | 293 | 17.0k | _num_elements(0), | 294 | 17.0k | _num_element_after_padding(0), | 295 | 17.0k | _size_of_element(0), | 296 | 17.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 112k | : _data(data), | 291 | 112k | _options(options), | 292 | 112k | _parsed(false), | 293 | 112k | _num_elements(0), | 294 | 112k | _num_element_after_padding(0), | 295 | 112k | _size_of_element(0), | 296 | 112k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 12.0k | : _data(data), | 291 | 12.0k | _options(options), | 292 | 12.0k | _parsed(false), | 293 | 12.0k | _num_elements(0), | 294 | 12.0k | _num_element_after_padding(0), | 295 | 12.0k | _size_of_element(0), | 296 | 12.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 113k | : _data(data), | 291 | 113k | _options(options), | 292 | 113k | _parsed(false), | 293 | 113k | _num_elements(0), | 294 | 113k | _num_element_after_padding(0), | 295 | 113k | _size_of_element(0), | 296 | 113k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 21.6k | : _data(data), | 291 | 21.6k | _options(options), | 292 | 21.6k | _parsed(false), | 293 | 21.6k | _num_elements(0), | 294 | 21.6k | _num_element_after_padding(0), | 295 | 21.6k | _size_of_element(0), | 296 | 21.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.5k | : _data(data), | 291 | 30.5k | _options(options), | 292 | 30.5k | _parsed(false), | 293 | 30.5k | _num_elements(0), | 294 | 30.5k | _num_element_after_padding(0), | 295 | 30.5k | _size_of_element(0), | 296 | 30.5k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.2k | : _data(data), | 291 | 14.2k | _options(options), | 292 | 14.2k | _parsed(false), | 293 | 14.2k | _num_elements(0), | 294 | 14.2k | _num_element_after_padding(0), | 295 | 14.2k | _size_of_element(0), | 296 | 14.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 62.0k | : _data(data), | 291 | 62.0k | _options(options), | 292 | 62.0k | _parsed(false), | 293 | 62.0k | _num_elements(0), | 294 | 62.0k | _num_element_after_padding(0), | 295 | 62.0k | _size_of_element(0), | 296 | 62.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 71.1k | : _data(data), | 291 | 71.1k | _options(options), | 292 | 71.1k | _parsed(false), | 293 | 71.1k | _num_elements(0), | 294 | 71.1k | _num_element_after_padding(0), | 295 | 71.1k | _size_of_element(0), | 296 | 71.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 12.2k | : _data(data), | 291 | 12.2k | _options(options), | 292 | 12.2k | _parsed(false), | 293 | 12.2k | _num_elements(0), | 294 | 12.2k | _num_element_after_padding(0), | 295 | 12.2k | _size_of_element(0), | 296 | 12.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.6k | : _data(data), | 291 | 14.6k | _options(options), | 292 | 14.6k | _parsed(false), | 293 | 14.6k | _num_elements(0), | 294 | 14.6k | _num_element_after_padding(0), | 295 | 14.6k | _size_of_element(0), | 296 | 14.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.92k | : _data(data), | 291 | 1.92k | _options(options), | 292 | 1.92k | _parsed(false), | 293 | 1.92k | _num_elements(0), | 294 | 1.92k | _num_element_after_padding(0), | 295 | 1.92k | _size_of_element(0), | 296 | 1.92k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.8k | : _data(data), | 291 | 15.8k | _options(options), | 292 | 15.8k | _parsed(false), | 293 | 15.8k | _num_elements(0), | 294 | 15.8k | _num_element_after_padding(0), | 295 | 15.8k | _size_of_element(0), | 296 | 15.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 38.6k | : _data(data), | 291 | 38.6k | _options(options), | 292 | 38.6k | _parsed(false), | 293 | 38.6k | _num_elements(0), | 294 | 38.6k | _num_element_after_padding(0), | 295 | 38.6k | _size_of_element(0), | 296 | 38.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 32.5k | : _data(data), | 291 | 32.5k | _options(options), | 292 | 32.5k | _parsed(false), | 293 | 32.5k | _num_elements(0), | 294 | 32.5k | _num_element_after_padding(0), | 295 | 32.5k | _size_of_element(0), | 296 | 32.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.74k | : _data(data), | 291 | 1.74k | _options(options), | 292 | 1.74k | _parsed(false), | 293 | 1.74k | _num_elements(0), | 294 | 1.74k | _num_element_after_padding(0), | 295 | 1.74k | _size_of_element(0), | 296 | 1.74k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.28k | : _data(data), | 291 | 1.28k | _options(options), | 292 | 1.28k | _parsed(false), | 293 | 1.28k | _num_elements(0), | 294 | 1.28k | _num_element_after_padding(0), | 295 | 1.28k | _size_of_element(0), | 296 | 1.28k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.49k | : _data(data), | 291 | 1.49k | _options(options), | 292 | 1.49k | _parsed(false), | 293 | 1.49k | _num_elements(0), | 294 | 1.49k | _num_element_after_padding(0), | 295 | 1.49k | _size_of_element(0), | 296 | 1.49k | _cur_index(0) {} |
|
297 | | |
298 | 1.30M | Status init() override { |
299 | 1.30M | CHECK(!_parsed); |
300 | 1.30M | size_t unused; |
301 | 1.30M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.30M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.30M | if (_data.size != |
305 | 1.30M | _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.30M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.30M | _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.30M | 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.30M | _parsed = true; |
325 | 1.30M | return Status::OK(); |
326 | 1.30M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 596k | Status init() override { | 299 | 596k | CHECK(!_parsed); | 300 | 596k | size_t unused; | 301 | 596k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 596k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 596k | if (_data.size != | 305 | 596k | _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 | 596k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 596k | _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 | 596k | 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 | 596k | _parsed = true; | 325 | 596k | return Status::OK(); | 326 | 596k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 131k | Status init() override { | 299 | 131k | CHECK(!_parsed); | 300 | 131k | size_t unused; | 301 | 131k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 131k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 131k | if (_data.size != | 305 | 131k | _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 | 131k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 131k | _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 | 131k | 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 | 131k | _parsed = true; | 325 | 131k | return Status::OK(); | 326 | 131k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 17.0k | Status init() override { | 299 | 17.0k | CHECK(!_parsed); | 300 | 17.0k | size_t unused; | 301 | 17.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 17.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 17.0k | if (_data.size != | 305 | 17.0k | _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.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 17.0k | _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.0k | 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.0k | _parsed = true; | 325 | 17.0k | return Status::OK(); | 326 | 17.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 112k | Status init() override { | 299 | 112k | CHECK(!_parsed); | 300 | 112k | size_t unused; | 301 | 112k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 112k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 112k | if (_data.size != | 305 | 112k | _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 | 112k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 112k | _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 | 112k | 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 | 112k | _parsed = true; | 325 | 112k | return Status::OK(); | 326 | 112k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 12.0k | Status init() override { | 299 | 12.0k | CHECK(!_parsed); | 300 | 12.0k | size_t unused; | 301 | 12.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 12.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 12.0k | if (_data.size != | 305 | 12.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 12.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 12.0k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 12.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 12.0k | _parsed = true; | 325 | 12.0k | return Status::OK(); | 326 | 12.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 113k | Status init() override { | 299 | 113k | CHECK(!_parsed); | 300 | 113k | size_t unused; | 301 | 113k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 113k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 113k | if (_data.size != | 305 | 113k | _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 | 113k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 113k | _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 | 113k | 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 | 113k | _parsed = true; | 325 | 113k | return Status::OK(); | 326 | 113k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 21.6k | Status init() override { | 299 | 21.6k | CHECK(!_parsed); | 300 | 21.6k | size_t unused; | 301 | 21.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 21.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 21.6k | if (_data.size != | 305 | 21.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 21.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 21.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 21.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 21.6k | _parsed = true; | 325 | 21.6k | return Status::OK(); | 326 | 21.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 30.4k | Status init() override { | 299 | 30.4k | CHECK(!_parsed); | 300 | 30.4k | size_t unused; | 301 | 30.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.4k | if (_data.size != | 305 | 30.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 | 30.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.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 | 30.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 | 30.4k | _parsed = true; | 325 | 30.4k | return Status::OK(); | 326 | 30.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 14.1k | Status init() override { | 299 | 14.1k | CHECK(!_parsed); | 300 | 14.1k | size_t unused; | 301 | 14.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.1k | if (_data.size != | 305 | 14.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 | 14.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.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 | 14.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 | 14.1k | _parsed = true; | 325 | 14.1k | return Status::OK(); | 326 | 14.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 62.0k | Status init() override { | 299 | 62.0k | CHECK(!_parsed); | 300 | 62.0k | size_t unused; | 301 | 62.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 62.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 62.0k | if (_data.size != | 305 | 62.0k | _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 | 62.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 62.0k | _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 | 62.0k | 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 | 62.0k | _parsed = true; | 325 | 62.0k | return Status::OK(); | 326 | 62.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 71.0k | Status init() override { | 299 | 71.0k | CHECK(!_parsed); | 300 | 71.0k | size_t unused; | 301 | 71.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 71.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 71.0k | if (_data.size != | 305 | 71.0k | _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 | 71.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 71.0k | _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 | 71.0k | 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 | 71.0k | _parsed = true; | 325 | 71.0k | return Status::OK(); | 326 | 71.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 12.1k | Status init() override { | 299 | 12.1k | CHECK(!_parsed); | 300 | 12.1k | size_t unused; | 301 | 12.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 12.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 12.1k | if (_data.size != | 305 | 12.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 | 12.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 12.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 | 12.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 | 12.1k | _parsed = true; | 325 | 12.1k | return Status::OK(); | 326 | 12.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 14.6k | Status init() override { | 299 | 14.6k | CHECK(!_parsed); | 300 | 14.6k | size_t unused; | 301 | 14.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.6k | if (_data.size != | 305 | 14.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 14.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 14.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 14.6k | _parsed = true; | 325 | 14.6k | return Status::OK(); | 326 | 14.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.92k | Status init() override { | 299 | 1.92k | CHECK(!_parsed); | 300 | 1.92k | size_t unused; | 301 | 1.92k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.92k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.92k | if (_data.size != | 305 | 1.92k | _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.92k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.92k | _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.92k | 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.92k | _parsed = true; | 325 | 1.92k | return Status::OK(); | 326 | 1.92k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.8k | Status init() override { | 299 | 15.8k | CHECK(!_parsed); | 300 | 15.8k | size_t unused; | 301 | 15.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.8k | if (_data.size != | 305 | 15.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 | 15.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.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 | 15.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 | 15.8k | _parsed = true; | 325 | 15.8k | return Status::OK(); | 326 | 15.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 38.6k | Status init() override { | 299 | 38.6k | CHECK(!_parsed); | 300 | 38.6k | size_t unused; | 301 | 38.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 38.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 38.6k | if (_data.size != | 305 | 38.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 38.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 38.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 38.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 38.6k | _parsed = true; | 325 | 38.6k | return Status::OK(); | 326 | 38.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 32.5k | Status init() override { | 299 | 32.5k | CHECK(!_parsed); | 300 | 32.5k | size_t unused; | 301 | 32.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 32.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 32.5k | if (_data.size != | 305 | 32.5k | _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 | 32.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 32.5k | _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 | 32.5k | 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 | 32.5k | _parsed = true; | 325 | 32.5k | return Status::OK(); | 326 | 32.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.74k | Status init() override { | 299 | 1.74k | CHECK(!_parsed); | 300 | 1.74k | size_t unused; | 301 | 1.74k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.74k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.74k | if (_data.size != | 305 | 1.74k | _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.74k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.74k | _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.74k | 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.74k | _parsed = true; | 325 | 1.74k | return Status::OK(); | 326 | 1.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 1.28k | Status init() override { | 299 | 1.28k | CHECK(!_parsed); | 300 | 1.28k | size_t unused; | 301 | 1.28k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.28k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.28k | if (_data.size != | 305 | 1.28k | _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.28k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.28k | _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.28k | 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.28k | _parsed = true; | 325 | 1.28k | return Status::OK(); | 326 | 1.28k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 1.49k | Status init() override { | 299 | 1.49k | CHECK(!_parsed); | 300 | 1.49k | size_t unused; | 301 | 1.49k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.49k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.49k | if (_data.size != | 305 | 1.49k | _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.49k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.49k | _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.49k | 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.49k | _parsed = true; | 325 | 1.49k | return Status::OK(); | 326 | 1.49k | } |
|
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.69M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 3.69M | if (_num_elements == 0) [[unlikely]] { |
337 | 4.28k | 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.28k | } |
342 | | |
343 | 3.69M | DCHECK_LE(pos, _num_elements); |
344 | 3.69M | _cur_index = pos; |
345 | 3.69M | return Status::OK(); |
346 | 3.69M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.73M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.73M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.28k | 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.28k | } | 342 | | | 343 | 1.73M | DCHECK_LE(pos, _num_elements); | 344 | 1.73M | _cur_index = pos; | 345 | 1.73M | return Status::OK(); | 346 | 1.73M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 86.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 86.4k | if (_num_elements == 0) [[unlikely]] { | 337 | 448 | 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 | 448 | } | 342 | | | 343 | 86.4k | DCHECK_LE(pos, _num_elements); | 344 | 86.4k | _cur_index = pos; | 345 | 86.4k | return Status::OK(); | 346 | 86.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 4.95k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 4.95k | if (_num_elements == 0) [[unlikely]] { | 337 | 679 | 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 | 679 | } | 342 | | | 343 | 4.95k | DCHECK_LE(pos, _num_elements); | 344 | 4.95k | _cur_index = pos; | 345 | 4.95k | return Status::OK(); | 346 | 4.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 41.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 41.8k | DCHECK(_parsed) << "Must call init()"; | 336 | 41.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 372 | 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 | 372 | } | 342 | | | 343 | 41.8k | DCHECK_LE(pos, _num_elements); | 344 | 41.8k | _cur_index = pos; | 345 | 41.8k | return Status::OK(); | 346 | 41.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 3.76k | Status seek_to_position_in_page(size_t pos) override { | 335 | 3.76k | DCHECK(_parsed) << "Must call init()"; | 336 | 3.76k | if (_num_elements == 0) [[unlikely]] { | 337 | 6 | 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 | 6 | } | 342 | | | 343 | 3.76k | DCHECK_LE(pos, _num_elements); | 344 | 3.76k | _cur_index = pos; | 345 | 3.76k | return Status::OK(); | 346 | 3.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.3k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 18.3k | 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 | 18.3k | DCHECK_LE(pos, _num_elements); | 344 | 18.3k | _cur_index = pos; | 345 | 18.3k | return Status::OK(); | 346 | 18.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 229k | Status seek_to_position_in_page(size_t pos) override { | 335 | 229k | DCHECK(_parsed) << "Must call init()"; | 336 | 229k | 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 | 229k | DCHECK_LE(pos, _num_elements); | 344 | 229k | _cur_index = pos; | 345 | 229k | return Status::OK(); | 346 | 229k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 205k | Status seek_to_position_in_page(size_t pos) override { | 335 | 205k | DCHECK(_parsed) << "Must call init()"; | 336 | 205k | 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 | 205k | DCHECK_LE(pos, _num_elements); | 344 | 205k | _cur_index = pos; | 345 | 205k | return Status::OK(); | 346 | 205k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 405k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 405k | if (_num_elements == 0) [[unlikely]] { | 337 | 704 | 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 | 704 | } | 342 | | | 343 | 405k | DCHECK_LE(pos, _num_elements); | 344 | 405k | _cur_index = pos; | 345 | 405k | return Status::OK(); | 346 | 405k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 540k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 540k | 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 | 540k | DCHECK_LE(pos, _num_elements); | 344 | 540k | _cur_index = pos; | 345 | 540k | return Status::OK(); | 346 | 540k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 65.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 65.4k | DCHECK(_parsed) << "Must call init()"; | 336 | 65.4k | if (_num_elements == 0) [[unlikely]] { | 337 | 16 | 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 | 16 | } | 342 | | | 343 | 65.4k | DCHECK_LE(pos, _num_elements); | 344 | 65.4k | _cur_index = pos; | 345 | 65.4k | return Status::OK(); | 346 | 65.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 208k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 208k | if (_num_elements == 0) [[unlikely]] { | 337 | 159 | 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 | 159 | } | 342 | | | 343 | 208k | DCHECK_LE(pos, _num_elements); | 344 | 208k | _cur_index = pos; | 345 | 208k | return Status::OK(); | 346 | 208k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.53k | Status seek_to_position_in_page(size_t pos) override { | 335 | 6.53k | DCHECK(_parsed) << "Must call init()"; | 336 | 6.53k | if (_num_elements == 0) [[unlikely]] { | 337 | 353 | 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 | 353 | } | 342 | | | 343 | 6.53k | DCHECK_LE(pos, _num_elements); | 344 | 6.53k | _cur_index = pos; | 345 | 6.53k | return Status::OK(); | 346 | 6.53k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 456 | Status seek_to_position_in_page(size_t pos) override { | 335 | 456 | DCHECK(_parsed) << "Must call init()"; | 336 | 456 | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | 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 | 12 | } | 342 | | | 343 | 456 | DCHECK_LE(pos, _num_elements); | 344 | 456 | _cur_index = pos; | 345 | 456 | return Status::OK(); | 346 | 456 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 899 | Status seek_to_position_in_page(size_t pos) override { | 335 | 899 | DCHECK(_parsed) << "Must call init()"; | 336 | 899 | if (_num_elements == 0) [[unlikely]] { | 337 | 26 | 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 | 26 | } | 342 | | | 343 | 899 | DCHECK_LE(pos, _num_elements); | 344 | 899 | _cur_index = pos; | 345 | 899 | return Status::OK(); | 346 | 899 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 15.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 15.8k | DCHECK(_parsed) << "Must call init()"; | 336 | 15.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 12 | 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 | 12 | } | 342 | | | 343 | 15.8k | DCHECK_LE(pos, _num_elements); | 344 | 15.8k | _cur_index = pos; | 345 | 15.8k | return Status::OK(); | 346 | 15.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 118k | Status seek_to_position_in_page(size_t pos) override { | 335 | 118k | DCHECK(_parsed) << "Must call init()"; | 336 | 118k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | 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 | 10 | } | 342 | | | 343 | 118k | DCHECK_LE(pos, _num_elements); | 344 | 118k | _cur_index = pos; | 345 | 118k | return Status::OK(); | 346 | 118k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.97k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.97k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.97k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.97k | DCHECK_LE(pos, _num_elements); | 344 | 1.97k | _cur_index = pos; | 345 | 1.97k | return Status::OK(); | 346 | 1.97k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 80 | Status seek_to_position_in_page(size_t pos) override { | 335 | 80 | DCHECK(_parsed) << "Must call init()"; | 336 | 80 | 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 | 80 | DCHECK_LE(pos, _num_elements); | 344 | 80 | _cur_index = pos; | 345 | 80 | return Status::OK(); | 346 | 80 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 118 | Status seek_to_position_in_page(size_t pos) override { | 335 | 118 | DCHECK(_parsed) << "Must call init()"; | 336 | 118 | 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 | 118 | DCHECK_LE(pos, _num_elements); | 344 | 118 | _cur_index = pos; | 345 | 118 | return Status::OK(); | 346 | 118 | } |
|
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_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 | 3.78M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 3.78M | DCHECK(_parsed); |
389 | 3.78M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 3.78M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 3.78M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 3.78M | *n = max_fetch; |
398 | 3.78M | if constexpr (forward_index) { |
399 | 3.52M | _cur_index += max_fetch; |
400 | 3.52M | } |
401 | | |
402 | 3.78M | return Status::OK(); |
403 | 3.78M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 648k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 648k | DCHECK(_parsed); | 389 | 648k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 648k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 648k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 648k | *n = max_fetch; | 398 | 648k | if constexpr (forward_index) { | 399 | 648k | _cur_index += max_fetch; | 400 | 648k | } | 401 | | | 402 | 648k | return Status::OK(); | 403 | 648k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 217k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 217k | DCHECK(_parsed); | 389 | 217k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 217k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 217k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 217k | *n = max_fetch; | 398 | 217k | if constexpr (forward_index) { | 399 | 217k | _cur_index += max_fetch; | 400 | 217k | } | 401 | | | 402 | 217k | return Status::OK(); | 403 | 217k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 15.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.1k | DCHECK(_parsed); | 389 | 15.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 15.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.1k | *n = max_fetch; | 398 | 15.1k | if constexpr (forward_index) { | 399 | 15.1k | _cur_index += max_fetch; | 400 | 15.1k | } | 401 | | | 402 | 15.1k | return Status::OK(); | 403 | 15.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 118k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 118k | DCHECK(_parsed); | 389 | 118k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 118k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 118k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 118k | *n = max_fetch; | 398 | 118k | if constexpr (forward_index) { | 399 | 118k | _cur_index += max_fetch; | 400 | 118k | } | 401 | | | 402 | 118k | return Status::OK(); | 403 | 118k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 192k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 192k | DCHECK(_parsed); | 389 | 192k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 192k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 192k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 192k | *n = max_fetch; | 398 | 192k | if constexpr (forward_index) { | 399 | 192k | _cur_index += max_fetch; | 400 | 192k | } | 401 | | | 402 | 192k | return Status::OK(); | 403 | 192k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 191k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 191k | DCHECK(_parsed); | 389 | 191k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 191k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 191k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 191k | *n = max_fetch; | 398 | 191k | if constexpr (forward_index) { | 399 | 191k | _cur_index += max_fetch; | 400 | 191k | } | 401 | | | 402 | 191k | return Status::OK(); | 403 | 191k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 256k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 256k | DCHECK(_parsed); | 389 | 256k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 256k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 256k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 256k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 256k | return Status::OK(); | 403 | 256k | } |
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 | 15.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 15.5k | DCHECK(_parsed); | 389 | 15.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 15.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 15.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 15.5k | *n = max_fetch; | 398 | 15.5k | if constexpr (forward_index) { | 399 | 15.5k | _cur_index += max_fetch; | 400 | 15.5k | } | 401 | | | 402 | 15.5k | return Status::OK(); | 403 | 15.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 29.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 29.1k | DCHECK(_parsed); | 389 | 29.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 29.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 29.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 29.1k | *n = max_fetch; | 398 | 29.1k | if constexpr (forward_index) { | 399 | 29.1k | _cur_index += max_fetch; | 400 | 29.1k | } | 401 | | | 402 | 29.1k | return Status::OK(); | 403 | 29.1k | } |
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 | 254k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 254k | DCHECK(_parsed); | 389 | 254k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 254k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 254k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 254k | *n = max_fetch; | 398 | 254k | if constexpr (forward_index) { | 399 | 254k | _cur_index += max_fetch; | 400 | 254k | } | 401 | | | 402 | 254k | return Status::OK(); | 403 | 254k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 783k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 783k | DCHECK(_parsed); | 389 | 783k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 783k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 783k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 783k | *n = max_fetch; | 398 | 783k | if constexpr (forward_index) { | 399 | 783k | _cur_index += max_fetch; | 400 | 783k | } | 401 | | | 402 | 783k | return Status::OK(); | 403 | 783k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 431k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 431k | DCHECK(_parsed); | 389 | 431k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 431k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 431k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 431k | *n = max_fetch; | 398 | 431k | if constexpr (forward_index) { | 399 | 431k | _cur_index += max_fetch; | 400 | 431k | } | 401 | | | 402 | 431k | return Status::OK(); | 403 | 431k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.51k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.51k | DCHECK(_parsed); | 389 | 9.51k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.51k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.51k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.51k | *n = max_fetch; | 398 | 9.51k | if constexpr (forward_index) { | 399 | 9.51k | _cur_index += max_fetch; | 400 | 9.51k | } | 401 | | | 402 | 9.51k | return Status::OK(); | 403 | 9.51k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.44k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.44k | DCHECK(_parsed); | 389 | 7.44k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.44k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.44k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.44k | *n = max_fetch; | 398 | 7.44k | if constexpr (forward_index) { | 399 | 7.44k | _cur_index += max_fetch; | 400 | 7.44k | } | 401 | | | 402 | 7.44k | return Status::OK(); | 403 | 7.44k | } |
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.78k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.78k | DCHECK(_parsed); | 389 | 1.78k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.78k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.78k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.78k | *n = max_fetch; | 398 | 1.78k | if constexpr (forward_index) { | 399 | 1.78k | _cur_index += max_fetch; | 400 | 1.78k | } | 401 | | | 402 | 1.78k | return Status::OK(); | 403 | 1.78k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.69k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.69k | DCHECK(_parsed); | 389 | 9.70k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.69k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.69k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.69k | *n = max_fetch; | 398 | 9.69k | if constexpr (forward_index) { | 399 | 9.69k | _cur_index += max_fetch; | 400 | 9.69k | } | 401 | | | 402 | 9.69k | return Status::OK(); | 403 | 9.69k | } |
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.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 29.0k | DCHECK(_parsed); | 389 | 29.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 29.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 29.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 29.0k | *n = max_fetch; | 398 | 29.0k | if constexpr (forward_index) { | 399 | 29.0k | _cur_index += max_fetch; | 400 | 29.0k | } | 401 | | | 402 | 29.0k | return Status::OK(); | 403 | 29.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 204k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 204k | DCHECK(_parsed); | 389 | 204k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 204k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 204k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 204k | *n = max_fetch; | 398 | 204k | if constexpr (forward_index) { | 399 | 204k | _cur_index += max_fetch; | 400 | 204k | } | 401 | | | 402 | 204k | return Status::OK(); | 403 | 204k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.18k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.18k | DCHECK(_parsed); | 389 | 3.18k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.18k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.18k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.18k | *n = max_fetch; | 398 | 3.18k | if constexpr (forward_index) { | 399 | 3.18k | _cur_index += max_fetch; | 400 | 3.18k | } | 401 | | | 402 | 3.18k | return Status::OK(); | 403 | 3.18k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 181k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 181k | DCHECK(_parsed); | 389 | 181k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 181k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 181k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 181k | *n = max_fetch; | 398 | 181k | if constexpr (forward_index) { | 399 | 181k | _cur_index += max_fetch; | 400 | 181k | } | 401 | | | 402 | 181k | return Status::OK(); | 403 | 181k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 184k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 184k | DCHECK(_parsed); | 389 | 184k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 184k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 184k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 184k | *n = max_fetch; | 398 | 184k | if constexpr (forward_index) { | 399 | 184k | _cur_index += max_fetch; | 400 | 184k | } | 401 | | | 402 | 184k | return Status::OK(); | 403 | 184k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 3.52M | 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 | 648k | 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 | 217k | 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 | 15.1k | 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 | 118k | 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 | 192k | 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 | 191k | 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 | 15.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 29.1k | 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 | 254k | 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 | 783k | 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 | 431k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 9.50k | 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 | 7.44k | 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.78k | 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 | 9.70k | 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.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 204k | 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 | 3.18k | 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 | 181k | 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 | 184k | 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 | 434k | MutableColumnPtr& dst) override { |
409 | 434k | DCHECK(_parsed); |
410 | 434k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 434k | auto total = *n; |
416 | 434k | auto read_count = 0; |
417 | 434k | _buffer.resize(total); |
418 | 114M | for (size_t i = 0; i < total; ++i) { |
419 | 114M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 114M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 11.0k | break; |
422 | 11.0k | } |
423 | | |
424 | 114M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 114M | } |
426 | | |
427 | 435k | if (LIKELY(read_count > 0)) { |
428 | 435k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 435k | } |
430 | | |
431 | 434k | *n = read_count; |
432 | 434k | return Status::OK(); |
433 | 434k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 99.6k | MutableColumnPtr& dst) override { | 409 | 99.6k | DCHECK(_parsed); | 410 | 99.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 99.6k | auto total = *n; | 416 | 99.6k | auto read_count = 0; | 417 | 99.6k | _buffer.resize(total); | 418 | 43.1M | for (size_t i = 0; i < total; ++i) { | 419 | 43.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 43.0M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.52k | break; | 422 | 1.52k | } | 423 | | | 424 | 43.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 43.0M | } | 426 | | | 427 | 99.6k | if (LIKELY(read_count > 0)) { | 428 | 99.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 99.6k | } | 430 | | | 431 | 99.6k | *n = read_count; | 432 | 99.6k | return Status::OK(); | 433 | 99.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 47.7k | MutableColumnPtr& dst) override { | 409 | 47.7k | DCHECK(_parsed); | 410 | 47.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 47.7k | auto total = *n; | 416 | 47.7k | auto read_count = 0; | 417 | 47.7k | _buffer.resize(total); | 418 | 916k | for (size_t i = 0; i < total; ++i) { | 419 | 868k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 868k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 868k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 868k | } | 426 | | | 427 | 47.7k | if (LIKELY(read_count > 0)) { | 428 | 47.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 47.7k | } | 430 | | | 431 | 47.7k | *n = read_count; | 432 | 47.7k | return Status::OK(); | 433 | 47.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.82k | MutableColumnPtr& dst) override { | 409 | 8.82k | DCHECK(_parsed); | 410 | 8.82k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.82k | auto total = *n; | 416 | 8.82k | auto read_count = 0; | 417 | 8.82k | _buffer.resize(total); | 418 | 58.5k | for (size_t i = 0; i < total; ++i) { | 419 | 49.7k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 49.7k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 49.7k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 49.7k | } | 426 | | | 427 | 8.82k | if (LIKELY(read_count > 0)) { | 428 | 8.81k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.81k | } | 430 | | | 431 | 8.82k | *n = read_count; | 432 | 8.82k | return Status::OK(); | 433 | 8.82k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 64.7k | MutableColumnPtr& dst) override { | 409 | 64.7k | DCHECK(_parsed); | 410 | 64.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 64.7k | auto total = *n; | 416 | 64.7k | auto read_count = 0; | 417 | 64.7k | _buffer.resize(total); | 418 | 12.2M | for (size_t i = 0; i < total; ++i) { | 419 | 12.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 12.2M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 374 | break; | 422 | 374 | } | 423 | | | 424 | 12.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 12.2M | } | 426 | | | 427 | 64.7k | if (LIKELY(read_count > 0)) { | 428 | 64.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 64.7k | } | 430 | | | 431 | 64.7k | *n = read_count; | 432 | 64.7k | return Status::OK(); | 433 | 64.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.29k | MutableColumnPtr& dst) override { | 409 | 6.29k | DCHECK(_parsed); | 410 | 6.29k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.29k | auto total = *n; | 416 | 6.29k | auto read_count = 0; | 417 | 6.29k | _buffer.resize(total); | 418 | 18.6k | for (size_t i = 0; i < total; ++i) { | 419 | 12.3k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 12.3k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 12.3k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 12.3k | } | 426 | | | 427 | 6.29k | if (LIKELY(read_count > 0)) { | 428 | 6.29k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.29k | } | 430 | | | 431 | 6.29k | *n = read_count; | 432 | 6.29k | return Status::OK(); | 433 | 6.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 44.5k | MutableColumnPtr& dst) override { | 409 | 44.5k | DCHECK(_parsed); | 410 | 44.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 44.5k | auto total = *n; | 416 | 44.5k | auto read_count = 0; | 417 | 44.5k | _buffer.resize(total); | 418 | 4.42M | for (size_t i = 0; i < total; ++i) { | 419 | 4.38M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 4.38M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.32k | break; | 422 | 1.32k | } | 423 | | | 424 | 4.38M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 4.38M | } | 426 | | | 427 | 44.5k | if (LIKELY(read_count > 0)) { | 428 | 44.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 44.5k | } | 430 | | | 431 | 44.5k | *n = read_count; | 432 | 44.5k | return Status::OK(); | 433 | 44.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.6k | MutableColumnPtr& dst) override { | 409 | 10.6k | DCHECK(_parsed); | 410 | 10.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.6k | auto total = *n; | 416 | 10.6k | auto read_count = 0; | 417 | 10.6k | _buffer.resize(total); | 418 | 1.23M | 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 | 30 | break; | 422 | 30 | } | 423 | | | 424 | 1.22M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.22M | } | 426 | | | 427 | 10.6k | if (LIKELY(read_count > 0)) { | 428 | 10.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.6k | } | 430 | | | 431 | 10.6k | *n = read_count; | 432 | 10.6k | return Status::OK(); | 433 | 10.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 14.4k | MutableColumnPtr& dst) override { | 409 | 14.4k | DCHECK(_parsed); | 410 | 14.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 14.4k | auto total = *n; | 416 | 14.4k | auto read_count = 0; | 417 | 14.4k | _buffer.resize(total); | 418 | 2.03M | for (size_t i = 0; i < total; ++i) { | 419 | 2.01M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.01M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 450 | break; | 422 | 450 | } | 423 | | | 424 | 2.01M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.01M | } | 426 | | | 427 | 14.4k | if (LIKELY(read_count > 0)) { | 428 | 14.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 14.4k | } | 430 | | | 431 | 14.4k | *n = read_count; | 432 | 14.4k | return Status::OK(); | 433 | 14.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 | 7.47k | MutableColumnPtr& dst) override { | 409 | 7.47k | DCHECK(_parsed); | 410 | 7.47k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.47k | auto total = *n; | 416 | 7.47k | auto read_count = 0; | 417 | 7.47k | _buffer.resize(total); | 418 | 521k | for (size_t i = 0; i < total; ++i) { | 419 | 514k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 514k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 12 | break; | 422 | 12 | } | 423 | | | 424 | 514k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 514k | } | 426 | | | 427 | 7.48k | if (LIKELY(read_count > 0)) { | 428 | 7.48k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.48k | } | 430 | | | 431 | 7.47k | *n = read_count; | 432 | 7.47k | return Status::OK(); | 433 | 7.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 31.4k | MutableColumnPtr& dst) override { | 409 | 31.4k | DCHECK(_parsed); | 410 | 31.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 31.4k | auto total = *n; | 416 | 31.4k | auto read_count = 0; | 417 | 31.4k | _buffer.resize(total); | 418 | 6.77M | for (size_t i = 0; i < total; ++i) { | 419 | 6.74M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.74M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 866 | break; | 422 | 866 | } | 423 | | | 424 | 6.74M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.74M | } | 426 | | | 427 | 31.4k | if (LIKELY(read_count > 0)) { | 428 | 31.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 31.4k | } | 430 | | | 431 | 31.4k | *n = read_count; | 432 | 31.4k | return Status::OK(); | 433 | 31.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 34.3k | MutableColumnPtr& dst) override { | 409 | 34.3k | DCHECK(_parsed); | 410 | 34.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 34.3k | auto total = *n; | 416 | 34.3k | auto read_count = 0; | 417 | 34.3k | _buffer.resize(total); | 418 | 10.0M | for (size_t i = 0; i < total; ++i) { | 419 | 9.97M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.97M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 186 | break; | 422 | 186 | } | 423 | | | 424 | 9.97M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.97M | } | 426 | | | 427 | 34.3k | if (LIKELY(read_count > 0)) { | 428 | 34.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 34.3k | } | 430 | | | 431 | 34.3k | *n = read_count; | 432 | 34.3k | return Status::OK(); | 433 | 34.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.59k | MutableColumnPtr& dst) override { | 409 | 5.59k | DCHECK(_parsed); | 410 | 5.59k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.59k | auto total = *n; | 416 | 5.59k | auto read_count = 0; | 417 | 5.59k | _buffer.resize(total); | 418 | 517k | for (size_t i = 0; i < total; ++i) { | 419 | 512k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 512k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 246 | break; | 422 | 246 | } | 423 | | | 424 | 512k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 512k | } | 426 | | | 427 | 5.59k | if (LIKELY(read_count > 0)) { | 428 | 5.59k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.59k | } | 430 | | | 431 | 5.59k | *n = read_count; | 432 | 5.59k | return Status::OK(); | 433 | 5.59k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 11.5k | MutableColumnPtr& dst) override { | 409 | 11.5k | DCHECK(_parsed); | 410 | 11.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 11.5k | auto total = *n; | 416 | 11.5k | auto read_count = 0; | 417 | 11.5k | _buffer.resize(total); | 418 | 24.6k | for (size_t i = 0; i < total; ++i) { | 419 | 13.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.0k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.0k | } | 426 | | | 427 | 11.5k | if (LIKELY(read_count > 0)) { | 428 | 11.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 11.5k | } | 430 | | | 431 | 11.5k | *n = read_count; | 432 | 11.5k | return Status::OK(); | 433 | 11.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 532 | MutableColumnPtr& dst) override { | 409 | 532 | DCHECK(_parsed); | 410 | 532 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 532 | auto total = *n; | 416 | 532 | auto read_count = 0; | 417 | 532 | _buffer.resize(total); | 418 | 1.07k | for (size_t i = 0; i < total; ++i) { | 419 | 541 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 541 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 541 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 541 | } | 426 | | | 427 | 532 | if (LIKELY(read_count > 0)) { | 428 | 532 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 532 | } | 430 | | | 431 | 532 | *n = read_count; | 432 | 532 | return Status::OK(); | 433 | 532 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.00k | MutableColumnPtr& dst) override { | 409 | 5.00k | DCHECK(_parsed); | 410 | 5.00k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.00k | auto total = *n; | 416 | 5.00k | auto read_count = 0; | 417 | 5.00k | _buffer.resize(total); | 418 | 25.1k | for (size_t i = 0; i < total; ++i) { | 419 | 20.1k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 20.1k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 20.1k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 20.1k | } | 426 | | | 427 | 5.00k | if (LIKELY(read_count > 0)) { | 428 | 5.00k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.00k | } | 430 | | | 431 | 5.00k | *n = read_count; | 432 | 5.00k | return Status::OK(); | 433 | 5.00k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.5k | MutableColumnPtr& dst) override { | 409 | 26.5k | DCHECK(_parsed); | 410 | 26.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.5k | auto total = *n; | 416 | 26.5k | auto read_count = 0; | 417 | 26.5k | _buffer.resize(total); | 418 | 23.8M | for (size_t i = 0; i < total; ++i) { | 419 | 23.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 23.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.30k | break; | 422 | 5.30k | } | 423 | | | 424 | 23.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 23.8M | } | 426 | | | 427 | 26.5k | if (LIKELY(read_count > 0)) { | 428 | 26.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.5k | } | 430 | | | 431 | 26.5k | *n = read_count; | 432 | 26.5k | return Status::OK(); | 433 | 26.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.7k | MutableColumnPtr& dst) override { | 409 | 13.7k | DCHECK(_parsed); | 410 | 13.7k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.7k | auto total = *n; | 416 | 13.7k | auto read_count = 0; | 417 | 13.7k | _buffer.resize(total); | 418 | 9.03M | for (size_t i = 0; i < total; ++i) { | 419 | 9.02M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.02M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 741 | break; | 422 | 741 | } | 423 | | | 424 | 9.02M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.02M | } | 426 | | | 427 | 13.7k | if (LIKELY(read_count > 0)) { | 428 | 13.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.7k | } | 430 | | | 431 | 13.7k | *n = read_count; | 432 | 13.7k | return Status::OK(); | 433 | 13.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 959 | MutableColumnPtr& dst) override { | 409 | 959 | DCHECK(_parsed); | 410 | 959 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 959 | auto total = *n; | 416 | 959 | auto read_count = 0; | 417 | 959 | _buffer.resize(total); | 418 | 2.77k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 959 | if (LIKELY(read_count > 0)) { | 428 | 959 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 959 | } | 430 | | | 431 | 959 | *n = read_count; | 432 | 959 | return Status::OK(); | 433 | 959 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 502 | MutableColumnPtr& dst) override { | 409 | 502 | DCHECK(_parsed); | 410 | 502 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 502 | auto total = *n; | 416 | 502 | auto read_count = 0; | 417 | 502 | _buffer.resize(total); | 418 | 1.27k | for (size_t i = 0; i < total; ++i) { | 419 | 775 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 775 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 775 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 775 | } | 426 | | | 427 | 503 | if (LIKELY(read_count > 0)) { | 428 | 503 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 503 | } | 430 | | | 431 | 502 | *n = read_count; | 432 | 502 | return Status::OK(); | 433 | 502 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 412 | MutableColumnPtr& dst) override { | 409 | 412 | DCHECK(_parsed); | 410 | 412 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 412 | auto total = *n; | 416 | 412 | auto read_count = 0; | 417 | 412 | _buffer.resize(total); | 418 | 1.35k | for (size_t i = 0; i < total; ++i) { | 419 | 938 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 938 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 938 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 938 | } | 426 | | | 427 | 414 | if (LIKELY(read_count > 0)) { | 428 | 414 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 414 | } | 430 | | | 431 | 412 | *n = read_count; | 432 | 412 | return Status::OK(); | 433 | 412 | } |
|
434 | | |
435 | 256k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 256k | return next_batch<false>(n, dst); |
437 | 256k | } 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 | 256k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 256k | return next_batch<false>(n, dst); | 437 | 256k | } |
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_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_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.02M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.76M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 1.26k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 660 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 19.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 424 | 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 | 226k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 202k | 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 | 228k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 35.1k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 202k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.00k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 26 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.56k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 876 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 112k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 308 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 112 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 157 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 120M | char* get_data(size_t index) const { |
444 | 120M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 120M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 46.1M | char* get_data(size_t index) const { | 444 | 46.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 46.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.08M | char* get_data(size_t index) const { | 444 | 1.08M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.08M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 64.8k | char* get_data(size_t index) const { | 444 | 64.8k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 64.8k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 12.3M | char* get_data(size_t index) const { | 444 | 12.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 12.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 204k | char* get_data(size_t index) const { | 444 | 204k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 204k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 4.82M | char* get_data(size_t index) const { | 444 | 4.82M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.82M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.24M | char* get_data(size_t index) const { | 444 | 1.24M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.24M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 2.04M | char* get_data(size_t index) const { | 444 | 2.04M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.04M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 769k | char* get_data(size_t index) const { | 444 | 769k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 769k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 7.52M | char* get_data(size_t index) const { | 444 | 7.52M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.52M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 10.4M | char* get_data(size_t index) const { | 444 | 10.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 10.4M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 521k | char* get_data(size_t index) const { | 444 | 521k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 521k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 20.4k | char* get_data(size_t index) const { | 444 | 20.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 20.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 2.31k | char* get_data(size_t index) const { | 444 | 2.31k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.31k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 29.8k | char* get_data(size_t index) const { | 444 | 29.8k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 29.8k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 23.8M | char* get_data(size_t index) const { | 444 | 23.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 9.22M | char* get_data(size_t index) const { | 444 | 9.22M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.22M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.99k | char* get_data(size_t index) const { | 444 | 4.99k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.99k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 182k | char* get_data(size_t index) const { | 444 | 182k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 182k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 185k | char* get_data(size_t index) const { | 444 | 185k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 185k | } |
|
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 |