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/storage_layout.h" |
42 | | #include "storage/types.h" |
43 | | #include "util/alignment.h" |
44 | | #include "util/coding.h" |
45 | | #include "util/faststring.h" |
46 | | #include "util/slice.h" |
47 | | |
48 | | namespace doris { |
49 | | namespace segment_v2 { |
50 | | |
51 | | static constexpr size_t BITSHUFFLE_PAGE_HEADER_SIZE = 16; |
52 | | |
53 | | void warn_with_bitshuffle_error(int64_t val); |
54 | | |
55 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
56 | | // size type blocks with lz4. |
57 | | // |
58 | | // The page format is as follows: |
59 | | // |
60 | | // 1. Header: (16 bytes total) |
61 | | // |
62 | | // <num_elements> [32-bit] |
63 | | // The number of elements encoded in the page. |
64 | | // |
65 | | // <compressed_size> [32-bit] |
66 | | // The post-compression size of the page, including this header. |
67 | | // |
68 | | // <padded_num_elements> [32-bit] |
69 | | // Padding is needed to meet the requirements of the bitshuffle |
70 | | // library such that the input/output is a multiple of 8. Some |
71 | | // ignored elements are appended to the end of the page if necessary |
72 | | // to meet this requirement. |
73 | | // |
74 | | // This header field is the post-padding element count. |
75 | | // |
76 | | // <elem_size_bytes> [32-bit] |
77 | | // The size of the elements, in bytes, as actually encoded. In the |
78 | | // case that all of the data in a page can fit into a smaller |
79 | | // integer type, then we may choose to encode that smaller type |
80 | | // to save CPU costs. |
81 | | // |
82 | | // This is currently only implemented in the UINT32 page type. |
83 | | // |
84 | | // NOTE: all on-disk ints are encoded little-endian |
85 | | // |
86 | | // 2. Element data |
87 | | // |
88 | | // The header is followed by the bitshuffle-compressed element data. |
89 | | // |
90 | | template <FieldType Type> |
91 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
92 | | public: |
93 | | using Self = BitshufflePageBuilder<Type>; |
94 | | friend class PageBuilderHelper<Self>; |
95 | | |
96 | 19.5k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 13.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 893 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 35 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 56 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 143 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 150 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 155 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 1.69k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 119 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 108 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 955 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 96 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 96 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 150 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 143 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 96 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 142 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 138 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 138 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 142 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 139 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 138 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 138 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 96 | 3 | Status init() override { return reset(); } |
|
97 | | |
98 | 2.06M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 2.04M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 13.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 109 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 1.36k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 216 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 98 | 249 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 231 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 4.21k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 222 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 179 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 1.00k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 98 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 215 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 210 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 98 | 60 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 209 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 199 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 201 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 215 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 226 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 199 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 209 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 98 | 70 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 692k | Status add(const uint8_t* vals, size_t* count) override { |
101 | 692k | return add_internal<false>(vals, count); |
102 | 692k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 669k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 669k | return add_internal<false>(vals, count); | 102 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 13.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 13.1k | return add_internal<false>(vals, count); | 102 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 111 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 111 | return add_internal<false>(vals, count); | 102 | 111 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 1.36k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.36k | return add_internal<false>(vals, count); | 102 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 217 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 217 | return add_internal<false>(vals, count); | 102 | 217 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 251 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 251 | return add_internal<false>(vals, count); | 102 | 251 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 231 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 231 | return add_internal<false>(vals, count); | 102 | 231 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 4.21k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 4.21k | return add_internal<false>(vals, count); | 102 | 4.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 222 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 222 | return add_internal<false>(vals, count); | 102 | 222 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 179 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 179 | return add_internal<false>(vals, count); | 102 | 179 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 1.00k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.00k | return add_internal<false>(vals, count); | 102 | 1.00k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 100 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 194 | return add_internal<false>(vals, count); | 102 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 215 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 215 | return add_internal<false>(vals, count); | 102 | 215 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 210 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 210 | return add_internal<false>(vals, count); | 102 | 210 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 100 | 60 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 60 | return add_internal<false>(vals, count); | 102 | 60 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 209 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 209 | return add_internal<false>(vals, count); | 102 | 209 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 199 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 199 | return add_internal<false>(vals, count); | 102 | 199 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 201 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 201 | return add_internal<false>(vals, count); | 102 | 201 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 215 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 215 | return add_internal<false>(vals, count); | 102 | 215 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 226 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 226 | return add_internal<false>(vals, count); | 102 | 226 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 199 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 199 | return add_internal<false>(vals, count); | 102 | 199 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 209 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 209 | return add_internal<false>(vals, count); | 102 | 209 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 100 | 70 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 70 | return add_internal<false>(vals, count); | 102 | 70 | } |
|
103 | | |
104 | 1.35M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 1.35M | return add_internal<true>(vals, count); |
106 | 1.35M | } |
107 | | |
108 | | template <bool single> |
109 | 2.04M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 2.04M | DCHECK(!_finished); |
111 | 2.04M | if (_remain_element_capacity == 0) { |
112 | 0 | *num_written = 0; |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | | |
116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
117 | | // the row count of a single men tbl could be very large. |
118 | | // a real log: |
119 | | /* |
120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
121 | | */ |
122 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
126 | 2.04M | uint32_t to_add = cast_set<UInt32>( |
127 | 2.04M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
129 | 2.04M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 2.04M | size_t orig_size = _data.size(); |
131 | | // This may need a large memory, should return error if could not allocated |
132 | | // successfully, to avoid BE OOM. |
133 | 2.04M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 2.04M | _count += to_add; |
135 | 2.04M | _remain_element_capacity -= to_add; |
136 | 2.04M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 2.04M | *num_written = to_add; |
139 | 2.04M | if constexpr (single) { |
140 | | if constexpr (SIZE_OF_TYPE == 1) { |
141 | | _data[orig_size] = *vals; |
142 | | return Status::OK(); |
143 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
145 | | *reinterpret_cast<const uint16_t*>(vals); |
146 | | return Status::OK(); |
147 | 1.35M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 1.35M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 1.35M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 1.35M | return Status::OK(); |
151 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
153 | | *reinterpret_cast<const uint64_t*>(vals); |
154 | | return Status::OK(); |
155 | | } |
156 | 1.35M | } |
157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
159 | 2.04M | return Status::OK(); |
160 | 2.04M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 669k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 669k | DCHECK(!_finished); | 111 | 669k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 669k | uint32_t to_add = cast_set<UInt32>( | 127 | 669k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 669k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 669k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 669k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 669k | _count += to_add; | 135 | 669k | _remain_element_capacity -= to_add; | 136 | 669k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 669k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 669k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 669k | return Status::OK(); | 160 | 669k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 13.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 13.1k | DCHECK(!_finished); | 111 | 13.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 13.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 13.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 13.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 13.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 13.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 13.1k | _count += to_add; | 135 | 13.1k | _remain_element_capacity -= to_add; | 136 | 13.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 13.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 13.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 13.1k | return Status::OK(); | 160 | 13.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 111 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 111 | DCHECK(!_finished); | 111 | 111 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 111 | uint32_t to_add = cast_set<UInt32>( | 127 | 111 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 111 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 111 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 111 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 111 | _count += to_add; | 135 | 111 | _remain_element_capacity -= to_add; | 136 | 111 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 111 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 111 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 111 | return Status::OK(); | 160 | 111 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.36k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.36k | DCHECK(!_finished); | 111 | 1.36k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.36k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.36k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.36k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.36k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.36k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.36k | _count += to_add; | 135 | 1.36k | _remain_element_capacity -= to_add; | 136 | 1.36k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.36k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.36k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.36k | return Status::OK(); | 160 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 217 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 217 | DCHECK(!_finished); | 111 | 217 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 217 | uint32_t to_add = cast_set<UInt32>( | 127 | 217 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 217 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 217 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 217 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 217 | _count += to_add; | 135 | 217 | _remain_element_capacity -= to_add; | 136 | 217 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 217 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 217 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 217 | return Status::OK(); | 160 | 217 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 251 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 251 | DCHECK(!_finished); | 111 | 251 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 251 | uint32_t to_add = cast_set<UInt32>( | 127 | 251 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 251 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 251 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 251 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 251 | _count += to_add; | 135 | 251 | _remain_element_capacity -= to_add; | 136 | 251 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 251 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 251 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 251 | return Status::OK(); | 160 | 251 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 231 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 231 | DCHECK(!_finished); | 111 | 231 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 231 | uint32_t to_add = cast_set<UInt32>( | 127 | 231 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 231 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 231 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 231 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 231 | _count += to_add; | 135 | 231 | _remain_element_capacity -= to_add; | 136 | 231 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 231 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 231 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 231 | return Status::OK(); | 160 | 231 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 4.21k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 4.21k | DCHECK(!_finished); | 111 | 4.21k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 4.21k | uint32_t to_add = cast_set<UInt32>( | 127 | 4.21k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 4.21k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 4.21k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 4.21k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 4.21k | _count += to_add; | 135 | 4.21k | _remain_element_capacity -= to_add; | 136 | 4.21k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 4.21k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 4.21k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 4.21k | return Status::OK(); | 160 | 4.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 222 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 222 | DCHECK(!_finished); | 111 | 222 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 222 | uint32_t to_add = cast_set<UInt32>( | 127 | 222 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 222 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 222 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 222 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 222 | _count += to_add; | 135 | 222 | _remain_element_capacity -= to_add; | 136 | 222 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 222 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 222 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 222 | return Status::OK(); | 160 | 222 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 179 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 179 | DCHECK(!_finished); | 111 | 179 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 179 | uint32_t to_add = cast_set<UInt32>( | 127 | 179 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 179 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 179 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 179 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 179 | _count += to_add; | 135 | 179 | _remain_element_capacity -= to_add; | 136 | 179 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 179 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 179 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 179 | return Status::OK(); | 160 | 179 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.00k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.00k | DCHECK(!_finished); | 111 | 1.00k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.00k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.00k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.00k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.00k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.00k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.00k | _count += to_add; | 135 | 1.00k | _remain_element_capacity -= to_add; | 136 | 1.00k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.00k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.00k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.00k | return Status::OK(); | 160 | 1.00k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 194 | DCHECK(!_finished); | 111 | 194 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 194 | uint32_t to_add = cast_set<UInt32>( | 127 | 194 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 194 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 194 | _count += to_add; | 135 | 194 | _remain_element_capacity -= to_add; | 136 | 194 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 194 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 194 | return Status::OK(); | 160 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 215 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 215 | DCHECK(!_finished); | 111 | 215 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 215 | uint32_t to_add = cast_set<UInt32>( | 127 | 215 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 215 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 215 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 215 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 215 | _count += to_add; | 135 | 215 | _remain_element_capacity -= to_add; | 136 | 215 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 215 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 215 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 215 | return Status::OK(); | 160 | 215 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 210 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 210 | DCHECK(!_finished); | 111 | 210 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 210 | uint32_t to_add = cast_set<UInt32>( | 127 | 210 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 210 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 210 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 210 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 210 | _count += to_add; | 135 | 210 | _remain_element_capacity -= to_add; | 136 | 210 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 210 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 210 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 210 | return Status::OK(); | 160 | 210 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 60 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 60 | DCHECK(!_finished); | 111 | 60 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 60 | uint32_t to_add = cast_set<UInt32>( | 127 | 60 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 60 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 60 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 60 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 60 | _count += to_add; | 135 | 60 | _remain_element_capacity -= to_add; | 136 | 60 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 60 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 60 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 60 | return Status::OK(); | 160 | 60 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 209 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 209 | DCHECK(!_finished); | 111 | 209 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 209 | uint32_t to_add = cast_set<UInt32>( | 127 | 209 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 209 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 209 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 209 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 209 | _count += to_add; | 135 | 209 | _remain_element_capacity -= to_add; | 136 | 209 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 209 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 209 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 209 | return Status::OK(); | 160 | 209 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 199 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 199 | DCHECK(!_finished); | 111 | 199 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 199 | uint32_t to_add = cast_set<UInt32>( | 127 | 199 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 199 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 199 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 199 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 199 | _count += to_add; | 135 | 199 | _remain_element_capacity -= to_add; | 136 | 199 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 199 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 199 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 199 | return Status::OK(); | 160 | 199 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 201 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 201 | DCHECK(!_finished); | 111 | 201 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 201 | uint32_t to_add = cast_set<UInt32>( | 127 | 201 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 201 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 201 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 201 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 201 | _count += to_add; | 135 | 201 | _remain_element_capacity -= to_add; | 136 | 201 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 201 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 201 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 201 | return Status::OK(); | 160 | 201 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 215 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 215 | DCHECK(!_finished); | 111 | 215 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 215 | uint32_t to_add = cast_set<UInt32>( | 127 | 215 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 215 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 215 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 215 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 215 | _count += to_add; | 135 | 215 | _remain_element_capacity -= to_add; | 136 | 215 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 215 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 215 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 215 | return Status::OK(); | 160 | 215 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 226 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 226 | DCHECK(!_finished); | 111 | 226 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 226 | uint32_t to_add = cast_set<UInt32>( | 127 | 226 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 226 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 226 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 226 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 226 | _count += to_add; | 135 | 226 | _remain_element_capacity -= to_add; | 136 | 226 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 226 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 226 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 226 | return Status::OK(); | 160 | 226 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 199 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 199 | DCHECK(!_finished); | 111 | 199 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 199 | uint32_t to_add = cast_set<UInt32>( | 127 | 199 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 199 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 199 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 199 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 199 | _count += to_add; | 135 | 199 | _remain_element_capacity -= to_add; | 136 | 199 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 199 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 199 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 199 | return Status::OK(); | 160 | 199 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 209 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 209 | DCHECK(!_finished); | 111 | 209 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 209 | uint32_t to_add = cast_set<UInt32>( | 127 | 209 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 209 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 209 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 209 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 209 | _count += to_add; | 135 | 209 | _remain_element_capacity -= to_add; | 136 | 209 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 209 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 209 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 209 | return Status::OK(); | 160 | 209 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 70 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 70 | DCHECK(!_finished); | 111 | 70 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 70 | uint32_t to_add = cast_set<UInt32>( | 127 | 70 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 70 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 70 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 70 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 70 | _count += to_add; | 135 | 70 | _remain_element_capacity -= to_add; | 136 | 70 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 70 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 70 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 70 | return Status::OK(); | 160 | 70 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.35M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.35M | DCHECK(!_finished); | 111 | 1.35M | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.35M | uint32_t to_add = cast_set<UInt32>( | 127 | 1.35M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.35M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.35M | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.35M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.35M | _count += to_add; | 135 | 1.35M | _remain_element_capacity -= to_add; | 136 | 1.35M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.35M | *num_written = to_add; | 139 | 1.35M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | 1.35M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 1.35M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 1.35M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 1.35M | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | 1.35M | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.35M | return Status::OK(); | 160 | 1.35M | } |
|
161 | | |
162 | 21.1k | Status finish(OwnedSlice* slice) override { |
163 | 21.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
164 | 21.1k | return Status::OK(); |
165 | 21.1k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.1k | Status finish(OwnedSlice* slice) override { | 163 | 14.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 14.1k | return Status::OK(); | 165 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 873 | Status finish(OwnedSlice* slice) override { | 163 | 873 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 873 | return Status::OK(); | 165 | 873 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 51 | Status finish(OwnedSlice* slice) override { | 163 | 51 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 51 | return Status::OK(); | 165 | 51 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.31k | Status finish(OwnedSlice* slice) override { | 163 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 1.31k | return Status::OK(); | 165 | 1.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 158 | Status finish(OwnedSlice* slice) override { | 163 | 158 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 158 | return Status::OK(); | 165 | 158 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 169 | Status finish(OwnedSlice* slice) override { | 163 | 169 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 169 | return Status::OK(); | 165 | 169 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 168 | Status finish(OwnedSlice* slice) override { | 163 | 168 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 168 | return Status::OK(); | 165 | 168 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.70k | Status finish(OwnedSlice* slice) override { | 163 | 1.70k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 1.70k | return Status::OK(); | 165 | 1.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 122 | Status finish(OwnedSlice* slice) override { | 163 | 122 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 122 | return Status::OK(); | 165 | 122 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 121 | Status finish(OwnedSlice* slice) override { | 163 | 121 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 121 | return Status::OK(); | 165 | 121 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 965 | Status finish(OwnedSlice* slice) override { | 163 | 965 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 965 | return Status::OK(); | 165 | 965 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6 | Status finish(OwnedSlice* slice) override { | 163 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 6 | return Status::OK(); | 165 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 153 | Status finish(OwnedSlice* slice) override { | 163 | 153 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 153 | return Status::OK(); | 165 | 153 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 148 | Status finish(OwnedSlice* slice) override { | 163 | 148 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 148 | return Status::OK(); | 165 | 148 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8 | Status finish(OwnedSlice* slice) override { | 163 | 8 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 8 | return Status::OK(); | 165 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 147 | Status finish(OwnedSlice* slice) override { | 163 | 147 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 147 | return Status::OK(); | 165 | 147 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 141 | Status finish(OwnedSlice* slice) override { | 163 | 141 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 141 | return Status::OK(); | 165 | 141 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 143 | Status finish(OwnedSlice* slice) override { | 163 | 143 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 143 | return Status::OK(); | 165 | 143 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 155 | Status finish(OwnedSlice* slice) override { | 163 | 155 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 155 | return Status::OK(); | 165 | 155 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 168 | Status finish(OwnedSlice* slice) override { | 163 | 168 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 168 | return Status::OK(); | 165 | 168 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 141 | Status finish(OwnedSlice* slice) override { | 163 | 141 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 141 | return Status::OK(); | 165 | 141 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 151 | Status finish(OwnedSlice* slice) override { | 163 | 151 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 151 | return Status::OK(); | 165 | 151 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 17 | Status finish(OwnedSlice* slice) override { | 163 | 17 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 17 | return Status::OK(); | 165 | 17 | } |
|
166 | | |
167 | 45.3k | Status reset() override { |
168 | 45.3k | RETURN_IF_CATCH_EXCEPTION({ |
169 | 45.3k | size_t block_size = _options.data_page_size; |
170 | 45.3k | _count = 0; |
171 | 45.3k | _raw_data_size = 0; |
172 | 45.3k | _data.clear(); |
173 | 45.3k | _data.reserve(block_size); |
174 | 45.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
175 | 45.3k | << "buffer must be naturally-aligned"; |
176 | 45.3k | _buffer.clear(); |
177 | 45.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
178 | 45.3k | _finished = false; |
179 | 45.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
180 | 45.3k | }); |
181 | 45.3k | return Status::OK(); |
182 | 45.3k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 167 | 32.7k | Status reset() override { | 168 | 32.7k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 32.7k | size_t block_size = _options.data_page_size; | 170 | 32.7k | _count = 0; | 171 | 32.7k | _raw_data_size = 0; | 172 | 32.7k | _data.clear(); | 173 | 32.7k | _data.reserve(block_size); | 174 | 32.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 32.7k | << "buffer must be naturally-aligned"; | 176 | 32.7k | _buffer.clear(); | 177 | 32.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 32.7k | _finished = false; | 179 | 32.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 32.7k | }); | 181 | 32.7k | return Status::OK(); | 182 | 32.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 167 | 1.76k | Status reset() override { | 168 | 1.76k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.76k | size_t block_size = _options.data_page_size; | 170 | 1.76k | _count = 0; | 171 | 1.76k | _raw_data_size = 0; | 172 | 1.76k | _data.clear(); | 173 | 1.76k | _data.reserve(block_size); | 174 | 1.76k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.76k | << "buffer must be naturally-aligned"; | 176 | 1.76k | _buffer.clear(); | 177 | 1.76k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.76k | _finished = false; | 179 | 1.76k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.76k | }); | 181 | 1.76k | return Status::OK(); | 182 | 1.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 167 | 84 | Status reset() override { | 168 | 84 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 84 | size_t block_size = _options.data_page_size; | 170 | 84 | _count = 0; | 171 | 84 | _raw_data_size = 0; | 172 | 84 | _data.clear(); | 173 | 84 | _data.reserve(block_size); | 174 | 84 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 84 | << "buffer must be naturally-aligned"; | 176 | 84 | _buffer.clear(); | 177 | 84 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 84 | _finished = false; | 179 | 84 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 84 | }); | 181 | 84 | return Status::OK(); | 182 | 84 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 167 | 1.36k | Status reset() override { | 168 | 1.36k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.36k | size_t block_size = _options.data_page_size; | 170 | 1.36k | _count = 0; | 171 | 1.36k | _raw_data_size = 0; | 172 | 1.36k | _data.clear(); | 173 | 1.36k | _data.reserve(block_size); | 174 | 1.36k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.36k | << "buffer must be naturally-aligned"; | 176 | 1.36k | _buffer.clear(); | 177 | 1.36k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.36k | _finished = false; | 179 | 1.36k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.36k | }); | 181 | 1.36k | return Status::OK(); | 182 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 167 | 300 | Status reset() override { | 168 | 300 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 300 | size_t block_size = _options.data_page_size; | 170 | 300 | _count = 0; | 171 | 300 | _raw_data_size = 0; | 172 | 300 | _data.clear(); | 173 | 300 | _data.reserve(block_size); | 174 | 300 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 300 | << "buffer must be naturally-aligned"; | 176 | 300 | _buffer.clear(); | 177 | 300 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 300 | _finished = false; | 179 | 300 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 300 | }); | 181 | 300 | return Status::OK(); | 182 | 300 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 167 | 317 | Status reset() override { | 168 | 317 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 317 | size_t block_size = _options.data_page_size; | 170 | 317 | _count = 0; | 171 | 317 | _raw_data_size = 0; | 172 | 317 | _data.clear(); | 173 | 317 | _data.reserve(block_size); | 174 | 317 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 317 | << "buffer must be naturally-aligned"; | 176 | 317 | _buffer.clear(); | 177 | 317 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 317 | _finished = false; | 179 | 317 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 317 | }); | 181 | 317 | return Status::OK(); | 182 | 317 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 167 | 323 | Status reset() override { | 168 | 323 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 323 | size_t block_size = _options.data_page_size; | 170 | 323 | _count = 0; | 171 | 323 | _raw_data_size = 0; | 172 | 323 | _data.clear(); | 173 | 323 | _data.reserve(block_size); | 174 | 323 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 323 | << "buffer must be naturally-aligned"; | 176 | 323 | _buffer.clear(); | 177 | 323 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 323 | _finished = false; | 179 | 323 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 323 | }); | 181 | 323 | return Status::OK(); | 182 | 323 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 167 | 3.39k | Status reset() override { | 168 | 3.39k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 3.39k | size_t block_size = _options.data_page_size; | 170 | 3.39k | _count = 0; | 171 | 3.39k | _raw_data_size = 0; | 172 | 3.39k | _data.clear(); | 173 | 3.39k | _data.reserve(block_size); | 174 | 3.39k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 3.39k | << "buffer must be naturally-aligned"; | 176 | 3.39k | _buffer.clear(); | 177 | 3.39k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 3.39k | _finished = false; | 179 | 3.39k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 3.39k | }); | 181 | 3.39k | return Status::OK(); | 182 | 3.39k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 167 | 241 | Status reset() override { | 168 | 241 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 241 | size_t block_size = _options.data_page_size; | 170 | 241 | _count = 0; | 171 | 241 | _raw_data_size = 0; | 172 | 241 | _data.clear(); | 173 | 241 | _data.reserve(block_size); | 174 | 241 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 241 | << "buffer must be naturally-aligned"; | 176 | 241 | _buffer.clear(); | 177 | 241 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 241 | _finished = false; | 179 | 241 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 241 | }); | 181 | 241 | return Status::OK(); | 182 | 241 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 167 | 229 | Status reset() override { | 168 | 229 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 229 | size_t block_size = _options.data_page_size; | 170 | 229 | _count = 0; | 171 | 229 | _raw_data_size = 0; | 172 | 229 | _data.clear(); | 173 | 229 | _data.reserve(block_size); | 174 | 229 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 229 | << "buffer must be naturally-aligned"; | 176 | 229 | _buffer.clear(); | 177 | 229 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 229 | _finished = false; | 179 | 229 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 229 | }); | 181 | 229 | return Status::OK(); | 182 | 229 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 167 | 1.92k | Status reset() override { | 168 | 1.92k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.92k | size_t block_size = _options.data_page_size; | 170 | 1.92k | _count = 0; | 171 | 1.92k | _raw_data_size = 0; | 172 | 1.92k | _data.clear(); | 173 | 1.92k | _data.reserve(block_size); | 174 | 1.92k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.92k | << "buffer must be naturally-aligned"; | 176 | 1.92k | _buffer.clear(); | 177 | 1.92k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.92k | _finished = false; | 179 | 1.92k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.92k | }); | 181 | 1.92k | return Status::OK(); | 182 | 1.92k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 167 | 1 | Status reset() override { | 168 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1 | size_t block_size = _options.data_page_size; | 170 | 1 | _count = 0; | 171 | 1 | _raw_data_size = 0; | 172 | 1 | _data.clear(); | 173 | 1 | _data.reserve(block_size); | 174 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1 | << "buffer must be naturally-aligned"; | 176 | 1 | _buffer.clear(); | 177 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1 | _finished = false; | 179 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1 | }); | 181 | 1 | return Status::OK(); | 182 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 167 | 8 | Status reset() override { | 168 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 8 | size_t block_size = _options.data_page_size; | 170 | 8 | _count = 0; | 171 | 8 | _raw_data_size = 0; | 172 | 8 | _data.clear(); | 173 | 8 | _data.reserve(block_size); | 174 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 8 | << "buffer must be naturally-aligned"; | 176 | 8 | _buffer.clear(); | 177 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 8 | _finished = false; | 179 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 8 | }); | 181 | 8 | return Status::OK(); | 182 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 167 | 303 | Status reset() override { | 168 | 303 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 303 | size_t block_size = _options.data_page_size; | 170 | 303 | _count = 0; | 171 | 303 | _raw_data_size = 0; | 172 | 303 | _data.clear(); | 173 | 303 | _data.reserve(block_size); | 174 | 303 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 303 | << "buffer must be naturally-aligned"; | 176 | 303 | _buffer.clear(); | 177 | 303 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 303 | _finished = false; | 179 | 303 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 303 | }); | 181 | 303 | return Status::OK(); | 182 | 303 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 167 | 291 | Status reset() override { | 168 | 291 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 291 | size_t block_size = _options.data_page_size; | 170 | 291 | _count = 0; | 171 | 291 | _raw_data_size = 0; | 172 | 291 | _data.clear(); | 173 | 291 | _data.reserve(block_size); | 174 | 291 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 291 | << "buffer must be naturally-aligned"; | 176 | 291 | _buffer.clear(); | 177 | 291 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 291 | _finished = false; | 179 | 291 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 291 | }); | 181 | 291 | return Status::OK(); | 182 | 291 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 167 | 10 | Status reset() override { | 168 | 10 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 10 | size_t block_size = _options.data_page_size; | 170 | 10 | _count = 0; | 171 | 10 | _raw_data_size = 0; | 172 | 10 | _data.clear(); | 173 | 10 | _data.reserve(block_size); | 174 | 10 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 10 | << "buffer must be naturally-aligned"; | 176 | 10 | _buffer.clear(); | 177 | 10 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 10 | _finished = false; | 179 | 10 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 10 | }); | 181 | 10 | return Status::OK(); | 182 | 10 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 167 | 289 | Status reset() override { | 168 | 289 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 289 | size_t block_size = _options.data_page_size; | 170 | 289 | _count = 0; | 171 | 289 | _raw_data_size = 0; | 172 | 289 | _data.clear(); | 173 | 289 | _data.reserve(block_size); | 174 | 289 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 289 | << "buffer must be naturally-aligned"; | 176 | 289 | _buffer.clear(); | 177 | 289 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 289 | _finished = false; | 179 | 289 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 289 | }); | 181 | 289 | return Status::OK(); | 182 | 289 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 167 | 279 | Status reset() override { | 168 | 279 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 279 | size_t block_size = _options.data_page_size; | 170 | 279 | _count = 0; | 171 | 279 | _raw_data_size = 0; | 172 | 279 | _data.clear(); | 173 | 279 | _data.reserve(block_size); | 174 | 279 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 279 | << "buffer must be naturally-aligned"; | 176 | 279 | _buffer.clear(); | 177 | 279 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 279 | _finished = false; | 179 | 279 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 279 | }); | 181 | 279 | return Status::OK(); | 182 | 279 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 167 | 281 | Status reset() override { | 168 | 281 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 281 | size_t block_size = _options.data_page_size; | 170 | 281 | _count = 0; | 171 | 281 | _raw_data_size = 0; | 172 | 281 | _data.clear(); | 173 | 281 | _data.reserve(block_size); | 174 | 281 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 281 | << "buffer must be naturally-aligned"; | 176 | 281 | _buffer.clear(); | 177 | 281 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 281 | _finished = false; | 179 | 281 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 281 | }); | 181 | 281 | return Status::OK(); | 182 | 281 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 167 | 297 | Status reset() override { | 168 | 297 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 297 | size_t block_size = _options.data_page_size; | 170 | 297 | _count = 0; | 171 | 297 | _raw_data_size = 0; | 172 | 297 | _data.clear(); | 173 | 297 | _data.reserve(block_size); | 174 | 297 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 297 | << "buffer must be naturally-aligned"; | 176 | 297 | _buffer.clear(); | 177 | 297 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 297 | _finished = false; | 179 | 297 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 297 | }); | 181 | 297 | return Status::OK(); | 182 | 297 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 167 | 307 | Status reset() override { | 168 | 307 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 307 | size_t block_size = _options.data_page_size; | 170 | 307 | _count = 0; | 171 | 307 | _raw_data_size = 0; | 172 | 307 | _data.clear(); | 173 | 307 | _data.reserve(block_size); | 174 | 307 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 307 | << "buffer must be naturally-aligned"; | 176 | 307 | _buffer.clear(); | 177 | 307 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 307 | _finished = false; | 179 | 307 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 307 | }); | 181 | 307 | return Status::OK(); | 182 | 307 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 167 | 279 | Status reset() override { | 168 | 279 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 279 | size_t block_size = _options.data_page_size; | 170 | 279 | _count = 0; | 171 | 279 | _raw_data_size = 0; | 172 | 279 | _data.clear(); | 173 | 279 | _data.reserve(block_size); | 174 | 279 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 279 | << "buffer must be naturally-aligned"; | 176 | 279 | _buffer.clear(); | 177 | 279 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 279 | _finished = false; | 179 | 279 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 279 | }); | 181 | 279 | return Status::OK(); | 182 | 279 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 167 | 289 | Status reset() override { | 168 | 289 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 289 | size_t block_size = _options.data_page_size; | 170 | 289 | _count = 0; | 171 | 289 | _raw_data_size = 0; | 172 | 289 | _data.clear(); | 173 | 289 | _data.reserve(block_size); | 174 | 289 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 289 | << "buffer must be naturally-aligned"; | 176 | 289 | _buffer.clear(); | 177 | 289 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 289 | _finished = false; | 179 | 289 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 289 | }); | 181 | 289 | return Status::OK(); | 182 | 289 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5resetEv Line | Count | Source | 167 | 20 | Status reset() override { | 168 | 20 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 20 | size_t block_size = _options.data_page_size; | 170 | 20 | _count = 0; | 171 | 20 | _raw_data_size = 0; | 172 | 20 | _data.clear(); | 173 | 20 | _data.reserve(block_size); | 174 | 20 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 20 | << "buffer must be naturally-aligned"; | 176 | 20 | _buffer.clear(); | 177 | 20 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 20 | _finished = false; | 179 | 20 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 20 | }); | 181 | 20 | return Status::OK(); | 182 | 20 | } |
|
183 | | |
184 | 667 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 184 | 8 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Line | Count | Source | 184 | 10 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Line | Count | Source | 184 | 628 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Line | Count | Source | 184 | 5 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Line | Count | Source | 184 | 10 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Line | Count | Source | 184 | 6 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv 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 Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5countEv |
185 | | |
186 | 13.7k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 186 | 9.98k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 186 | 406 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 186 | 15 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 186 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 186 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 186 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 186 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 186 | 1.70k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 186 | 103 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 186 | 92 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 186 | 151 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 186 | 113 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 186 | 106 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 186 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 186 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 186 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 186 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 186 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 186 | 102 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 186 | 102 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4sizeEv |
187 | | |
188 | 14.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 188 | 8.42k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 188 | 872 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 188 | 41 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 188 | 680 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 188 | 153 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 188 | 158 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 188 | 163 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 188 | 1.70k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 188 | 122 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 188 | 121 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 188 | 965 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 188 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 188 | 153 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 188 | 148 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 188 | 8 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 188 | 147 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 188 | 141 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 188 | 143 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 188 | 155 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 188 | 168 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 188 | 141 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 188 | 151 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv Line | Count | Source | 188 | 17 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
189 | | |
190 | | private: |
191 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
192 | 19.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 13.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 893 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 35 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 56 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 143 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 150 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 155 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1.69k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 119 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 108 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 955 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 150 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 143 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 142 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 138 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 138 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 142 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 139 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 138 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 138 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 3 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
193 | | |
194 | 21.1k | OwnedSlice _finish(int final_size_of_type) { |
195 | 21.1k | _data.resize(final_size_of_type * _count); |
196 | | |
197 | | // Do padding so that the input num of element is multiple of 8. |
198 | 21.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
199 | 21.1k | int padding_elems = num_elems_after_padding - _count; |
200 | 21.1k | int padding_bytes = padding_elems * final_size_of_type; |
201 | 292k | for (int i = 0; i < padding_bytes; i++) { |
202 | 271k | _data.push_back(0); |
203 | 271k | } |
204 | | |
205 | | // reserve enough place for compression |
206 | 21.1k | _buffer.resize( |
207 | 21.1k | BITSHUFFLE_PAGE_HEADER_SIZE + |
208 | 21.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
209 | | |
210 | 21.1k | int64_t bytes = |
211 | 21.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
212 | 21.1k | num_elems_after_padding, final_size_of_type, 0); |
213 | 21.1k | if (bytes < 0) [[unlikely]] { |
214 | | // This means the bitshuffle function fails. |
215 | | // Ideally, this should not happen. |
216 | 0 | warn_with_bitshuffle_error(bytes); |
217 | | // It does not matter what will be returned here, |
218 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
219 | 0 | return OwnedSlice(); |
220 | 0 | } |
221 | | // update header |
222 | 21.1k | encode_fixed32_le(&_buffer[0], _count); |
223 | 21.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
224 | 21.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
225 | 21.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
226 | 21.1k | _finished = true; |
227 | | // before build(), update buffer length to the actual compressed size |
228 | 21.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
229 | 21.1k | return _buffer.build(); |
230 | 21.1k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 194 | 14.1k | OwnedSlice _finish(int final_size_of_type) { | 195 | 14.1k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 14.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 14.1k | int padding_elems = num_elems_after_padding - _count; | 200 | 14.1k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 130k | for (int i = 0; i < padding_bytes; i++) { | 202 | 116k | _data.push_back(0); | 203 | 116k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 14.1k | _buffer.resize( | 207 | 14.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 14.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 14.1k | int64_t bytes = | 211 | 14.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 14.1k | num_elems_after_padding, final_size_of_type, 0); | 213 | 14.1k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 14.1k | encode_fixed32_le(&_buffer[0], _count); | 223 | 14.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 14.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 14.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 14.1k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 14.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 14.1k | return _buffer.build(); | 230 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 194 | 873 | OwnedSlice _finish(int final_size_of_type) { | 195 | 873 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 873 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 873 | int padding_elems = num_elems_after_padding - _count; | 200 | 873 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 24.8k | for (int i = 0; i < padding_bytes; i++) { | 202 | 24.0k | _data.push_back(0); | 203 | 24.0k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 873 | _buffer.resize( | 207 | 873 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 873 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 873 | int64_t bytes = | 211 | 873 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 873 | num_elems_after_padding, final_size_of_type, 0); | 213 | 873 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 873 | encode_fixed32_le(&_buffer[0], _count); | 223 | 873 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 873 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 873 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 873 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 873 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 873 | return _buffer.build(); | 230 | 873 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 194 | 51 | OwnedSlice _finish(int final_size_of_type) { | 195 | 51 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 51 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 51 | int padding_elems = num_elems_after_padding - _count; | 200 | 51 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 323 | for (int i = 0; i < padding_bytes; i++) { | 202 | 272 | _data.push_back(0); | 203 | 272 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 51 | _buffer.resize( | 207 | 51 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 51 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 51 | int64_t bytes = | 211 | 51 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 51 | num_elems_after_padding, final_size_of_type, 0); | 213 | 51 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 51 | encode_fixed32_le(&_buffer[0], _count); | 223 | 51 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 51 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 51 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 51 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 51 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 51 | return _buffer.build(); | 230 | 51 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 194 | 1.31k | OwnedSlice _finish(int final_size_of_type) { | 195 | 1.31k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 1.31k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 1.31k | int padding_elems = num_elems_after_padding - _count; | 200 | 1.31k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 3.87k | for (int i = 0; i < padding_bytes; i++) { | 202 | 2.56k | _data.push_back(0); | 203 | 2.56k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 1.31k | _buffer.resize( | 207 | 1.31k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 1.31k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 1.31k | int64_t bytes = | 211 | 1.31k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 1.31k | num_elems_after_padding, final_size_of_type, 0); | 213 | 1.31k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 1.31k | encode_fixed32_le(&_buffer[0], _count); | 223 | 1.31k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 1.31k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 1.31k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 1.31k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 1.31k | return _buffer.build(); | 230 | 1.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 194 | 158 | OwnedSlice _finish(int final_size_of_type) { | 195 | 158 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 158 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 158 | int padding_elems = num_elems_after_padding - _count; | 200 | 158 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 10.1k | for (int i = 0; i < padding_bytes; i++) { | 202 | 9.98k | _data.push_back(0); | 203 | 9.98k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 158 | _buffer.resize( | 207 | 158 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 158 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 158 | int64_t bytes = | 211 | 158 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 158 | num_elems_after_padding, final_size_of_type, 0); | 213 | 158 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 158 | encode_fixed32_le(&_buffer[0], _count); | 223 | 158 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 158 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 158 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 158 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 158 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 158 | return _buffer.build(); | 230 | 158 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 194 | 169 | OwnedSlice _finish(int final_size_of_type) { | 195 | 169 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 169 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 169 | int padding_elems = num_elems_after_padding - _count; | 200 | 169 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 2.66k | for (int i = 0; i < padding_bytes; i++) { | 202 | 2.49k | _data.push_back(0); | 203 | 2.49k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 169 | _buffer.resize( | 207 | 169 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 169 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 169 | int64_t bytes = | 211 | 169 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 169 | num_elems_after_padding, final_size_of_type, 0); | 213 | 169 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 169 | encode_fixed32_le(&_buffer[0], _count); | 223 | 169 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 169 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 169 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 169 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 169 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 169 | return _buffer.build(); | 230 | 169 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 194 | 168 | OwnedSlice _finish(int final_size_of_type) { | 195 | 168 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 168 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 168 | int padding_elems = num_elems_after_padding - _count; | 200 | 168 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 6.60k | for (int i = 0; i < padding_bytes; i++) { | 202 | 6.43k | _data.push_back(0); | 203 | 6.43k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 168 | _buffer.resize( | 207 | 168 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 168 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 168 | int64_t bytes = | 211 | 168 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 168 | num_elems_after_padding, final_size_of_type, 0); | 213 | 168 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 168 | encode_fixed32_le(&_buffer[0], _count); | 223 | 168 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 168 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 168 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 168 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 168 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 168 | return _buffer.build(); | 230 | 168 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 194 | 1.70k | OwnedSlice _finish(int final_size_of_type) { | 195 | 1.70k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 1.70k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 1.70k | int padding_elems = num_elems_after_padding - _count; | 200 | 1.70k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 4.72k | for (int i = 0; i < padding_bytes; i++) { | 202 | 3.01k | _data.push_back(0); | 203 | 3.01k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 1.70k | _buffer.resize( | 207 | 1.70k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 1.70k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 1.70k | int64_t bytes = | 211 | 1.70k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 1.70k | num_elems_after_padding, final_size_of_type, 0); | 213 | 1.70k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 1.70k | encode_fixed32_le(&_buffer[0], _count); | 223 | 1.70k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 1.70k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 1.70k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 1.70k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 1.70k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 1.70k | return _buffer.build(); | 230 | 1.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 194 | 122 | OwnedSlice _finish(int final_size_of_type) { | 195 | 122 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 122 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 122 | int padding_elems = num_elems_after_padding - _count; | 200 | 122 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 1.34k | for (int i = 0; i < padding_bytes; i++) { | 202 | 1.22k | _data.push_back(0); | 203 | 1.22k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 122 | _buffer.resize( | 207 | 122 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 122 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 122 | int64_t bytes = | 211 | 122 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 122 | num_elems_after_padding, final_size_of_type, 0); | 213 | 122 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 122 | encode_fixed32_le(&_buffer[0], _count); | 223 | 122 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 122 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 122 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 122 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 122 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 122 | return _buffer.build(); | 230 | 122 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 194 | 121 | OwnedSlice _finish(int final_size_of_type) { | 195 | 121 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 121 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 121 | int padding_elems = num_elems_after_padding - _count; | 200 | 121 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 8.88k | for (int i = 0; i < padding_bytes; i++) { | 202 | 8.76k | _data.push_back(0); | 203 | 8.76k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 121 | _buffer.resize( | 207 | 121 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 121 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 121 | int64_t bytes = | 211 | 121 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 121 | num_elems_after_padding, final_size_of_type, 0); | 213 | 121 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 121 | encode_fixed32_le(&_buffer[0], _count); | 223 | 121 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 121 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 121 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 121 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 121 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 121 | return _buffer.build(); | 230 | 121 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 194 | 965 | OwnedSlice _finish(int final_size_of_type) { | 195 | 965 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 965 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 965 | int padding_elems = num_elems_after_padding - _count; | 200 | 965 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 25.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 24.3k | _data.push_back(0); | 203 | 24.3k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 965 | _buffer.resize( | 207 | 965 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 965 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 965 | int64_t bytes = | 211 | 965 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 965 | num_elems_after_padding, final_size_of_type, 0); | 213 | 965 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 965 | encode_fixed32_le(&_buffer[0], _count); | 223 | 965 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 965 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 965 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 965 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 965 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 965 | return _buffer.build(); | 230 | 965 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 194 | 6 | OwnedSlice _finish(int final_size_of_type) { | 195 | 6 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 6 | int padding_elems = num_elems_after_padding - _count; | 200 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 18 | for (int i = 0; i < padding_bytes; i++) { | 202 | 12 | _data.push_back(0); | 203 | 12 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 6 | _buffer.resize( | 207 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 6 | int64_t bytes = | 211 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 6 | num_elems_after_padding, final_size_of_type, 0); | 213 | 6 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 6 | encode_fixed32_le(&_buffer[0], _count); | 223 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 6 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 6 | return _buffer.build(); | 230 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 194 | 153 | OwnedSlice _finish(int final_size_of_type) { | 195 | 153 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 153 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 153 | int padding_elems = num_elems_after_padding - _count; | 200 | 153 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 3.25k | for (int i = 0; i < padding_bytes; i++) { | 202 | 3.10k | _data.push_back(0); | 203 | 3.10k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 153 | _buffer.resize( | 207 | 153 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 153 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 153 | int64_t bytes = | 211 | 153 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 153 | num_elems_after_padding, final_size_of_type, 0); | 213 | 153 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 153 | encode_fixed32_le(&_buffer[0], _count); | 223 | 153 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 153 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 153 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 153 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 153 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 153 | return _buffer.build(); | 230 | 153 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 194 | 148 | OwnedSlice _finish(int final_size_of_type) { | 195 | 148 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 148 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 148 | int padding_elems = num_elems_after_padding - _count; | 200 | 148 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 6.02k | for (int i = 0; i < padding_bytes; i++) { | 202 | 5.87k | _data.push_back(0); | 203 | 5.87k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 148 | _buffer.resize( | 207 | 148 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 148 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 148 | int64_t bytes = | 211 | 148 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 148 | num_elems_after_padding, final_size_of_type, 0); | 213 | 148 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 148 | encode_fixed32_le(&_buffer[0], _count); | 223 | 148 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 148 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 148 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 148 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 148 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 148 | return _buffer.build(); | 230 | 148 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 194 | 8 | OwnedSlice _finish(int final_size_of_type) { | 195 | 8 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 8 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 8 | int padding_elems = num_elems_after_padding - _count; | 200 | 8 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 88 | for (int i = 0; i < padding_bytes; i++) { | 202 | 80 | _data.push_back(0); | 203 | 80 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 8 | _buffer.resize( | 207 | 8 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 8 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 8 | int64_t bytes = | 211 | 8 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 8 | num_elems_after_padding, final_size_of_type, 0); | 213 | 8 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 8 | encode_fixed32_le(&_buffer[0], _count); | 223 | 8 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 8 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 8 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 8 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 8 | return _buffer.build(); | 230 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 194 | 147 | OwnedSlice _finish(int final_size_of_type) { | 195 | 147 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 147 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 147 | int padding_elems = num_elems_after_padding - _count; | 200 | 147 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 5.98k | for (int i = 0; i < padding_bytes; i++) { | 202 | 5.84k | _data.push_back(0); | 203 | 5.84k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 147 | _buffer.resize( | 207 | 147 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 147 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 147 | int64_t bytes = | 211 | 147 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 147 | num_elems_after_padding, final_size_of_type, 0); | 213 | 147 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 147 | encode_fixed32_le(&_buffer[0], _count); | 223 | 147 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 147 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 147 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 147 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 147 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 147 | return _buffer.build(); | 230 | 147 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 194 | 141 | OwnedSlice _finish(int final_size_of_type) { | 195 | 141 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 141 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 141 | int padding_elems = num_elems_after_padding - _count; | 200 | 141 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 2.95k | for (int i = 0; i < padding_bytes; i++) { | 202 | 2.81k | _data.push_back(0); | 203 | 2.81k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 141 | _buffer.resize( | 207 | 141 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 141 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 141 | int64_t bytes = | 211 | 141 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 141 | num_elems_after_padding, final_size_of_type, 0); | 213 | 141 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 141 | encode_fixed32_le(&_buffer[0], _count); | 223 | 141 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 141 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 141 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 141 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 141 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 141 | return _buffer.build(); | 230 | 141 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 194 | 143 | OwnedSlice _finish(int final_size_of_type) { | 195 | 143 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 143 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 143 | int padding_elems = num_elems_after_padding - _count; | 200 | 143 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 5.79k | for (int i = 0; i < padding_bytes; i++) { | 202 | 5.64k | _data.push_back(0); | 203 | 5.64k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 143 | _buffer.resize( | 207 | 143 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 143 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 143 | int64_t bytes = | 211 | 143 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 143 | num_elems_after_padding, final_size_of_type, 0); | 213 | 143 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 143 | encode_fixed32_le(&_buffer[0], _count); | 223 | 143 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 143 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 143 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 143 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 143 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 143 | return _buffer.build(); | 230 | 143 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 194 | 155 | OwnedSlice _finish(int final_size_of_type) { | 195 | 155 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 155 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 155 | int padding_elems = num_elems_after_padding - _count; | 200 | 155 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.8k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.6k | _data.push_back(0); | 203 | 11.6k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 155 | _buffer.resize( | 207 | 155 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 155 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 155 | int64_t bytes = | 211 | 155 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 155 | num_elems_after_padding, final_size_of_type, 0); | 213 | 155 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 155 | encode_fixed32_le(&_buffer[0], _count); | 223 | 155 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 155 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 155 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 155 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 155 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 155 | return _buffer.build(); | 230 | 155 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 194 | 168 | OwnedSlice _finish(int final_size_of_type) { | 195 | 168 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 168 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 168 | int padding_elems = num_elems_after_padding - _count; | 200 | 168 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 22.9k | for (int i = 0; i < padding_bytes; i++) { | 202 | 22.8k | _data.push_back(0); | 203 | 22.8k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 168 | _buffer.resize( | 207 | 168 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 168 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 168 | int64_t bytes = | 211 | 168 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 168 | num_elems_after_padding, final_size_of_type, 0); | 213 | 168 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 168 | encode_fixed32_le(&_buffer[0], _count); | 223 | 168 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 168 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 168 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 168 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 168 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 168 | return _buffer.build(); | 230 | 168 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 194 | 141 | OwnedSlice _finish(int final_size_of_type) { | 195 | 141 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 141 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 141 | int padding_elems = num_elems_after_padding - _count; | 200 | 141 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 2.95k | for (int i = 0; i < padding_bytes; i++) { | 202 | 2.81k | _data.push_back(0); | 203 | 2.81k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 141 | _buffer.resize( | 207 | 141 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 141 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 141 | int64_t bytes = | 211 | 141 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 141 | num_elems_after_padding, final_size_of_type, 0); | 213 | 141 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 141 | encode_fixed32_le(&_buffer[0], _count); | 223 | 141 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 141 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 141 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 141 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 141 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 141 | return _buffer.build(); | 230 | 141 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 194 | 151 | OwnedSlice _finish(int final_size_of_type) { | 195 | 151 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 151 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 151 | int padding_elems = num_elems_after_padding - _count; | 200 | 151 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.4k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.2k | _data.push_back(0); | 203 | 11.2k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 151 | _buffer.resize( | 207 | 151 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 151 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 151 | int64_t bytes = | 211 | 151 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 151 | num_elems_after_padding, final_size_of_type, 0); | 213 | 151 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 151 | encode_fixed32_le(&_buffer[0], _count); | 223 | 151 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 151 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 151 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 151 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 151 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 151 | return _buffer.build(); | 230 | 151 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 194 | 17 | OwnedSlice _finish(int final_size_of_type) { | 195 | 17 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 17 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 17 | int padding_elems = num_elems_after_padding - _count; | 200 | 17 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 273 | for (int i = 0; i < padding_bytes; i++) { | 202 | 256 | _data.push_back(0); | 203 | 256 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 17 | _buffer.resize( | 207 | 17 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 17 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 17 | int64_t bytes = | 211 | 17 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 17 | num_elems_after_padding, final_size_of_type, 0); | 213 | 17 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 17 | encode_fixed32_le(&_buffer[0], _count); | 223 | 17 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 17 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 17 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 17 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 17 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 17 | return _buffer.build(); | 230 | 17 | } |
|
231 | | |
232 | | using CppType = typename TypeTraits<Type>::CppType; |
233 | | |
234 | | CppType cell(int idx) const { |
235 | | DCHECK_GE(idx, 0); |
236 | | CppType ret; |
237 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
238 | | return ret; |
239 | | } |
240 | | |
241 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
242 | | PageBuilderOptions _options; |
243 | | uint32_t _count; |
244 | | uint32_t _remain_element_capacity; |
245 | | bool _finished; |
246 | | faststring _data; |
247 | | faststring _buffer; |
248 | | uint64_t _raw_data_size = 0; |
249 | | }; |
250 | | |
251 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
252 | | size_t& compressed_size, size_t& num_element_after_padding, |
253 | 25.9k | int& size_of_element) { |
254 | 25.9k | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
255 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
256 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
257 | 0 | } |
258 | | |
259 | 25.9k | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
260 | 25.9k | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
261 | 25.9k | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
262 | 25.9k | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
263 | 25.9k | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
264 | 0 | return Status::InternalError( |
265 | 0 | "num of element information corrupted," |
266 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
267 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
268 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
269 | 0 | size_of_element, data.size); |
270 | 0 | } |
271 | 25.9k | switch (size_of_element) { |
272 | 2.29k | case 1: |
273 | 2.35k | case 2: |
274 | 2.41k | case 3: |
275 | 23.2k | case 4: |
276 | 25.5k | case 8: |
277 | 25.5k | case 12: |
278 | 25.8k | case 16: |
279 | 25.9k | case 32: |
280 | 25.9k | break; |
281 | 0 | default: |
282 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
283 | 25.9k | } |
284 | 25.9k | return Status::OK(); |
285 | 25.9k | } |
286 | | |
287 | | template <FieldType Type> |
288 | | class BitShufflePageDecoder : public PageDecoder { |
289 | | public: |
290 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
291 | 13.0k | : _data(data), |
292 | 13.0k | _options(options), |
293 | 13.0k | _parsed(false), |
294 | 13.0k | _num_elements(0), |
295 | 13.0k | _num_element_after_padding(0), |
296 | 13.0k | _size_of_element(0), |
297 | 13.0k | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 10.3k | : _data(data), | 292 | 10.3k | _options(options), | 293 | 10.3k | _parsed(false), | 294 | 10.3k | _num_elements(0), | 295 | 10.3k | _num_element_after_padding(0), | 296 | 10.3k | _size_of_element(0), | 297 | 10.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 409 | : _data(data), | 292 | 409 | _options(options), | 293 | 409 | _parsed(false), | 294 | 409 | _num_elements(0), | 295 | 409 | _num_element_after_padding(0), | 296 | 409 | _size_of_element(0), | 297 | 409 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 12 | : _data(data), | 292 | 12 | _options(options), | 293 | 12 | _parsed(false), | 294 | 12 | _num_elements(0), | 295 | 12 | _num_element_after_padding(0), | 296 | 12 | _size_of_element(0), | 297 | 12 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 24 | : _data(data), | 292 | 24 | _options(options), | 293 | 24 | _parsed(false), | 294 | 24 | _num_elements(0), | 295 | 24 | _num_element_after_padding(0), | 296 | 24 | _size_of_element(0), | 297 | 24 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 34 | : _data(data), | 292 | 34 | _options(options), | 293 | 34 | _parsed(false), | 294 | 34 | _num_elements(0), | 295 | 34 | _num_element_after_padding(0), | 296 | 34 | _size_of_element(0), | 297 | 34 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 28 | : _data(data), | 292 | 28 | _options(options), | 293 | 28 | _parsed(false), | 294 | 28 | _num_elements(0), | 295 | 28 | _num_element_after_padding(0), | 296 | 28 | _size_of_element(0), | 297 | 28 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.15k | : _data(data), | 292 | 1.15k | _options(options), | 293 | 1.15k | _parsed(false), | 294 | 1.15k | _num_elements(0), | 295 | 1.15k | _num_element_after_padding(0), | 296 | 1.15k | _size_of_element(0), | 297 | 1.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 31 | : _data(data), | 292 | 31 | _options(options), | 293 | 31 | _parsed(false), | 294 | 31 | _num_elements(0), | 295 | 31 | _num_element_after_padding(0), | 296 | 31 | _size_of_element(0), | 297 | 31 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 36 | : _data(data), | 292 | 36 | _options(options), | 293 | 36 | _parsed(false), | 294 | 36 | _num_elements(0), | 295 | 36 | _num_element_after_padding(0), | 296 | 36 | _size_of_element(0), | 297 | 36 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 577 | : _data(data), | 292 | 577 | _options(options), | 293 | 577 | _parsed(false), | 294 | 577 | _num_elements(0), | 295 | 577 | _num_element_after_padding(0), | 296 | 577 | _size_of_element(0), | 297 | 577 | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 6 | : _data(data), | 292 | 6 | _options(options), | 293 | 6 | _parsed(false), | 294 | 6 | _num_elements(0), | 295 | 6 | _num_element_after_padding(0), | 296 | 6 | _size_of_element(0), | 297 | 6 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 32 | : _data(data), | 292 | 32 | _options(options), | 293 | 32 | _parsed(false), | 294 | 32 | _num_elements(0), | 295 | 32 | _num_element_after_padding(0), | 296 | 32 | _size_of_element(0), | 297 | 32 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 29 | : _data(data), | 292 | 29 | _options(options), | 293 | 29 | _parsed(false), | 294 | 29 | _num_elements(0), | 295 | 29 | _num_element_after_padding(0), | 296 | 29 | _size_of_element(0), | 297 | 29 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 8 | : _data(data), | 292 | 8 | _options(options), | 293 | 8 | _parsed(false), | 294 | 8 | _num_elements(0), | 295 | 8 | _num_element_after_padding(0), | 296 | 8 | _size_of_element(0), | 297 | 8 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 33 | : _data(data), | 292 | 33 | _options(options), | 293 | 33 | _parsed(false), | 294 | 33 | _num_elements(0), | 295 | 33 | _num_element_after_padding(0), | 296 | 33 | _size_of_element(0), | 297 | 33 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 28 | : _data(data), | 292 | 28 | _options(options), | 293 | 28 | _parsed(false), | 294 | 28 | _num_elements(0), | 295 | 28 | _num_element_after_padding(0), | 296 | 28 | _size_of_element(0), | 297 | 28 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 26 | : _data(data), | 292 | 26 | _options(options), | 293 | 26 | _parsed(false), | 294 | 26 | _num_elements(0), | 295 | 26 | _num_element_after_padding(0), | 296 | 26 | _size_of_element(0), | 297 | 26 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 28 | : _data(data), | 292 | 28 | _options(options), | 293 | 28 | _parsed(false), | 294 | 28 | _num_elements(0), | 295 | 28 | _num_element_after_padding(0), | 296 | 28 | _size_of_element(0), | 297 | 28 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 40 | : _data(data), | 292 | 40 | _options(options), | 293 | 40 | _parsed(false), | 294 | 40 | _num_elements(0), | 295 | 40 | _num_element_after_padding(0), | 296 | 40 | _size_of_element(0), | 297 | 40 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 52 | : _data(data), | 292 | 52 | _options(options), | 293 | 52 | _parsed(false), | 294 | 52 | _num_elements(0), | 295 | 52 | _num_element_after_padding(0), | 296 | 52 | _size_of_element(0), | 297 | 52 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 26 | : _data(data), | 292 | 26 | _options(options), | 293 | 26 | _parsed(false), | 294 | 26 | _num_elements(0), | 295 | 26 | _num_element_after_padding(0), | 296 | 26 | _size_of_element(0), | 297 | 26 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 36 | : _data(data), | 292 | 36 | _options(options), | 293 | 36 | _parsed(false), | 294 | 36 | _num_elements(0), | 295 | 36 | _num_element_after_padding(0), | 296 | 36 | _size_of_element(0), | 297 | 36 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 17 | : _data(data), | 292 | 17 | _options(options), | 293 | 17 | _parsed(false), | 294 | 17 | _num_elements(0), | 295 | 17 | _num_element_after_padding(0), | 296 | 17 | _size_of_element(0), | 297 | 17 | _cur_index(0) {} |
|
298 | | |
299 | 13.0k | Status init() override { |
300 | 13.0k | CHECK(!_parsed); |
301 | 13.0k | size_t unused; |
302 | 13.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
303 | 13.0k | _num_element_after_padding, _size_of_element)); |
304 | | |
305 | 13.0k | if (_data.size != |
306 | 13.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
307 | 13 | std::stringstream ss; |
308 | 13 | ss << "Size information unmatched, _data.size:" << _data.size |
309 | 13 | << ", _num_elements:" << _num_elements << ", expected size is " |
310 | 13 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
311 | 13 | return Status::InternalError(ss.str()); |
312 | 13 | } |
313 | | |
314 | | // Currently, only the UINT32 block encoder supports expanding size: |
315 | 12.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
316 | 12.9k | _size_of_element != SIZE_OF_TYPE)) { |
317 | 0 | return Status::InternalError( |
318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
320 | 0 | } |
321 | 12.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
323 | 0 | _size_of_element, SIZE_OF_TYPE); |
324 | 0 | } |
325 | 12.9k | _parsed = true; |
326 | 12.9k | return Status::OK(); |
327 | 12.9k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 299 | 10.3k | Status init() override { | 300 | 10.3k | CHECK(!_parsed); | 301 | 10.3k | size_t unused; | 302 | 10.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 10.3k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 10.3k | if (_data.size != | 306 | 10.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 5 | std::stringstream ss; | 308 | 5 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 5 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 5 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 5 | return Status::InternalError(ss.str()); | 312 | 5 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 10.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 10.3k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 10.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 10.3k | _parsed = true; | 326 | 10.3k | return Status::OK(); | 327 | 10.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 299 | 409 | Status init() override { | 300 | 409 | CHECK(!_parsed); | 301 | 409 | size_t unused; | 302 | 409 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 409 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 409 | if (_data.size != | 306 | 409 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 1 | std::stringstream ss; | 308 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 1 | return Status::InternalError(ss.str()); | 312 | 1 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 408 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 408 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 408 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 408 | _parsed = true; | 326 | 408 | return Status::OK(); | 327 | 408 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 299 | 12 | Status init() override { | 300 | 12 | CHECK(!_parsed); | 301 | 12 | size_t unused; | 302 | 12 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 12 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 12 | if (_data.size != | 306 | 12 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 2 | std::stringstream ss; | 308 | 2 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 2 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 2 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 2 | return Status::InternalError(ss.str()); | 312 | 2 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 10 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 10 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 10 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 10 | _parsed = true; | 326 | 10 | return Status::OK(); | 327 | 10 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 299 | 24 | Status init() override { | 300 | 24 | CHECK(!_parsed); | 301 | 24 | size_t unused; | 302 | 24 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 24 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 24 | if (_data.size != | 306 | 24 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 4 | std::stringstream ss; | 308 | 4 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 4 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 4 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 4 | return Status::InternalError(ss.str()); | 312 | 4 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 20 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 20 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 20 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 20 | _parsed = true; | 326 | 20 | return Status::OK(); | 327 | 20 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 299 | 34 | Status init() override { | 300 | 34 | CHECK(!_parsed); | 301 | 34 | size_t unused; | 302 | 34 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 34 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 34 | if (_data.size != | 306 | 34 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 1 | std::stringstream ss; | 308 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 1 | return Status::InternalError(ss.str()); | 312 | 1 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 33 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 33 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 33 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 33 | _parsed = true; | 326 | 33 | return Status::OK(); | 327 | 33 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 299 | 28 | Status init() override { | 300 | 28 | CHECK(!_parsed); | 301 | 28 | size_t unused; | 302 | 28 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 28 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 28 | if (_data.size != | 306 | 28 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 28 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 28 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 28 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 28 | _parsed = true; | 326 | 28 | return Status::OK(); | 327 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 299 | 1.15k | Status init() override { | 300 | 1.15k | CHECK(!_parsed); | 301 | 1.15k | size_t unused; | 302 | 1.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.15k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.15k | if (_data.size != | 306 | 1.15k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.15k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.15k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.15k | _parsed = true; | 326 | 1.15k | return Status::OK(); | 327 | 1.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 299 | 31 | Status init() override { | 300 | 31 | CHECK(!_parsed); | 301 | 31 | size_t unused; | 302 | 31 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 31 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 31 | if (_data.size != | 306 | 31 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 31 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 31 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 31 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 31 | _parsed = true; | 326 | 31 | return Status::OK(); | 327 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 299 | 36 | Status init() override { | 300 | 36 | CHECK(!_parsed); | 301 | 36 | size_t unused; | 302 | 36 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 36 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 36 | if (_data.size != | 306 | 36 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 36 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 36 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 36 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 36 | _parsed = true; | 326 | 36 | return Status::OK(); | 327 | 36 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 299 | 577 | Status init() override { | 300 | 577 | CHECK(!_parsed); | 301 | 577 | size_t unused; | 302 | 577 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 577 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 577 | if (_data.size != | 306 | 577 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 577 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 577 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 577 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 577 | _parsed = true; | 326 | 577 | return Status::OK(); | 327 | 577 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 299 | 6 | Status init() override { | 300 | 6 | CHECK(!_parsed); | 301 | 6 | size_t unused; | 302 | 6 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 6 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 6 | if (_data.size != | 306 | 6 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 6 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 6 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 6 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 6 | _parsed = true; | 326 | 6 | return Status::OK(); | 327 | 6 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 299 | 32 | Status init() override { | 300 | 32 | CHECK(!_parsed); | 301 | 32 | size_t unused; | 302 | 32 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 32 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 32 | if (_data.size != | 306 | 32 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 32 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 32 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 32 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 32 | _parsed = true; | 326 | 32 | return Status::OK(); | 327 | 32 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 299 | 29 | Status init() override { | 300 | 29 | CHECK(!_parsed); | 301 | 29 | size_t unused; | 302 | 29 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 29 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 29 | if (_data.size != | 306 | 29 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 29 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 29 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 29 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 29 | _parsed = true; | 326 | 29 | return Status::OK(); | 327 | 29 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 299 | 8 | Status init() override { | 300 | 8 | CHECK(!_parsed); | 301 | 8 | size_t unused; | 302 | 8 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 8 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 8 | if (_data.size != | 306 | 8 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 8 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 8 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 8 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 8 | _parsed = true; | 326 | 8 | return Status::OK(); | 327 | 8 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 299 | 33 | Status init() override { | 300 | 33 | CHECK(!_parsed); | 301 | 33 | size_t unused; | 302 | 33 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 33 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 33 | if (_data.size != | 306 | 33 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 33 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 33 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 33 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 33 | _parsed = true; | 326 | 33 | return Status::OK(); | 327 | 33 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 299 | 28 | Status init() override { | 300 | 28 | CHECK(!_parsed); | 301 | 28 | size_t unused; | 302 | 28 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 28 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 28 | if (_data.size != | 306 | 28 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 28 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 28 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 28 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 28 | _parsed = true; | 326 | 28 | return Status::OK(); | 327 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 299 | 26 | Status init() override { | 300 | 26 | CHECK(!_parsed); | 301 | 26 | size_t unused; | 302 | 26 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 26 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 26 | if (_data.size != | 306 | 26 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 26 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 26 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 26 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 26 | _parsed = true; | 326 | 26 | return Status::OK(); | 327 | 26 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 299 | 28 | Status init() override { | 300 | 28 | CHECK(!_parsed); | 301 | 28 | size_t unused; | 302 | 28 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 28 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 28 | if (_data.size != | 306 | 28 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 28 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 28 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 28 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 28 | _parsed = true; | 326 | 28 | return Status::OK(); | 327 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 299 | 40 | Status init() override { | 300 | 40 | CHECK(!_parsed); | 301 | 40 | size_t unused; | 302 | 40 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 40 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 40 | if (_data.size != | 306 | 40 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 40 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 40 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 40 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 40 | _parsed = true; | 326 | 40 | return Status::OK(); | 327 | 40 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 299 | 52 | Status init() override { | 300 | 52 | CHECK(!_parsed); | 301 | 52 | size_t unused; | 302 | 52 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 52 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 52 | if (_data.size != | 306 | 52 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 52 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 52 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 52 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 52 | _parsed = true; | 326 | 52 | return Status::OK(); | 327 | 52 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 299 | 26 | Status init() override { | 300 | 26 | CHECK(!_parsed); | 301 | 26 | size_t unused; | 302 | 26 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 26 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 26 | if (_data.size != | 306 | 26 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 26 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 26 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 26 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 26 | _parsed = true; | 326 | 26 | return Status::OK(); | 327 | 26 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 299 | 36 | Status init() override { | 300 | 36 | CHECK(!_parsed); | 301 | 36 | size_t unused; | 302 | 36 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 36 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 36 | if (_data.size != | 306 | 36 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 36 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 36 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 36 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 36 | _parsed = true; | 326 | 36 | return Status::OK(); | 327 | 36 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 299 | 17 | Status init() override { | 300 | 17 | CHECK(!_parsed); | 301 | 17 | size_t unused; | 302 | 17 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 17 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 17 | if (_data.size != | 306 | 17 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 17 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 17 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 17 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 17 | _parsed = true; | 326 | 17 | return Status::OK(); | 327 | 17 | } |
|
328 | | |
329 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
330 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
331 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
332 | | // code such as check if the count == 0, then skip seek, but there are other method such |
333 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
334 | | // == 0, because next batch will return empty in this method. |
335 | 9.81k | Status seek_to_position_in_page(size_t pos) override { |
336 | 9.81k | DCHECK(_parsed) << "Must call init()"; |
337 | 9.81k | if (_num_elements == 0) [[unlikely]] { |
338 | 0 | if (pos != 0) { |
339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
341 | 0 | } |
342 | 0 | } |
343 | | |
344 | 9.81k | DCHECK_LE(pos, _num_elements); |
345 | 9.81k | _cur_index = pos; |
346 | 9.81k | return Status::OK(); |
347 | 9.81k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 6.22k | Status seek_to_position_in_page(size_t pos) override { | 336 | 6.22k | DCHECK(_parsed) << "Must call init()"; | 337 | 6.22k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 6.22k | DCHECK_LE(pos, _num_elements); | 345 | 6.22k | _cur_index = pos; | 346 | 6.22k | return Status::OK(); | 347 | 6.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.88k | Status seek_to_position_in_page(size_t pos) override { | 336 | 1.88k | DCHECK(_parsed) << "Must call init()"; | 337 | 1.88k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 1.88k | DCHECK_LE(pos, _num_elements); | 345 | 1.88k | _cur_index = pos; | 346 | 1.88k | return Status::OK(); | 347 | 1.88k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 128 | Status seek_to_position_in_page(size_t pos) override { | 336 | 128 | DCHECK(_parsed) << "Must call init()"; | 337 | 128 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 128 | DCHECK_LE(pos, _num_elements); | 345 | 128 | _cur_index = pos; | 346 | 128 | return Status::OK(); | 347 | 128 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 329 | Status seek_to_position_in_page(size_t pos) override { | 336 | 329 | DCHECK(_parsed) << "Must call init()"; | 337 | 329 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 329 | DCHECK_LE(pos, _num_elements); | 345 | 329 | _cur_index = pos; | 346 | 329 | return Status::OK(); | 347 | 329 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 27 | Status seek_to_position_in_page(size_t pos) override { | 336 | 27 | DCHECK(_parsed) << "Must call init()"; | 337 | 27 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 27 | DCHECK_LE(pos, _num_elements); | 345 | 27 | _cur_index = pos; | 346 | 27 | return Status::OK(); | 347 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 37 | Status seek_to_position_in_page(size_t pos) override { | 336 | 37 | DCHECK(_parsed) << "Must call init()"; | 337 | 37 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 37 | DCHECK_LE(pos, _num_elements); | 345 | 37 | _cur_index = pos; | 346 | 37 | return Status::OK(); | 347 | 37 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 556 | Status seek_to_position_in_page(size_t pos) override { | 336 | 556 | DCHECK(_parsed) << "Must call init()"; | 337 | 556 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 556 | DCHECK_LE(pos, _num_elements); | 345 | 556 | _cur_index = pos; | 346 | 556 | return Status::OK(); | 347 | 556 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 50 | Status seek_to_position_in_page(size_t pos) override { | 336 | 50 | DCHECK(_parsed) << "Must call init()"; | 337 | 50 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 50 | DCHECK_LE(pos, _num_elements); | 345 | 50 | _cur_index = pos; | 346 | 50 | return Status::OK(); | 347 | 50 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 31 | Status seek_to_position_in_page(size_t pos) override { | 336 | 31 | DCHECK(_parsed) << "Must call init()"; | 337 | 31 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 31 | DCHECK_LE(pos, _num_elements); | 345 | 31 | _cur_index = pos; | 346 | 31 | return Status::OK(); | 347 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 100 | Status seek_to_position_in_page(size_t pos) override { | 336 | 100 | DCHECK(_parsed) << "Must call init()"; | 337 | 100 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 100 | DCHECK_LE(pos, _num_elements); | 345 | 100 | _cur_index = pos; | 346 | 100 | return Status::OK(); | 347 | 100 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 94 | Status seek_to_position_in_page(size_t pos) override { | 336 | 94 | DCHECK(_parsed) << "Must call init()"; | 337 | 94 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 94 | DCHECK_LE(pos, _num_elements); | 345 | 94 | _cur_index = pos; | 346 | 94 | return Status::OK(); | 347 | 94 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 29 | Status seek_to_position_in_page(size_t pos) override { | 336 | 29 | DCHECK(_parsed) << "Must call init()"; | 337 | 29 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 29 | DCHECK_LE(pos, _num_elements); | 345 | 29 | _cur_index = pos; | 346 | 29 | return Status::OK(); | 347 | 29 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 29 | Status seek_to_position_in_page(size_t pos) override { | 336 | 29 | DCHECK(_parsed) << "Must call init()"; | 337 | 29 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 29 | DCHECK_LE(pos, _num_elements); | 345 | 29 | _cur_index = pos; | 346 | 29 | return Status::OK(); | 347 | 29 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 29 | Status seek_to_position_in_page(size_t pos) override { | 336 | 29 | DCHECK(_parsed) << "Must call init()"; | 337 | 29 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 29 | DCHECK_LE(pos, _num_elements); | 345 | 29 | _cur_index = pos; | 346 | 29 | return Status::OK(); | 347 | 29 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 30 | Status seek_to_position_in_page(size_t pos) override { | 336 | 30 | DCHECK(_parsed) << "Must call init()"; | 337 | 30 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 30 | DCHECK_LE(pos, _num_elements); | 345 | 30 | _cur_index = pos; | 346 | 30 | return Status::OK(); | 347 | 30 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 29 | Status seek_to_position_in_page(size_t pos) override { | 336 | 29 | DCHECK(_parsed) << "Must call init()"; | 337 | 29 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 29 | DCHECK_LE(pos, _num_elements); | 345 | 29 | _cur_index = pos; | 346 | 29 | return Status::OK(); | 347 | 29 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 28 | Status seek_to_position_in_page(size_t pos) override { | 336 | 28 | DCHECK(_parsed) << "Must call init()"; | 337 | 28 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 28 | DCHECK_LE(pos, _num_elements); | 345 | 28 | _cur_index = pos; | 346 | 28 | return Status::OK(); | 347 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 29 | Status seek_to_position_in_page(size_t pos) override { | 336 | 29 | DCHECK(_parsed) << "Must call init()"; | 337 | 29 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 29 | DCHECK_LE(pos, _num_elements); | 345 | 29 | _cur_index = pos; | 346 | 29 | return Status::OK(); | 347 | 29 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 31 | Status seek_to_position_in_page(size_t pos) override { | 336 | 31 | DCHECK(_parsed) << "Must call init()"; | 337 | 31 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 31 | DCHECK_LE(pos, _num_elements); | 345 | 31 | _cur_index = pos; | 346 | 31 | return Status::OK(); | 347 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 37 | Status seek_to_position_in_page(size_t pos) override { | 336 | 37 | DCHECK(_parsed) << "Must call init()"; | 337 | 37 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 37 | DCHECK_LE(pos, _num_elements); | 345 | 37 | _cur_index = pos; | 346 | 37 | return Status::OK(); | 347 | 37 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 28 | Status seek_to_position_in_page(size_t pos) override { | 336 | 28 | DCHECK(_parsed) << "Must call init()"; | 337 | 28 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 28 | DCHECK_LE(pos, _num_elements); | 345 | 28 | _cur_index = pos; | 346 | 28 | return Status::OK(); | 347 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 31 | Status seek_to_position_in_page(size_t pos) override { | 336 | 31 | DCHECK(_parsed) << "Must call init()"; | 337 | 31 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 31 | DCHECK_LE(pos, _num_elements); | 345 | 31 | _cur_index = pos; | 346 | 31 | return Status::OK(); | 347 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 31 | Status seek_to_position_in_page(size_t pos) override { | 336 | 31 | DCHECK(_parsed) << "Must call init()"; | 337 | 31 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 31 | DCHECK_LE(pos, _num_elements); | 345 | 31 | _cur_index = pos; | 346 | 31 | return Status::OK(); | 347 | 31 | } |
|
348 | | |
349 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
350 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
351 | | |
352 | 15 | if (_num_elements == 0) { |
353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
354 | 0 | } |
355 | | |
356 | 15 | size_t left = 0; |
357 | 15 | size_t right = _num_elements; |
358 | | |
359 | 15 | void* mid_value = nullptr; |
360 | | |
361 | | // find the first value >= target. after loop, |
362 | | // - left == index of first value >= target when found |
363 | | // - left == _num_elements when not found (all values < target) |
364 | 162 | while (left < right) { |
365 | 147 | size_t mid = left + (right - left) / 2; |
366 | 147 | mid_value = get_data(mid); |
367 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
368 | 68 | left = mid + 1; |
369 | 79 | } else { |
370 | 79 | right = mid; |
371 | 79 | } |
372 | 147 | } |
373 | 15 | if (left >= _num_elements) { |
374 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
375 | 3 | } |
376 | 12 | void* find_value = get_data(left); |
377 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
378 | 9 | *exact_match = true; |
379 | 9 | } else { |
380 | 3 | *exact_match = false; |
381 | 3 | } |
382 | | |
383 | 12 | _cur_index = left; |
384 | 12 | return Status::OK(); |
385 | 15 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 21 | left = mid + 1; | 369 | 28 | } else { | 370 | 28 | right = mid; | 371 | 28 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 22 | left = mid + 1; | 369 | 27 | } else { | 370 | 27 | right = mid; | 371 | 27 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 25 | left = mid + 1; | 369 | 25 | } else { | 370 | 24 | right = mid; | 371 | 24 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_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_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_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE22seek_at_or_after_valueEPKvPb |
386 | | |
387 | | template <bool forward_index = true> |
388 | 58.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
389 | 58.8k | DCHECK(_parsed); |
390 | 58.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
391 | 0 | *n = 0; |
392 | 0 | return Status::OK(); |
393 | 0 | } |
394 | | |
395 | 58.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
396 | | |
397 | 58.8k | StorageLayout<Type>::storage_to_column( |
398 | 58.8k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); |
399 | 58.8k | *n = max_fetch; |
400 | 58.8k | if constexpr (forward_index) { |
401 | 58.2k | _cur_index += max_fetch; |
402 | 58.2k | } |
403 | | |
404 | 58.8k | return Status::OK(); |
405 | 58.8k | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46.0k | DCHECK(_parsed); | 390 | 46.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46.0k | StorageLayout<Type>::storage_to_column( | 398 | 46.0k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46.0k | *n = max_fetch; | 400 | 46.0k | if constexpr (forward_index) { | 401 | 46.0k | _cur_index += max_fetch; | 402 | 46.0k | } | 403 | | | 404 | 46.0k | return Status::OK(); | 405 | 46.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 7.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 7.23k | DCHECK(_parsed); | 390 | 7.23k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 7.23k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 7.23k | StorageLayout<Type>::storage_to_column( | 398 | 7.23k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 7.23k | *n = max_fetch; | 400 | 7.23k | if constexpr (forward_index) { | 401 | 7.23k | _cur_index += max_fetch; | 402 | 7.23k | } | 403 | | | 404 | 7.23k | return Status::OK(); | 405 | 7.23k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 128 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 128 | DCHECK(_parsed); | 390 | 128 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 128 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 128 | StorageLayout<Type>::storage_to_column( | 398 | 128 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 128 | *n = max_fetch; | 400 | 128 | if constexpr (forward_index) { | 401 | 128 | _cur_index += max_fetch; | 402 | 128 | } | 403 | | | 404 | 128 | return Status::OK(); | 405 | 128 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 337 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 337 | DCHECK(_parsed); | 390 | 337 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 337 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 337 | StorageLayout<Type>::storage_to_column( | 398 | 337 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 337 | *n = max_fetch; | 400 | 337 | if constexpr (forward_index) { | 401 | 337 | _cur_index += max_fetch; | 402 | 337 | } | 403 | | | 404 | 337 | return Status::OK(); | 405 | 337 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 48 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 48 | DCHECK(_parsed); | 390 | 48 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 48 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 48 | StorageLayout<Type>::storage_to_column( | 398 | 48 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 48 | *n = max_fetch; | 400 | 48 | if constexpr (forward_index) { | 401 | 48 | _cur_index += max_fetch; | 402 | 48 | } | 403 | | | 404 | 48 | return Status::OK(); | 405 | 48 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 55 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 55 | DCHECK(_parsed); | 390 | 55 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 55 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 55 | StorageLayout<Type>::storage_to_column( | 398 | 55 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 55 | *n = max_fetch; | 400 | 55 | if constexpr (forward_index) { | 401 | 55 | _cur_index += max_fetch; | 402 | 55 | } | 403 | | | 404 | 55 | return Status::OK(); | 405 | 55 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 3.07k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 3.07k | DCHECK(_parsed); | 390 | 3.07k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 3.07k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 3.07k | StorageLayout<Type>::storage_to_column( | 398 | 3.07k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 3.07k | *n = max_fetch; | 400 | 3.07k | if constexpr (forward_index) { | 401 | 3.07k | _cur_index += max_fetch; | 402 | 3.07k | } | 403 | | | 404 | 3.07k | return Status::OK(); | 405 | 3.07k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 67 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 67 | DCHECK(_parsed); | 390 | 67 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 67 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 67 | StorageLayout<Type>::storage_to_column( | 398 | 67 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 67 | *n = max_fetch; | 400 | 67 | if constexpr (forward_index) { | 401 | 67 | _cur_index += max_fetch; | 402 | 67 | } | 403 | | | 404 | 67 | return Status::OK(); | 405 | 67 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 50 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 50 | DCHECK(_parsed); | 390 | 50 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 50 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 50 | StorageLayout<Type>::storage_to_column( | 398 | 50 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 50 | *n = max_fetch; | 400 | 50 | if constexpr (forward_index) { | 401 | 50 | _cur_index += max_fetch; | 402 | 50 | } | 403 | | | 404 | 50 | return Status::OK(); | 405 | 50 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 588 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 588 | DCHECK(_parsed); | 390 | 588 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 588 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 588 | StorageLayout<Type>::storage_to_column( | 398 | 588 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 588 | *n = max_fetch; | 400 | 588 | if constexpr (forward_index) { | 401 | 588 | _cur_index += max_fetch; | 402 | 588 | } | 403 | | | 404 | 588 | return Status::OK(); | 405 | 588 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 565 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 565 | DCHECK(_parsed); | 390 | 565 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 565 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 565 | StorageLayout<Type>::storage_to_column( | 398 | 565 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 565 | *n = max_fetch; | 400 | | if constexpr (forward_index) { | 401 | | _cur_index += max_fetch; | 402 | | } | 403 | | | 404 | 565 | return Status::OK(); | 405 | 565 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 93 | DCHECK(_parsed); | 390 | 93 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 93 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 93 | StorageLayout<Type>::storage_to_column( | 398 | 93 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 93 | *n = max_fetch; | 400 | 93 | if constexpr (forward_index) { | 401 | 93 | _cur_index += max_fetch; | 402 | 93 | } | 403 | | | 404 | 93 | return Status::OK(); | 405 | 93 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 47 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 47 | DCHECK(_parsed); | 390 | 47 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 47 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 47 | StorageLayout<Type>::storage_to_column( | 398 | 47 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 47 | *n = max_fetch; | 400 | 47 | if constexpr (forward_index) { | 401 | 47 | _cur_index += max_fetch; | 402 | 47 | } | 403 | | | 404 | 47 | return Status::OK(); | 405 | 47 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46 | DCHECK(_parsed); | 390 | 46 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46 | StorageLayout<Type>::storage_to_column( | 398 | 46 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46 | *n = max_fetch; | 400 | 46 | if constexpr (forward_index) { | 401 | 46 | _cur_index += max_fetch; | 402 | 46 | } | 403 | | | 404 | 46 | return Status::OK(); | 405 | 46 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 26 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 26 | DCHECK(_parsed); | 390 | 26 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 26 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 26 | StorageLayout<Type>::storage_to_column( | 398 | 26 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 26 | *n = max_fetch; | 400 | 26 | if constexpr (forward_index) { | 401 | 26 | _cur_index += max_fetch; | 402 | 26 | } | 403 | | | 404 | 26 | return Status::OK(); | 405 | 26 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 47 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 47 | DCHECK(_parsed); | 390 | 47 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 47 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 47 | StorageLayout<Type>::storage_to_column( | 398 | 47 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 47 | *n = max_fetch; | 400 | 47 | if constexpr (forward_index) { | 401 | 47 | _cur_index += max_fetch; | 402 | 47 | } | 403 | | | 404 | 47 | return Status::OK(); | 405 | 47 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46 | DCHECK(_parsed); | 390 | 46 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46 | StorageLayout<Type>::storage_to_column( | 398 | 46 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46 | *n = max_fetch; | 400 | 46 | if constexpr (forward_index) { | 401 | 46 | _cur_index += max_fetch; | 402 | 46 | } | 403 | | | 404 | 46 | return Status::OK(); | 405 | 46 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46 | DCHECK(_parsed); | 390 | 46 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46 | StorageLayout<Type>::storage_to_column( | 398 | 46 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46 | *n = max_fetch; | 400 | 46 | if constexpr (forward_index) { | 401 | 46 | _cur_index += max_fetch; | 402 | 46 | } | 403 | | | 404 | 46 | return Status::OK(); | 405 | 46 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46 | DCHECK(_parsed); | 390 | 46 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46 | StorageLayout<Type>::storage_to_column( | 398 | 46 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46 | *n = max_fetch; | 400 | 46 | if constexpr (forward_index) { | 401 | 46 | _cur_index += max_fetch; | 402 | 46 | } | 403 | | | 404 | 46 | return Status::OK(); | 405 | 46 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 54 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 54 | DCHECK(_parsed); | 390 | 54 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 54 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 54 | StorageLayout<Type>::storage_to_column( | 398 | 54 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 54 | *n = max_fetch; | 400 | 54 | if constexpr (forward_index) { | 401 | 54 | _cur_index += max_fetch; | 402 | 54 | } | 403 | | | 404 | 54 | return Status::OK(); | 405 | 54 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 58 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 58 | DCHECK(_parsed); | 390 | 58 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 58 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 58 | StorageLayout<Type>::storage_to_column( | 398 | 58 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 58 | *n = max_fetch; | 400 | 58 | if constexpr (forward_index) { | 401 | 58 | _cur_index += max_fetch; | 402 | 58 | } | 403 | | | 404 | 58 | return Status::OK(); | 405 | 58 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 46 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 46 | DCHECK(_parsed); | 390 | 46 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 46 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 46 | StorageLayout<Type>::storage_to_column( | 398 | 46 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 46 | *n = max_fetch; | 400 | 46 | if constexpr (forward_index) { | 401 | 46 | _cur_index += max_fetch; | 402 | 46 | } | 403 | | | 404 | 46 | return Status::OK(); | 405 | 46 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 50 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 50 | DCHECK(_parsed); | 390 | 50 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 50 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 50 | StorageLayout<Type>::storage_to_column( | 398 | 50 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 50 | *n = max_fetch; | 400 | 50 | if constexpr (forward_index) { | 401 | 50 | _cur_index += max_fetch; | 402 | 50 | } | 403 | | | 404 | 50 | return Status::OK(); | 405 | 50 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 32 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 32 | DCHECK(_parsed); | 390 | 32 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 32 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 32 | StorageLayout<Type>::storage_to_column( | 398 | 32 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 32 | *n = max_fetch; | 400 | 32 | if constexpr (forward_index) { | 401 | 32 | _cur_index += max_fetch; | 402 | 32 | } | 403 | | | 404 | 32 | return Status::OK(); | 405 | 32 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
406 | | |
407 | 58.2k | 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 | 407 | 46.0k | 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 | 407 | 7.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 128 | 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 | 407 | 337 | 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 | 407 | 48 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 55 | 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 | 407 | 3.07k | 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 | 407 | 67 | 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 | 407 | 50 | 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 | 407 | 588 | 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_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 93 | 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 | 407 | 47 | 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 | 407 | 46 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 26 | 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 | 407 | 47 | 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 | 407 | 46 | 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 | 407 | 46 | 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 | 407 | 46 | 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 | 407 | 54 | 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 | 407 | 58 | 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 | 407 | 46 | 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 | 407 | 50 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 32 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
408 | | |
409 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
410 | 4.23k | MutableColumnPtr& dst) override { |
411 | 4.23k | DCHECK(_parsed); |
412 | 4.23k | if (*n == 0) [[unlikely]] { |
413 | 0 | *n = 0; |
414 | 0 | return Status::OK(); |
415 | 0 | } |
416 | | |
417 | 4.23k | auto total = *n; |
418 | 4.23k | auto read_count = 0; |
419 | 4.23k | _buffer.resize(total); |
420 | 3.32M | for (size_t i = 0; i < total; ++i) { |
421 | 3.32M | ordinal_t ord = rowids[i] - page_first_ordinal; |
422 | 3.32M | if (UNLIKELY(ord >= _num_elements)) { |
423 | 48 | break; |
424 | 48 | } |
425 | | |
426 | 3.32M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
427 | 3.32M | } |
428 | | |
429 | 4.23k | if (LIKELY(read_count > 0)) { |
430 | 4.23k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), |
431 | 4.23k | read_count, *dst); |
432 | 4.23k | } |
433 | | |
434 | 4.23k | *n = read_count; |
435 | 4.23k | return Status::OK(); |
436 | 4.23k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 2.56k | MutableColumnPtr& dst) override { | 411 | 2.56k | DCHECK(_parsed); | 412 | 2.56k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 2.56k | auto total = *n; | 418 | 2.56k | auto read_count = 0; | 419 | 2.56k | _buffer.resize(total); | 420 | 2.76M | for (size_t i = 0; i < total; ++i) { | 421 | 2.76M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 2.76M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 9 | break; | 424 | 9 | } | 425 | | | 426 | 2.76M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 2.76M | } | 428 | | | 429 | 2.56k | if (LIKELY(read_count > 0)) { | 430 | 2.56k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 2.56k | read_count, *dst); | 432 | 2.56k | } | 433 | | | 434 | 2.56k | *n = read_count; | 435 | 2.56k | return Status::OK(); | 436 | 2.56k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 243 | MutableColumnPtr& dst) override { | 411 | 243 | DCHECK(_parsed); | 412 | 243 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 243 | auto total = *n; | 418 | 243 | auto read_count = 0; | 419 | 243 | _buffer.resize(total); | 420 | 963 | for (size_t i = 0; i < total; ++i) { | 421 | 721 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 721 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 720 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 720 | } | 428 | | | 429 | 243 | if (LIKELY(read_count > 0)) { | 430 | 243 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 243 | read_count, *dst); | 432 | 243 | } | 433 | | | 434 | 243 | *n = read_count; | 435 | 243 | return Status::OK(); | 436 | 243 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 206 | for (size_t i = 0; i < total; ++i) { | 421 | 179 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 179 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 179 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 179 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 194 | for (size_t i = 0; i < total; ++i) { | 421 | 168 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 168 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 28 | MutableColumnPtr& dst) override { | 411 | 28 | DCHECK(_parsed); | 412 | 28 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 28 | auto total = *n; | 418 | 28 | auto read_count = 0; | 419 | 28 | _buffer.resize(total); | 420 | 195 | for (size_t i = 0; i < total; ++i) { | 421 | 169 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 169 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 2 | break; | 424 | 2 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 28 | if (LIKELY(read_count > 0)) { | 430 | 28 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 28 | read_count, *dst); | 432 | 28 | } | 433 | | | 434 | 28 | *n = read_count; | 435 | 28 | return Status::OK(); | 436 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 36 | MutableColumnPtr& dst) override { | 411 | 36 | DCHECK(_parsed); | 412 | 36 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 36 | auto total = *n; | 418 | 36 | auto read_count = 0; | 419 | 36 | _buffer.resize(total); | 420 | 277 | for (size_t i = 0; i < total; ++i) { | 421 | 241 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 241 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 241 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 241 | } | 428 | | | 429 | 36 | if (LIKELY(read_count > 0)) { | 430 | 36 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 36 | read_count, *dst); | 432 | 36 | } | 433 | | | 434 | 36 | *n = read_count; | 435 | 36 | return Status::OK(); | 436 | 36 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 661 | MutableColumnPtr& dst) override { | 411 | 661 | DCHECK(_parsed); | 412 | 661 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 661 | auto total = *n; | 418 | 661 | auto read_count = 0; | 419 | 661 | _buffer.resize(total); | 420 | 550k | for (size_t i = 0; i < total; ++i) { | 421 | 549k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 549k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 549k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 549k | } | 428 | | | 429 | 661 | if (LIKELY(read_count > 0)) { | 430 | 661 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 661 | read_count, *dst); | 432 | 661 | } | 433 | | | 434 | 661 | *n = read_count; | 435 | 661 | return Status::OK(); | 436 | 661 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 52 | MutableColumnPtr& dst) override { | 411 | 52 | DCHECK(_parsed); | 412 | 52 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 52 | auto total = *n; | 418 | 52 | auto read_count = 0; | 419 | 52 | _buffer.resize(total); | 420 | 413 | for (size_t i = 0; i < total; ++i) { | 421 | 361 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 361 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 361 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 361 | } | 428 | | | 429 | 52 | if (LIKELY(read_count > 0)) { | 430 | 52 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 52 | read_count, *dst); | 432 | 52 | } | 433 | | | 434 | 52 | *n = read_count; | 435 | 52 | return Status::OK(); | 436 | 52 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 31 | MutableColumnPtr& dst) override { | 411 | 31 | DCHECK(_parsed); | 412 | 31 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 31 | auto total = *n; | 418 | 31 | auto read_count = 0; | 419 | 31 | _buffer.resize(total); | 420 | 198 | for (size_t i = 0; i < total; ++i) { | 421 | 170 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 170 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 31 | if (LIKELY(read_count > 0)) { | 430 | 31 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 31 | read_count, *dst); | 432 | 31 | } | 433 | | | 434 | 31 | *n = read_count; | 435 | 31 | return Status::OK(); | 436 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 124 | MutableColumnPtr& dst) override { | 411 | 124 | DCHECK(_parsed); | 412 | 124 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 124 | auto total = *n; | 418 | 124 | auto read_count = 0; | 419 | 124 | _buffer.resize(total); | 420 | 10.0k | for (size_t i = 0; i < total; ++i) { | 421 | 9.93k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 9.93k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 12 | break; | 424 | 12 | } | 425 | | | 426 | 9.92k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 9.92k | } | 428 | | | 429 | 124 | if (LIKELY(read_count > 0)) { | 430 | 124 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 124 | read_count, *dst); | 432 | 124 | } | 433 | | | 434 | 124 | *n = read_count; | 435 | 124 | return Status::OK(); | 436 | 124 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 93 | MutableColumnPtr& dst) override { | 411 | 93 | DCHECK(_parsed); | 412 | 93 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 93 | auto total = *n; | 418 | 93 | auto read_count = 0; | 419 | 93 | _buffer.resize(total); | 420 | 803 | for (size_t i = 0; i < total; ++i) { | 421 | 710 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 710 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 710 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 710 | } | 428 | | | 429 | 93 | if (LIKELY(read_count > 0)) { | 430 | 93 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 93 | read_count, *dst); | 432 | 93 | } | 433 | | | 434 | 93 | *n = read_count; | 435 | 93 | return Status::OK(); | 436 | 93 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 32 | MutableColumnPtr& dst) override { | 411 | 32 | DCHECK(_parsed); | 412 | 32 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 32 | auto total = *n; | 418 | 32 | auto read_count = 0; | 419 | 32 | _buffer.resize(total); | 420 | 217 | for (size_t i = 0; i < total; ++i) { | 421 | 185 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 185 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 185 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 185 | } | 428 | | | 429 | 32 | if (LIKELY(read_count > 0)) { | 430 | 32 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 32 | read_count, *dst); | 432 | 32 | } | 433 | | | 434 | 32 | *n = read_count; | 435 | 32 | return Status::OK(); | 436 | 32 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 28 | MutableColumnPtr& dst) override { | 411 | 28 | DCHECK(_parsed); | 412 | 28 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 28 | auto total = *n; | 418 | 28 | auto read_count = 0; | 419 | 28 | _buffer.resize(total); | 420 | 196 | for (size_t i = 0; i < total; ++i) { | 421 | 169 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 169 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 168 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 168 | } | 428 | | | 429 | 28 | if (LIKELY(read_count > 0)) { | 430 | 28 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 28 | read_count, *dst); | 432 | 28 | } | 433 | | | 434 | 28 | *n = read_count; | 435 | 28 | return Status::OK(); | 436 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 194 | for (size_t i = 0; i < total; ++i) { | 421 | 168 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 168 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 31 | MutableColumnPtr& dst) override { | 411 | 31 | DCHECK(_parsed); | 412 | 31 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 31 | auto total = *n; | 418 | 31 | auto read_count = 0; | 419 | 31 | _buffer.resize(total); | 420 | 202 | for (size_t i = 0; i < total; ++i) { | 421 | 172 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 172 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 171 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 171 | } | 428 | | | 429 | 31 | if (LIKELY(read_count > 0)) { | 430 | 31 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 31 | read_count, *dst); | 432 | 31 | } | 433 | | | 434 | 31 | *n = read_count; | 435 | 31 | return Status::OK(); | 436 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 194 | for (size_t i = 0; i < total; ++i) { | 421 | 168 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 168 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 206 | for (size_t i = 0; i < total; ++i) { | 421 | 179 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 179 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 179 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 179 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 194 | for (size_t i = 0; i < total; ++i) { | 421 | 168 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 168 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 31 | MutableColumnPtr& dst) override { | 411 | 31 | DCHECK(_parsed); | 412 | 31 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 31 | auto total = *n; | 418 | 31 | auto read_count = 0; | 419 | 31 | _buffer.resize(total); | 420 | 198 | for (size_t i = 0; i < total; ++i) { | 421 | 170 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 170 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 31 | if (LIKELY(read_count > 0)) { | 430 | 31 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 31 | read_count, *dst); | 432 | 31 | } | 433 | | | 434 | 31 | *n = read_count; | 435 | 31 | return Status::OK(); | 436 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 38 | MutableColumnPtr& dst) override { | 411 | 38 | DCHECK(_parsed); | 412 | 38 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 38 | auto total = *n; | 418 | 38 | auto read_count = 0; | 419 | 38 | _buffer.resize(total); | 420 | 205 | for (size_t i = 0; i < total; ++i) { | 421 | 173 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 173 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 6 | break; | 424 | 6 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 38 | if (LIKELY(read_count > 0)) { | 430 | 38 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 38 | read_count, *dst); | 432 | 38 | } | 433 | | | 434 | 38 | *n = read_count; | 435 | 38 | return Status::OK(); | 436 | 38 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27 | MutableColumnPtr& dst) override { | 411 | 27 | DCHECK(_parsed); | 412 | 27 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27 | auto total = *n; | 418 | 27 | auto read_count = 0; | 419 | 27 | _buffer.resize(total); | 420 | 206 | for (size_t i = 0; i < total; ++i) { | 421 | 179 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 179 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 179 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 179 | } | 428 | | | 429 | 27 | if (LIKELY(read_count > 0)) { | 430 | 27 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27 | read_count, *dst); | 432 | 27 | } | 433 | | | 434 | 27 | *n = read_count; | 435 | 27 | return Status::OK(); | 436 | 27 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 31 | MutableColumnPtr& dst) override { | 411 | 31 | DCHECK(_parsed); | 412 | 31 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 31 | auto total = *n; | 418 | 31 | auto read_count = 0; | 419 | 31 | _buffer.resize(total); | 420 | 198 | for (size_t i = 0; i < total; ++i) { | 421 | 170 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 170 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 31 | if (LIKELY(read_count > 0)) { | 430 | 31 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 31 | read_count, *dst); | 432 | 31 | } | 433 | | | 434 | 31 | *n = read_count; | 435 | 31 | return Status::OK(); | 436 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 31 | MutableColumnPtr& dst) override { | 411 | 31 | DCHECK(_parsed); | 412 | 31 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 31 | auto total = *n; | 418 | 31 | auto read_count = 0; | 419 | 31 | _buffer.resize(total); | 420 | 198 | for (size_t i = 0; i < total; ++i) { | 421 | 170 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 170 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 167 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 167 | } | 428 | | | 429 | 31 | if (LIKELY(read_count > 0)) { | 430 | 31 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 31 | read_count, *dst); | 432 | 31 | } | 433 | | | 434 | 31 | *n = read_count; | 435 | 31 | return Status::OK(); | 436 | 31 | } |
|
437 | | |
438 | 565 | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
439 | 565 | return next_batch<false>(n, dst); |
440 | 565 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_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_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_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_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 438 | 565 | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 439 | 565 | return next_batch<false>(n, dst); | 440 | 565 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
441 | | |
442 | 4 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 442 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_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 Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE5countEv |
443 | | |
444 | 10.6k | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 444 | 5.05k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 444 | 3.84k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 444 | 157 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 444 | 360 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 444 | 55 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 444 | 68 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 444 | 184 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 444 | 92 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 444 | 53 | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv Line | Count | Source | 444 | 184 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 444 | 51 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 444 | 52 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 444 | 52 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 444 | 52 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 444 | 52 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 444 | 51 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 444 | 52 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 444 | 53 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 444 | 58 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 444 | 51 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 444 | 53 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 444 | 53 | size_t current_index() const override { return _cur_index; } |
|
445 | | |
446 | 3.39M | char* get_data(size_t index) const { |
447 | 3.39M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
448 | 3.39M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 446 | 2.82M | char* get_data(size_t index) const { | 447 | 2.82M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 2.82M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 446 | 7.95k | char* get_data(size_t index) const { | 447 | 7.95k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 7.95k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 446 | 360 | char* get_data(size_t index) const { | 447 | 360 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 360 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 446 | 557 | char* get_data(size_t index) const { | 447 | 557 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 557 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 446 | 268 | char* get_data(size_t index) const { | 447 | 268 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 268 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 446 | 296 | char* get_data(size_t index) const { | 447 | 296 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 296 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 446 | 552k | char* get_data(size_t index) const { | 447 | 552k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 552k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 446 | 428 | char* get_data(size_t index) const { | 447 | 428 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 428 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 446 | 217 | char* get_data(size_t index) const { | 447 | 217 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 217 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 446 | 11.0k | char* get_data(size_t index) const { | 447 | 11.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 11.0k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 446 | 803 | char* get_data(size_t index) const { | 447 | 803 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 803 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 446 | 232 | char* get_data(size_t index) const { | 447 | 232 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 232 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 446 | 214 | char* get_data(size_t index) const { | 447 | 214 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 214 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 446 | 193 | char* get_data(size_t index) const { | 447 | 193 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 193 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 446 | 218 | char* get_data(size_t index) const { | 447 | 218 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 218 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 446 | 213 | char* get_data(size_t index) const { | 447 | 213 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 213 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 446 | 225 | char* get_data(size_t index) const { | 447 | 225 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 225 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 446 | 213 | char* get_data(size_t index) const { | 447 | 213 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 213 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 446 | 221 | char* get_data(size_t index) const { | 447 | 221 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 221 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 446 | 225 | char* get_data(size_t index) const { | 447 | 225 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 225 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 446 | 225 | char* get_data(size_t index) const { | 447 | 225 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 225 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 446 | 217 | char* get_data(size_t index) const { | 447 | 217 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 217 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 446 | 199 | char* get_data(size_t index) const { | 447 | 199 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 199 | } |
|
449 | | |
450 | | private: |
451 | | void _copy_next_values(size_t n, void* data) { |
452 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
453 | | } |
454 | | |
455 | | using CppType = typename TypeTraits<Type>::CppType; |
456 | | |
457 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
458 | | |
459 | | Slice _data; |
460 | | PageDecoderOptions _options; |
461 | | bool _parsed; |
462 | | size_t _num_elements; |
463 | | size_t _num_element_after_padding; |
464 | | |
465 | | int _size_of_element; |
466 | | size_t _cur_index; |
467 | | |
468 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
469 | | |
470 | | friend class BinaryDictPageDecoder; |
471 | | }; |
472 | | |
473 | | } // namespace segment_v2 |
474 | | } // namespace doris |