be/src/storage/segment/bitshuffle_page.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <glog/logging.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <cstddef> |
24 | | #include <cstdint> |
25 | | #include <cstring> |
26 | | #include <ostream> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/cast_set.h" |
30 | | #include "common/compiler_util.h" // IWYU pragma: keep |
31 | | #include "common/status.h" |
32 | | #include "core/column/column.h" |
33 | | #include "core/data_type/data_type.h" |
34 | | #include "core/types.h" |
35 | | #include "storage/olap_common.h" |
36 | | #include "storage/segment/bitshuffle_wrapper.h" |
37 | | #include "storage/segment/common.h" |
38 | | #include "storage/segment/options.h" |
39 | | #include "storage/segment/page_builder.h" |
40 | | #include "storage/segment/page_decoder.h" |
41 | | #include "storage/types.h" |
42 | | #include "util/alignment.h" |
43 | | #include "util/coding.h" |
44 | | #include "util/faststring.h" |
45 | | #include "util/slice.h" |
46 | | |
47 | | namespace doris { |
48 | | namespace segment_v2 { |
49 | | |
50 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
51 | | |
52 | | void warn_with_bitshuffle_error(int64_t val); |
53 | | |
54 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
55 | | // size type blocks with lz4. |
56 | | // |
57 | | // The page format is as follows: |
58 | | // |
59 | | // 1. Header: (16 bytes total) |
60 | | // |
61 | | // <num_elements> [32-bit] |
62 | | // The number of elements encoded in the page. |
63 | | // |
64 | | // <compressed_size> [32-bit] |
65 | | // The post-compression size of the page, including this header. |
66 | | // |
67 | | // <padded_num_elements> [32-bit] |
68 | | // Padding is needed to meet the requirements of the bitshuffle |
69 | | // library such that the input/output is a multiple of 8. Some |
70 | | // ignored elements are appended to the end of the page if necessary |
71 | | // to meet this requirement. |
72 | | // |
73 | | // This header field is the post-padding element count. |
74 | | // |
75 | | // <elem_size_bytes> [32-bit] |
76 | | // The size of the elements, in bytes, as actually encoded. In the |
77 | | // case that all of the data in a page can fit into a smaller |
78 | | // integer type, then we may choose to encode that smaller type |
79 | | // to save CPU costs. |
80 | | // |
81 | | // This is currently only implemented in the UINT32 page type. |
82 | | // |
83 | | // NOTE: all on-disk ints are encoded little-endian |
84 | | // |
85 | | // 2. Element data |
86 | | // |
87 | | // The header is followed by the bitshuffle-compressed element data. |
88 | | // |
89 | | template <FieldType Type> |
90 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
91 | | public: |
92 | | using Self = BitshufflePageBuilder<Type>; |
93 | | friend class PageBuilderHelper<Self>; |
94 | | |
95 | 815k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 344k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 55.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 8.84k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 184k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 11.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 64.6k | 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.43k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 7.55k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 669 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 329 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 430 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.48k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 326 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.77k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 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 | 704 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 702 | Status init() override { return reset(); } |
|
96 | | |
97 | 151M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 151M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 57.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 14.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 255k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 11.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 64.6k | 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.36k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 9.24k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 667 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 45.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 43.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 267 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 494 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.60k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 234 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.23k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 25.8k | 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.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 607 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 620 | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.24M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.24M | return add_internal<false>(vals, count); |
101 | 1.24M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 676k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 676k | return add_internal<false>(vals, count); | 101 | 676k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 57.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 57.3k | return add_internal<false>(vals, count); | 101 | 57.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 14.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 14.1k | return add_internal<false>(vals, count); | 101 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 255k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 255k | return add_internal<false>(vals, count); | 101 | 255k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm 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_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 64.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 64.6k | return add_internal<false>(vals, count); | 101 | 64.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 6.36k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.36k | return add_internal<false>(vals, count); | 101 | 6.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 9.24k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 9.24k | return add_internal<false>(vals, count); | 101 | 9.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 667 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 667 | return add_internal<false>(vals, count); | 101 | 667 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 45.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.1k | return add_internal<false>(vals, count); | 101 | 45.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 43.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 43.9k | return add_internal<false>(vals, count); | 101 | 43.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 267 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 267 | return add_internal<false>(vals, count); | 101 | 267 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 494 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 494 | return add_internal<false>(vals, count); | 101 | 494 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.60k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.60k | return add_internal<false>(vals, count); | 101 | 7.60k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 234 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 234 | return add_internal<false>(vals, count); | 101 | 234 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.23k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.23k | return add_internal<false>(vals, count); | 101 | 5.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 25.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 25.8k | return add_internal<false>(vals, count); | 101 | 25.8k | } |
_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.37k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.37k | return add_internal<false>(vals, count); | 101 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 607 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 607 | return add_internal<false>(vals, count); | 101 | 607 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 620 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 620 | return add_internal<false>(vals, count); | 101 | 620 | } |
|
102 | | |
103 | 150M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 150M | return add_internal<true>(vals, count); |
105 | 150M | } |
106 | | |
107 | | template <bool single> |
108 | 146M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 146M | DCHECK(!_finished); |
110 | 146M | 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 | 146M | uint32_t to_add = cast_set<UInt32>( |
126 | 146M | 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 | 146M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 146M | 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 | 146M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 151M | _count += to_add; |
134 | 151M | _remain_element_capacity -= to_add; |
135 | 151M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 151M | *num_written = to_add; |
138 | 151M | 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 | 150M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 150M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 150M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 150M | 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 | 150M | } |
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 | 151M | return Status::OK(); |
159 | 146M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 676k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 676k | DCHECK(!_finished); | 110 | 676k | 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 | 676k | uint32_t to_add = cast_set<UInt32>( | 126 | 676k | 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 | 676k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 676k | 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 | 676k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 676k | _count += to_add; | 134 | 676k | _remain_element_capacity -= to_add; | 135 | 676k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 676k | *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 | 676k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 676k | return Status::OK(); | 159 | 676k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 145M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 145M | DCHECK(!_finished); | 110 | 145M | 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 | 145M | uint32_t to_add = cast_set<UInt32>( | 126 | 145M | 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 | 145M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 145M | 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 | 145M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 150M | _count += to_add; | 134 | 150M | _remain_element_capacity -= to_add; | 135 | 150M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 150M | *num_written = to_add; | 138 | 150M | 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 | 150M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 150M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 150M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 150M | 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 | 150M | } | 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 | 150M | return Status::OK(); | 159 | 145M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 57.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 57.3k | DCHECK(!_finished); | 110 | 57.3k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 57.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 57.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 57.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 57.3k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 57.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 57.3k | _count += to_add; | 134 | 57.3k | _remain_element_capacity -= to_add; | 135 | 57.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 57.3k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 57.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 57.3k | return Status::OK(); | 159 | 57.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 14.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 14.1k | DCHECK(!_finished); | 110 | 14.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 | 14.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 14.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 | 14.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 14.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 | 14.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 14.1k | _count += to_add; | 134 | 14.1k | _remain_element_capacity -= to_add; | 135 | 14.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 14.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 | 14.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 14.1k | return Status::OK(); | 159 | 14.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 255k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 255k | DCHECK(!_finished); | 110 | 255k | 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 | 255k | uint32_t to_add = cast_set<UInt32>( | 126 | 255k | 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 | 255k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 255k | 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 | 255k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 255k | _count += to_add; | 134 | 255k | _remain_element_capacity -= to_add; | 135 | 255k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 255k | *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 | 255k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 255k | return Status::OK(); | 159 | 255k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_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_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 64.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 64.6k | DCHECK(!_finished); | 110 | 64.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 | 64.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 64.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 | 64.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 64.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 | 64.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 64.6k | _count += to_add; | 134 | 64.6k | _remain_element_capacity -= to_add; | 135 | 64.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 64.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 | 64.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 64.6k | return Status::OK(); | 159 | 64.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.36k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.36k | DCHECK(!_finished); | 110 | 6.36k | 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.36k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.36k | 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.36k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.36k | 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.36k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.36k | _count += to_add; | 134 | 6.36k | _remain_element_capacity -= to_add; | 135 | 6.36k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.36k | *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.36k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.36k | return Status::OK(); | 159 | 6.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 9.24k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 9.24k | DCHECK(!_finished); | 110 | 9.24k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 9.24k | uint32_t to_add = cast_set<UInt32>( | 126 | 9.24k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 9.24k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 9.24k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 9.24k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 9.24k | _count += to_add; | 134 | 9.24k | _remain_element_capacity -= to_add; | 135 | 9.24k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 9.24k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 9.24k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 9.24k | return Status::OK(); | 159 | 9.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 667 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 667 | DCHECK(!_finished); | 110 | 667 | 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 | 667 | uint32_t to_add = cast_set<UInt32>( | 126 | 667 | 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 | 667 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 667 | 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 | 667 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 667 | _count += to_add; | 134 | 667 | _remain_element_capacity -= to_add; | 135 | 667 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 667 | *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 | 667 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 667 | return Status::OK(); | 159 | 667 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.1k | DCHECK(!_finished); | 110 | 45.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 | 45.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.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 | 45.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.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 | 45.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.1k | _count += to_add; | 134 | 45.1k | _remain_element_capacity -= to_add; | 135 | 45.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.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 | 45.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.1k | return Status::OK(); | 159 | 45.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 43.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 43.9k | DCHECK(!_finished); | 110 | 43.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 | 43.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 43.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 | 43.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 43.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 | 43.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 43.9k | _count += to_add; | 134 | 43.9k | _remain_element_capacity -= to_add; | 135 | 43.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 43.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 | 43.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 43.9k | return Status::OK(); | 159 | 43.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 267 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 267 | DCHECK(!_finished); | 110 | 267 | 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 | 267 | uint32_t to_add = cast_set<UInt32>( | 126 | 267 | 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 | 267 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 267 | 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 | 267 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 267 | _count += to_add; | 134 | 267 | _remain_element_capacity -= to_add; | 135 | 267 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 267 | *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 | 267 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 267 | return Status::OK(); | 159 | 267 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 494 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 494 | DCHECK(!_finished); | 110 | 494 | 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 | 494 | uint32_t to_add = cast_set<UInt32>( | 126 | 494 | 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 | 494 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 494 | 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 | 494 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 494 | _count += to_add; | 134 | 494 | _remain_element_capacity -= to_add; | 135 | 494 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 494 | *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 | 494 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 494 | return Status::OK(); | 159 | 494 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.59k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.59k | DCHECK(!_finished); | 110 | 7.59k | 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.59k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.59k | 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.59k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.59k | 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.59k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.60k | _count += to_add; | 134 | 7.60k | _remain_element_capacity -= to_add; | 135 | 7.60k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.60k | *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.60k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.60k | return Status::OK(); | 159 | 7.59k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 234 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 234 | DCHECK(!_finished); | 110 | 234 | 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 | 234 | uint32_t to_add = cast_set<UInt32>( | 126 | 234 | 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 | 234 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 234 | 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 | 234 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 234 | _count += to_add; | 134 | 234 | _remain_element_capacity -= to_add; | 135 | 234 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 234 | *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 | 234 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 234 | return Status::OK(); | 159 | 234 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.23k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.23k | DCHECK(!_finished); | 110 | 5.23k | 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.23k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.23k | 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.23k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.23k | 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.23k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.23k | _count += to_add; | 134 | 5.23k | _remain_element_capacity -= to_add; | 135 | 5.23k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.23k | *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.23k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.23k | return Status::OK(); | 159 | 5.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 25.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 25.8k | DCHECK(!_finished); | 110 | 25.8k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 25.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 25.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 25.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 25.8k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 25.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 25.8k | _count += to_add; | 134 | 25.8k | _remain_element_capacity -= to_add; | 135 | 25.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 25.8k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 25.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 25.8k | return Status::OK(); | 159 | 25.8k | } |
_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.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.37k | DCHECK(!_finished); | 110 | 1.37k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.37k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.37k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.37k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.37k | _count += to_add; | 134 | 1.37k | _remain_element_capacity -= to_add; | 135 | 1.37k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.37k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.37k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.37k | return Status::OK(); | 159 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 607 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 607 | DCHECK(!_finished); | 110 | 607 | 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 | 607 | uint32_t to_add = cast_set<UInt32>( | 126 | 607 | 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 | 607 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 607 | 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 | 607 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 607 | _count += to_add; | 134 | 607 | _remain_element_capacity -= to_add; | 135 | 607 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 607 | *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 | 607 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 607 | return Status::OK(); | 159 | 607 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 620 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 620 | DCHECK(!_finished); | 110 | 620 | 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 | 620 | uint32_t to_add = cast_set<UInt32>( | 126 | 620 | 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 | 620 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 620 | 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 | 620 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 620 | _count += to_add; | 134 | 620 | _remain_element_capacity -= to_add; | 135 | 620 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 620 | *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 | 620 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 620 | return Status::OK(); | 159 | 620 | } |
|
160 | | |
161 | 814k | Status finish(OwnedSlice* slice) override { |
162 | 814k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 815k | return Status::OK(); |
164 | 814k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 336k | Status finish(OwnedSlice* slice) override { | 162 | 336k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 336k | return Status::OK(); | 164 | 336k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 53.9k | Status finish(OwnedSlice* slice) override { | 162 | 53.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 53.9k | return Status::OK(); | 164 | 53.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.36k | Status finish(OwnedSlice* slice) override { | 162 | 8.36k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.36k | return Status::OK(); | 164 | 8.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 187k | Status finish(OwnedSlice* slice) override { | 162 | 187k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 187k | return Status::OK(); | 164 | 187k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 11.3k | Status finish(OwnedSlice* slice) override { | 162 | 11.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 11.3k | return Status::OK(); | 164 | 11.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 64.4k | Status finish(OwnedSlice* slice) override { | 162 | 64.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 64.4k | return Status::OK(); | 164 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.02k | Status finish(OwnedSlice* slice) override { | 162 | 6.02k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.02k | return Status::OK(); | 164 | 6.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.35k | Status finish(OwnedSlice* slice) override { | 162 | 7.35k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.35k | return Status::OK(); | 164 | 7.35k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 681 | Status finish(OwnedSlice* slice) override { | 162 | 681 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 681 | return Status::OK(); | 164 | 681 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 37.9k | Status finish(OwnedSlice* slice) override { | 162 | 37.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 37.9k | return Status::OK(); | 164 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.2k | Status finish(OwnedSlice* slice) override { | 162 | 43.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.2k | return Status::OK(); | 164 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 261 | Status finish(OwnedSlice* slice) override { | 162 | 261 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 261 | return Status::OK(); | 164 | 261 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 584 | Status finish(OwnedSlice* slice) override { | 162 | 584 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 584 | return Status::OK(); | 164 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.67k | Status finish(OwnedSlice* slice) override { | 162 | 7.67k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.69k | return Status::OK(); | 164 | 7.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 236 | Status finish(OwnedSlice* slice) override { | 162 | 236 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 236 | return Status::OK(); | 164 | 236 | } |
_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.2k | Status finish(OwnedSlice* slice) override { | 162 | 19.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.2k | return Status::OK(); | 164 | 19.2k | } |
_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.10k | Status finish(OwnedSlice* slice) override { | 162 | 1.10k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.10k | return Status::OK(); | 164 | 1.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 613 | Status finish(OwnedSlice* slice) override { | 162 | 613 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 613 | return Status::OK(); | 164 | 613 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 610 | Status finish(OwnedSlice* slice) override { | 162 | 610 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 610 | return Status::OK(); | 164 | 610 | } |
|
165 | | |
166 | 1.90M | Status reset() override { |
167 | 1.90M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.90M | size_t block_size = _options.data_page_size; |
169 | 1.90M | _count = 0; |
170 | 1.90M | _raw_data_size = 0; |
171 | 1.90M | _data.clear(); |
172 | 1.90M | _data.reserve(block_size); |
173 | 1.90M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.90M | << "buffer must be naturally-aligned"; |
175 | 1.90M | _buffer.clear(); |
176 | 1.90M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.90M | _finished = false; |
178 | 1.90M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.90M | }); |
180 | 1.91M | return Status::OK(); |
181 | 1.90M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 959k | Status reset() override { | 167 | 959k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 959k | size_t block_size = _options.data_page_size; | 169 | 959k | _count = 0; | 170 | 959k | _raw_data_size = 0; | 171 | 959k | _data.clear(); | 172 | 959k | _data.reserve(block_size); | 173 | 959k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 959k | << "buffer must be naturally-aligned"; | 175 | 959k | _buffer.clear(); | 176 | 959k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 959k | _finished = false; | 178 | 959k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 959k | }); | 180 | 963k | return Status::OK(); | 181 | 959k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 109k | Status reset() override { | 167 | 109k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 109k | size_t block_size = _options.data_page_size; | 169 | 109k | _count = 0; | 170 | 109k | _raw_data_size = 0; | 171 | 109k | _data.clear(); | 172 | 109k | _data.reserve(block_size); | 173 | 109k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 109k | << "buffer must be naturally-aligned"; | 175 | 109k | _buffer.clear(); | 176 | 109k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 109k | _finished = false; | 178 | 109k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 109k | }); | 180 | 109k | return Status::OK(); | 181 | 109k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 17.2k | Status reset() override { | 167 | 17.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 17.2k | size_t block_size = _options.data_page_size; | 169 | 17.2k | _count = 0; | 170 | 17.2k | _raw_data_size = 0; | 171 | 17.2k | _data.clear(); | 172 | 17.2k | _data.reserve(block_size); | 173 | 17.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 17.2k | << "buffer must be naturally-aligned"; | 175 | 17.2k | _buffer.clear(); | 176 | 17.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 17.2k | _finished = false; | 178 | 17.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 17.2k | }); | 180 | 17.2k | return Status::OK(); | 181 | 17.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 371k | Status reset() override { | 167 | 371k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 371k | size_t block_size = _options.data_page_size; | 169 | 371k | _count = 0; | 170 | 371k | _raw_data_size = 0; | 171 | 371k | _data.clear(); | 172 | 371k | _data.reserve(block_size); | 173 | 371k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 371k | << "buffer must be naturally-aligned"; | 175 | 371k | _buffer.clear(); | 176 | 371k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 371k | _finished = false; | 178 | 371k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 371k | }); | 180 | 372k | return Status::OK(); | 181 | 371k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 22.8k | Status reset() override { | 167 | 22.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 22.8k | size_t block_size = _options.data_page_size; | 169 | 22.8k | _count = 0; | 170 | 22.8k | _raw_data_size = 0; | 171 | 22.8k | _data.clear(); | 172 | 22.8k | _data.reserve(block_size); | 173 | 22.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 22.8k | << "buffer must be naturally-aligned"; | 175 | 22.8k | _buffer.clear(); | 176 | 22.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 22.8k | _finished = false; | 178 | 22.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 22.8k | }); | 180 | 22.8k | return Status::OK(); | 181 | 22.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 128k | Status reset() override { | 167 | 128k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 128k | size_t block_size = _options.data_page_size; | 169 | 128k | _count = 0; | 170 | 128k | _raw_data_size = 0; | 171 | 128k | _data.clear(); | 172 | 128k | _data.reserve(block_size); | 173 | 128k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 128k | << "buffer must be naturally-aligned"; | 175 | 128k | _buffer.clear(); | 176 | 128k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 128k | _finished = false; | 178 | 128k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 128k | }); | 180 | 129k | return Status::OK(); | 181 | 128k | } |
_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.4k | Status reset() override { | 167 | 12.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 12.4k | size_t block_size = _options.data_page_size; | 169 | 12.4k | _count = 0; | 170 | 12.4k | _raw_data_size = 0; | 171 | 12.4k | _data.clear(); | 172 | 12.4k | _data.reserve(block_size); | 173 | 12.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 12.4k | << "buffer must be naturally-aligned"; | 175 | 12.4k | _buffer.clear(); | 176 | 12.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 12.4k | _finished = false; | 178 | 12.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 12.4k | }); | 180 | 12.4k | return Status::OK(); | 181 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 14.9k | Status reset() override { | 167 | 14.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 14.9k | size_t block_size = _options.data_page_size; | 169 | 14.9k | _count = 0; | 170 | 14.9k | _raw_data_size = 0; | 171 | 14.9k | _data.clear(); | 172 | 14.9k | _data.reserve(block_size); | 173 | 14.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 14.9k | << "buffer must be naturally-aligned"; | 175 | 14.9k | _buffer.clear(); | 176 | 14.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 14.9k | _finished = false; | 178 | 14.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 14.9k | }); | 180 | 14.9k | return Status::OK(); | 181 | 14.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 1.35k | Status reset() override { | 167 | 1.35k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.35k | size_t block_size = _options.data_page_size; | 169 | 1.35k | _count = 0; | 170 | 1.35k | _raw_data_size = 0; | 171 | 1.35k | _data.clear(); | 172 | 1.35k | _data.reserve(block_size); | 173 | 1.35k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.35k | << "buffer must be naturally-aligned"; | 175 | 1.35k | _buffer.clear(); | 176 | 1.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.35k | _finished = false; | 178 | 1.35k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.35k | }); | 180 | 1.35k | return Status::OK(); | 181 | 1.35k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.0k | Status reset() override { | 167 | 75.0k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.0k | size_t block_size = _options.data_page_size; | 169 | 75.0k | _count = 0; | 170 | 75.0k | _raw_data_size = 0; | 171 | 75.0k | _data.clear(); | 172 | 75.0k | _data.reserve(block_size); | 173 | 75.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.0k | << "buffer must be naturally-aligned"; | 175 | 75.0k | _buffer.clear(); | 176 | 75.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.0k | _finished = false; | 178 | 75.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.0k | }); | 180 | 75.1k | return Status::OK(); | 181 | 75.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.3k | Status reset() override { | 167 | 87.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.3k | size_t block_size = _options.data_page_size; | 169 | 87.3k | _count = 0; | 170 | 87.3k | _raw_data_size = 0; | 171 | 87.3k | _data.clear(); | 172 | 87.3k | _data.reserve(block_size); | 173 | 87.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.3k | << "buffer must be naturally-aligned"; | 175 | 87.3k | _buffer.clear(); | 176 | 87.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.3k | _finished = false; | 178 | 87.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.3k | }); | 180 | 87.5k | return Status::OK(); | 181 | 87.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 590 | Status reset() override { | 167 | 590 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 590 | size_t block_size = _options.data_page_size; | 169 | 590 | _count = 0; | 170 | 590 | _raw_data_size = 0; | 171 | 590 | _data.clear(); | 172 | 590 | _data.reserve(block_size); | 173 | 590 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 590 | << "buffer must be naturally-aligned"; | 175 | 590 | _buffer.clear(); | 176 | 590 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 590 | _finished = false; | 178 | 590 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 590 | }); | 180 | 590 | return Status::OK(); | 181 | 590 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.01k | Status reset() override { | 167 | 1.01k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.01k | size_t block_size = _options.data_page_size; | 169 | 1.01k | _count = 0; | 170 | 1.01k | _raw_data_size = 0; | 171 | 1.01k | _data.clear(); | 172 | 1.01k | _data.reserve(block_size); | 173 | 1.01k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.01k | << "buffer must be naturally-aligned"; | 175 | 1.01k | _buffer.clear(); | 176 | 1.01k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.01k | _finished = false; | 178 | 1.01k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.01k | }); | 180 | 1.01k | return Status::OK(); | 181 | 1.01k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 14.9k | Status reset() override { | 167 | 14.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 14.9k | size_t block_size = _options.data_page_size; | 169 | 14.9k | _count = 0; | 170 | 14.9k | _raw_data_size = 0; | 171 | 14.9k | _data.clear(); | 172 | 14.9k | _data.reserve(block_size); | 173 | 14.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 14.9k | << "buffer must be naturally-aligned"; | 175 | 14.9k | _buffer.clear(); | 176 | 14.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 14.9k | _finished = false; | 178 | 14.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 14.9k | }); | 180 | 15.4k | return Status::OK(); | 181 | 14.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 562 | Status reset() override { | 167 | 562 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 562 | size_t block_size = _options.data_page_size; | 169 | 562 | _count = 0; | 170 | 562 | _raw_data_size = 0; | 171 | 562 | _data.clear(); | 172 | 562 | _data.reserve(block_size); | 173 | 562 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 562 | << "buffer must be naturally-aligned"; | 175 | 562 | _buffer.clear(); | 176 | 562 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 562 | _finished = false; | 178 | 562 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 562 | }); | 180 | 562 | return Status::OK(); | 181 | 562 | } |
_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.2k | Status reset() override { | 167 | 31.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.2k | size_t block_size = _options.data_page_size; | 169 | 31.2k | _count = 0; | 170 | 31.2k | _raw_data_size = 0; | 171 | 31.2k | _data.clear(); | 172 | 31.2k | _data.reserve(block_size); | 173 | 31.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.2k | << "buffer must be naturally-aligned"; | 175 | 31.2k | _buffer.clear(); | 176 | 31.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.2k | _finished = false; | 178 | 31.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.2k | }); | 180 | 31.2k | return Status::OK(); | 181 | 31.2k | } |
_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.31k | Status reset() override { | 167 | 2.31k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.31k | size_t block_size = _options.data_page_size; | 169 | 2.31k | _count = 0; | 170 | 2.31k | _raw_data_size = 0; | 171 | 2.31k | _data.clear(); | 172 | 2.31k | _data.reserve(block_size); | 173 | 2.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.31k | << "buffer must be naturally-aligned"; | 175 | 2.31k | _buffer.clear(); | 176 | 2.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.31k | _finished = false; | 178 | 2.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.31k | }); | 180 | 2.31k | return Status::OK(); | 181 | 2.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.31k | Status reset() override { | 167 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.31k | size_t block_size = _options.data_page_size; | 169 | 1.31k | _count = 0; | 170 | 1.31k | _raw_data_size = 0; | 171 | 1.31k | _data.clear(); | 172 | 1.31k | _data.reserve(block_size); | 173 | 1.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.31k | << "buffer must be naturally-aligned"; | 175 | 1.31k | _buffer.clear(); | 176 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.31k | _finished = false; | 178 | 1.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.31k | }); | 180 | 1.31k | return Status::OK(); | 181 | 1.31k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.31k | Status reset() override { | 167 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.31k | size_t block_size = _options.data_page_size; | 169 | 1.31k | _count = 0; | 170 | 1.31k | _raw_data_size = 0; | 171 | 1.31k | _data.clear(); | 172 | 1.31k | _data.reserve(block_size); | 173 | 1.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.31k | << "buffer must be naturally-aligned"; | 175 | 1.31k | _buffer.clear(); | 176 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.31k | _finished = false; | 178 | 1.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.31k | }); | 180 | 1.31k | return Status::OK(); | 181 | 1.31k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv |
184 | | |
185 | 38.6k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 20.3k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.62k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 1.00k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 3.29k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.32k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 908 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 642 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 641 | 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.69k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.39k | 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 | 292 | 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.23k | 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(); } |
|
186 | | |
187 | 544k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 53.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.36k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 187k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 11.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 64.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6.02k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.35k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 681 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 37.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 261 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 584 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.69k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 236 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.76k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.2k | 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.10k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 612 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 610 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 813k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 343k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 55.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 8.83k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 184k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 64.5k | : _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.43k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.55k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 669 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 329 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 431 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.36k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 326 | : _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 | 702 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 702 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 814k | OwnedSlice _finish(int final_size_of_type) { |
194 | 814k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 814k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 814k | int padding_elems = num_elems_after_padding - _count; |
199 | 814k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 25.5M | for (int i = 0; i < padding_bytes; i++) { |
201 | 24.6M | _data.push_back(0); |
202 | 24.6M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 814k | _buffer.resize( |
206 | 814k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 814k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 814k | int64_t bytes = |
210 | 814k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 814k | num_elems_after_padding, final_size_of_type, 0); |
212 | 814k | 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 | 814k | encode_fixed32_le(&_buffer[0], _count); |
222 | 814k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 814k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 814k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 814k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 814k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 814k | return _buffer.build(); |
229 | 814k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 336k | OwnedSlice _finish(int final_size_of_type) { | 194 | 336k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 336k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 336k | int padding_elems = num_elems_after_padding - _count; | 199 | 336k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.45M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.11M | _data.push_back(0); | 202 | 6.11M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 336k | _buffer.resize( | 206 | 336k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 336k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 336k | int64_t bytes = | 210 | 336k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 336k | num_elems_after_padding, final_size_of_type, 0); | 212 | 336k | 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 | 336k | encode_fixed32_le(&_buffer[0], _count); | 222 | 336k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 336k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 336k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 336k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 336k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 336k | return _buffer.build(); | 229 | 336k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 53.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 53.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 53.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 53.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 53.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 342k | for (int i = 0; i < padding_bytes; i++) { | 201 | 288k | _data.push_back(0); | 202 | 288k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 53.9k | _buffer.resize( | 206 | 53.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 53.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 53.9k | int64_t bytes = | 210 | 53.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 53.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 53.9k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 53.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 53.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 53.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 53.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 53.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 53.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 53.9k | return _buffer.build(); | 229 | 53.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 8.36k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.36k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.36k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.36k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.36k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 86.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 77.7k | _data.push_back(0); | 202 | 77.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.36k | _buffer.resize( | 206 | 8.36k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.36k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.36k | int64_t bytes = | 210 | 8.36k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.36k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.36k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 8.36k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.36k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.36k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.36k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.36k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.36k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.36k | return _buffer.build(); | 229 | 8.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 187k | OwnedSlice _finish(int final_size_of_type) { | 194 | 187k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 187k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 187k | int padding_elems = num_elems_after_padding - _count; | 199 | 187k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 9.22M | for (int i = 0; i < padding_bytes; i++) { | 201 | 9.03M | _data.push_back(0); | 202 | 9.03M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 187k | _buffer.resize( | 206 | 187k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 187k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 187k | int64_t bytes = | 210 | 187k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 187k | num_elems_after_padding, final_size_of_type, 0); | 212 | 187k | 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 | 187k | encode_fixed32_le(&_buffer[0], _count); | 222 | 187k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 187k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 187k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 187k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 187k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 187k | return _buffer.build(); | 229 | 187k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 11.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 11.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 11.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 11.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 11.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 805k | for (int i = 0; i < padding_bytes; i++) { | 201 | 794k | _data.push_back(0); | 202 | 794k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 11.3k | _buffer.resize( | 206 | 11.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 11.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 11.3k | int64_t bytes = | 210 | 11.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 11.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 11.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 | 11.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 11.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 11.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 11.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 11.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 11.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 11.3k | return _buffer.build(); | 229 | 11.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 64.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 64.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 64.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 64.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 64.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.12M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.05M | _data.push_back(0); | 202 | 3.05M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 64.4k | _buffer.resize( | 206 | 64.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 64.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 64.4k | int64_t bytes = | 210 | 64.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 64.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 64.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 64.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 64.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 64.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 64.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 64.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 64.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 64.4k | return _buffer.build(); | 229 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 6.02k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.02k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.02k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.02k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.02k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 125k | for (int i = 0; i < padding_bytes; i++) { | 201 | 119k | _data.push_back(0); | 202 | 119k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.02k | _buffer.resize( | 206 | 6.02k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.02k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.02k | int64_t bytes = | 210 | 6.02k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.02k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.02k | 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.02k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.02k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.02k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.02k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.02k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.02k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.02k | return _buffer.build(); | 229 | 6.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 7.35k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.35k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.35k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.35k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.35k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 300k | for (int i = 0; i < padding_bytes; i++) { | 201 | 293k | _data.push_back(0); | 202 | 293k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.35k | _buffer.resize( | 206 | 7.35k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.35k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.35k | int64_t bytes = | 210 | 7.35k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.35k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.35k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.35k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.35k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.35k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.35k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.35k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.35k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.35k | return _buffer.build(); | 229 | 7.35k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 681 | OwnedSlice _finish(int final_size_of_type) { | 194 | 681 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 681 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 681 | int padding_elems = num_elems_after_padding - _count; | 199 | 681 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.2k | _data.push_back(0); | 202 | 11.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 681 | _buffer.resize( | 206 | 681 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 681 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 681 | int64_t bytes = | 210 | 681 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 681 | num_elems_after_padding, final_size_of_type, 0); | 212 | 681 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 681 | encode_fixed32_le(&_buffer[0], _count); | 222 | 681 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 681 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 681 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 681 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 681 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 681 | return _buffer.build(); | 229 | 681 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 37.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 37.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 37.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 37.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 37.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 799k | for (int i = 0; i < padding_bytes; i++) { | 201 | 761k | _data.push_back(0); | 202 | 761k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 37.9k | _buffer.resize( | 206 | 37.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 37.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 37.9k | int64_t bytes = | 210 | 37.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 37.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 37.9k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 37.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 37.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 37.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 37.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 37.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 37.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 37.9k | return _buffer.build(); | 229 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.81M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.77M | _data.push_back(0); | 202 | 1.77M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.2k | _buffer.resize( | 206 | 43.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.2k | int64_t bytes = | 210 | 43.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.2k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.2k | return _buffer.build(); | 229 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 261 | OwnedSlice _finish(int final_size_of_type) { | 194 | 261 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 261 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 261 | int padding_elems = num_elems_after_padding - _count; | 199 | 261 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 10.9k | _data.push_back(0); | 202 | 10.9k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 261 | _buffer.resize( | 206 | 261 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 261 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 261 | int64_t bytes = | 210 | 261 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 261 | num_elems_after_padding, final_size_of_type, 0); | 212 | 261 | 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 | 261 | encode_fixed32_le(&_buffer[0], _count); | 222 | 261 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 261 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 261 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 261 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 261 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 261 | return _buffer.build(); | 229 | 261 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 584 | OwnedSlice _finish(int final_size_of_type) { | 194 | 584 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 584 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 584 | int padding_elems = num_elems_after_padding - _count; | 199 | 584 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.6k | _data.push_back(0); | 202 | 12.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 584 | _buffer.resize( | 206 | 584 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 584 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 584 | int64_t bytes = | 210 | 584 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 584 | num_elems_after_padding, final_size_of_type, 0); | 212 | 584 | 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 | 584 | encode_fixed32_le(&_buffer[0], _count); | 222 | 584 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 584 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 584 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 584 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 584 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 584 | return _buffer.build(); | 229 | 584 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.67k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.67k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.67k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.67k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.67k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 399k | for (int i = 0; i < padding_bytes; i++) { | 201 | 392k | _data.push_back(0); | 202 | 392k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.67k | _buffer.resize( | 206 | 7.67k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.67k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.67k | int64_t bytes = | 210 | 7.67k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.67k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.67k | 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.67k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.67k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.67k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.67k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.67k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.67k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.67k | return _buffer.build(); | 229 | 7.67k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 236 | OwnedSlice _finish(int final_size_of_type) { | 194 | 236 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 236 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 236 | int padding_elems = num_elems_after_padding - _count; | 199 | 236 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 14.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 14.4k | _data.push_back(0); | 202 | 14.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 236 | _buffer.resize( | 206 | 236 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 236 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 236 | int64_t bytes = | 210 | 236 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 236 | num_elems_after_padding, final_size_of_type, 0); | 212 | 236 | 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 | 236 | encode_fixed32_le(&_buffer[0], _count); | 222 | 236 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 236 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 236 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 236 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 236 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 236 | return _buffer.build(); | 229 | 236 | } |
_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 | 109k | _data.push_back(0); | 202 | 109k | } | 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.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 488k | for (int i = 0; i < padding_bytes; i++) { | 201 | 469k | _data.push_back(0); | 202 | 469k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.2k | _buffer.resize( | 206 | 19.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.2k | int64_t bytes = | 210 | 19.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.2k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 19.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.2k | return _buffer.build(); | 229 | 19.2k | } |
_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.10k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.10k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.10k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.10k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.10k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 173k | for (int i = 0; i < padding_bytes; i++) { | 201 | 171k | _data.push_back(0); | 202 | 171k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.10k | _buffer.resize( | 206 | 1.10k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.10k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.10k | int64_t bytes = | 210 | 1.10k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.10k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.10k | 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.10k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.10k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.10k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.10k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.10k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.10k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.10k | return _buffer.build(); | 229 | 1.10k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 613 | OwnedSlice _finish(int final_size_of_type) { | 194 | 613 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 613 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 613 | int padding_elems = num_elems_after_padding - _count; | 199 | 613 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.5k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.9k | _data.push_back(0); | 202 | 11.9k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 613 | _buffer.resize( | 206 | 613 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 613 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 613 | int64_t bytes = | 210 | 613 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 613 | num_elems_after_padding, final_size_of_type, 0); | 212 | 613 | 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 | 613 | encode_fixed32_le(&_buffer[0], _count); | 222 | 613 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 613 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 613 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 613 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 613 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 613 | return _buffer.build(); | 229 | 613 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 610 | OwnedSlice _finish(int final_size_of_type) { | 194 | 610 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 610 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 610 | int padding_elems = num_elems_after_padding - _count; | 199 | 610 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 49.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.0k | _data.push_back(0); | 202 | 49.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 610 | _buffer.resize( | 206 | 610 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 610 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 610 | int64_t bytes = | 210 | 610 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 610 | num_elems_after_padding, final_size_of_type, 0); | 212 | 610 | 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 | 610 | encode_fixed32_le(&_buffer[0], _count); | 222 | 610 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 610 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 610 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 610 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 610 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 610 | return _buffer.build(); | 229 | 610 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 2.27M | int& size_of_element) { |
253 | 2.27M | 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.27M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.27M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.27M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.27M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.27M | 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.27M | switch (size_of_element) { |
271 | 200k | case 1: |
272 | 234k | case 2: |
273 | 240k | case 3: |
274 | 1.46M | case 4: |
275 | 2.16M | case 8: |
276 | 2.17M | case 12: |
277 | 2.27M | case 16: |
278 | 2.27M | case 32: |
279 | 2.27M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.27M | } |
283 | 2.27M | return Status::OK(); |
284 | 2.27M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.13M | : _data(data), |
291 | 1.13M | _options(options), |
292 | 1.13M | _parsed(false), |
293 | 1.13M | _num_elements(0), |
294 | 1.13M | _num_element_after_padding(0), |
295 | 1.13M | _size_of_element(0), |
296 | 1.13M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 524k | : _data(data), | 291 | 524k | _options(options), | 292 | 524k | _parsed(false), | 293 | 524k | _num_elements(0), | 294 | 524k | _num_element_after_padding(0), | 295 | 524k | _size_of_element(0), | 296 | 524k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 100k | : _data(data), | 291 | 100k | _options(options), | 292 | 100k | _parsed(false), | 293 | 100k | _num_elements(0), | 294 | 100k | _num_element_after_padding(0), | 295 | 100k | _size_of_element(0), | 296 | 100k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 17.3k | : _data(data), | 291 | 17.3k | _options(options), | 292 | 17.3k | _parsed(false), | 293 | 17.3k | _num_elements(0), | 294 | 17.3k | _num_element_after_padding(0), | 295 | 17.3k | _size_of_element(0), | 296 | 17.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 118k | : _data(data), | 291 | 118k | _options(options), | 292 | 118k | _parsed(false), | 293 | 118k | _num_elements(0), | 294 | 118k | _num_element_after_padding(0), | 295 | 118k | _size_of_element(0), | 296 | 118k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.5k | : _data(data), | 291 | 16.5k | _options(options), | 292 | 16.5k | _parsed(false), | 293 | 16.5k | _num_elements(0), | 294 | 16.5k | _num_element_after_padding(0), | 295 | 16.5k | _size_of_element(0), | 296 | 16.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 87.0k | : _data(data), | 291 | 87.0k | _options(options), | 292 | 87.0k | _parsed(false), | 293 | 87.0k | _num_elements(0), | 294 | 87.0k | _num_element_after_padding(0), | 295 | 87.0k | _size_of_element(0), | 296 | 87.0k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 9.77k | : _data(data), | 291 | 9.77k | _options(options), | 292 | 9.77k | _parsed(false), | 293 | 9.77k | _num_elements(0), | 294 | 9.77k | _num_element_after_padding(0), | 295 | 9.77k | _size_of_element(0), | 296 | 9.77k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 13.8k | : _data(data), | 291 | 13.8k | _options(options), | 292 | 13.8k | _parsed(false), | 293 | 13.8k | _num_elements(0), | 294 | 13.8k | _num_element_after_padding(0), | 295 | 13.8k | _size_of_element(0), | 296 | 13.8k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.75k | : _data(data), | 291 | 2.75k | _options(options), | 292 | 2.75k | _parsed(false), | 293 | 2.75k | _num_elements(0), | 294 | 2.75k | _num_element_after_padding(0), | 295 | 2.75k | _size_of_element(0), | 296 | 2.75k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 61.7k | : _data(data), | 291 | 61.7k | _options(options), | 292 | 61.7k | _parsed(false), | 293 | 61.7k | _num_elements(0), | 294 | 61.7k | _num_element_after_padding(0), | 295 | 61.7k | _size_of_element(0), | 296 | 61.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 68.9k | : _data(data), | 291 | 68.9k | _options(options), | 292 | 68.9k | _parsed(false), | 293 | 68.9k | _num_elements(0), | 294 | 68.9k | _num_element_after_padding(0), | 295 | 68.9k | _size_of_element(0), | 296 | 68.9k | _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 | 3.18k | : _data(data), | 291 | 3.18k | _options(options), | 292 | 3.18k | _parsed(false), | 293 | 3.18k | _num_elements(0), | 294 | 3.18k | _num_element_after_padding(0), | 295 | 3.18k | _size_of_element(0), | 296 | 3.18k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.9k | : _data(data), | 291 | 15.9k | _options(options), | 292 | 15.9k | _parsed(false), | 293 | 15.9k | _num_elements(0), | 294 | 15.9k | _num_element_after_padding(0), | 295 | 15.9k | _size_of_element(0), | 296 | 15.9k | _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.4k | : _data(data), | 291 | 15.4k | _options(options), | 292 | 15.4k | _parsed(false), | 293 | 15.4k | _num_elements(0), | 294 | 15.4k | _num_element_after_padding(0), | 295 | 15.4k | _size_of_element(0), | 296 | 15.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 42.6k | : _data(data), | 291 | 42.6k | _options(options), | 292 | 42.6k | _parsed(false), | 293 | 42.6k | _num_elements(0), | 294 | 42.6k | _num_element_after_padding(0), | 295 | 42.6k | _size_of_element(0), | 296 | 42.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 32.4k | : _data(data), | 291 | 32.4k | _options(options), | 292 | 32.4k | _parsed(false), | 293 | 32.4k | _num_elements(0), | 294 | 32.4k | _num_element_after_padding(0), | 295 | 32.4k | _size_of_element(0), | 296 | 32.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.71k | : _data(data), | 291 | 1.71k | _options(options), | 292 | 1.71k | _parsed(false), | 293 | 1.71k | _num_elements(0), | 294 | 1.71k | _num_element_after_padding(0), | 295 | 1.71k | _size_of_element(0), | 296 | 1.71k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 921 | : _data(data), | 291 | 921 | _options(options), | 292 | 921 | _parsed(false), | 293 | 921 | _num_elements(0), | 294 | 921 | _num_element_after_padding(0), | 295 | 921 | _size_of_element(0), | 296 | 921 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 960 | : _data(data), | 291 | 960 | _options(options), | 292 | 960 | _parsed(false), | 293 | 960 | _num_elements(0), | 294 | 960 | _num_element_after_padding(0), | 295 | 960 | _size_of_element(0), | 296 | 960 | _cur_index(0) {} |
|
297 | | |
298 | 1.13M | Status init() override { |
299 | 1.13M | CHECK(!_parsed); |
300 | 1.13M | size_t unused; |
301 | 1.13M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.13M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.13M | if (_data.size != |
305 | 1.13M | _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.13M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.13M | _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.13M | 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.13M | _parsed = true; |
325 | 1.13M | return Status::OK(); |
326 | 1.13M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 521k | Status init() override { | 299 | 521k | CHECK(!_parsed); | 300 | 521k | size_t unused; | 301 | 521k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 521k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 521k | if (_data.size != | 305 | 521k | _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 | 521k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 521k | _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 | 521k | 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 | 521k | _parsed = true; | 325 | 521k | return Status::OK(); | 326 | 521k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 99.6k | Status init() override { | 299 | 99.6k | CHECK(!_parsed); | 300 | 99.6k | size_t unused; | 301 | 99.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 99.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 99.6k | if (_data.size != | 305 | 99.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 | 99.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 99.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 | 99.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 | 99.6k | _parsed = true; | 325 | 99.6k | return Status::OK(); | 326 | 99.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 17.2k | Status init() override { | 299 | 17.2k | CHECK(!_parsed); | 300 | 17.2k | size_t unused; | 301 | 17.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 17.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 17.2k | if (_data.size != | 305 | 17.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 | 17.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 17.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 | 17.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 | 17.2k | _parsed = true; | 325 | 17.2k | return Status::OK(); | 326 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 117k | Status init() override { | 299 | 117k | CHECK(!_parsed); | 300 | 117k | size_t unused; | 301 | 117k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 117k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 117k | if (_data.size != | 305 | 117k | _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 | 117k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 117k | _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 | 117k | 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 | 117k | _parsed = true; | 325 | 117k | return Status::OK(); | 326 | 117k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 16.4k | Status init() override { | 299 | 16.4k | CHECK(!_parsed); | 300 | 16.4k | size_t unused; | 301 | 16.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.4k | if (_data.size != | 305 | 16.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 | 16.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.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 | 16.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 | 16.4k | _parsed = true; | 325 | 16.4k | return Status::OK(); | 326 | 16.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 86.7k | Status init() override { | 299 | 86.7k | CHECK(!_parsed); | 300 | 86.7k | size_t unused; | 301 | 86.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 86.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 86.7k | if (_data.size != | 305 | 86.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 86.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 86.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 86.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 86.7k | _parsed = true; | 325 | 86.7k | return Status::OK(); | 326 | 86.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 9.74k | Status init() override { | 299 | 9.74k | CHECK(!_parsed); | 300 | 9.74k | size_t unused; | 301 | 9.74k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 9.74k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 9.74k | if (_data.size != | 305 | 9.74k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 9.74k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 9.74k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 9.74k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 9.74k | _parsed = true; | 325 | 9.74k | return Status::OK(); | 326 | 9.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 13.8k | Status init() override { | 299 | 13.8k | CHECK(!_parsed); | 300 | 13.8k | size_t unused; | 301 | 13.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 13.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 13.8k | if (_data.size != | 305 | 13.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 | 13.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 13.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 | 13.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 | 13.8k | _parsed = true; | 325 | 13.8k | return Status::OK(); | 326 | 13.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 2.75k | Status init() override { | 299 | 2.75k | CHECK(!_parsed); | 300 | 2.75k | size_t unused; | 301 | 2.75k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.75k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.75k | if (_data.size != | 305 | 2.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 | 2.75k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.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 | 2.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 | 2.75k | _parsed = true; | 325 | 2.75k | return Status::OK(); | 326 | 2.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 61.4k | Status init() override { | 299 | 61.4k | CHECK(!_parsed); | 300 | 61.4k | size_t unused; | 301 | 61.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 61.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 61.4k | if (_data.size != | 305 | 61.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 | 61.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 61.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 | 61.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 | 61.4k | _parsed = true; | 325 | 61.4k | return Status::OK(); | 326 | 61.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 68.7k | Status init() override { | 299 | 68.7k | CHECK(!_parsed); | 300 | 68.7k | size_t unused; | 301 | 68.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 68.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 68.7k | if (_data.size != | 305 | 68.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 68.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 68.7k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 68.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 68.7k | _parsed = true; | 325 | 68.7k | return Status::OK(); | 326 | 68.7k | } |
_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 | 3.17k | Status init() override { | 299 | 3.17k | CHECK(!_parsed); | 300 | 3.17k | size_t unused; | 301 | 3.17k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.17k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.17k | if (_data.size != | 305 | 3.17k | _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.17k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.17k | _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.17k | 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.17k | _parsed = true; | 325 | 3.17k | return Status::OK(); | 326 | 3.17k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 15.8k | Status init() override { | 299 | 15.8k | CHECK(!_parsed); | 300 | 15.8k | size_t unused; | 301 | 15.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.8k | if (_data.size != | 305 | 15.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.8k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.8k | _parsed = true; | 325 | 15.8k | return Status::OK(); | 326 | 15.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_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 | 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.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.4k | Status init() override { | 299 | 15.4k | CHECK(!_parsed); | 300 | 15.4k | size_t unused; | 301 | 15.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.4k | if (_data.size != | 305 | 15.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 | 15.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.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 | 15.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 | 15.4k | _parsed = true; | 325 | 15.4k | return Status::OK(); | 326 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 42.5k | Status init() override { | 299 | 42.5k | CHECK(!_parsed); | 300 | 42.5k | size_t unused; | 301 | 42.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 42.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 42.5k | if (_data.size != | 305 | 42.5k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 42.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 42.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 | 42.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 | 42.5k | _parsed = true; | 325 | 42.5k | return Status::OK(); | 326 | 42.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 32.4k | Status init() override { | 299 | 32.4k | CHECK(!_parsed); | 300 | 32.4k | size_t unused; | 301 | 32.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 32.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 32.4k | if (_data.size != | 305 | 32.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 | 32.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 32.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 | 32.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 | 32.4k | _parsed = true; | 325 | 32.4k | return Status::OK(); | 326 | 32.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.70k | Status init() override { | 299 | 1.70k | CHECK(!_parsed); | 300 | 1.70k | size_t unused; | 301 | 1.70k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.70k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.70k | if (_data.size != | 305 | 1.70k | _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.70k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.70k | _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.70k | 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.70k | _parsed = true; | 325 | 1.70k | return Status::OK(); | 326 | 1.70k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 919 | Status init() override { | 299 | 919 | CHECK(!_parsed); | 300 | 919 | size_t unused; | 301 | 919 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 919 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 919 | if (_data.size != | 305 | 919 | _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 | 919 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 919 | _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 | 919 | 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 | 919 | _parsed = true; | 325 | 919 | return Status::OK(); | 326 | 919 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 954 | Status init() override { | 299 | 954 | CHECK(!_parsed); | 300 | 954 | size_t unused; | 301 | 954 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 954 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 954 | if (_data.size != | 305 | 954 | _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 | 954 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 954 | _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 | 954 | 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 | 954 | _parsed = true; | 325 | 954 | return Status::OK(); | 326 | 954 | } |
|
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 | 2.52M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 2.52M | if (_num_elements == 0) [[unlikely]] { |
337 | 3.67k | 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.67k | } |
342 | | |
343 | 2.52M | DCHECK_LE(pos, _num_elements); |
344 | 2.52M | _cur_index = pos; |
345 | 2.52M | return Status::OK(); |
346 | 2.52M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.14M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.14M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.68k | 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.68k | } | 342 | | | 343 | 1.14M | DCHECK_LE(pos, _num_elements); | 344 | 1.14M | _cur_index = pos; | 345 | 1.14M | return Status::OK(); | 346 | 1.14M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 68.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 68.1k | if (_num_elements == 0) [[unlikely]] { | 337 | 446 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 446 | } | 342 | | | 343 | 68.1k | DCHECK_LE(pos, _num_elements); | 344 | 68.1k | _cur_index = pos; | 345 | 68.1k | return Status::OK(); | 346 | 68.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.32k | Status seek_to_position_in_page(size_t pos) override { | 335 | 2.32k | DCHECK(_parsed) << "Must call init()"; | 336 | 2.32k | 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 | 2.32k | DCHECK_LE(pos, _num_elements); | 344 | 2.32k | _cur_index = pos; | 345 | 2.32k | return Status::OK(); | 346 | 2.32k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 52.8k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 52.8k | if (_num_elements == 0) [[unlikely]] { | 337 | 912 | 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 | 912 | } | 342 | | | 343 | 52.8k | DCHECK_LE(pos, _num_elements); | 344 | 52.8k | _cur_index = pos; | 345 | 52.8k | return Status::OK(); | 346 | 52.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 5.78k | Status seek_to_position_in_page(size_t pos) override { | 335 | 5.78k | DCHECK(_parsed) << "Must call init()"; | 336 | 5.78k | 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 | 5.78k | DCHECK_LE(pos, _num_elements); | 344 | 5.78k | _cur_index = pos; | 345 | 5.78k | return Status::OK(); | 346 | 5.78k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 12.0k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | 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 | 478 | Status seek_to_position_in_page(size_t pos) override { | 335 | 478 | DCHECK(_parsed) << "Must call init()"; | 336 | 478 | 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 | 478 | DCHECK_LE(pos, _num_elements); | 344 | 478 | _cur_index = pos; | 345 | 478 | return Status::OK(); | 346 | 478 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.46k | Status seek_to_position_in_page(size_t pos) override { | 335 | 2.46k | DCHECK(_parsed) << "Must call init()"; | 336 | 2.46k | if (_num_elements == 0) [[unlikely]] { | 337 | 2 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 2 | } | 342 | | | 343 | 2.46k | DCHECK_LE(pos, _num_elements); | 344 | 2.46k | _cur_index = pos; | 345 | 2.46k | return Status::OK(); | 346 | 2.46k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 232k | Status seek_to_position_in_page(size_t pos) override { | 335 | 232k | DCHECK(_parsed) << "Must call init()"; | 336 | 232k | 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 | 232k | DCHECK_LE(pos, _num_elements); | 344 | 232k | _cur_index = pos; | 345 | 232k | return Status::OK(); | 346 | 232k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 525k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 525k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 197 | } | 342 | | | 343 | 525k | DCHECK_LE(pos, _num_elements); | 344 | 525k | _cur_index = pos; | 345 | 525k | return Status::OK(); | 346 | 525k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 93.9k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 93.9k | 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 | 93.9k | DCHECK_LE(pos, _num_elements); | 344 | 93.9k | _cur_index = pos; | 345 | 93.9k | return Status::OK(); | 346 | 93.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 944 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 944 | 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 | 944 | DCHECK_LE(pos, _num_elements); | 344 | 944 | _cur_index = pos; | 345 | 944 | return Status::OK(); | 346 | 944 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 215k | Status seek_to_position_in_page(size_t pos) override { | 335 | 215k | DCHECK(_parsed) << "Must call init()"; | 336 | 215k | 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 | 215k | DCHECK_LE(pos, _num_elements); | 344 | 215k | _cur_index = pos; | 345 | 215k | return Status::OK(); | 346 | 215k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.83k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 6.83k | if (_num_elements == 0) [[unlikely]] { | 337 | 356 | 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 | 356 | } | 342 | | | 343 | 6.83k | DCHECK_LE(pos, _num_elements); | 344 | 6.83k | _cur_index = pos; | 345 | 6.83k | return Status::OK(); | 346 | 6.83k | } |
_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 | 876 | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 876 | if (_num_elements == 0) [[unlikely]] { | 337 | 25 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 25 | } | 342 | | | 343 | 876 | DCHECK_LE(pos, _num_elements); | 344 | 876 | _cur_index = pos; | 345 | 876 | return Status::OK(); | 346 | 876 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.4k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 18.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 | 18.4k | DCHECK_LE(pos, _num_elements); | 344 | 18.4k | _cur_index = pos; | 345 | 18.4k | return Status::OK(); | 346 | 18.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 137k | Status seek_to_position_in_page(size_t pos) override { | 335 | 137k | DCHECK(_parsed) << "Must call init()"; | 336 | 137k | 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 | 137k | DCHECK_LE(pos, _num_elements); | 344 | 137k | _cur_index = pos; | 345 | 137k | return Status::OK(); | 346 | 137k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.93k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.93k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.93k | 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.93k | DCHECK_LE(pos, _num_elements); | 344 | 1.93k | _cur_index = pos; | 345 | 1.93k | return Status::OK(); | 346 | 1.93k | } |
_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 | 30 | Status seek_to_position_in_page(size_t pos) override { | 335 | 30 | DCHECK(_parsed) << "Must call init()"; | 336 | 30 | 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 | 30 | DCHECK_LE(pos, _num_elements); | 344 | 30 | _cur_index = pos; | 345 | 30 | return Status::OK(); | 346 | 30 | } |
|
347 | | |
348 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | |
|
351 | 0 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 0 | size_t left = 0; |
356 | 0 | size_t right = _num_elements; |
357 | |
|
358 | 0 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 0 | while (left < right) { |
364 | 0 | size_t mid = left + (right - left) / 2; |
365 | 0 | mid_value = get_data(mid); |
366 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 0 | left = mid + 1; |
368 | 0 | } else { |
369 | 0 | right = mid; |
370 | 0 | } |
371 | 0 | } |
372 | 0 | if (left >= _num_elements) { |
373 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 0 | } |
375 | 0 | void* find_value = get_data(left); |
376 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 0 | *exact_match = true; |
378 | 0 | } else { |
379 | 0 | *exact_match = false; |
380 | 0 | } |
381 | |
|
382 | 0 | _cur_index = left; |
383 | 0 | return Status::OK(); |
384 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb |
385 | | |
386 | | template <bool forward_index = true> |
387 | 1.73M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.73M | DCHECK(_parsed); |
389 | 1.73M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.73M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.73M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.73M | *n = max_fetch; |
398 | 1.73M | if constexpr (forward_index) { |
399 | 1.53M | _cur_index += max_fetch; |
400 | 1.53M | } |
401 | | |
402 | 1.73M | return Status::OK(); |
403 | 1.73M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 485k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 485k | DCHECK(_parsed); | 389 | 486k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 485k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 485k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 485k | *n = max_fetch; | 398 | 485k | if constexpr (forward_index) { | 399 | 485k | _cur_index += max_fetch; | 400 | 485k | } | 401 | | | 402 | 485k | return Status::OK(); | 403 | 485k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 202k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 202k | DCHECK(_parsed); | 389 | 202k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 202k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 202k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 202k | *n = max_fetch; | 398 | 202k | if constexpr (forward_index) { | 399 | 202k | _cur_index += max_fetch; | 400 | 202k | } | 401 | | | 402 | 202k | return Status::OK(); | 403 | 202k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.1k | DCHECK(_parsed); | 389 | 16.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.1k | *n = max_fetch; | 398 | 16.1k | if constexpr (forward_index) { | 399 | 16.1k | _cur_index += max_fetch; | 400 | 16.1k | } | 401 | | | 402 | 16.1k | return Status::OK(); | 403 | 16.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 100k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 100k | DCHECK(_parsed); | 389 | 100k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 100k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 100k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 100k | *n = max_fetch; | 398 | 100k | if constexpr (forward_index) { | 399 | 100k | _cur_index += max_fetch; | 400 | 100k | } | 401 | | | 402 | 100k | return Status::OK(); | 403 | 100k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.3k | DCHECK(_parsed); | 389 | 16.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.3k | *n = max_fetch; | 398 | 16.3k | if constexpr (forward_index) { | 399 | 16.3k | _cur_index += max_fetch; | 400 | 16.3k | } | 401 | | | 402 | 16.3k | return Status::OK(); | 403 | 16.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 147k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 147k | DCHECK(_parsed); | 389 | 147k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 147k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 147k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 147k | *n = max_fetch; | 398 | 147k | if constexpr (forward_index) { | 399 | 147k | _cur_index += max_fetch; | 400 | 147k | } | 401 | | | 402 | 147k | return Status::OK(); | 403 | 147k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 198k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 198k | DCHECK(_parsed); | 389 | 198k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 198k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 198k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 198k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 198k | return Status::OK(); | 403 | 198k | } |
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 | 7.82k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.82k | DCHECK(_parsed); | 389 | 7.82k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.82k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.82k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.82k | *n = max_fetch; | 398 | 7.82k | if constexpr (forward_index) { | 399 | 7.82k | _cur_index += max_fetch; | 400 | 7.82k | } | 401 | | | 402 | 7.82k | return Status::OK(); | 403 | 7.82k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 11.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.8k | DCHECK(_parsed); | 389 | 11.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.8k | *n = max_fetch; | 398 | 11.8k | if constexpr (forward_index) { | 399 | 11.8k | _cur_index += max_fetch; | 400 | 11.8k | } | 401 | | | 402 | 11.8k | return Status::OK(); | 403 | 11.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 4.66k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 4.66k | DCHECK(_parsed); | 389 | 4.66k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 4.66k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 4.66k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 4.66k | *n = max_fetch; | 398 | 4.66k | if constexpr (forward_index) { | 399 | 4.66k | _cur_index += max_fetch; | 400 | 4.66k | } | 401 | | | 402 | 4.66k | return Status::OK(); | 403 | 4.66k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 386k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 386k | DCHECK(_parsed); | 389 | 386k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 386k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 386k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 386k | *n = max_fetch; | 398 | 386k | if constexpr (forward_index) { | 399 | 386k | _cur_index += max_fetch; | 400 | 386k | } | 401 | | | 402 | 386k | return Status::OK(); | 403 | 386k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 74.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 74.5k | DCHECK(_parsed); | 389 | 74.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 74.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 74.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 74.5k | *n = max_fetch; | 398 | 74.5k | if constexpr (forward_index) { | 399 | 74.5k | _cur_index += max_fetch; | 400 | 74.5k | } | 401 | | | 402 | 74.5k | return Status::OK(); | 403 | 74.5k | } |
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.15k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.15k | DCHECK(_parsed); | 389 | 2.15k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.15k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.15k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.15k | *n = max_fetch; | 398 | 2.15k | if constexpr (forward_index) { | 399 | 2.15k | _cur_index += max_fetch; | 400 | 2.15k | } | 401 | | | 402 | 2.15k | return Status::OK(); | 403 | 2.15k | } |
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.94k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.94k | DCHECK(_parsed); | 389 | 1.94k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.94k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.94k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.94k | *n = max_fetch; | 398 | 1.94k | if constexpr (forward_index) { | 399 | 1.94k | _cur_index += max_fetch; | 400 | 1.94k | } | 401 | | | 402 | 1.94k | return Status::OK(); | 403 | 1.94k | } |
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.95k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.95k | DCHECK(_parsed); | 389 | 7.95k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.95k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.95k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.95k | *n = max_fetch; | 398 | 7.95k | if constexpr (forward_index) { | 399 | 7.95k | _cur_index += max_fetch; | 400 | 7.95k | } | 401 | | | 402 | 7.95k | return Status::OK(); | 403 | 7.95k | } |
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.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.23k | DCHECK(_parsed); | 389 | 1.23k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.23k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.23k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.23k | *n = max_fetch; | 398 | 1.23k | if constexpr (forward_index) { | 399 | 1.23k | _cur_index += max_fetch; | 400 | 1.23k | } | 401 | | | 402 | 1.23k | return Status::OK(); | 403 | 1.23k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.87k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.87k | DCHECK(_parsed); | 389 | 9.87k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.87k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.87k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.87k | *n = max_fetch; | 398 | 9.87k | if constexpr (forward_index) { | 399 | 9.87k | _cur_index += max_fetch; | 400 | 9.87k | } | 401 | | | 402 | 9.87k | return Status::OK(); | 403 | 9.87k | } |
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.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 33.0k | DCHECK(_parsed); | 389 | 33.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 33.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 33.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 33.0k | *n = max_fetch; | 398 | 33.0k | if constexpr (forward_index) { | 399 | 33.0k | _cur_index += max_fetch; | 400 | 33.0k | } | 401 | | | 402 | 33.0k | return Status::OK(); | 403 | 33.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 24.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 24.0k | DCHECK(_parsed); | 389 | 24.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 24.0k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 24.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 24.0k | *n = max_fetch; | 398 | 24.0k | if constexpr (forward_index) { | 399 | 24.0k | _cur_index += max_fetch; | 400 | 24.0k | } | 401 | | | 402 | 24.0k | return Status::OK(); | 403 | 24.0k | } |
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.11k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.11k | DCHECK(_parsed); | 389 | 3.11k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.11k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.11k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.11k | *n = max_fetch; | 398 | 3.11k | if constexpr (forward_index) { | 399 | 3.11k | _cur_index += max_fetch; | 400 | 3.11k | } | 401 | | | 402 | 3.11k | return Status::OK(); | 403 | 3.11k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 628 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 628 | DCHECK(_parsed); | 389 | 629 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 628 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 628 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 628 | *n = max_fetch; | 398 | 628 | if constexpr (forward_index) { | 399 | 628 | _cur_index += max_fetch; | 400 | 628 | } | 401 | | | 402 | 628 | return Status::OK(); | 403 | 628 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 648 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 648 | DCHECK(_parsed); | 389 | 649 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 648 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 648 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 648 | *n = max_fetch; | 398 | 648 | if constexpr (forward_index) { | 399 | 648 | _cur_index += max_fetch; | 400 | 648 | } | 401 | | | 402 | 648 | return Status::OK(); | 403 | 648 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.53M | 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 | 485k | 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 | 202k | 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 | 16.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 100k | 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 | 16.3k | 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 | 148k | 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 | 7.82k | 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 | 11.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 4.66k | 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 | 385k | 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 | 74.6k | 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.15k | 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.94k | 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.95k | 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.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 9.87k | 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 | 24.0k | 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.11k | 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 | 628 | 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 | 651 | 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 | 347k | MutableColumnPtr& dst) override { |
409 | 347k | DCHECK(_parsed); |
410 | 347k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 347k | auto total = *n; |
416 | 347k | auto read_count = 0; |
417 | 347k | _buffer.resize(total); |
418 | 77.1M | for (size_t i = 0; i < total; ++i) { |
419 | 76.8M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 76.8M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 12.6k | break; |
422 | 12.6k | } |
423 | | |
424 | 76.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 76.8M | } |
426 | | |
427 | 348k | if (LIKELY(read_count > 0)) { |
428 | 348k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 348k | } |
430 | | |
431 | 347k | *n = read_count; |
432 | 347k | return Status::OK(); |
433 | 347k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 73.4k | MutableColumnPtr& dst) override { | 409 | 73.4k | DCHECK(_parsed); | 410 | 73.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 73.4k | auto total = *n; | 416 | 73.4k | auto read_count = 0; | 417 | 73.4k | _buffer.resize(total); | 418 | 23.8M | for (size_t i = 0; i < total; ++i) { | 419 | 23.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 23.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 3.18k | break; | 422 | 3.18k | } | 423 | | | 424 | 23.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 23.8M | } | 426 | | | 427 | 73.5k | if (LIKELY(read_count > 0)) { | 428 | 73.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 73.5k | } | 430 | | | 431 | 73.4k | *n = read_count; | 432 | 73.4k | return Status::OK(); | 433 | 73.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 33.6k | MutableColumnPtr& dst) override { | 409 | 33.6k | DCHECK(_parsed); | 410 | 33.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 33.6k | auto total = *n; | 416 | 33.6k | auto read_count = 0; | 417 | 33.6k | _buffer.resize(total); | 418 | 1.03M | for (size_t i = 0; i < total; ++i) { | 419 | 1.00M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.00M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 142 | break; | 422 | 142 | } | 423 | | | 424 | 1.00M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.00M | } | 426 | | | 427 | 33.6k | if (LIKELY(read_count > 0)) { | 428 | 33.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 33.6k | } | 430 | | | 431 | 33.6k | *n = read_count; | 432 | 33.6k | return Status::OK(); | 433 | 33.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.40k | MutableColumnPtr& dst) override { | 409 | 6.40k | DCHECK(_parsed); | 410 | 6.40k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.40k | auto total = *n; | 416 | 6.40k | auto read_count = 0; | 417 | 6.40k | _buffer.resize(total); | 418 | 44.4k | for (size_t i = 0; i < total; ++i) { | 419 | 38.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 38.0k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 38.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 38.0k | } | 426 | | | 427 | 6.41k | if (LIKELY(read_count > 0)) { | 428 | 6.41k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.41k | } | 430 | | | 431 | 6.40k | *n = read_count; | 432 | 6.40k | return Status::OK(); | 433 | 6.40k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 66.6k | MutableColumnPtr& dst) override { | 409 | 66.6k | DCHECK(_parsed); | 410 | 66.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 66.6k | auto total = *n; | 416 | 66.6k | auto read_count = 0; | 417 | 66.6k | _buffer.resize(total); | 418 | 2.39M | for (size_t i = 0; i < total; ++i) { | 419 | 2.33M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.33M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.18k | break; | 422 | 2.18k | } | 423 | | | 424 | 2.33M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.33M | } | 426 | | | 427 | 66.7k | if (LIKELY(read_count > 0)) { | 428 | 66.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 66.7k | } | 430 | | | 431 | 66.6k | *n = read_count; | 432 | 66.6k | return Status::OK(); | 433 | 66.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.01k | MutableColumnPtr& dst) override { | 409 | 7.01k | DCHECK(_parsed); | 410 | 7.01k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.01k | auto total = *n; | 416 | 7.01k | auto read_count = 0; | 417 | 7.01k | _buffer.resize(total); | 418 | 16.2k | for (size_t i = 0; i < total; ++i) { | 419 | 9.27k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.27k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 9.27k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.27k | } | 426 | | | 427 | 7.01k | if (LIKELY(read_count > 0)) { | 428 | 7.01k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.01k | } | 430 | | | 431 | 7.01k | *n = read_count; | 432 | 7.01k | return Status::OK(); | 433 | 7.01k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 26.6k | MutableColumnPtr& dst) override { | 409 | 26.6k | DCHECK(_parsed); | 410 | 26.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 26.6k | auto total = *n; | 416 | 26.6k | auto read_count = 0; | 417 | 26.6k | _buffer.resize(total); | 418 | 372k | for (size_t i = 0; i < total; ++i) { | 419 | 346k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 346k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 346k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 346k | } | 426 | | | 427 | 26.6k | if (LIKELY(read_count > 0)) { | 428 | 26.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 26.6k | } | 430 | | | 431 | 26.6k | *n = read_count; | 432 | 26.6k | return Status::OK(); | 433 | 26.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 3.29k | MutableColumnPtr& dst) override { | 409 | 3.29k | DCHECK(_parsed); | 410 | 3.29k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 3.29k | auto total = *n; | 416 | 3.29k | auto read_count = 0; | 417 | 3.29k | _buffer.resize(total); | 418 | 13.3k | for (size_t i = 0; i < total; ++i) { | 419 | 10.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 10.0k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 10.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 10.0k | } | 426 | | | 427 | 3.29k | if (LIKELY(read_count > 0)) { | 428 | 3.29k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 3.29k | } | 430 | | | 431 | 3.29k | *n = read_count; | 432 | 3.29k | return Status::OK(); | 433 | 3.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 5.54k | MutableColumnPtr& dst) override { | 409 | 5.54k | DCHECK(_parsed); | 410 | 5.54k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 5.54k | auto total = *n; | 416 | 5.54k | auto read_count = 0; | 417 | 5.54k | _buffer.resize(total); | 418 | 25.0k | for (size_t i = 0; i < total; ++i) { | 419 | 19.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 19.4k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 19.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 19.4k | } | 426 | | | 427 | 5.54k | if (LIKELY(read_count > 0)) { | 428 | 5.54k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 5.54k | } | 430 | | | 431 | 5.54k | *n = read_count; | 432 | 5.54k | return Status::OK(); | 433 | 5.54k | } |
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.48k | MutableColumnPtr& dst) override { | 409 | 1.48k | DCHECK(_parsed); | 410 | 1.48k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.48k | auto total = *n; | 416 | 1.48k | auto read_count = 0; | 417 | 1.48k | _buffer.resize(total); | 418 | 436k | for (size_t i = 0; i < total; ++i) { | 419 | 434k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 434k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 10 | break; | 422 | 10 | } | 423 | | | 424 | 434k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 434k | } | 426 | | | 427 | 1.48k | if (LIKELY(read_count > 0)) { | 428 | 1.48k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.48k | } | 430 | | | 431 | 1.48k | *n = read_count; | 432 | 1.48k | return Status::OK(); | 433 | 1.48k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.2k | MutableColumnPtr& dst) override { | 409 | 29.2k | DCHECK(_parsed); | 410 | 29.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.2k | auto total = *n; | 416 | 29.2k | auto read_count = 0; | 417 | 29.2k | _buffer.resize(total); | 418 | 6.59M | for (size_t i = 0; i < total; ++i) { | 419 | 6.56M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.56M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 752 | break; | 422 | 752 | } | 423 | | | 424 | 6.56M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.56M | } | 426 | | | 427 | 29.2k | if (LIKELY(read_count > 0)) { | 428 | 29.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.2k | } | 430 | | | 431 | 29.2k | *n = read_count; | 432 | 29.2k | return Status::OK(); | 433 | 29.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.1k | MutableColumnPtr& dst) override { | 409 | 32.1k | DCHECK(_parsed); | 410 | 32.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.1k | auto total = *n; | 416 | 32.1k | auto read_count = 0; | 417 | 32.1k | _buffer.resize(total); | 418 | 9.56M | for (size_t i = 0; i < total; ++i) { | 419 | 9.53M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.53M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 208 | break; | 422 | 208 | } | 423 | | | 424 | 9.53M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.53M | } | 426 | | | 427 | 32.1k | if (LIKELY(read_count > 0)) { | 428 | 32.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.1k | } | 430 | | | 431 | 32.1k | *n = read_count; | 432 | 32.1k | return Status::OK(); | 433 | 32.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.16k | MutableColumnPtr& dst) override { | 409 | 1.16k | DCHECK(_parsed); | 410 | 1.16k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.16k | auto total = *n; | 416 | 1.16k | auto read_count = 0; | 417 | 1.16k | _buffer.resize(total); | 418 | 4.00k | for (size_t i = 0; i < total; ++i) { | 419 | 2.83k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.83k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.83k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.83k | } | 426 | | | 427 | 1.17k | if (LIKELY(read_count > 0)) { | 428 | 1.17k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.17k | } | 430 | | | 431 | 1.16k | *n = read_count; | 432 | 1.16k | return Status::OK(); | 433 | 1.16k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.64k | MutableColumnPtr& dst) override { | 409 | 1.64k | DCHECK(_parsed); | 410 | 1.64k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.64k | auto total = *n; | 416 | 1.64k | auto read_count = 0; | 417 | 1.64k | _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 | 246 | break; | 422 | 246 | } | 423 | | | 424 | 435k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 435k | } | 426 | | | 427 | 1.64k | if (LIKELY(read_count > 0)) { | 428 | 1.64k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.64k | } | 430 | | | 431 | 1.64k | *n = read_count; | 432 | 1.64k | return Status::OK(); | 433 | 1.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.4k | MutableColumnPtr& dst) override { | 409 | 12.4k | DCHECK(_parsed); | 410 | 12.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.4k | auto total = *n; | 416 | 12.4k | auto read_count = 0; | 417 | 12.4k | _buffer.resize(total); | 418 | 26.2k | for (size_t i = 0; i < total; ++i) { | 419 | 13.8k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 13.8k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 13.8k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 13.8k | } | 426 | | | 427 | 12.4k | if (LIKELY(read_count > 0)) { | 428 | 12.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.4k | } | 430 | | | 431 | 12.4k | *n = read_count; | 432 | 12.4k | return Status::OK(); | 433 | 12.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 152 | MutableColumnPtr& dst) override { | 409 | 152 | DCHECK(_parsed); | 410 | 152 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 152 | auto total = *n; | 416 | 152 | auto read_count = 0; | 417 | 152 | _buffer.resize(total); | 418 | 309 | for (size_t i = 0; i < total; ++i) { | 419 | 157 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 157 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 157 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 157 | } | 426 | | | 427 | 152 | if (LIKELY(read_count > 0)) { | 428 | 152 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 152 | } | 430 | | | 431 | 152 | *n = read_count; | 432 | 152 | return Status::OK(); | 433 | 152 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.61k | MutableColumnPtr& dst) override { | 409 | 4.61k | DCHECK(_parsed); | 410 | 4.61k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.61k | auto total = *n; | 416 | 4.61k | auto read_count = 0; | 417 | 4.61k | _buffer.resize(total); | 418 | 19.0k | for (size_t i = 0; i < total; ++i) { | 419 | 14.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.4k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.4k | } | 426 | | | 427 | 4.61k | if (LIKELY(read_count > 0)) { | 428 | 4.61k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.61k | } | 430 | | | 431 | 4.61k | *n = read_count; | 432 | 4.61k | return Status::OK(); | 433 | 4.61k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.6k | MutableColumnPtr& dst) override { | 409 | 27.6k | DCHECK(_parsed); | 410 | 27.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.6k | auto total = *n; | 416 | 27.6k | auto read_count = 0; | 417 | 27.6k | _buffer.resize(total); | 418 | 23.4M | for (size_t i = 0; i < total; ++i) { | 419 | 23.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 23.4M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.15k | break; | 422 | 5.15k | } | 423 | | | 424 | 23.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 23.4M | } | 426 | | | 427 | 27.6k | if (LIKELY(read_count > 0)) { | 428 | 27.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.6k | } | 430 | | | 431 | 27.6k | *n = read_count; | 432 | 27.6k | return Status::OK(); | 433 | 27.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.2k | MutableColumnPtr& dst) override { | 409 | 13.2k | DCHECK(_parsed); | 410 | 13.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.2k | auto total = *n; | 416 | 13.2k | auto read_count = 0; | 417 | 13.2k | _buffer.resize(total); | 418 | 8.85M | for (size_t i = 0; i < total; ++i) { | 419 | 8.83M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 8.83M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 743 | break; | 422 | 743 | } | 423 | | | 424 | 8.83M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 8.83M | } | 426 | | | 427 | 13.2k | if (LIKELY(read_count > 0)) { | 428 | 13.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.2k | } | 430 | | | 431 | 13.2k | *n = read_count; | 432 | 13.2k | return Status::OK(); | 433 | 13.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 956 | MutableColumnPtr& dst) override { | 409 | 956 | DCHECK(_parsed); | 410 | 956 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 956 | auto total = *n; | 416 | 956 | auto read_count = 0; | 417 | 956 | _buffer.resize(total); | 418 | 2.76k | 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 | 958 | if (LIKELY(read_count > 0)) { | 428 | 958 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 958 | } | 430 | | | 431 | 956 | *n = read_count; | 432 | 956 | return Status::OK(); | 433 | 956 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 289 | MutableColumnPtr& dst) override { | 409 | 289 | DCHECK(_parsed); | 410 | 289 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 289 | auto total = *n; | 416 | 289 | auto read_count = 0; | 417 | 289 | _buffer.resize(total); | 418 | 820 | for (size_t i = 0; i < total; ++i) { | 419 | 531 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 531 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 531 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 531 | } | 426 | | | 427 | 289 | if (LIKELY(read_count > 0)) { | 428 | 289 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 289 | } | 430 | | | 431 | 289 | *n = read_count; | 432 | 289 | return Status::OK(); | 433 | 289 | } |
_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 | 838 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 838 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 838 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 838 | } | 426 | | | 427 | 323 | if (LIKELY(read_count > 0)) { | 428 | 323 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 323 | } | 430 | | | 431 | 323 | *n = read_count; | 432 | 323 | return Status::OK(); | 433 | 323 | } |
|
434 | | |
435 | 198k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 198k | return next_batch<false>(n, dst); |
437 | 198k | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 435 | 198k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 198k | return next_batch<false>(n, dst); | 437 | 198k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
438 | | |
439 | 4 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv |
440 | | |
441 | 1.65M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 763k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 978 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 708 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 10.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 344 | 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 | 318 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 1.79k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 227k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 245k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 59.0k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 271 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 213k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.11k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 6 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.43k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 1.07k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 130k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 307 | 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; } |
|
442 | | |
443 | 79.0M | char* get_data(size_t index) const { |
444 | 79.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 79.0M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 24.7M | char* get_data(size_t index) const { | 444 | 24.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 24.7M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 1.20M | char* get_data(size_t index) const { | 444 | 1.20M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.20M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 54.1k | char* get_data(size_t index) const { | 444 | 54.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 54.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 2.43M | char* get_data(size_t index) const { | 444 | 2.43M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.43M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 25.6k | char* get_data(size_t index) const { | 444 | 25.6k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 25.6k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 692k | char* get_data(size_t index) const { | 444 | 692k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 692k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 17.9k | char* get_data(size_t index) const { | 444 | 17.9k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 17.9k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 31.3k | char* get_data(size_t index) const { | 444 | 31.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 31.3k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 439k | char* get_data(size_t index) const { | 444 | 439k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 439k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.94M | char* get_data(size_t index) const { | 444 | 6.94M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.94M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.61M | char* get_data(size_t index) const { | 444 | 9.61M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.61M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 4.98k | char* get_data(size_t index) const { | 444 | 4.98k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.98k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 437k | char* get_data(size_t index) const { | 444 | 437k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 437k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 21.8k | char* get_data(size_t index) const { | 444 | 21.8k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 21.8k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.39k | char* get_data(size_t index) const { | 444 | 1.39k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.39k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 24.3k | char* get_data(size_t index) const { | 444 | 24.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 24.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 23.4M | char* get_data(size_t index) const { | 444 | 23.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.4M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 8.86M | char* get_data(size_t index) const { | 444 | 8.86M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 8.86M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.92k | char* get_data(size_t index) const { | 444 | 4.92k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.92k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.15k | char* get_data(size_t index) const { | 444 | 1.15k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.15k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.48k | char* get_data(size_t index) const { | 444 | 1.48k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.48k | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |