be/src/storage/segment/bitshuffle_page.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <glog/logging.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <cstddef> |
24 | | #include <cstdint> |
25 | | #include <cstring> |
26 | | #include <ostream> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/cast_set.h" |
30 | | #include "common/compiler_util.h" // IWYU pragma: keep |
31 | | #include "common/status.h" |
32 | | #include "core/column/column.h" |
33 | | #include "core/data_type/data_type.h" |
34 | | #include "core/types.h" |
35 | | #include "storage/olap_common.h" |
36 | | #include "storage/segment/bitshuffle_wrapper.h" |
37 | | #include "storage/segment/common.h" |
38 | | #include "storage/segment/options.h" |
39 | | #include "storage/segment/page_builder.h" |
40 | | #include "storage/segment/page_decoder.h" |
41 | | #include "storage/types.h" |
42 | | #include "util/alignment.h" |
43 | | #include "util/coding.h" |
44 | | #include "util/faststring.h" |
45 | | #include "util/slice.h" |
46 | | |
47 | | namespace doris { |
48 | | namespace segment_v2 { |
49 | | |
50 | | static constexpr size_t BITSHUFFLE_PAGE_HEADER_SIZE = 16; |
51 | | |
52 | | void warn_with_bitshuffle_error(int64_t val); |
53 | | |
54 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
55 | | // size type blocks with lz4. |
56 | | // |
57 | | // The page format is as follows: |
58 | | // |
59 | | // 1. Header: (16 bytes total) |
60 | | // |
61 | | // <num_elements> [32-bit] |
62 | | // The number of elements encoded in the page. |
63 | | // |
64 | | // <compressed_size> [32-bit] |
65 | | // The post-compression size of the page, including this header. |
66 | | // |
67 | | // <padded_num_elements> [32-bit] |
68 | | // Padding is needed to meet the requirements of the bitshuffle |
69 | | // library such that the input/output is a multiple of 8. Some |
70 | | // ignored elements are appended to the end of the page if necessary |
71 | | // to meet this requirement. |
72 | | // |
73 | | // This header field is the post-padding element count. |
74 | | // |
75 | | // <elem_size_bytes> [32-bit] |
76 | | // The size of the elements, in bytes, as actually encoded. In the |
77 | | // case that all of the data in a page can fit into a smaller |
78 | | // integer type, then we may choose to encode that smaller type |
79 | | // to save CPU costs. |
80 | | // |
81 | | // This is currently only implemented in the UINT32 page type. |
82 | | // |
83 | | // NOTE: all on-disk ints are encoded little-endian |
84 | | // |
85 | | // 2. Element data |
86 | | // |
87 | | // The header is followed by the bitshuffle-compressed element data. |
88 | | // |
89 | | template <FieldType Type> |
90 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
91 | | public: |
92 | | using Self = BitshufflePageBuilder<Type>; |
93 | | friend class PageBuilderHelper<Self>; |
94 | | |
95 | 665k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 41.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.16k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 353k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 39.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 10.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 63.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 6.52k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 8.12k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 95 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 341 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 330 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 438 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.74k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 329 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.76k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.20k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 707 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 702 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 95 | 619 | Status init() override { return reset(); } |
|
96 | | |
97 | 158M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 44.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 11.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 158M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 147k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 11.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 63.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 97 | 6.94k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 21.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 97 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 449 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 45.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 44.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 330 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 568 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.75k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 308 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.29k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 26.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 17.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.46k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 669 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 691 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 97 | 26.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.23M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.23M | return add_internal<false>(vals, count); |
101 | 1.23M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 44.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.0k | return add_internal<false>(vals, count); | 101 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 11.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.2k | return add_internal<false>(vals, count); | 101 | 11.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 746k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 746k | return add_internal<false>(vals, count); | 101 | 746k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 147k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 147k | return add_internal<false>(vals, count); | 101 | 147k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 11.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.4k | return add_internal<false>(vals, count); | 101 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 63.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 63.1k | return add_internal<false>(vals, count); | 101 | 63.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 6.95k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.95k | return add_internal<false>(vals, count); | 101 | 6.95k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 21.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 21.4k | return add_internal<false>(vals, count); | 101 | 21.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 99 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 194 | return add_internal<false>(vals, count); | 101 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 449 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 449 | return add_internal<false>(vals, count); | 101 | 449 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 45.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.9k | return add_internal<false>(vals, count); | 101 | 45.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 44.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.5k | return add_internal<false>(vals, count); | 101 | 44.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 330 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 330 | return add_internal<false>(vals, count); | 101 | 330 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 568 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 568 | return add_internal<false>(vals, count); | 101 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.75k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.75k | return add_internal<false>(vals, count); | 101 | 7.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 309 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 309 | return add_internal<false>(vals, count); | 101 | 309 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.29k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.29k | return add_internal<false>(vals, count); | 101 | 5.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 26.7k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.7k | return add_internal<false>(vals, count); | 101 | 26.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 17.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 17.9k | return add_internal<false>(vals, count); | 101 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.46k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.46k | return add_internal<false>(vals, count); | 101 | 1.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 669 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 669 | return add_internal<false>(vals, count); | 101 | 669 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 691 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 691 | return add_internal<false>(vals, count); | 101 | 691 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 99 | 26.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.5k | return add_internal<false>(vals, count); | 101 | 26.5k | } |
|
102 | | |
103 | 156M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 156M | return add_internal<true>(vals, count); |
105 | 156M | } |
106 | | |
107 | | template <bool single> |
108 | 154M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 154M | DCHECK(!_finished); |
110 | 154M | if (_remain_element_capacity == 0) { |
111 | 0 | *num_written = 0; |
112 | 0 | return Status::OK(); |
113 | 0 | } |
114 | | |
115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
116 | | // the row count of a single men tbl could be very large. |
117 | | // a real log: |
118 | | /* |
119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
120 | | */ |
121 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
125 | 154M | uint32_t to_add = cast_set<UInt32>( |
126 | 154M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
128 | 154M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 154M | size_t orig_size = _data.size(); |
130 | | // This may need a large memory, should return error if could not allocated |
131 | | // successfully, to avoid BE OOM. |
132 | 154M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 157M | _count += to_add; |
134 | 157M | _remain_element_capacity -= to_add; |
135 | 157M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 157M | *num_written = to_add; |
138 | 157M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | _data[orig_size] = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 156M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 156M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 156M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 156M | return Status::OK(); |
150 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
152 | | *reinterpret_cast<const uint64_t*>(vals); |
153 | | return Status::OK(); |
154 | | } |
155 | 156M | } |
156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
158 | 157M | return Status::OK(); |
159 | 154M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.0k | DCHECK(!_finished); | 110 | 44.0k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.0k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.0k | _count += to_add; | 134 | 44.0k | _remain_element_capacity -= to_add; | 135 | 44.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 44.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.0k | return Status::OK(); | 159 | 44.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.2k | DCHECK(!_finished); | 110 | 11.2k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 11.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 11.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.2k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 11.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.2k | _count += to_add; | 134 | 11.2k | _remain_element_capacity -= to_add; | 135 | 11.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 11.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.2k | return Status::OK(); | 159 | 11.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 746k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 746k | DCHECK(!_finished); | 110 | 746k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 746k | uint32_t to_add = cast_set<UInt32>( | 126 | 746k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 746k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 746k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 746k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 746k | _count += to_add; | 134 | 746k | _remain_element_capacity -= to_add; | 135 | 746k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 746k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 746k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 746k | return Status::OK(); | 159 | 746k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 147k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 147k | DCHECK(!_finished); | 110 | 147k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 147k | uint32_t to_add = cast_set<UInt32>( | 126 | 147k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 147k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 147k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 147k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 147k | _count += to_add; | 134 | 147k | _remain_element_capacity -= to_add; | 135 | 147k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 147k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 147k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 147k | return Status::OK(); | 159 | 147k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.4k | DCHECK(!_finished); | 110 | 11.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 11.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 11.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 11.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.4k | _count += to_add; | 134 | 11.4k | _remain_element_capacity -= to_add; | 135 | 11.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 11.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.4k | return Status::OK(); | 159 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 63.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 63.1k | DCHECK(!_finished); | 110 | 63.1k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 63.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 63.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 63.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 63.1k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 63.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 63.1k | _count += to_add; | 134 | 63.1k | _remain_element_capacity -= to_add; | 135 | 63.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 63.1k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 63.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 63.1k | return Status::OK(); | 159 | 63.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.94k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.94k | DCHECK(!_finished); | 110 | 6.94k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 6.94k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.94k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 6.94k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.94k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 6.94k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.95k | _count += to_add; | 134 | 6.95k | _remain_element_capacity -= to_add; | 135 | 6.95k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.95k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 6.95k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.95k | return Status::OK(); | 159 | 6.94k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 21.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 21.4k | DCHECK(!_finished); | 110 | 21.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 21.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 21.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 21.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 21.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 21.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 21.4k | _count += to_add; | 134 | 21.4k | _remain_element_capacity -= to_add; | 135 | 21.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 21.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 21.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 21.4k | return Status::OK(); | 159 | 21.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 194 | DCHECK(!_finished); | 110 | 194 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 194 | uint32_t to_add = cast_set<UInt32>( | 126 | 194 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 194 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 194 | _count += to_add; | 134 | 194 | _remain_element_capacity -= to_add; | 135 | 194 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 194 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 194 | return Status::OK(); | 159 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 449 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 449 | DCHECK(!_finished); | 110 | 449 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 449 | uint32_t to_add = cast_set<UInt32>( | 126 | 449 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 449 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 449 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 449 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 449 | _count += to_add; | 134 | 449 | _remain_element_capacity -= to_add; | 135 | 449 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 449 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 449 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 449 | return Status::OK(); | 159 | 449 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.9k | DCHECK(!_finished); | 110 | 45.9k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 45.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 45.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.9k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 45.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.9k | _count += to_add; | 134 | 45.9k | _remain_element_capacity -= to_add; | 135 | 45.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.9k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 45.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.9k | return Status::OK(); | 159 | 45.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.5k | DCHECK(!_finished); | 110 | 44.5k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.5k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.5k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.5k | _count += to_add; | 134 | 44.5k | _remain_element_capacity -= to_add; | 135 | 44.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.5k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 44.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.5k | return Status::OK(); | 159 | 44.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 330 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 330 | DCHECK(!_finished); | 110 | 330 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 330 | uint32_t to_add = cast_set<UInt32>( | 126 | 330 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 330 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 330 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 330 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 330 | _count += to_add; | 134 | 330 | _remain_element_capacity -= to_add; | 135 | 330 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 330 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 330 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 330 | return Status::OK(); | 159 | 330 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 568 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 568 | DCHECK(!_finished); | 110 | 568 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 568 | uint32_t to_add = cast_set<UInt32>( | 126 | 568 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 568 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 568 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 568 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 568 | _count += to_add; | 134 | 568 | _remain_element_capacity -= to_add; | 135 | 568 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 568 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 568 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 568 | return Status::OK(); | 159 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.74k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.74k | DCHECK(!_finished); | 110 | 7.74k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 7.74k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.74k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 7.74k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.74k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 7.74k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.75k | _count += to_add; | 134 | 7.75k | _remain_element_capacity -= to_add; | 135 | 7.75k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.75k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 7.75k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.75k | return Status::OK(); | 159 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 309 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 309 | DCHECK(!_finished); | 110 | 309 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 309 | uint32_t to_add = cast_set<UInt32>( | 126 | 309 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 309 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 309 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 309 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 309 | _count += to_add; | 134 | 309 | _remain_element_capacity -= to_add; | 135 | 309 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 309 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 309 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 309 | return Status::OK(); | 159 | 309 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.29k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.29k | DCHECK(!_finished); | 110 | 5.29k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 5.29k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.29k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 5.29k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.29k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 5.29k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.29k | _count += to_add; | 134 | 5.29k | _remain_element_capacity -= to_add; | 135 | 5.29k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.29k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.29k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.29k | return Status::OK(); | 159 | 5.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.7k | DCHECK(!_finished); | 110 | 26.7k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 26.7k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.7k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 26.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.7k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 26.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.7k | _count += to_add; | 134 | 26.7k | _remain_element_capacity -= to_add; | 135 | 26.7k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.7k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 26.7k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.7k | return Status::OK(); | 159 | 26.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 17.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 17.9k | DCHECK(!_finished); | 110 | 17.9k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 17.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 17.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 17.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 17.9k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 17.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 17.9k | _count += to_add; | 134 | 17.9k | _remain_element_capacity -= to_add; | 135 | 17.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 17.9k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 17.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 17.9k | return Status::OK(); | 159 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.46k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.46k | DCHECK(!_finished); | 110 | 1.46k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.46k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.46k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.46k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.46k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.46k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.46k | _count += to_add; | 134 | 1.46k | _remain_element_capacity -= to_add; | 135 | 1.46k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.46k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.46k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.46k | return Status::OK(); | 159 | 1.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 669 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 669 | DCHECK(!_finished); | 110 | 669 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 669 | uint32_t to_add = cast_set<UInt32>( | 126 | 669 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 669 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 669 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 669 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 669 | _count += to_add; | 134 | 669 | _remain_element_capacity -= to_add; | 135 | 669 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 669 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 669 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 669 | return Status::OK(); | 159 | 669 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 691 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 691 | DCHECK(!_finished); | 110 | 691 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 691 | uint32_t to_add = cast_set<UInt32>( | 126 | 691 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 691 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 691 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 691 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 691 | _count += to_add; | 134 | 691 | _remain_element_capacity -= to_add; | 135 | 691 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 691 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 691 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 691 | return Status::OK(); | 159 | 691 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.6k | DCHECK(!_finished); | 110 | 26.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 26.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 26.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 26.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.6k | _count += to_add; | 134 | 26.6k | _remain_element_capacity -= to_add; | 135 | 26.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 26.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.6k | return Status::OK(); | 159 | 26.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 152M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 152M | DCHECK(!_finished); | 110 | 152M | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 152M | uint32_t to_add = cast_set<UInt32>( | 126 | 152M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 152M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 152M | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 152M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 156M | _count += to_add; | 134 | 156M | _remain_element_capacity -= to_add; | 135 | 156M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 156M | *num_written = to_add; | 138 | 156M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 156M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 156M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 156M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 156M | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | 156M | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 156M | return Status::OK(); | 159 | 152M | } |
|
160 | | |
161 | 667k | Status finish(OwnedSlice* slice) override { |
162 | 667k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 667k | return Status::OK(); |
164 | 667k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 40.3k | Status finish(OwnedSlice* slice) override { | 162 | 40.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 40.3k | return Status::OK(); | 164 | 40.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.73k | Status finish(OwnedSlice* slice) override { | 162 | 7.73k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.73k | return Status::OK(); | 164 | 7.73k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 346k | Status finish(OwnedSlice* slice) override { | 162 | 346k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 347k | return Status::OK(); | 164 | 346k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 41.6k | Status finish(OwnedSlice* slice) override { | 162 | 41.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 41.7k | return Status::OK(); | 164 | 41.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.1k | Status finish(OwnedSlice* slice) override { | 162 | 11.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.1k | return Status::OK(); | 164 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 62.8k | Status finish(OwnedSlice* slice) override { | 162 | 62.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 62.8k | return Status::OK(); | 164 | 62.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.19k | Status finish(OwnedSlice* slice) override { | 162 | 6.19k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.19k | return Status::OK(); | 164 | 6.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.49k | Status finish(OwnedSlice* slice) override { | 162 | 9.49k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.49k | return Status::OK(); | 164 | 9.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6 | Status finish(OwnedSlice* slice) override { | 162 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6 | return Status::OK(); | 164 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 372 | Status finish(OwnedSlice* slice) override { | 162 | 372 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 372 | return Status::OK(); | 164 | 372 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.3k | Status finish(OwnedSlice* slice) override { | 162 | 38.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.3k | return Status::OK(); | 164 | 38.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.7k | Status finish(OwnedSlice* slice) override { | 162 | 43.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.7k | return Status::OK(); | 164 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 272 | Status finish(OwnedSlice* slice) override { | 162 | 272 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 272 | return Status::OK(); | 164 | 272 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 605 | Status finish(OwnedSlice* slice) override { | 162 | 605 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 605 | return Status::OK(); | 164 | 605 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.79k | Status finish(OwnedSlice* slice) override { | 162 | 7.79k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.80k | return Status::OK(); | 164 | 7.79k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 258 | Status finish(OwnedSlice* slice) override { | 162 | 258 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 258 | return Status::OK(); | 164 | 258 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.76k | Status finish(OwnedSlice* slice) override { | 162 | 9.76k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.77k | return Status::OK(); | 164 | 9.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.5k | Status finish(OwnedSlice* slice) override { | 162 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.5k | return Status::OK(); | 164 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.0k | Status finish(OwnedSlice* slice) override { | 162 | 17.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.1k | return Status::OK(); | 164 | 17.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.14k | Status finish(OwnedSlice* slice) override { | 162 | 1.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.14k | return Status::OK(); | 164 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 622 | Status finish(OwnedSlice* slice) override { | 162 | 622 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 623 | return Status::OK(); | 164 | 622 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 630 | Status finish(OwnedSlice* slice) override { | 162 | 630 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 630 | return Status::OK(); | 164 | 630 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 722 | Status finish(OwnedSlice* slice) override { | 162 | 722 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 722 | return Status::OK(); | 164 | 722 | } |
|
165 | | |
166 | 1.62M | Status reset() override { |
167 | 1.62M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.62M | size_t block_size = _options.data_page_size; |
169 | 1.62M | _count = 0; |
170 | 1.62M | _raw_data_size = 0; |
171 | 1.62M | _data.clear(); |
172 | 1.62M | _data.reserve(block_size); |
173 | 1.62M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.62M | << "buffer must be naturally-aligned"; |
175 | 1.62M | _buffer.clear(); |
176 | 1.62M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.62M | _finished = false; |
178 | 1.62M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.62M | }); |
180 | 1.62M | return Status::OK(); |
181 | 1.62M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 81.9k | Status reset() override { | 167 | 81.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 81.9k | size_t block_size = _options.data_page_size; | 169 | 81.9k | _count = 0; | 170 | 81.9k | _raw_data_size = 0; | 171 | 81.9k | _data.clear(); | 172 | 81.9k | _data.reserve(block_size); | 173 | 81.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 81.9k | << "buffer must be naturally-aligned"; | 175 | 81.9k | _buffer.clear(); | 176 | 81.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 81.9k | _finished = false; | 178 | 81.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 81.9k | }); | 180 | 81.9k | return Status::OK(); | 181 | 81.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 15.8k | Status reset() override { | 167 | 15.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.8k | size_t block_size = _options.data_page_size; | 169 | 15.8k | _count = 0; | 170 | 15.8k | _raw_data_size = 0; | 171 | 15.8k | _data.clear(); | 172 | 15.8k | _data.reserve(block_size); | 173 | 15.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.8k | << "buffer must be naturally-aligned"; | 175 | 15.8k | _buffer.clear(); | 176 | 15.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.8k | _finished = false; | 178 | 15.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.8k | }); | 180 | 15.9k | return Status::OK(); | 181 | 15.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 989k | Status reset() override { | 167 | 989k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 989k | size_t block_size = _options.data_page_size; | 169 | 989k | _count = 0; | 170 | 989k | _raw_data_size = 0; | 171 | 989k | _data.clear(); | 172 | 989k | _data.reserve(block_size); | 173 | 989k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 989k | << "buffer must be naturally-aligned"; | 175 | 989k | _buffer.clear(); | 176 | 989k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 989k | _finished = false; | 178 | 989k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 989k | }); | 180 | 991k | return Status::OK(); | 181 | 989k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 81.0k | Status reset() override { | 167 | 81.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 81.0k | size_t block_size = _options.data_page_size; | 169 | 81.0k | _count = 0; | 170 | 81.0k | _raw_data_size = 0; | 171 | 81.0k | _data.clear(); | 172 | 81.0k | _data.reserve(block_size); | 173 | 81.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 81.0k | << "buffer must be naturally-aligned"; | 175 | 81.0k | _buffer.clear(); | 176 | 81.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 81.0k | _finished = false; | 178 | 81.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 81.0k | }); | 180 | 81.1k | return Status::OK(); | 181 | 81.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 22.1k | Status reset() override { | 167 | 22.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 22.1k | size_t block_size = _options.data_page_size; | 169 | 22.1k | _count = 0; | 170 | 22.1k | _raw_data_size = 0; | 171 | 22.1k | _data.clear(); | 172 | 22.1k | _data.reserve(block_size); | 173 | 22.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 22.1k | << "buffer must be naturally-aligned"; | 175 | 22.1k | _buffer.clear(); | 176 | 22.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 22.1k | _finished = false; | 178 | 22.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 22.1k | }); | 180 | 22.1k | return Status::OK(); | 181 | 22.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 125k | Status reset() override { | 167 | 125k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 125k | size_t block_size = _options.data_page_size; | 169 | 125k | _count = 0; | 170 | 125k | _raw_data_size = 0; | 171 | 125k | _data.clear(); | 172 | 125k | _data.reserve(block_size); | 173 | 125k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 125k | << "buffer must be naturally-aligned"; | 175 | 125k | _buffer.clear(); | 176 | 125k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 125k | _finished = false; | 178 | 125k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 125k | }); | 180 | 126k | return Status::OK(); | 181 | 125k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 12.7k | Status reset() override { | 167 | 12.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 12.7k | size_t block_size = _options.data_page_size; | 169 | 12.7k | _count = 0; | 170 | 12.7k | _raw_data_size = 0; | 171 | 12.7k | _data.clear(); | 172 | 12.7k | _data.reserve(block_size); | 173 | 12.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 12.7k | << "buffer must be naturally-aligned"; | 175 | 12.7k | _buffer.clear(); | 176 | 12.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 12.7k | _finished = false; | 178 | 12.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 12.7k | }); | 180 | 12.7k | return Status::OK(); | 181 | 12.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 17.6k | Status reset() override { | 167 | 17.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 17.6k | size_t block_size = _options.data_page_size; | 169 | 17.6k | _count = 0; | 170 | 17.6k | _raw_data_size = 0; | 171 | 17.6k | _data.clear(); | 172 | 17.6k | _data.reserve(block_size); | 173 | 17.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 17.6k | << "buffer must be naturally-aligned"; | 175 | 17.6k | _buffer.clear(); | 176 | 17.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 17.6k | _finished = false; | 178 | 17.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 17.6k | }); | 180 | 17.6k | return Status::OK(); | 181 | 17.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 166 | 8 | Status reset() override { | 167 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 8 | size_t block_size = _options.data_page_size; | 169 | 8 | _count = 0; | 170 | 8 | _raw_data_size = 0; | 171 | 8 | _data.clear(); | 172 | 8 | _data.reserve(block_size); | 173 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 8 | << "buffer must be naturally-aligned"; | 175 | 8 | _buffer.clear(); | 176 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 8 | _finished = false; | 178 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 8 | }); | 180 | 8 | return Status::OK(); | 181 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 713 | Status reset() override { | 167 | 713 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 713 | size_t block_size = _options.data_page_size; | 169 | 713 | _count = 0; | 170 | 713 | _raw_data_size = 0; | 171 | 713 | _data.clear(); | 172 | 713 | _data.reserve(block_size); | 173 | 713 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 713 | << "buffer must be naturally-aligned"; | 175 | 713 | _buffer.clear(); | 176 | 713 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 713 | _finished = false; | 178 | 713 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 713 | }); | 180 | 713 | return Status::OK(); | 181 | 713 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.7k | Status reset() override { | 167 | 75.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.7k | size_t block_size = _options.data_page_size; | 169 | 75.7k | _count = 0; | 170 | 75.7k | _raw_data_size = 0; | 171 | 75.7k | _data.clear(); | 172 | 75.7k | _data.reserve(block_size); | 173 | 75.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.7k | << "buffer must be naturally-aligned"; | 175 | 75.7k | _buffer.clear(); | 176 | 75.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.7k | _finished = false; | 178 | 75.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.7k | }); | 180 | 75.8k | return Status::OK(); | 181 | 75.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 88.4k | Status reset() override { | 167 | 88.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 88.4k | size_t block_size = _options.data_page_size; | 169 | 88.4k | _count = 0; | 170 | 88.4k | _raw_data_size = 0; | 171 | 88.4k | _data.clear(); | 172 | 88.4k | _data.reserve(block_size); | 173 | 88.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 88.4k | << "buffer must be naturally-aligned"; | 175 | 88.4k | _buffer.clear(); | 176 | 88.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 88.4k | _finished = false; | 178 | 88.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 88.4k | }); | 180 | 88.4k | return Status::OK(); | 181 | 88.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 603 | Status reset() override { | 167 | 603 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 603 | size_t block_size = _options.data_page_size; | 169 | 603 | _count = 0; | 170 | 603 | _raw_data_size = 0; | 171 | 603 | _data.clear(); | 172 | 603 | _data.reserve(block_size); | 173 | 603 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 603 | << "buffer must be naturally-aligned"; | 175 | 603 | _buffer.clear(); | 176 | 603 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 603 | _finished = false; | 178 | 603 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 603 | }); | 180 | 603 | return Status::OK(); | 181 | 603 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.04k | Status reset() override { | 167 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.04k | size_t block_size = _options.data_page_size; | 169 | 1.04k | _count = 0; | 170 | 1.04k | _raw_data_size = 0; | 171 | 1.04k | _data.clear(); | 172 | 1.04k | _data.reserve(block_size); | 173 | 1.04k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.04k | << "buffer must be naturally-aligned"; | 175 | 1.04k | _buffer.clear(); | 176 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.04k | _finished = false; | 178 | 1.04k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.04k | }); | 180 | 1.04k | return Status::OK(); | 181 | 1.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 15.4k | Status reset() override { | 167 | 15.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.4k | size_t block_size = _options.data_page_size; | 169 | 15.4k | _count = 0; | 170 | 15.4k | _raw_data_size = 0; | 171 | 15.4k | _data.clear(); | 172 | 15.4k | _data.reserve(block_size); | 173 | 15.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.4k | << "buffer must be naturally-aligned"; | 175 | 15.4k | _buffer.clear(); | 176 | 15.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.4k | _finished = false; | 178 | 15.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.4k | }); | 180 | 15.6k | return Status::OK(); | 181 | 15.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 586 | Status reset() override { | 167 | 586 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 586 | size_t block_size = _options.data_page_size; | 169 | 586 | _count = 0; | 170 | 586 | _raw_data_size = 0; | 171 | 586 | _data.clear(); | 172 | 586 | _data.reserve(block_size); | 173 | 586 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 586 | << "buffer must be naturally-aligned"; | 175 | 586 | _buffer.clear(); | 176 | 586 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 586 | _finished = false; | 178 | 586 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 586 | }); | 180 | 586 | return Status::OK(); | 181 | 586 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.5k | Status reset() override { | 167 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.5k | size_t block_size = _options.data_page_size; | 169 | 19.5k | _count = 0; | 170 | 19.5k | _raw_data_size = 0; | 171 | 19.5k | _data.clear(); | 172 | 19.5k | _data.reserve(block_size); | 173 | 19.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.5k | << "buffer must be naturally-aligned"; | 175 | 19.5k | _buffer.clear(); | 176 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.5k | _finished = false; | 178 | 19.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.5k | }); | 180 | 19.5k | return Status::OK(); | 181 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.6k | Status reset() override { | 167 | 31.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.6k | size_t block_size = _options.data_page_size; | 169 | 31.6k | _count = 0; | 170 | 31.6k | _raw_data_size = 0; | 171 | 31.6k | _data.clear(); | 172 | 31.6k | _data.reserve(block_size); | 173 | 31.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.6k | << "buffer must be naturally-aligned"; | 175 | 31.6k | _buffer.clear(); | 176 | 31.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.6k | _finished = false; | 178 | 31.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.6k | }); | 180 | 31.6k | return Status::OK(); | 181 | 31.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 34.0k | Status reset() override { | 167 | 34.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 34.0k | size_t block_size = _options.data_page_size; | 169 | 34.0k | _count = 0; | 170 | 34.0k | _raw_data_size = 0; | 171 | 34.0k | _data.clear(); | 172 | 34.0k | _data.reserve(block_size); | 173 | 34.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 34.0k | << "buffer must be naturally-aligned"; | 175 | 34.0k | _buffer.clear(); | 176 | 34.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 34.0k | _finished = false; | 178 | 34.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 34.0k | }); | 180 | 34.0k | return Status::OK(); | 181 | 34.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.34k | Status reset() override { | 167 | 2.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.34k | size_t block_size = _options.data_page_size; | 169 | 2.34k | _count = 0; | 170 | 2.34k | _raw_data_size = 0; | 171 | 2.34k | _data.clear(); | 172 | 2.34k | _data.reserve(block_size); | 173 | 2.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.34k | << "buffer must be naturally-aligned"; | 175 | 2.34k | _buffer.clear(); | 176 | 2.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.34k | _finished = false; | 178 | 2.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.34k | }); | 180 | 2.35k | return Status::OK(); | 181 | 2.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.32k | Status reset() override { | 167 | 1.32k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.32k | size_t block_size = _options.data_page_size; | 169 | 1.32k | _count = 0; | 170 | 1.32k | _raw_data_size = 0; | 171 | 1.32k | _data.clear(); | 172 | 1.32k | _data.reserve(block_size); | 173 | 1.32k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.32k | << "buffer must be naturally-aligned"; | 175 | 1.32k | _buffer.clear(); | 176 | 1.32k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.32k | _finished = false; | 178 | 1.32k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.32k | }); | 180 | 1.33k | return Status::OK(); | 181 | 1.32k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.33k | Status reset() override { | 167 | 1.33k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.33k | size_t block_size = _options.data_page_size; | 169 | 1.33k | _count = 0; | 170 | 1.33k | _raw_data_size = 0; | 171 | 1.33k | _data.clear(); | 172 | 1.33k | _data.reserve(block_size); | 173 | 1.33k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.33k | << "buffer must be naturally-aligned"; | 175 | 1.33k | _buffer.clear(); | 176 | 1.33k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.33k | _finished = false; | 178 | 1.33k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.33k | }); | 180 | 1.33k | return Status::OK(); | 181 | 1.33k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5resetEv Line | Count | Source | 166 | 1.33k | Status reset() override { | 167 | 1.33k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.33k | size_t block_size = _options.data_page_size; | 169 | 1.33k | _count = 0; | 170 | 1.33k | _raw_data_size = 0; | 171 | 1.33k | _data.clear(); | 172 | 1.33k | _data.reserve(block_size); | 173 | 1.33k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.33k | << "buffer must be naturally-aligned"; | 175 | 1.33k | _buffer.clear(); | 176 | 1.33k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.33k | _finished = false; | 178 | 1.33k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.33k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.33k | } |
|
182 | | |
183 | 667 | size_t count() const override { return _count; }Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 8 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Line | Count | Source | 183 | 10 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Line | Count | Source | 183 | 628 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Line | Count | Source | 183 | 10 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Line | Count | Source | 183 | 6 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Line | Count | Source | 183 | 5 | size_t count() const override { return _count; } |
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 |
184 | | |
185 | 37.1k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.23k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 910 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 19.9k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 2.95k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.20k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 972 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 614 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 611 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.67k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.33k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 126 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 269 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 393 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.21k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 128 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4sizeEv Line | Count | Source | 185 | 12 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 385k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 40.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.72k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 41.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 11.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 62.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6.18k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.86k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 363 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 272 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 600 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.79k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 253 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.77k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 623 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 630 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv Line | Count | Source | 187 | 721 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 663k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 41.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.16k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 352k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 39.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 10.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 62.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 6.52k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.11k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 341 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 330 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 438 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.70k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 329 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.76k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.20k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 706 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 701 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 616 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 667k | OwnedSlice _finish(int final_size_of_type) { |
194 | 667k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 667k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 667k | int padding_elems = num_elems_after_padding - _count; |
199 | 667k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 17.9M | for (int i = 0; i < padding_bytes; i++) { |
201 | 17.2M | _data.push_back(0); |
202 | 17.2M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 667k | _buffer.resize( |
206 | 667k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 667k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 667k | int64_t bytes = |
210 | 667k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 667k | num_elems_after_padding, final_size_of_type, 0); |
212 | 667k | if (bytes < 0) [[unlikely]] { |
213 | | // This means the bitshuffle function fails. |
214 | | // Ideally, this should not happen. |
215 | 0 | warn_with_bitshuffle_error(bytes); |
216 | | // It does not matter what will be returned here, |
217 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
218 | 0 | return OwnedSlice(); |
219 | 0 | } |
220 | | // update header |
221 | 667k | encode_fixed32_le(&_buffer[0], _count); |
222 | 667k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 667k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 667k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 667k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 667k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 667k | return _buffer.build(); |
229 | 667k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 40.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 40.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 40.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 40.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 40.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 249k | for (int i = 0; i < padding_bytes; i++) { | 201 | 208k | _data.push_back(0); | 202 | 208k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 40.3k | _buffer.resize( | 206 | 40.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 40.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 40.3k | int64_t bytes = | 210 | 40.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 40.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 40.3k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 40.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 40.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 40.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 40.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 40.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 40.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 40.3k | return _buffer.build(); | 229 | 40.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 7.73k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.73k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.73k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.73k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.73k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 78.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 70.2k | _data.push_back(0); | 202 | 70.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.73k | _buffer.resize( | 206 | 7.73k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.73k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.73k | int64_t bytes = | 210 | 7.73k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.73k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.73k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.73k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.73k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.73k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.73k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.73k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.73k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.73k | return _buffer.build(); | 229 | 7.73k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 346k | OwnedSlice _finish(int final_size_of_type) { | 194 | 346k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 346k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 346k | int padding_elems = num_elems_after_padding - _count; | 199 | 346k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.62M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.27M | _data.push_back(0); | 202 | 6.27M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 346k | _buffer.resize( | 206 | 346k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 346k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 346k | int64_t bytes = | 210 | 346k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 346k | num_elems_after_padding, final_size_of_type, 0); | 212 | 346k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 346k | encode_fixed32_le(&_buffer[0], _count); | 222 | 346k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 346k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 346k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 346k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 346k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 346k | return _buffer.build(); | 229 | 346k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 41.6k | OwnedSlice _finish(int final_size_of_type) { | 194 | 41.6k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 41.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 41.6k | int padding_elems = num_elems_after_padding - _count; | 199 | 41.6k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.63M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.59M | _data.push_back(0); | 202 | 1.59M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 41.6k | _buffer.resize( | 206 | 41.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 41.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 41.6k | int64_t bytes = | 210 | 41.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 41.6k | num_elems_after_padding, final_size_of_type, 0); | 212 | 41.6k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 41.6k | encode_fixed32_le(&_buffer[0], _count); | 222 | 41.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 41.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 41.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 41.6k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 41.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 41.6k | return _buffer.build(); | 229 | 41.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 11.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 756k | for (int i = 0; i < padding_bytes; i++) { | 201 | 745k | _data.push_back(0); | 202 | 745k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.1k | _buffer.resize( | 206 | 11.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.1k | int64_t bytes = | 210 | 11.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 11.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.1k | return _buffer.build(); | 229 | 11.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 62.8k | OwnedSlice _finish(int final_size_of_type) { | 194 | 62.8k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 62.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 62.8k | int padding_elems = num_elems_after_padding - _count; | 199 | 62.8k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.03M | for (int i = 0; i < padding_bytes; i++) { | 201 | 2.97M | _data.push_back(0); | 202 | 2.97M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 62.8k | _buffer.resize( | 206 | 62.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 62.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 62.8k | int64_t bytes = | 210 | 62.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 62.8k | num_elems_after_padding, final_size_of_type, 0); | 212 | 62.8k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 62.8k | encode_fixed32_le(&_buffer[0], _count); | 222 | 62.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 62.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 62.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 62.8k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 62.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 62.8k | return _buffer.build(); | 229 | 62.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 6.19k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.19k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.19k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.19k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.19k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 121k | for (int i = 0; i < padding_bytes; i++) { | 201 | 115k | _data.push_back(0); | 202 | 115k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.19k | _buffer.resize( | 206 | 6.19k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.19k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.19k | int64_t bytes = | 210 | 6.19k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.19k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.19k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6.19k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.19k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.19k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.19k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.19k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.19k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.19k | return _buffer.build(); | 229 | 6.19k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 9.49k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.49k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.49k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.49k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.49k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 307k | for (int i = 0; i < padding_bytes; i++) { | 201 | 297k | _data.push_back(0); | 202 | 297k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.49k | _buffer.resize( | 206 | 9.49k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.49k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.49k | int64_t bytes = | 210 | 9.49k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.49k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.49k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 9.49k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.49k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.49k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.49k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.49k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.49k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.49k | return _buffer.build(); | 229 | 9.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 193 | 6 | OwnedSlice _finish(int final_size_of_type) { | 194 | 6 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6 | int padding_elems = num_elems_after_padding - _count; | 199 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 18 | for (int i = 0; i < padding_bytes; i++) { | 201 | 12 | _data.push_back(0); | 202 | 12 | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6 | _buffer.resize( | 206 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6 | int64_t bytes = | 210 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6 | num_elems_after_padding, final_size_of_type, 0); | 212 | 6 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6 | encode_fixed32_le(&_buffer[0], _count); | 222 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6 | return _buffer.build(); | 229 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 372 | OwnedSlice _finish(int final_size_of_type) { | 194 | 372 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 372 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 372 | int padding_elems = num_elems_after_padding - _count; | 199 | 372 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.50k | for (int i = 0; i < padding_bytes; i++) { | 201 | 5.13k | _data.push_back(0); | 202 | 5.13k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 372 | _buffer.resize( | 206 | 372 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 372 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 372 | int64_t bytes = | 210 | 372 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 372 | num_elems_after_padding, final_size_of_type, 0); | 212 | 372 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 372 | encode_fixed32_le(&_buffer[0], _count); | 222 | 372 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 372 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 372 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 372 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 372 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 372 | return _buffer.build(); | 229 | 372 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 807k | for (int i = 0; i < padding_bytes; i++) { | 201 | 769k | _data.push_back(0); | 202 | 769k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.3k | _buffer.resize( | 206 | 38.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.3k | int64_t bytes = | 210 | 38.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.3k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 38.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.3k | return _buffer.build(); | 229 | 38.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.84M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.80M | _data.push_back(0); | 202 | 1.80M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.7k | _buffer.resize( | 206 | 43.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.7k | int64_t bytes = | 210 | 43.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.7k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.7k | return _buffer.build(); | 229 | 43.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 272 | OwnedSlice _finish(int final_size_of_type) { | 194 | 272 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 272 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 272 | int padding_elems = num_elems_after_padding - _count; | 199 | 272 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.1k | _data.push_back(0); | 202 | 11.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 272 | _buffer.resize( | 206 | 272 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 272 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 272 | int64_t bytes = | 210 | 272 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 272 | num_elems_after_padding, final_size_of_type, 0); | 212 | 272 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 272 | encode_fixed32_le(&_buffer[0], _count); | 222 | 272 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 272 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 272 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 272 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 272 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 272 | return _buffer.build(); | 229 | 272 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 605 | OwnedSlice _finish(int final_size_of_type) { | 194 | 605 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 605 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 605 | int padding_elems = num_elems_after_padding - _count; | 199 | 605 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.4k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.8k | _data.push_back(0); | 202 | 12.8k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 605 | _buffer.resize( | 206 | 605 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 605 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 605 | int64_t bytes = | 210 | 605 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 605 | num_elems_after_padding, final_size_of_type, 0); | 212 | 605 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 605 | encode_fixed32_le(&_buffer[0], _count); | 222 | 605 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 605 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 605 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 605 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 605 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 605 | return _buffer.build(); | 229 | 605 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.79k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.79k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.79k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.79k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.79k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 406k | for (int i = 0; i < padding_bytes; i++) { | 201 | 398k | _data.push_back(0); | 202 | 398k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.79k | _buffer.resize( | 206 | 7.79k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.79k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.79k | int64_t bytes = | 210 | 7.79k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.79k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.79k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.79k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.79k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.79k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.79k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.79k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.79k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.79k | return _buffer.build(); | 229 | 7.79k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 258 | OwnedSlice _finish(int final_size_of_type) { | 194 | 258 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 258 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 258 | int padding_elems = num_elems_after_padding - _count; | 199 | 258 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 16.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.9k | _data.push_back(0); | 202 | 15.9k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 258 | _buffer.resize( | 206 | 258 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 258 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 258 | int64_t bytes = | 210 | 258 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 258 | num_elems_after_padding, final_size_of_type, 0); | 212 | 258 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 258 | encode_fixed32_le(&_buffer[0], _count); | 222 | 258 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 258 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 258 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 258 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 258 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 258 | return _buffer.build(); | 229 | 258 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.76k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.76k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.76k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.76k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.76k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 118k | for (int i = 0; i < padding_bytes; i++) { | 201 | 108k | _data.push_back(0); | 202 | 108k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.76k | _buffer.resize( | 206 | 9.76k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.76k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.76k | int64_t bytes = | 210 | 9.76k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.76k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.76k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 9.76k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.76k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.76k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.76k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.76k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.76k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.76k | return _buffer.build(); | 229 | 9.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 19.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 490k | for (int i = 0; i < padding_bytes; i++) { | 201 | 470k | _data.push_back(0); | 202 | 470k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.5k | _buffer.resize( | 206 | 19.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.5k | int64_t bytes = | 210 | 19.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.5k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 19.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.5k | return _buffer.build(); | 229 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.14M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.12M | _data.push_back(0); | 202 | 1.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.1k | _buffer.resize( | 206 | 17.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.1k | int64_t bytes = | 210 | 17.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 17.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.1k | return _buffer.build(); | 229 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.14k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.14k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.14k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.14k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 173k | for (int i = 0; i < padding_bytes; i++) { | 201 | 172k | _data.push_back(0); | 202 | 172k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.14k | _buffer.resize( | 206 | 1.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.14k | int64_t bytes = | 210 | 1.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.14k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.14k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.14k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.14k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.14k | return _buffer.build(); | 229 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 622 | OwnedSlice _finish(int final_size_of_type) { | 194 | 622 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 622 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 622 | int padding_elems = num_elems_after_padding - _count; | 199 | 622 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.0k | _data.push_back(0); | 202 | 12.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 622 | _buffer.resize( | 206 | 622 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 622 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 622 | int64_t bytes = | 210 | 622 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 622 | num_elems_after_padding, final_size_of_type, 0); | 212 | 622 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 622 | encode_fixed32_le(&_buffer[0], _count); | 222 | 622 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 622 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 622 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 622 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 622 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 622 | return _buffer.build(); | 229 | 622 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 630 | OwnedSlice _finish(int final_size_of_type) { | 194 | 630 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 630 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 630 | int padding_elems = num_elems_after_padding - _count; | 199 | 630 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.7k | _data.push_back(0); | 202 | 49.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 630 | _buffer.resize( | 206 | 630 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 630 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 630 | int64_t bytes = | 210 | 630 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 630 | num_elems_after_padding, final_size_of_type, 0); | 212 | 630 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 630 | encode_fixed32_le(&_buffer[0], _count); | 222 | 630 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 630 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 630 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 630 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 630 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 630 | return _buffer.build(); | 229 | 630 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 193 | 722 | OwnedSlice _finish(int final_size_of_type) { | 194 | 722 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 722 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 722 | int padding_elems = num_elems_after_padding - _count; | 199 | 722 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 53.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 52.5k | _data.push_back(0); | 202 | 52.5k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 722 | _buffer.resize( | 206 | 722 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 722 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 722 | int64_t bytes = | 210 | 722 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 722 | num_elems_after_padding, final_size_of_type, 0); | 212 | 722 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 722 | encode_fixed32_le(&_buffer[0], _count); | 222 | 722 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 722 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 722 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 722 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 722 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 722 | return _buffer.build(); | 229 | 722 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 2.38M | int& size_of_element) { |
253 | 2.38M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 2.38M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.38M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.38M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.38M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.38M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 2.38M | switch (size_of_element) { |
271 | 221k | case 1: |
272 | 263k | case 2: |
273 | 267k | case 3: |
274 | 1.66M | case 4: |
275 | 2.26M | case 8: |
276 | 2.26M | case 12: |
277 | 2.38M | case 16: |
278 | 2.38M | case 32: |
279 | 2.38M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.38M | } |
283 | 2.38M | return Status::OK(); |
284 | 2.38M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.19M | : _data(data), |
291 | 1.19M | _options(options), |
292 | 1.19M | _parsed(false), |
293 | 1.19M | _num_elements(0), |
294 | 1.19M | _num_element_after_padding(0), |
295 | 1.19M | _size_of_element(0), |
296 | 1.19M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 110k | : _data(data), | 291 | 110k | _options(options), | 292 | 110k | _parsed(false), | 293 | 110k | _num_elements(0), | 294 | 110k | _num_element_after_padding(0), | 295 | 110k | _size_of_element(0), | 296 | 110k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 20.8k | : _data(data), | 291 | 20.8k | _options(options), | 292 | 20.8k | _parsed(false), | 293 | 20.8k | _num_elements(0), | 294 | 20.8k | _num_element_after_padding(0), | 295 | 20.8k | _size_of_element(0), | 296 | 20.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 607k | : _data(data), | 291 | 607k | _options(options), | 292 | 607k | _parsed(false), | 293 | 607k | _num_elements(0), | 294 | 607k | _num_element_after_padding(0), | 295 | 607k | _size_of_element(0), | 296 | 607k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 62.9k | : _data(data), | 291 | 62.9k | _options(options), | 292 | 62.9k | _parsed(false), | 293 | 62.9k | _num_elements(0), | 294 | 62.9k | _num_element_after_padding(0), | 295 | 62.9k | _size_of_element(0), | 296 | 62.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 20.9k | : _data(data), | 291 | 20.9k | _options(options), | 292 | 20.9k | _parsed(false), | 293 | 20.9k | _num_elements(0), | 294 | 20.9k | _num_element_after_padding(0), | 295 | 20.9k | _size_of_element(0), | 296 | 20.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 84.6k | : _data(data), | 291 | 84.6k | _options(options), | 292 | 84.6k | _parsed(false), | 293 | 84.6k | _num_elements(0), | 294 | 84.6k | _num_element_after_padding(0), | 295 | 84.6k | _size_of_element(0), | 296 | 84.6k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.7k | : _data(data), | 291 | 14.7k | _options(options), | 292 | 14.7k | _parsed(false), | 293 | 14.7k | _num_elements(0), | 294 | 14.7k | _num_element_after_padding(0), | 295 | 14.7k | _size_of_element(0), | 296 | 14.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 22.4k | : _data(data), | 291 | 22.4k | _options(options), | 292 | 22.4k | _parsed(false), | 293 | 22.4k | _num_elements(0), | 294 | 22.4k | _num_element_after_padding(0), | 295 | 22.4k | _size_of_element(0), | 296 | 22.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3 | : _data(data), | 291 | 3 | _options(options), | 292 | 3 | _parsed(false), | 293 | 3 | _num_elements(0), | 294 | 3 | _num_element_after_padding(0), | 295 | 3 | _size_of_element(0), | 296 | 3 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.13k | : _data(data), | 291 | 2.13k | _options(options), | 292 | 2.13k | _parsed(false), | 293 | 2.13k | _num_elements(0), | 294 | 2.13k | _num_element_after_padding(0), | 295 | 2.13k | _size_of_element(0), | 296 | 2.13k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 60.3k | : _data(data), | 291 | 60.3k | _options(options), | 292 | 60.3k | _parsed(false), | 293 | 60.3k | _num_elements(0), | 294 | 60.3k | _num_element_after_padding(0), | 295 | 60.3k | _size_of_element(0), | 296 | 60.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 67.4k | : _data(data), | 291 | 67.4k | _options(options), | 292 | 67.4k | _parsed(false), | 293 | 67.4k | _num_elements(0), | 294 | 67.4k | _num_element_after_padding(0), | 295 | 67.4k | _size_of_element(0), | 296 | 67.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.14k | : _data(data), | 291 | 3.14k | _options(options), | 292 | 3.14k | _parsed(false), | 293 | 3.14k | _num_elements(0), | 294 | 3.14k | _num_element_after_padding(0), | 295 | 3.14k | _size_of_element(0), | 296 | 3.14k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.69k | : _data(data), | 291 | 2.69k | _options(options), | 292 | 2.69k | _parsed(false), | 293 | 2.69k | _num_elements(0), | 294 | 2.69k | _num_element_after_padding(0), | 295 | 2.69k | _size_of_element(0), | 296 | 2.69k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.7k | : _data(data), | 291 | 15.7k | _options(options), | 292 | 15.7k | _parsed(false), | 293 | 15.7k | _num_elements(0), | 294 | 15.7k | _num_element_after_padding(0), | 295 | 15.7k | _size_of_element(0), | 296 | 15.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.37k | : _data(data), | 291 | 1.37k | _options(options), | 292 | 1.37k | _parsed(false), | 293 | 1.37k | _num_elements(0), | 294 | 1.37k | _num_element_after_padding(0), | 295 | 1.37k | _size_of_element(0), | 296 | 1.37k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.3k | : _data(data), | 291 | 15.3k | _options(options), | 292 | 15.3k | _parsed(false), | 293 | 15.3k | _num_elements(0), | 294 | 15.3k | _num_element_after_padding(0), | 295 | 15.3k | _size_of_element(0), | 296 | 15.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 40.5k | : _data(data), | 291 | 40.5k | _options(options), | 292 | 40.5k | _parsed(false), | 293 | 40.5k | _num_elements(0), | 294 | 40.5k | _num_element_after_padding(0), | 295 | 40.5k | _size_of_element(0), | 296 | 40.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.4k | : _data(data), | 291 | 30.4k | _options(options), | 292 | 30.4k | _parsed(false), | 293 | 30.4k | _num_elements(0), | 294 | 30.4k | _num_element_after_padding(0), | 295 | 30.4k | _size_of_element(0), | 296 | 30.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.75k | : _data(data), | 291 | 1.75k | _options(options), | 292 | 1.75k | _parsed(false), | 293 | 1.75k | _num_elements(0), | 294 | 1.75k | _num_element_after_padding(0), | 295 | 1.75k | _size_of_element(0), | 296 | 1.75k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 924 | : _data(data), | 291 | 924 | _options(options), | 292 | 924 | _parsed(false), | 293 | 924 | _num_elements(0), | 294 | 924 | _num_element_after_padding(0), | 295 | 924 | _size_of_element(0), | 296 | 924 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 968 | : _data(data), | 291 | 968 | _options(options), | 292 | 968 | _parsed(false), | 293 | 968 | _num_elements(0), | 294 | 968 | _num_element_after_padding(0), | 295 | 968 | _size_of_element(0), | 296 | 968 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 5.62k | : _data(data), | 291 | 5.62k | _options(options), | 292 | 5.62k | _parsed(false), | 293 | 5.62k | _num_elements(0), | 294 | 5.62k | _num_element_after_padding(0), | 295 | 5.62k | _size_of_element(0), | 296 | 5.62k | _cur_index(0) {} |
|
297 | | |
298 | 1.18M | Status init() override { |
299 | 1.18M | CHECK(!_parsed); |
300 | 1.18M | size_t unused; |
301 | 1.18M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.18M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.18M | if (_data.size != |
305 | 1.18M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 13 | std::stringstream ss; |
307 | 13 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 13 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 13 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 13 | return Status::InternalError(ss.str()); |
311 | 13 | } |
312 | | |
313 | | // Currently, only the UINT32 block encoder supports expanding size: |
314 | 1.18M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.18M | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 1.18M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 1.18M | _parsed = true; |
325 | 1.18M | return Status::OK(); |
326 | 1.18M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 110k | Status init() override { | 299 | 110k | CHECK(!_parsed); | 300 | 110k | size_t unused; | 301 | 110k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 110k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 110k | if (_data.size != | 305 | 110k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 110k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 110k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 110k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 110k | _parsed = true; | 325 | 110k | return Status::OK(); | 326 | 110k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 20.8k | Status init() override { | 299 | 20.8k | CHECK(!_parsed); | 300 | 20.8k | size_t unused; | 301 | 20.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 20.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 20.8k | if (_data.size != | 305 | 20.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 20.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 20.8k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 20.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 20.8k | _parsed = true; | 325 | 20.8k | return Status::OK(); | 326 | 20.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 603k | Status init() override { | 299 | 603k | CHECK(!_parsed); | 300 | 603k | size_t unused; | 301 | 603k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 603k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 603k | if (_data.size != | 305 | 603k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 5 | std::stringstream ss; | 307 | 5 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 5 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 5 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 5 | return Status::InternalError(ss.str()); | 311 | 5 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 603k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 603k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 603k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 603k | _parsed = true; | 325 | 603k | return Status::OK(); | 326 | 603k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 62.5k | Status init() override { | 299 | 62.5k | CHECK(!_parsed); | 300 | 62.5k | size_t unused; | 301 | 62.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 62.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 62.5k | if (_data.size != | 305 | 62.5k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 1 | std::stringstream ss; | 307 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 1 | return Status::InternalError(ss.str()); | 311 | 1 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 62.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 62.5k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 62.5k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 62.5k | _parsed = true; | 325 | 62.5k | return Status::OK(); | 326 | 62.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 20.8k | Status init() override { | 299 | 20.8k | CHECK(!_parsed); | 300 | 20.8k | size_t unused; | 301 | 20.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 20.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 20.8k | if (_data.size != | 305 | 20.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 20.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 20.8k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 20.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 20.8k | _parsed = true; | 325 | 20.8k | return Status::OK(); | 326 | 20.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 84.4k | Status init() override { | 299 | 84.4k | CHECK(!_parsed); | 300 | 84.4k | size_t unused; | 301 | 84.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 84.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 84.4k | if (_data.size != | 305 | 84.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 84.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 84.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 84.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 84.4k | _parsed = true; | 325 | 84.4k | return Status::OK(); | 326 | 84.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 14.6k | Status init() override { | 299 | 14.6k | CHECK(!_parsed); | 300 | 14.6k | size_t unused; | 301 | 14.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.6k | if (_data.size != | 305 | 14.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 2 | std::stringstream ss; | 307 | 2 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 2 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 2 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 2 | return Status::InternalError(ss.str()); | 311 | 2 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 14.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 14.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 14.6k | _parsed = true; | 325 | 14.6k | return Status::OK(); | 326 | 14.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 22.3k | Status init() override { | 299 | 22.3k | CHECK(!_parsed); | 300 | 22.3k | size_t unused; | 301 | 22.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 22.3k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 22.3k | if (_data.size != | 305 | 22.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 4 | std::stringstream ss; | 307 | 4 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 4 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 4 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 4 | return Status::InternalError(ss.str()); | 311 | 4 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 22.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 22.3k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 22.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 22.3k | _parsed = true; | 325 | 22.3k | return Status::OK(); | 326 | 22.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 298 | 3 | Status init() override { | 299 | 3 | CHECK(!_parsed); | 300 | 3 | size_t unused; | 301 | 3 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3 | if (_data.size != | 305 | 3 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3 | _parsed = true; | 325 | 3 | return Status::OK(); | 326 | 3 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 2.13k | Status init() override { | 299 | 2.13k | CHECK(!_parsed); | 300 | 2.13k | size_t unused; | 301 | 2.13k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.13k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.13k | if (_data.size != | 305 | 2.13k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.13k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.13k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.13k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.13k | _parsed = true; | 325 | 2.13k | return Status::OK(); | 326 | 2.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 60.0k | Status init() override { | 299 | 60.0k | CHECK(!_parsed); | 300 | 60.0k | size_t unused; | 301 | 60.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 60.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 60.0k | if (_data.size != | 305 | 60.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 60.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 60.0k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 60.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 60.0k | _parsed = true; | 325 | 60.0k | return Status::OK(); | 326 | 60.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 67.2k | Status init() override { | 299 | 67.2k | CHECK(!_parsed); | 300 | 67.2k | size_t unused; | 301 | 67.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 67.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 67.2k | if (_data.size != | 305 | 67.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 67.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 67.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 67.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 67.2k | _parsed = true; | 325 | 67.2k | return Status::OK(); | 326 | 67.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.12k | Status init() override { | 299 | 3.12k | CHECK(!_parsed); | 300 | 3.12k | size_t unused; | 301 | 3.12k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.12k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.12k | if (_data.size != | 305 | 3.12k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.12k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.12k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.12k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.12k | _parsed = true; | 325 | 3.12k | return Status::OK(); | 326 | 3.12k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.69k | Status init() override { | 299 | 2.69k | CHECK(!_parsed); | 300 | 2.69k | size_t unused; | 301 | 2.69k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.69k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.69k | if (_data.size != | 305 | 2.69k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.69k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.69k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.69k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.69k | _parsed = true; | 325 | 2.69k | return Status::OK(); | 326 | 2.69k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 15.6k | Status init() override { | 299 | 15.6k | CHECK(!_parsed); | 300 | 15.6k | size_t unused; | 301 | 15.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.6k | if (_data.size != | 305 | 15.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.6k | _parsed = true; | 325 | 15.6k | return Status::OK(); | 326 | 15.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.35k | Status init() override { | 299 | 1.35k | CHECK(!_parsed); | 300 | 1.35k | size_t unused; | 301 | 1.35k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.35k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.35k | if (_data.size != | 305 | 1.35k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 1 | std::stringstream ss; | 307 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 1 | return Status::InternalError(ss.str()); | 311 | 1 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.35k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.35k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.35k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.35k | _parsed = true; | 325 | 1.35k | return Status::OK(); | 326 | 1.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.2k | Status init() override { | 299 | 15.2k | CHECK(!_parsed); | 300 | 15.2k | size_t unused; | 301 | 15.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.2k | if (_data.size != | 305 | 15.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.2k | _parsed = true; | 325 | 15.2k | return Status::OK(); | 326 | 15.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 40.4k | Status init() override { | 299 | 40.4k | CHECK(!_parsed); | 300 | 40.4k | size_t unused; | 301 | 40.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 40.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 40.4k | if (_data.size != | 305 | 40.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 40.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 40.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 40.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 40.4k | _parsed = true; | 325 | 40.4k | return Status::OK(); | 326 | 40.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.4k | Status init() override { | 299 | 30.4k | CHECK(!_parsed); | 300 | 30.4k | size_t unused; | 301 | 30.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.4k | if (_data.size != | 305 | 30.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 30.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 30.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 30.4k | _parsed = true; | 325 | 30.4k | return Status::OK(); | 326 | 30.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.75k | Status init() override { | 299 | 1.75k | CHECK(!_parsed); | 300 | 1.75k | size_t unused; | 301 | 1.75k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.75k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.75k | if (_data.size != | 305 | 1.75k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.75k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.75k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.75k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.75k | _parsed = true; | 325 | 1.75k | return Status::OK(); | 326 | 1.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 920 | Status init() override { | 299 | 920 | CHECK(!_parsed); | 300 | 920 | size_t unused; | 301 | 920 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 920 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 920 | if (_data.size != | 305 | 920 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 920 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 920 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 920 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 920 | _parsed = true; | 325 | 920 | return Status::OK(); | 326 | 920 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 959 | Status init() override { | 299 | 959 | CHECK(!_parsed); | 300 | 959 | size_t unused; | 301 | 959 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 959 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 959 | if (_data.size != | 305 | 959 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 959 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 959 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 959 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 959 | _parsed = true; | 325 | 959 | return Status::OK(); | 326 | 959 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 298 | 5.60k | Status init() override { | 299 | 5.60k | CHECK(!_parsed); | 300 | 5.60k | size_t unused; | 301 | 5.60k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 5.60k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 5.60k | if (_data.size != | 305 | 5.60k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 5.60k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 5.60k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 5.60k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 5.60k | _parsed = true; | 325 | 5.60k | return Status::OK(); | 326 | 5.60k | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 4.84M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.84M | if (_num_elements == 0) [[unlikely]] { |
337 | 3.63k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 3.63k | } |
342 | | |
343 | 4.84M | DCHECK_LE(pos, _num_elements); |
344 | 4.84M | _cur_index = pos; |
345 | 4.84M | return Status::OK(); |
346 | 4.84M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 305k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 305k | if (_num_elements == 0) [[unlikely]] { | 337 | 443 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 443 | } | 342 | | | 343 | 305k | DCHECK_LE(pos, _num_elements); | 344 | 305k | _cur_index = pos; | 345 | 305k | return Status::OK(); | 346 | 305k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 218k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 218k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 218k | DCHECK_LE(pos, _num_elements); | 344 | 218k | _cur_index = pos; | 345 | 218k | return Status::OK(); | 346 | 218k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.53M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.53M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.77k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1.77k | } | 342 | | | 343 | 2.53M | DCHECK_LE(pos, _num_elements); | 344 | 2.53M | _cur_index = pos; | 345 | 2.53M | return Status::OK(); | 346 | 2.53M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 132k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 132k | if (_num_elements == 0) [[unlikely]] { | 337 | 779 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 779 | } | 342 | | | 343 | 132k | DCHECK_LE(pos, _num_elements); | 344 | 132k | _cur_index = pos; | 345 | 132k | return Status::OK(); | 346 | 132k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 110k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 110k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 110k | DCHECK_LE(pos, _num_elements); | 344 | 110k | _cur_index = pos; | 345 | 110k | return Status::OK(); | 346 | 110k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 12.0k | Status seek_to_position_in_page(size_t pos) override { | 335 | 12.0k | DCHECK(_parsed) << "Must call init()"; | 336 | 12.0k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 12.0k | DCHECK_LE(pos, _num_elements); | 344 | 12.0k | _cur_index = pos; | 345 | 12.0k | return Status::OK(); | 346 | 12.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 224k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 224k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 224k | DCHECK_LE(pos, _num_elements); | 344 | 224k | _cur_index = pos; | 345 | 224k | return Status::OK(); | 346 | 224k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 201k | Status seek_to_position_in_page(size_t pos) override { | 335 | 201k | DCHECK(_parsed) << "Must call init()"; | 336 | 201k | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 201k | DCHECK_LE(pos, _num_elements); | 344 | 201k | _cur_index = pos; | 345 | 201k | return Status::OK(); | 346 | 201k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 209k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 209k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 209k | DCHECK_LE(pos, _num_elements); | 344 | 209k | _cur_index = pos; | 345 | 209k | return Status::OK(); | 346 | 209k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 501k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 501k | if (_num_elements == 0) [[unlikely]] { | 337 | 187 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 187 | } | 342 | | | 343 | 501k | DCHECK_LE(pos, _num_elements); | 344 | 501k | _cur_index = pos; | 345 | 501k | return Status::OK(); | 346 | 501k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 55.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 55.4k | if (_num_elements == 0) [[unlikely]] { | 337 | 14 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 14 | } | 342 | | | 343 | 55.4k | DCHECK_LE(pos, _num_elements); | 344 | 55.4k | _cur_index = pos; | 345 | 55.4k | return Status::OK(); | 346 | 55.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 940 | Status seek_to_position_in_page(size_t pos) override { | 335 | 940 | DCHECK(_parsed) << "Must call init()"; | 336 | 940 | if (_num_elements == 0) [[unlikely]] { | 337 | 8 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 8 | } | 342 | | | 343 | 940 | DCHECK_LE(pos, _num_elements); | 344 | 940 | _cur_index = pos; | 345 | 940 | return Status::OK(); | 346 | 940 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 198k | Status seek_to_position_in_page(size_t pos) override { | 335 | 198k | DCHECK(_parsed) << "Must call init()"; | 336 | 198k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 198k | DCHECK_LE(pos, _num_elements); | 344 | 198k | _cur_index = pos; | 345 | 198k | return Status::OK(); | 346 | 198k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.58k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 6.58k | if (_num_elements == 0) [[unlikely]] { | 337 | 355 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 355 | } | 342 | | | 343 | 6.58k | DCHECK_LE(pos, _num_elements); | 344 | 6.58k | _cur_index = pos; | 345 | 6.58k | return Status::OK(); | 346 | 6.58k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 28 | Status seek_to_position_in_page(size_t pos) override { | 335 | 28 | DCHECK(_parsed) << "Must call init()"; | 336 | 28 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 28 | DCHECK_LE(pos, _num_elements); | 344 | 28 | _cur_index = pos; | 345 | 28 | return Status::OK(); | 346 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 826 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 826 | if (_num_elements == 0) [[unlikely]] { | 337 | 26 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 26 | } | 342 | | | 343 | 826 | DCHECK_LE(pos, _num_elements); | 344 | 826 | _cur_index = pos; | 345 | 826 | return Status::OK(); | 346 | 826 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 16.4k | if (_num_elements == 0) [[unlikely]] { | 337 | 15 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 15 | } | 342 | | | 343 | 16.4k | DCHECK_LE(pos, _num_elements); | 344 | 16.4k | _cur_index = pos; | 345 | 16.4k | return Status::OK(); | 346 | 16.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 112k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 112k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 10 | } | 342 | | | 343 | 112k | DCHECK_LE(pos, _num_elements); | 344 | 112k | _cur_index = pos; | 345 | 112k | return Status::OK(); | 346 | 112k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.98k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.98k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.98k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.98k | DCHECK_LE(pos, _num_elements); | 344 | 1.98k | _cur_index = pos; | 345 | 1.98k | return Status::OK(); | 346 | 1.98k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 25 | Status seek_to_position_in_page(size_t pos) override { | 335 | 25 | DCHECK(_parsed) << "Must call init()"; | 336 | 25 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 25 | DCHECK_LE(pos, _num_elements); | 344 | 25 | _cur_index = pos; | 345 | 25 | return Status::OK(); | 346 | 25 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 31 | Status seek_to_position_in_page(size_t pos) override { | 335 | 31 | DCHECK(_parsed) << "Must call init()"; | 336 | 31 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 31 | DCHECK_LE(pos, _num_elements); | 344 | 31 | _cur_index = pos; | 345 | 31 | return Status::OK(); | 346 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.68k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.68k | if (_num_elements == 0) [[unlikely]] { | 337 | 17 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 17 | } | 342 | | | 343 | 1.68k | DCHECK_LE(pos, _num_elements); | 344 | 1.68k | _cur_index = pos; | 345 | 1.68k | return Status::OK(); | 346 | 1.68k | } |
|
347 | | |
348 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | | |
351 | 15 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 15 | size_t left = 0; |
356 | 15 | size_t right = _num_elements; |
357 | | |
358 | 15 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 162 | while (left < right) { |
364 | 147 | size_t mid = left + (right - left) / 2; |
365 | 147 | mid_value = get_data(mid); |
366 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 68 | left = mid + 1; |
368 | 79 | } else { |
369 | 79 | right = mid; |
370 | 79 | } |
371 | 147 | } |
372 | 15 | if (left >= _num_elements) { |
373 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 3 | } |
375 | 12 | void* find_value = get_data(left); |
376 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 9 | *exact_match = true; |
378 | 9 | } else { |
379 | 3 | *exact_match = false; |
380 | 3 | } |
381 | | |
382 | 12 | _cur_index = left; |
383 | 12 | return Status::OK(); |
384 | 15 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | void* mid_value = nullptr; | 359 | | | 360 | | // find the first value >= target. after loop, | 361 | | // - left == index of first value >= target when found | 362 | | // - left == _num_elements when not found (all values < target) | 363 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 23 | left = mid + 1; | 368 | 26 | } else { | 369 | 26 | right = mid; | 370 | 26 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | void* mid_value = nullptr; | 359 | | | 360 | | // find the first value >= target. after loop, | 361 | | // - left == index of first value >= target when found | 362 | | // - left == _num_elements when not found (all values < target) | 363 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 23 | left = mid + 1; | 368 | 26 | } else { | 369 | 26 | right = mid; | 370 | 26 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | void* mid_value = nullptr; | 359 | | | 360 | | // find the first value >= target. after loop, | 361 | | // - left == index of first value >= target when found | 362 | | // - left == _num_elements when not found (all values < target) | 363 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 22 | left = mid + 1; | 368 | 27 | } else { | 369 | 27 | right = mid; | 370 | 27 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
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 |
385 | | |
386 | | template <bool forward_index = true> |
387 | 3.17M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 3.17M | DCHECK(_parsed); |
389 | 3.18M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 3.17M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 3.17M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 3.17M | *n = max_fetch; |
398 | 3.17M | if constexpr (forward_index) { |
399 | 3.12M | _cur_index += max_fetch; |
400 | 3.12M | } |
401 | | |
402 | 3.17M | return Status::OK(); |
403 | 3.17M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 181k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 181k | DCHECK(_parsed); | 389 | 181k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 181k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 181k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 181k | *n = max_fetch; | 398 | 181k | if constexpr (forward_index) { | 399 | 181k | _cur_index += max_fetch; | 400 | 181k | } | 401 | | | 402 | 181k | return Status::OK(); | 403 | 181k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 18.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 18.4k | DCHECK(_parsed); | 389 | 18.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 18.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 18.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 18.4k | *n = max_fetch; | 398 | 18.4k | if constexpr (forward_index) { | 399 | 18.4k | _cur_index += max_fetch; | 400 | 18.4k | } | 401 | | | 402 | 18.4k | return Status::OK(); | 403 | 18.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.39M | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.39M | DCHECK(_parsed); | 389 | 1.40M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.39M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.39M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.39M | *n = max_fetch; | 398 | 1.39M | if constexpr (forward_index) { | 399 | 1.39M | _cur_index += max_fetch; | 400 | 1.39M | } | 401 | | | 402 | 1.39M | return Status::OK(); | 403 | 1.39M | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 748k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 748k | DCHECK(_parsed); | 389 | 748k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 748k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 748k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 748k | *n = max_fetch; | 398 | 748k | if constexpr (forward_index) { | 399 | 748k | _cur_index += max_fetch; | 400 | 748k | } | 401 | | | 402 | 748k | return Status::OK(); | 403 | 748k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 17.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 17.4k | DCHECK(_parsed); | 389 | 17.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 17.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 17.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 17.4k | *n = max_fetch; | 398 | 17.4k | if constexpr (forward_index) { | 399 | 17.4k | _cur_index += max_fetch; | 400 | 17.4k | } | 401 | | | 402 | 17.4k | return Status::OK(); | 403 | 17.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 84.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 84.9k | DCHECK(_parsed); | 389 | 84.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 84.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 84.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 84.9k | *n = max_fetch; | 398 | 84.9k | if constexpr (forward_index) { | 399 | 84.9k | _cur_index += max_fetch; | 400 | 84.9k | } | 401 | | | 402 | 84.9k | return Status::OK(); | 403 | 84.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 48.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 48.4k | DCHECK(_parsed); | 389 | 48.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 48.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 48.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 48.4k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 48.4k | return Status::OK(); | 403 | 48.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 12.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 12.7k | DCHECK(_parsed); | 389 | 12.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 12.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 12.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 12.7k | *n = max_fetch; | 398 | 12.7k | if constexpr (forward_index) { | 399 | 12.7k | _cur_index += max_fetch; | 400 | 12.7k | } | 401 | | | 402 | 12.7k | return Status::OK(); | 403 | 12.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 48.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 48.5k | DCHECK(_parsed); | 389 | 48.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 48.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 48.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 48.5k | *n = max_fetch; | 398 | 48.5k | if constexpr (forward_index) { | 399 | 48.5k | _cur_index += max_fetch; | 400 | 48.5k | } | 401 | | | 402 | 48.5k | return Status::OK(); | 403 | 48.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 93 | DCHECK(_parsed); | 389 | 93 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 93 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 93 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 93 | *n = max_fetch; | 398 | 93 | if constexpr (forward_index) { | 399 | 93 | _cur_index += max_fetch; | 400 | 93 | } | 401 | | | 402 | 93 | return Status::OK(); | 403 | 93 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.82k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.82k | DCHECK(_parsed); | 389 | 3.82k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.82k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.82k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.82k | *n = max_fetch; | 398 | 3.82k | if constexpr (forward_index) { | 399 | 3.82k | _cur_index += max_fetch; | 400 | 3.82k | } | 401 | | | 402 | 3.82k | return Status::OK(); | 403 | 3.82k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 374k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 374k | DCHECK(_parsed); | 389 | 375k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 374k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 374k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 374k | *n = max_fetch; | 398 | 374k | if constexpr (forward_index) { | 399 | 374k | _cur_index += max_fetch; | 400 | 374k | } | 401 | | | 402 | 374k | return Status::OK(); | 403 | 374k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 62.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 62.8k | DCHECK(_parsed); | 389 | 62.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 62.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 62.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 62.8k | *n = max_fetch; | 398 | 62.8k | if constexpr (forward_index) { | 399 | 62.8k | _cur_index += max_fetch; | 400 | 62.8k | } | 401 | | | 402 | 62.8k | return Status::OK(); | 403 | 62.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.13k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.13k | DCHECK(_parsed); | 389 | 2.13k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.13k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.13k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.13k | *n = max_fetch; | 398 | 2.13k | if constexpr (forward_index) { | 399 | 2.13k | _cur_index += max_fetch; | 400 | 2.13k | } | 401 | | | 402 | 2.13k | return Status::OK(); | 403 | 2.13k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.32k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.32k | DCHECK(_parsed); | 389 | 1.32k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.32k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.32k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.32k | *n = max_fetch; | 398 | 1.32k | if constexpr (forward_index) { | 399 | 1.32k | _cur_index += max_fetch; | 400 | 1.32k | } | 401 | | | 402 | 1.32k | return Status::OK(); | 403 | 1.32k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.87k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.87k | DCHECK(_parsed); | 389 | 7.87k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.87k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.87k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.87k | *n = max_fetch; | 398 | 7.87k | if constexpr (forward_index) { | 399 | 7.87k | _cur_index += max_fetch; | 400 | 7.87k | } | 401 | | | 402 | 7.87k | return Status::OK(); | 403 | 7.87k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.26k | DCHECK(_parsed); | 389 | 1.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.26k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.26k | *n = max_fetch; | 398 | 1.26k | if constexpr (forward_index) { | 399 | 1.26k | _cur_index += max_fetch; | 400 | 1.26k | } | 401 | | | 402 | 1.26k | return Status::OK(); | 403 | 1.26k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 7.61k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.61k | DCHECK(_parsed); | 389 | 7.61k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.61k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.61k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.61k | *n = max_fetch; | 398 | 7.61k | if constexpr (forward_index) { | 399 | 7.61k | _cur_index += max_fetch; | 400 | 7.61k | } | 401 | | | 402 | 7.61k | return Status::OK(); | 403 | 7.61k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 33.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 33.1k | DCHECK(_parsed); | 389 | 33.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 33.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 33.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 33.1k | *n = max_fetch; | 398 | 33.1k | if constexpr (forward_index) { | 399 | 33.1k | _cur_index += max_fetch; | 400 | 33.1k | } | 401 | | | 402 | 33.1k | return Status::OK(); | 403 | 33.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 20.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20.9k | DCHECK(_parsed); | 389 | 20.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 20.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20.9k | *n = max_fetch; | 398 | 20.9k | if constexpr (forward_index) { | 399 | 20.9k | _cur_index += max_fetch; | 400 | 20.9k | } | 401 | | | 402 | 20.9k | return Status::OK(); | 403 | 20.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.21k | DCHECK(_parsed); | 389 | 3.21k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.21k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.21k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.21k | *n = max_fetch; | 398 | 3.21k | if constexpr (forward_index) { | 399 | 3.21k | _cur_index += max_fetch; | 400 | 3.21k | } | 401 | | | 402 | 3.21k | return Status::OK(); | 403 | 3.21k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 652 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 652 | DCHECK(_parsed); | 389 | 652 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 652 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 652 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 652 | *n = max_fetch; | 398 | 652 | if constexpr (forward_index) { | 399 | 652 | _cur_index += max_fetch; | 400 | 652 | } | 401 | | | 402 | 652 | return Status::OK(); | 403 | 652 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 676 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 676 | DCHECK(_parsed); | 389 | 676 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 676 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 676 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 676 | *n = max_fetch; | 398 | 676 | if constexpr (forward_index) { | 399 | 676 | _cur_index += max_fetch; | 400 | 676 | } | 401 | | | 402 | 676 | return Status::OK(); | 403 | 676 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 94.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 94.9k | DCHECK(_parsed); | 389 | 95.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 94.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 94.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 94.9k | *n = max_fetch; | 398 | 94.9k | if constexpr (forward_index) { | 399 | 94.9k | _cur_index += max_fetch; | 400 | 94.9k | } | 401 | | | 402 | 94.9k | return Status::OK(); | 403 | 94.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 3.12M | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 181k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 18.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.39M | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 748k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 17.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 85.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 12.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 48.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 93 | 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 | 405 | 3.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 374k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 62.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 2.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.32k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.87k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 1.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 7.61k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 33.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 20.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 3.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 653 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 678 | 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 | 405 | 95.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
406 | | |
407 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
408 | 381k | MutableColumnPtr& dst) override { |
409 | 381k | DCHECK(_parsed); |
410 | 381k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 381k | auto total = *n; |
416 | 381k | auto read_count = 0; |
417 | 381k | _buffer.resize(total); |
418 | 97.8M | for (size_t i = 0; i < total; ++i) { |
419 | 97.4M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 97.4M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 11.5k | break; |
422 | 11.5k | } |
423 | | |
424 | 97.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 97.4M | } |
426 | | |
427 | 381k | if (LIKELY(read_count > 0)) { |
428 | 381k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 381k | } |
430 | | |
431 | 381k | *n = read_count; |
432 | 381k | return Status::OK(); |
433 | 381k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 43.5k | MutableColumnPtr& dst) override { | 409 | 43.5k | DCHECK(_parsed); | 410 | 43.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 43.5k | auto total = *n; | 416 | 43.5k | auto read_count = 0; | 417 | 43.5k | _buffer.resize(total); | 418 | 1.85M | for (size_t i = 0; i < total; ++i) { | 419 | 1.81M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81M | } | 426 | | | 427 | 43.5k | if (LIKELY(read_count > 0)) { | 428 | 43.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 43.5k | } | 430 | | | 431 | 43.5k | *n = read_count; | 432 | 43.5k | return Status::OK(); | 433 | 43.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.35k | MutableColumnPtr& dst) override { | 409 | 8.35k | DCHECK(_parsed); | 410 | 8.35k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.35k | auto total = *n; | 416 | 8.35k | auto read_count = 0; | 417 | 8.35k | _buffer.resize(total); | 418 | 558k | for (size_t i = 0; i < total; ++i) { | 419 | 549k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 549k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 549k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 549k | } | 426 | | | 427 | 8.35k | if (LIKELY(read_count > 0)) { | 428 | 8.35k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.35k | } | 430 | | | 431 | 8.35k | *n = read_count; | 432 | 8.35k | return Status::OK(); | 433 | 8.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 87.9k | MutableColumnPtr& dst) override { | 409 | 87.9k | DCHECK(_parsed); | 410 | 87.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 87.9k | auto total = *n; | 416 | 87.9k | auto read_count = 0; | 417 | 87.9k | _buffer.resize(total); | 418 | 25.0M | for (size_t i = 0; i < total; ++i) { | 419 | 24.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 24.9M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.09k | break; | 422 | 2.09k | } | 423 | | | 424 | 24.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 24.9M | } | 426 | | | 427 | 88.0k | if (LIKELY(read_count > 0)) { | 428 | 88.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 88.0k | } | 430 | | | 431 | 87.9k | *n = read_count; | 432 | 87.9k | return Status::OK(); | 433 | 87.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 36.4k | MutableColumnPtr& dst) override { | 409 | 36.4k | DCHECK(_parsed); | 410 | 36.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 36.4k | auto total = *n; | 416 | 36.4k | auto read_count = 0; | 417 | 36.4k | _buffer.resize(total); | 418 | 16.5M | for (size_t i = 0; i < total; ++i) { | 419 | 16.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 16.4M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.06k | break; | 422 | 1.06k | } | 423 | | | 424 | 16.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 16.4M | } | 426 | | | 427 | 36.4k | if (LIKELY(read_count > 0)) { | 428 | 36.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 36.4k | } | 430 | | | 431 | 36.4k | *n = read_count; | 432 | 36.4k | return Status::OK(); | 433 | 36.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.09k | MutableColumnPtr& dst) override { | 409 | 9.09k | DCHECK(_parsed); | 410 | 9.09k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.09k | auto total = *n; | 416 | 9.09k | auto read_count = 0; | 417 | 9.09k | _buffer.resize(total); | 418 | 1.45M | for (size_t i = 0; i < total; ++i) { | 419 | 1.44M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.44M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 550 | break; | 422 | 550 | } | 423 | | | 424 | 1.44M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.44M | } | 426 | | | 427 | 9.10k | if (LIKELY(read_count > 0)) { | 428 | 9.10k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.10k | } | 430 | | | 431 | 9.09k | *n = read_count; | 432 | 9.09k | return Status::OK(); | 433 | 9.09k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 54.9k | MutableColumnPtr& dst) override { | 409 | 54.9k | DCHECK(_parsed); | 410 | 54.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 54.9k | auto total = *n; | 416 | 54.9k | auto read_count = 0; | 417 | 54.9k | _buffer.resize(total); | 418 | 569k | for (size_t i = 0; i < total; ++i) { | 419 | 514k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 514k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 8 | break; | 422 | 8 | } | 423 | | | 424 | 514k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 514k | } | 426 | | | 427 | 55.0k | if (LIKELY(read_count > 0)) { | 428 | 55.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 55.0k | } | 430 | | | 431 | 54.9k | *n = read_count; | 432 | 54.9k | return Status::OK(); | 433 | 54.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.84k | MutableColumnPtr& dst) override { | 409 | 5.84k | DCHECK(_parsed); | 410 | 5.84k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.84k | auto total = *n; | 416 | 5.84k | auto read_count = 0; | 417 | 5.84k | _buffer.resize(total); | 418 | 1.14M | for (size_t i = 0; i < total; ++i) { | 419 | 1.13M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.13M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 32 | break; | 422 | 32 | } | 423 | | | 424 | 1.13M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.13M | } | 426 | | | 427 | 5.84k | if (LIKELY(read_count > 0)) { | 428 | 5.84k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.84k | } | 430 | | | 431 | 5.84k | *n = read_count; | 432 | 5.84k | return Status::OK(); | 433 | 5.84k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.98k | MutableColumnPtr& dst) override { | 409 | 8.98k | DCHECK(_parsed); | 410 | 8.98k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.98k | auto total = *n; | 416 | 8.98k | auto read_count = 0; | 417 | 8.98k | _buffer.resize(total); | 418 | 1.32M | for (size_t i = 0; i < total; ++i) { | 419 | 1.31M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.31M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 364 | break; | 422 | 364 | } | 423 | | | 424 | 1.31M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.31M | } | 426 | | | 427 | 8.98k | if (LIKELY(read_count > 0)) { | 428 | 8.98k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.98k | } | 430 | | | 431 | 8.98k | *n = read_count; | 432 | 8.98k | return Status::OK(); | 433 | 8.98k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.35k | MutableColumnPtr& dst) override { | 409 | 1.35k | DCHECK(_parsed); | 410 | 1.35k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.35k | auto total = *n; | 416 | 1.35k | auto read_count = 0; | 417 | 1.35k | _buffer.resize(total); | 418 | 433k | for (size_t i = 0; i < total; ++i) { | 419 | 431k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 431k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 8 | break; | 422 | 8 | } | 423 | | | 424 | 431k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 431k | } | 426 | | | 427 | 1.35k | if (LIKELY(read_count > 0)) { | 428 | 1.35k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.35k | } | 430 | | | 431 | 1.35k | *n = read_count; | 432 | 1.35k | return Status::OK(); | 433 | 1.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.8k | MutableColumnPtr& dst) override { | 409 | 29.8k | DCHECK(_parsed); | 410 | 29.8k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.8k | auto total = *n; | 416 | 29.8k | auto read_count = 0; | 417 | 29.8k | _buffer.resize(total); | 418 | 6.72M | for (size_t i = 0; i < total; ++i) { | 419 | 6.69M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.69M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 916 | break; | 422 | 916 | } | 423 | | | 424 | 6.69M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.69M | } | 426 | | | 427 | 29.9k | if (LIKELY(read_count > 0)) { | 428 | 29.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.9k | } | 430 | | | 431 | 29.8k | *n = read_count; | 432 | 29.8k | return Status::OK(); | 433 | 29.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.5k | MutableColumnPtr& dst) override { | 409 | 32.5k | DCHECK(_parsed); | 410 | 32.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.5k | auto total = *n; | 416 | 32.5k | auto read_count = 0; | 417 | 32.5k | _buffer.resize(total); | 418 | 10.1M | for (size_t i = 0; i < total; ++i) { | 419 | 10.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 10.0M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 191 | break; | 422 | 191 | } | 423 | | | 424 | 10.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 10.0M | } | 426 | | | 427 | 32.5k | if (LIKELY(read_count > 0)) { | 428 | 32.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.5k | } | 430 | | | 431 | 32.5k | *n = read_count; | 432 | 32.5k | return Status::OK(); | 433 | 32.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.20k | MutableColumnPtr& dst) override { | 409 | 1.20k | DCHECK(_parsed); | 410 | 1.20k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.20k | auto total = *n; | 416 | 1.20k | auto read_count = 0; | 417 | 1.20k | _buffer.resize(total); | 418 | 4.06k | for (size_t i = 0; i < total; ++i) { | 419 | 2.86k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.86k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.86k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.86k | } | 426 | | | 427 | 1.20k | if (LIKELY(read_count > 0)) { | 428 | 1.20k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.20k | } | 430 | | | 431 | 1.20k | *n = read_count; | 432 | 1.20k | return Status::OK(); | 433 | 1.20k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.75k | MutableColumnPtr& dst) override { | 409 | 1.75k | DCHECK(_parsed); | 410 | 1.75k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.75k | auto total = *n; | 416 | 1.75k | auto read_count = 0; | 417 | 1.75k | _buffer.resize(total); | 418 | 436k | for (size_t i = 0; i < total; ++i) { | 419 | 435k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 435k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 241 | break; | 422 | 241 | } | 423 | | | 424 | 435k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 435k | } | 426 | | | 427 | 1.75k | if (LIKELY(read_count > 0)) { | 428 | 1.75k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.75k | } | 430 | | | 431 | 1.75k | *n = read_count; | 432 | 1.75k | return Status::OK(); | 433 | 1.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.2k | MutableColumnPtr& dst) override { | 409 | 12.2k | DCHECK(_parsed); | 410 | 12.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.2k | auto total = *n; | 416 | 12.2k | auto read_count = 0; | 417 | 12.2k | _buffer.resize(total); | 418 | 25.9k | for (size_t i = 0; i < total; ++i) { | 419 | 13.7k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.7k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.7k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.7k | } | 426 | | | 427 | 12.2k | if (LIKELY(read_count > 0)) { | 428 | 12.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.2k | } | 430 | | | 431 | 12.2k | *n = read_count; | 432 | 12.2k | return Status::OK(); | 433 | 12.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 145 | MutableColumnPtr& dst) override { | 409 | 145 | DCHECK(_parsed); | 410 | 145 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 145 | auto total = *n; | 416 | 145 | auto read_count = 0; | 417 | 145 | _buffer.resize(total); | 418 | 295 | for (size_t i = 0; i < total; ++i) { | 419 | 150 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 150 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 150 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 150 | } | 426 | | | 427 | 145 | if (LIKELY(read_count > 0)) { | 428 | 145 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 145 | } | 430 | | | 431 | 145 | *n = read_count; | 432 | 145 | return Status::OK(); | 433 | 145 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.64k | MutableColumnPtr& dst) override { | 409 | 4.64k | DCHECK(_parsed); | 410 | 4.64k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.64k | auto total = *n; | 416 | 4.64k | auto read_count = 0; | 417 | 4.64k | _buffer.resize(total); | 418 | 19.3k | for (size_t i = 0; i < total; ++i) { | 419 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.6k | } | 426 | | | 427 | 4.65k | if (LIKELY(read_count > 0)) { | 428 | 4.65k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.65k | } | 430 | | | 431 | 4.64k | *n = read_count; | 432 | 4.64k | return Status::OK(); | 433 | 4.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.0k | MutableColumnPtr& dst) override { | 409 | 27.0k | DCHECK(_parsed); | 410 | 27.0k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.0k | auto total = *n; | 416 | 27.0k | auto read_count = 0; | 417 | 27.0k | _buffer.resize(total); | 418 | 22.6M | for (size_t i = 0; i < total; ++i) { | 419 | 22.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 22.6M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.34k | break; | 422 | 5.34k | } | 423 | | | 424 | 22.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 22.6M | } | 426 | | | 427 | 27.0k | if (LIKELY(read_count > 0)) { | 428 | 27.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.0k | } | 430 | | | 431 | 27.0k | *n = read_count; | 432 | 27.0k | return Status::OK(); | 433 | 27.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.3k | MutableColumnPtr& dst) override { | 409 | 13.3k | DCHECK(_parsed); | 410 | 13.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.3k | auto total = *n; | 416 | 13.3k | auto read_count = 0; | 417 | 13.3k | _buffer.resize(total); | 418 | 8.96M | for (size_t i = 0; i < total; ++i) { | 419 | 8.95M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.95M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 720 | break; | 422 | 720 | } | 423 | | | 424 | 8.95M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.95M | } | 426 | | | 427 | 13.3k | if (LIKELY(read_count > 0)) { | 428 | 13.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.3k | } | 430 | | | 431 | 13.3k | *n = read_count; | 432 | 13.3k | return Status::OK(); | 433 | 13.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 964 | MutableColumnPtr& dst) override { | 409 | 964 | DCHECK(_parsed); | 410 | 964 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 964 | auto total = *n; | 416 | 964 | auto read_count = 0; | 417 | 964 | _buffer.resize(total); | 418 | 2.78k | for (size_t i = 0; i < total; ++i) { | 419 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.81k | } | 426 | | | 427 | 964 | if (LIKELY(read_count > 0)) { | 428 | 964 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 964 | } | 430 | | | 431 | 964 | *n = read_count; | 432 | 964 | return Status::OK(); | 433 | 964 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 292 | MutableColumnPtr& dst) override { | 409 | 292 | DCHECK(_parsed); | 410 | 292 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 292 | auto total = *n; | 416 | 292 | auto read_count = 0; | 417 | 292 | _buffer.resize(total); | 418 | 828 | for (size_t i = 0; i < total; ++i) { | 419 | 536 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 536 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 536 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 536 | } | 426 | | | 427 | 292 | if (LIKELY(read_count > 0)) { | 428 | 292 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 292 | } | 430 | | | 431 | 292 | *n = read_count; | 432 | 292 | return Status::OK(); | 433 | 292 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 323 | MutableColumnPtr& dst) override { | 409 | 323 | DCHECK(_parsed); | 410 | 323 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 323 | auto total = *n; | 416 | 323 | auto read_count = 0; | 417 | 323 | _buffer.resize(total); | 418 | 1.16k | for (size_t i = 0; i < total; ++i) { | 419 | 845 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 845 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 845 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 845 | } | 426 | | | 427 | 325 | if (LIKELY(read_count > 0)) { | 428 | 325 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 325 | } | 430 | | | 431 | 323 | *n = read_count; | 432 | 323 | return Status::OK(); | 433 | 323 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 487 | MutableColumnPtr& dst) override { | 409 | 487 | DCHECK(_parsed); | 410 | 487 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 487 | auto total = *n; | 416 | 487 | auto read_count = 0; | 417 | 487 | _buffer.resize(total); | 418 | 1.08k | for (size_t i = 0; i < total; ++i) { | 419 | 598 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 598 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 598 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 598 | } | 426 | | | 427 | 487 | if (LIKELY(read_count > 0)) { | 428 | 487 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 487 | } | 430 | | | 431 | 487 | *n = read_count; | 432 | 487 | return Status::OK(); | 433 | 487 | } |
|
434 | | |
435 | 48.5k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 48.5k | return next_batch<false>(n, dst); |
437 | 48.5k | } 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_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 48.5k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 48.5k | return next_batch<false>(n, dst); | 437 | 48.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
438 | | |
439 | 4 | size_t count() const override { return _num_elements; }Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE5countEv |
440 | | |
441 | 3.77M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 217k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 216k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.95M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 84.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 105k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 441 | 222k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 198k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 205k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 224k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 28.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 264 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 197k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.03k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 11 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.44k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 730 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 107k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 309 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 39 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 45 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 441 | 860 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 102M | char* get_data(size_t index) const { |
444 | 102M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 102M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.99M | char* get_data(size_t index) const { | 444 | 1.99M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.99M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 568k | char* get_data(size_t index) const { | 444 | 568k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 568k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 27.7M | char* get_data(size_t index) const { | 444 | 27.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 27.7M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 17.2M | char* get_data(size_t index) const { | 444 | 17.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 17.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.46M | char* get_data(size_t index) const { | 444 | 1.46M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.46M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 648k | char* get_data(size_t index) const { | 444 | 648k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 648k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.15M | char* get_data(size_t index) const { | 444 | 1.15M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.15M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.36M | char* get_data(size_t index) const { | 444 | 1.36M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.36M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 443 | 93 | char* get_data(size_t index) const { | 444 | 93 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 93 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 434k | char* get_data(size_t index) const { | 444 | 434k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 434k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 7.07M | char* get_data(size_t index) const { | 444 | 7.07M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 7.07M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 10.1M | char* get_data(size_t index) const { | 444 | 10.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 10.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 5.00k | char* get_data(size_t index) const { | 444 | 5.00k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.00k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 436k | char* get_data(size_t index) const { | 444 | 436k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 436k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 21.5k | char* get_data(size_t index) const { | 444 | 21.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.46k | char* get_data(size_t index) const { | 444 | 1.46k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.46k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 22.2k | char* get_data(size_t index) const { | 444 | 22.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 22.6M | char* get_data(size_t index) const { | 444 | 22.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.97M | char* get_data(size_t index) const { | 444 | 8.97M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.97M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 5.02k | char* get_data(size_t index) const { | 444 | 5.02k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.02k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.18k | char* get_data(size_t index) const { | 444 | 1.18k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.18k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.52k | char* get_data(size_t index) const { | 444 | 1.52k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.52k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 443 | 95.6k | char* get_data(size_t index) const { | 444 | 95.6k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 95.6k | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |